/* ========================================
   PROFESSIONAL EXPERIENCE TIMELINE
   ======================================== */

.experience-section {
    padding: var(--space-3xl) 0;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

/* Background soft glows */
.experience-section::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.experience-section .container {
    position: relative;
    z-index: 1;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-lg) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--gradient);
    opacity: 0.5;
}

.timeline-item {
    position: relative;
    padding-left: var(--space-3xl);
    margin-bottom: var(--space-2xl);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: var(--space-xs);
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
    box-shadow: var(--glow);
    z-index: 2;
    transition: all var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
    background: var(--secondary-color);
    box-shadow: var(--glow-secondary);
    transform: scale(1.2);
}

.timeline-content {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: var(--space-lg);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow);
}

.timeline-content:hover {
    border-color: var(--glass-border-hover);
    transform: translateX(8px);
    box-shadow: var(--shadow), var(--glow);
}

.timeline-content h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: var(--space-2xs);
    transition: color var(--transition-fast);
}

.timeline-item:hover .timeline-content h3 {
    color: var(--text-primary);
}

.timeline-content h4 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.timeline-date {
    display: inline-block;
    color: var(--primary-color);
    background: rgba(0, 242, 254, 0.06);
    border: 1px solid rgba(0, 242, 254, 0.15);
    font-family: var(--font-family-mono);
    font-size: var(--font-size-xs);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    margin-bottom: var(--space-md);
    font-weight: var(--font-weight-medium);
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
}

/* Light Mode Overrides */
body.light-mode .timeline-dot {
    border-color: var(--bg-dark);
}
body.light-mode .timeline-date {
    background: rgba(0, 242, 254, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .experience-section {
        padding: var(--space-2xl) 0;
    }

    .timeline {
        padding: var(--space-md) 0;
    }

    .timeline-item {
        padding-left: var(--space-xl);
        margin-bottom: var(--space-xl);
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-dot {
        left: 1px;
        width: 20px;
        height: 20px;
    }

    .timeline-content {
        padding: var(--space-md);
    }
    
    .timeline-content:hover {
        transform: none; /* Disable slide on hover for mobile touch compatibility */
    }
}