/* ==========================================================================
   INTERACTIVE TIMELINE SHOWCASE (SELICA PROGRAM ROADMAP)
   High-Aesthetic Botanical Glassmorphism & Scroll-Reactive Trail Spine
   ========================================================================== */

.ag-timeline-section {
    background: radial-gradient(circle at 50% 15%, #142e10 0%, #0c1c0a 45%, #071006 100%);
    color: #f0ece4;
    padding: clamp(100px, 12vh, 150px) 0 130px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

/* Animated Dark Forest Green Full Screen Background for Jadwal Page */
.night-lottie-bg-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.95;
    overflow: hidden;
}

.night-lottie-bg-wrap svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
}

/* Header Tipografi Raksasa */
.ag-section-head {
    text-align: center;
    position: relative;
    z-index: 3;
    margin-bottom: clamp(30px, 5vh, 50px);
}

.ag-section-head__row {
    overflow: hidden;
    line-height: 0.92;
}

.ag-head-solid {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(3rem, 7.5vw, 6.5rem);
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: #ffffff !important;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0,0,0,0.5) !important;
}

.ag-section-head__row--outline {
    margin-top: 2px;
}

.ag-head-stroke {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(3rem, 7.5vw, 6.5rem);
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: #FEE156 !important;
    -webkit-text-stroke: 2px #E5B800 !important;
    text-shadow: 0 4px 25px rgba(254, 225, 86, 0.4), 0 2px 12px rgba(0, 0, 0, 0.9) !important;
}

.ag-head-sub {
    font-size: 0.95rem;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-top: 18px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9) !important;
}

/* ═══════════ TIMELINE CORE STRUCTURE ═══════════ */
.timeline-showcase-wrap {
    position: relative;
    max-width: 1280px;
    margin: clamp(40px, 6vh, 70px) auto 0;
    padding: 20px 0;
}

/* Vertical Glowing Trail Spine (Central Trunk) */
.timeline-trail-spine {
    position: absolute;
    top: 40px;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    background: rgba(254, 225, 86, 0.12);
    border-radius: 999px;
    z-index: 2;
    overflow: hidden;
}

.timeline-trail-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, #fee156 0%, #4ae340 50%, #fee156 100%);
    box-shadow: 0 0 16px rgba(254, 225, 86, 0.8), 0 0 30px rgba(74, 227, 64, 0.5);
    border-radius: 999px;
    transition: height 0.1s cubic-bezier(0.1, 0.9, 0.2, 1);
    will-change: height;
}

.timeline-pulse-orb {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    top: 0%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fee156;
    box-shadow: 0 0 20px #fee156, 0 0 35px #4ae340;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ═══════════ TIMELINE NODES (ZIG-ZAG FLOW) ═══════════ */
.timeline-cards-flow {
    display: flex;
    flex-direction: column;
    gap: clamp(60px, 8vw, 110px);
    position: relative;
    z-index: 4;
}

.timeline-node {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(40px, 6vw, 90px);
    position: relative;
    opacity: 0;
    transform: translateY(45px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.timeline-node.is-active-node {
    opacity: 1;
    transform: translateY(0);
}

/* Reverse Alternate Layout */
.timeline-node--reverse {
    direction: rtl;
}

.timeline-node--reverse > * {
    direction: ltr;
}

/* Center Milestone Marker Dot */
.timeline-milestone-marker {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #0d1e0b;
    border: 2px solid rgba(254, 225, 86, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 0 15px rgba(254, 225, 86, 0.15);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.milestone-core-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--idm-secondary-yellow);
    box-shadow: 0 0 10px var(--idm-secondary-yellow);
    transition: transform 0.4s ease;
}

.milestone-ring-ping {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1.5px solid var(--idm-secondary-yellow);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
}

.milestone-num {
    position: absolute;
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    font-weight: 900;
    color: #fee156;
    display: none;
}

.timeline-node.is-active-node .timeline-milestone-marker {
    border-color: #fee156;
    box-shadow: 0 0 30px rgba(254, 225, 86, 0.6), 0 0 50px rgba(74, 227, 64, 0.3);
    transform: translate(-50%, -50%) scale(1.12);
}

.timeline-node.is-active-node .milestone-ring-ping {
    opacity: 0.8;
    animation: pingMilestone 2.5s infinite cubic-bezier(0, 0.2, 0.8, 1);
}

@keyframes pingMilestone {
    0% { transform: scale(0.9); opacity: 0.9; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* ═══════════ POSTER VISUAL CARD ═══════════ */
.timeline-poster-card {
    position: relative;
    border-radius: 28px;
    padding: 3px;
    background: linear-gradient(135deg, rgba(254, 225, 86, 0.35) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(74, 227, 64, 0.25) 100%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 30px rgba(254, 225, 86, 0.08);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
    cursor: pointer;
    overflow: hidden;
}

.timeline-poster-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 45px rgba(254, 225, 86, 0.25);
}

.poster-media-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 25px;
    overflow: hidden;
    background: #081206;
}

.timeline-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
    filter: brightness(0.94) contrast(1.05);
}

.timeline-poster-card:hover .timeline-poster-img {
    transform: scale(1.06);
    filter: brightness(1.03) contrast(1.08);
}

.poster-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(6,16,6,0.55) 100%);
    pointer-events: none;
}

.poster-floating-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background: rgba(10, 24, 8, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(254, 225, 86, 0.35);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 6px 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    z-index: 3;
}

.badge-pulse-glow {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fee156;
    box-shadow: 0 0 8px #fee156;
    animation: badgePulse 1.8s infinite ease-in-out;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
}

.poster-zoom-hint {
    position: absolute;
    bottom: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(10, 24, 8, 0.82);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fee156;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, opacity 0.3s ease;
    z-index: 3;
}

.timeline-poster-card:hover .poster-zoom-hint {
    transform: scale(1.12);
    background: #fee156;
    color: #0a1408;
    opacity: 1;
    box-shadow: 0 0 18px rgba(254, 225, 86, 0.6);
}

/* ═══════════ EDITORIAL GLASS NARRATIVE BOX ═══════════ */
.timeline-glass-box {
    position: relative;
    background: rgba(12, 28, 10, 0.7);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    border: 1px solid rgba(254, 225, 86, 0.2);
    border-radius: 28px;
    padding: clamp(32px, 4vw, 48px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
}

.timeline-node:hover .timeline-glass-box {
    border-color: rgba(254, 225, 86, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.6), 0 0 35px rgba(254, 225, 86, 0.12);
}

.timeline-box-glow {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(254, 225, 86, 0.18) 0%, transparent 70%);
    pointer-events: none;
    transition: transform 0.5s ease;
}

.timeline-node:hover .timeline-box-glow {
    transform: scale(1.4);
}

.narrative-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.narrative-num-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-family: 'Space Mono', monospace;
}

.narrative-num-badge .num-prefix {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.5);
}

.narrative-num-badge .num-val {
    font-size: 1.85rem;
    font-weight: 900;
    color: #fee156;
    line-height: 1;
    text-shadow: 0 0 16px rgba(254, 225, 86, 0.45);
}

.narrative-tag-pill {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fee156;
    background: rgba(254, 225, 86, 0.1);
    border: 1px solid rgba(254, 225, 86, 0.25);
    padding: 5px 14px;
    border-radius: 999px;
}

.narrative-title {
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.narrative-desc {
    font-size: 0.92rem;
    line-height: 1.78;
    color: rgba(240, 236, 228, 0.8);
    margin-bottom: 26px;
}

.narrative-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(254, 225, 86, 0.12);
    flex-wrap: wrap;
    gap: 16px;
}

.narrative-loc-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
}

.narrative-loc-chip svg {
    color: #fee156;
}

.narrative-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fee156;
    color: #0a1408 !important;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(254, 225, 86, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.narrative-cta-btn svg {
    transition: transform 0.3s ease;
}

.narrative-cta-btn:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(254, 225, 86, 0.5);
}

.narrative-cta-btn:hover svg {
    transform: translateX(4px);
}

/* ═══════════ LIGHTBOX MODAL ═══════════ */
.timeline-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.timeline-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.timeline-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 10, 3, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.timeline-lightbox-dialog {
    position: relative;
    max-width: 960px;
    width: 100%;
    z-index: 2;
    transform: scale(0.92);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-lightbox.is-open .timeline-lightbox-dialog {
    transform: scale(1);
}

.lightbox-close-btn {
    position: absolute;
    top: -46px;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.lightbox-close-btn:hover {
    background: #fee156;
    color: #0a1408;
    transform: rotate(90deg);
}

.lightbox-img-frame {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(254, 225, 86, 0.2);
    border: 1px solid rgba(254, 225, 86, 0.35);
    background: #060e05;
}

.lightbox-full-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

/* ═══════════ RESPONSIVE BREAKPOINTS ═══════════ */
@media (max-width: 1024px) {
    .ag-timeline-section {
        padding: clamp(90px, 12vh, 130px) 0 100px;
    }

    .timeline-trail-spine {
        left: 24px;
        transform: none;
    }

    .timeline-node {
        grid-template-columns: 1fr;
        padding-left: 56px;
        gap: 28px;
        direction: ltr !important;
    }

    .timeline-node--reverse > * {
        direction: ltr !important;
    }

    .timeline-milestone-marker {
        left: 24px;
        top: 24px;
        transform: translateX(-50%);
        width: 36px;
        height: 36px;
    }

    .timeline-node.is-active-node .timeline-milestone-marker {
        transform: translateX(-50%) scale(1.1);
    }
}

@media (max-width: 768px) {
    .ag-head-solid,
    .ag-head-stroke {
        font-size: clamp(2.4rem, 11vw, 4rem);
    }

    .ag-head-sub {
        font-size: 0.84rem;
        letter-spacing: 0.03em;
    }
}

@media (max-width: 640px) {
    .timeline-node {
        padding-left: 40px;
    }

    .timeline-trail-spine {
        left: 14px;
    }

    .timeline-milestone-marker {
        left: 14px;
        width: 28px;
        height: 28px;
        font-size: 0.72rem;
    }

    .timeline-glass-box {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .narrative-title {
        font-size: 1.2rem;
    }

    .narrative-desc {
        font-size: 0.84rem;
        line-height: 1.5;
    }

    .narrative-meta-chips {
        gap: 8px;
    }

    .narrative-action-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .narrative-cta-btn {
        justify-content: center;
        padding: 10px 18px;
        font-size: 0.76rem;
    }

    .lightbox-close-btn {
        top: -42px;
        right: 4px;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 400px) {
    .timeline-node {
        padding-left: 34px;
    }

    .ag-head-solid,
    .ag-head-stroke {
        font-size: clamp(2.1rem, 11.5vw, 2.9rem);
    }
}
