/* ============================================
   EXPERIENCE.CSS — Timeline & Skills
   ============================================ */

/* === EXPERIENCE LAYOUT === */
.experience-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-20) var(--space-12);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-20);
}

/* === TIMELINE === */
.timeline-column {
    position: relative;
}

.timeline {
    position: relative;
    padding-left: var(--space-12);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(
        to bottom,
        var(--accent-gold) 0%,
        var(--accent-teal) 20%,
        var(--accent-purple) 40%,
        var(--accent-blue) 60%,
        var(--accent-orange) 80%,
        var(--accent-pink) 100%
    );
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-12);
}

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

.timeline-dot {
    position: absolute;
    left: calc(-1 * var(--space-12));
    top: var(--space-2);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--accent-gold);
    transform: translateX(-7.5px);
    transition: all var(--duration-base) var(--ease-out);
    z-index: 2;
    box-shadow: 0 0 0 4px var(--bg-primary);
}

.timeline-item:nth-child(2) .timeline-dot { border-color: var(--accent-teal); }
.timeline-item:nth-child(3) .timeline-dot { border-color: var(--accent-purple); }
.timeline-item:nth-child(4) .timeline-dot { border-color: var(--accent-blue); }
.timeline-item:nth-child(5) .timeline-dot { border-color: var(--accent-orange); }
.timeline-item:nth-child(6) .timeline-dot { border-color: var(--accent-pink); }

.timeline-item:hover .timeline-dot {
    transform: translateX(-7.5px) scale(1.4);
    box-shadow: 
        0 0 0 4px var(--bg-primary),
        0 0 24px var(--glow-gold);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all var(--duration-slow) var(--ease-out);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: var(--space-5);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid var(--border-muted);
}

.timeline-content::after {
    content: '';
    position: absolute;
    left: -8px;
    top: calc(var(--space-5) + 1px);
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-right: 9px solid var(--bg-card);
}

.timeline-content:hover {
    transform: translateX(12px);
    border-color: var(--border-subtle);
    box-shadow: var(--shadow-lg);
}

.timeline-date {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-3);
    padding: var(--space-1) var(--space-4);
    background: var(--accent-gold-muted);
    border-radius: var(--radius-full);
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 500;
    margin-bottom: var(--space-1);
    letter-spacing: -0.01em;
}

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

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

/* === SKILLS SECTION === */
.skills-section {
    padding-top: var(--space-2);
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all var(--duration-slow) ease;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-teal), transparent);
    opacity: 0;
    transition: opacity var(--duration-base) ease;
}

.skill-category:hover {
    border-color: var(--border-subtle);
    box-shadow: var(--shadow-md);
}

.skill-category:hover::before {
    opacity: 1;
}

.skill-category h3 {
    font-size: var(--text-xs);
    color: var(--accent-teal);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    margin-bottom: var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.skill-category h3::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--accent-teal);
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.skill-item {
    background: var(--bg-secondary);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border-muted);
    transition: all var(--duration-base) var(--ease-out);
    cursor: default;
}

.skill-item:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

/* === EDUCATION CARD === */
.education-card {
    background: linear-gradient(155deg, var(--bg-card), var(--bg-tertiary));
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    margin-top: var(--space-8);
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-teal));
}

.education-card h3 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 500;
    margin-bottom: var(--space-1);
}

.education-card h4 {
    color: var(--accent-gold);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-6);
    letter-spacing: 0.02em;
}

.education-details {
    display: flex;
    gap: var(--space-10);
    flex-wrap: wrap;
}

.education-stat {
    display: flex;
    flex-direction: column;
}

.education-stat .value {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 500;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.education-stat .label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .experience-section {
        grid-template-columns: 1fr;
        gap: var(--space-16);
        padding: var(--space-16) var(--space-8);
    }
}

@media (max-width: 768px) {
    .experience-section {
        padding: var(--space-12) var(--space-6);
    }
    
    .timeline {
        padding-left: var(--space-8);
    }
    
    .timeline-dot {
        left: calc(-1 * var(--space-8));
        width: 14px;
        height: 14px;
        transform: translateX(-5.5px);
    }
    
    .timeline-item:hover .timeline-dot {
        transform: translateX(-5.5px) scale(1.4);
    }
    
    .timeline-content {
        padding: var(--space-6);
    }
    
    .timeline-content:hover {
        transform: translateX(8px);
    }
    
    .timeline-content::before,
    .timeline-content::after {
        display: none;
    }
    
    .education-details {
        gap: var(--space-6);
    }
    
    .skill-category {
        padding: var(--space-6);
    }
}
