/**
 * ==============================================
 * EXPERIENCE SECTION - HORIZONTAL SCROLL (BEM)
 * ==============================================
 * Block: .experience
 * Elements: __inner, __progress, __nav, __dot, __counter
 * Block: .exp-panel
 * Elements: __watermark, __content, __meta, __badge, __company, __role, __desc, __tags, __tag, __stats, __stat
 * Modifiers: --current
 * ==============================================
 */

/* ===== Main Container ===== */
.experience {
    overflow: hidden;
    position: relative;
    background: var(--color-bg-darker);
}

.experience__inner {
    display: flex;
    flex-wrap: nowrap;
    width: fit-content;
}

/* ===== Progress Bar ===== */
.experience__progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    z-index: 1000;
    pointer-events: none;
}

/* ===== Navigation Dots ===== */
.experience__nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.experience__nav.visible {
    opacity: 1;
}

.experience__dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: var(--color-border-lighter);
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    padding: 0;
}

.experience__dot:hover {
    background: var(--color-text-muted);
    transform: scale(1.2);
}

.experience__dot.active {
    background: var(--color-primary);
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.5);
}

/* ===== Counter ===== */
.experience__counter {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-text-muted);
    z-index: 100;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.experience__counter.visible {
    opacity: 1;
}

.experience__counter-current {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* ===== Scroll Hint ===== */
.experience__hint {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    z-index: 100;
    transition: opacity 0.5s ease;
}

.experience__hint-arrow {
    animation: scrollArrow 1.5s infinite;
}

@keyframes scrollArrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

/* ==============================================
   INDIVIDUAL PANELS
   ============================================== */
.exp-panel {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

/* Different subtle backgrounds */
.exp-panel:nth-child(1) { background: var(--color-bg-primary); }
.exp-panel:nth-child(2) { background: var(--color-bg-darker); }
.exp-panel:nth-child(3) { background: #0d0d10; }
.exp-panel:nth-child(4) { background: var(--color-bg-darker); }
.exp-panel:nth-child(5) { background: var(--color-bg-primary); }

/* ===== Watermark Number ===== */
.exp-panel__watermark {
    position: absolute;
    font-family: var(--font-heading);
    font-size: clamp(15rem, 40vw, 30rem);
    font-weight: 800;
    color: var(--color-border-lighter);
    opacity: 0.25;
    right: -5%;
    bottom: -10%;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

/* ===== Panel Content ===== */
.exp-panel__content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

/* ===== Meta Row ===== */
.exp-panel__meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.exp-panel__period {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

.exp-panel__flag {
    font-size: 2.5rem;
}

.exp-panel__location {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* ===== Current Badge ===== */
.exp-panel__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(250, 204, 21, 0.15);
    border: 1px solid rgba(250, 204, 21, 0.3);
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}

.exp-panel__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.4);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 8px rgba(250, 204, 21, 0);
    }
}

/* ===== Company Name ===== */
.exp-panel__company {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* .exp-panel--current .exp-panel__company {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
} */

/* ===== Role ===== */
.exp-panel__role {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.exp-panel--current .exp-panel__role {
    color: var(--color-accent);
}

/* ===== Description ===== */
.exp-panel__desc {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: 2rem;
}

/* ===== Tags ===== */
.exp-panel__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
}

.exp-panel__tag {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border-lighter);
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    color: var(--color-text-secondary);
    transition: all var(--transition-base);
}

.exp-panel__tag:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.exp-panel--current .exp-panel__tag {
    background: rgba(20, 184, 166, 0.1);
    border-color: rgba(20, 184, 166, 0.2);
    color: var(--color-accent);
}

/* ===== Stats ===== */
.exp-panel__stats {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border-lighter);
}

.exp-panel__stat {
    text-align: left;
}

.exp-panel__stat-value {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

.exp-panel__stat-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 768px) {
    /* Critical fixes for mobile */
    .experience {
        overflow: visible !important;
        height: auto !important;
    }
    
    .experience__inner {
        flex-direction: column;
        width: 100% !important;
        transform: none !important;
    }
    
    .exp-panel {
        width: 100% !important;
        height: auto !important;
        min-height: auto;
        flex-shrink: 1;
        padding: 4rem 1.5rem;
        padding-top: 5rem;
        align-items: flex-start;
    }
    
    /* Hide horizontal scroll UI */
    .experience__nav,
    .experience__hint,
    .experience__progress,
    .experience__counter {
        display: none !important;
    }
    
    /* Content always visible */
    .exp-panel__content,
    .exp-panel__company,
    .exp-panel__tag {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
    }
    
    /* Your existing styles */
    .exp-panel__watermark {
        font-size: 6rem;
        opacity: 0.05;
    }

    .exp-panel__meta {
        gap: 1rem;
    }

    .exp-panel__flag {
        font-size: 2rem;
    }

    .exp-panel__stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .exp-panel__stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .exp-panel__company {
        font-size: 2.5rem;
    }

    .exp-panel__role {
        font-size: 1rem;
    }

    .exp-panel__desc {
        font-size: 0.95rem;
    }

    .exp-panel__tags {
        gap: 0.5rem;
    }

    .exp-panel__tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}
/* ==============================================
   MOBILE: VERTICAL STACK (no horizontal scroll)
   ============================================== */
@media (max-width: 768px) {
    .experience {
        overflow: visible;
    }
    
    .experience__inner {
        flex-direction: column;
        width: 100%;
    }
    
    .exp-panel {
        width: 100%;
        height: auto;
        min-height: 100vh;
        padding: 4rem 1.5rem;
    }
    
    /* Hide horizontal scroll UI */
    .experience__nav,
    .experience__hint,
    .experience__progress,
    .experience__counter {
        display: none;
    }
    
    /* Watermark adjustments */
    .exp-panel__watermark {
        font-size: 8rem;
        opacity: 0.025;
    }
    
    /* Content always visible (no scroll-triggered reveal) */
    .exp-panel__content {
        opacity: 1;
        transform: none;
    }
    
    .exp-panel__company {
        clip-path: none;
    }
    
    .exp-panel__tags {
        opacity: 1;
    }
    
    .exp-panel__tag {
        opacity: 1;
        transform: none;
    }
}