/* EXPERIENCE SLIDE */
.slide.experience {
    position: relative;
    overflow: visible;
    background: #000;
}

.experience-background {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255, 115, 0, 0.05) 0%, rgba(0, 0, 0, 0.95) 70%);
    z-index: 1;
}

.experience-background::before {
    content: '';
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 30% 20%, rgba(255, 115, 0, 0.08) 0%, transparent 55%),
        radial-gradient(circle at 70% 80%, rgba(255, 115, 0, 0.06) 0%, transparent 60%);
    filter: blur(25px);
    animation: expAmbient 10s ease-in-out infinite;
    pointer-events: none;
}

.experience-background::after {
    content: '';
    position: absolute;
    left: -40%;
    top: 0;
    height: 100%;
    width: 60%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 115, 0, 0.06) 45%, transparent 100%);
    filter: blur(18px);
    opacity: 0.45;
    animation: expScan 8s linear infinite;
    pointer-events: none;
}

@keyframes expAmbient {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.9; }
    50% { transform: translate3d(2%, -2%, 0) scale(1.02); opacity: 1; }
}

@keyframes expScan {
    0% { transform: translateX(0); }
    100% { transform: translateX(220%); }
}

.experience-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1615px;
    height: calc(100% - 40px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 18px;
    padding: 20px;
}

.experience-header {
    text-align: center;
}

.experience-header h1 {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 0.35rem;
    color: white;
    filter: drop-shadow(0 0 8px rgba(255, 115, 0, 0.3));
    font-weight: 400;
}

.experience-header p {
    font-size: clamp(1rem, 3vw, 1.15rem);
    opacity: 0.9;
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Horizontal curved timeline */
.exp-rail {
    /* Full-bleed: timeline spans entire viewport width */
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 50px;

    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    transition: background 220ms ease, border-color 220ms ease;
}

.exp-rail-viewport {
    position: relative;
    overflow: visible;
    height: 120px;
    scrollbar-width: none;
}

.exp-rail-viewport::-webkit-scrollbar {
    display: none;
}

/* Arc line is fixed to the viewport (track moves) */
.exp-rail-viewport::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0px;
    height: 150px;
    border: 2px solid rgba(255, 255, 255, 0.16);
    border-radius: 45%;
    clip-path: inset(0 0 50% 0);
    opacity: 0.75;
    pointer-events: none;
    z-index: 1;
}

.exp-rail-viewport::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0px;
    height: 150px;
    border: 2px solid rgba(255, 115, 0, 0.16);
    border-radius: 45%;
    clip-path: inset(0 0 50% 0);
    filter: blur(0.2px);
    opacity: 0.9;
    pointer-events: none;
    z-index: 1;
    animation: expArcGlow 5.5s ease-in-out infinite;
}

.exp-rail-track {
    position: relative;
    height: 65px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 18px;
    gap: clamp(18px, 6vw, 120px);
    width: max-content;
    margin: 0 auto;
    transform: translate3d(0, 0, 0);
    transition: transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
    will-change: transform;
    z-index: 2;
    overflow: visible;
}

@keyframes expArcGlow {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 0.95; }
}

.exp-node {
    position: relative;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transform: translateY(var(--offset, 0px));
    display: grid;
    place-items: center;
    user-select: none;
}

.exp-node-year {
    width: clamp(50px, 9vw, 86px);
    height: clamp(50px, 9vw, 86px);
    display: grid;
    place-items: center;
    padding: 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(0.7rem, 2.6vw, 0.98rem);
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: visible;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.8));
    transition: transform 180ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.exp-node:hover .exp-node-year {
    border-color: rgba(255, 210, 173, 0.75);
    background: rgba(255, 115, 0, 0.09);
    transform: scale(1.03);
}

.exp-node.is-active .exp-node-year {
    border-color: rgba(255, 210, 173, 0.95);
    background: rgba(255, 115, 0, 0.14);
    box-shadow: 0 0 0 3px rgba(255, 115, 0, 0.12), 0 0 22px rgba(255, 115, 0, 0.25);
    animation: expActivePulse 2.2s ease-in-out infinite;
}

@keyframes expActivePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 3px rgba(255, 115, 0, 0.12), 0 0 22px rgba(255, 115, 0, 0.25); }
    50% { transform: scale(1.04); box-shadow: 0 0 0 4px rgba(255, 115, 0, 0.16), 0 0 28px rgba(255, 115, 0, 0.35); }
}

.exp-node:focus-visible .exp-node-year {
    outline: 2px solid rgba(255, 210, 173, 0.85);
    outline-offset: 4px;
}

/* Panels */
.exp-panels {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 18px;
    filter: drop-shadow(0 0 18px rgba(0, 0, 0, 1));
    min-height: 170px;
    max-height: 45vh;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.exp-panels::-webkit-scrollbar {
    width: 8px;
}

.exp-panels::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.exp-panels::-webkit-scrollbar-thumb {
    background: rgba(255, 115, 0, 0.4);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.exp-panels::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 115, 0, 0.6);
}

.exp-panel {
    display: none;
    max-width: 1060px;
    margin: 0 auto;
}

.exp-panel.is-active {
    display: block;
    animation: expPanelIn 280ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

@keyframes expPanelIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.exp-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(1.1rem, 2.8vw, 1.4rem);
    font-weight: 400;
    margin: 0 0 8px 0;
    color: white;
}

.exp-panel-title i {
    width: 20px;
    opacity: 0.95;
    filter: drop-shadow(0 0 10px rgba(255, 115, 0, 0.18));
}

.exp-panel-org {
    opacity: 0.88;
    margin-bottom: 10px;
    line-height: 1.4;
}

.exp-panel-body {
    opacity: 0.92;
    line-height: 1.65;
    font-size: 1rem;
}

@media (max-width: 900px) {
    .experience-content {
        width: calc(100vw - 20px);
        height: calc(100% - 20px);
        padding: 16px;
        gap: 14px;
    }

    .exp-rail {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px 10px;
    }

    .exp-rail-track {
        justify-content: center;
        padding: 14px 14px 10px 14px;
        gap: 3%;
        height: 50px;
    }

    .exp-rail-viewport::before,
    .exp-rail-viewport::after {
        left: 10px;
        right: 10px;
    }

    .exp-panels {
        padding: 16px;
        min-height: 190px;
    }

    .exp-panel-body {
        font-size: 0.95rem;
    }
}

@media (max-width: 420px) {
    .exp-panels {
        padding: 14px;
    }

    .exp-panel-title {
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .experience-background::before,
    .experience-background::after,
    .exp-rail-track::after,
    .exp-panel.is-active,
    .exp-node.is-active .exp-node-year {
        animation: none !important;
    }

    .exp-node-year {
        transition: none !important;
    }

    .exp-rail-track {
        transition: none !important;
    }
}
