/* Modern Timeline with Map Integration */
.work-experience-section {
    background: transparent;
    padding: 0;
    margin: 0;
}

.work-experience-header {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.work-experience-header .HeadlineSection {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
    /* Remove the gradient text effect to match other sections */
}

.work-experience-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    color: #ffffff;
    max-width: 600px;
    margin: 0 auto;
}

.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00ffff, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 2rem;
    color: #ffffff;
}

.timeline-map-container {
    background: rgba(26, 26, 46, 0.3);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    color: #00ffff;
}

#experienceMap {
    height: 400px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
    border: 2px solid rgba(0, 255, 255, 0.3);
    margin-bottom: 2rem;
    position: relative;
}

/* Leaflet zoom message control styling */
.leaflet-control-zoom-message {
    margin: 10px;
}

.leaflet-control-zoom-message div {
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
    border: none !important;
}

/* Minimal attribution styling */
.leaflet-control-attribution {
    font-size: 10px !important;
    opacity: 0.6 !important;
    background: rgba(0, 0, 0, 0.3) !important;
    color: #ccc !important;
    border-radius: 3px !important;
    padding: 2px 5px !important;
    margin: 5px !important;
}

.leaflet-control-attribution a {
    color: #ddd !important;
    text-decoration: none;
}

.leaflet-control-attribution a:hover {
    color: white !important;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 2rem auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #00ffff, #ff6b6b);
    transform: translateX(-50%);
    border-radius: 2px;
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: calc(50% + 30px);
    text-align: left;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: calc(50% + 30px);
    text-align: right;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 20px;
    height: 20px;
    background: #00ffff;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px #00ffff;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.timeline-dot:hover {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 30px #00ffff;
}

.timeline-dot.active {
    background: #ff6b6b;
    box-shadow: 0 0 25px #ff6b6b;
    transform: translateX(-50%) scale(1.2);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
}

.timeline-content.active {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.2);
}

.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.job-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #00ffff;
    margin-bottom: 0.5rem;
}

.company-name {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.job-duration {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 1rem;
    color: #ffffff;
}

.job-location {
    font-size: 0.9rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.job-description {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    color: #ffffff;
}

.controls {
    text-align: center;
    margin: 2rem 0;
}

.control-btn {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #00ffff;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover, 
.control-btn.active {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
    color: #ffffff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #00ffff;
}

.stat-label {
    opacity: 0.8;
    margin-top: 0.5rem;
    color: #ffffff;
}

/* Map popup styling */
.leaflet-popup-content-wrapper {
    background: rgba(26, 26, 46, 0.95) !important;
    color: white !important;
    border-radius: 10px !important;
}

.leaflet-popup-content {
    color: white !important;
}

.leaflet-popup-content h4 {
    color: #00ffff !important;
    margin-bottom: 10px !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .timeline-line {
        left: 30px;
    }
    
    .timeline-item .timeline-content {
        margin-left: 60px !important;
        margin-right: 0 !important;
        text-align: left !important;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-map-container {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .control-btn {
        margin: 0.25rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}
