/* =====================================================
   SEJARAH INDONESIA: MASA SOEKARNO (1950 - 1966)
   Design System & Styling (National Editorial Archive)
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;1,600&display=swap');

:root {
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Palette */
    --color-navy-950: #030914;
    --color-navy-900: #071a35;
    --color-navy-850: #0a2142;
    --color-navy-800: #0e2950;
    --color-navy-700: #123b69;
    --color-navy-600: #1a4d86;
    
    --color-sky-100: #e8f1fc;
    --color-sky-200: #c6ddf7;
    --color-sky-400: #7eb3ea;
    --color-sky-light: #9fc5ec;

    --color-gold: #c5a059;
    --color-gold-light: #f4ecd8;

    --color-bg-light: #f8fafc;
    --color-surface-white: #ffffff;
    --color-surface-subtle: #f1f5f9;
    --color-border-light: #e2e8f0;
    --color-border-dark: #1b375b;

    --color-text-main: #0f172a;
    --color-text-muted: #52637a;
    --color-text-inverse: #f8fafc;
    --color-text-inverse-muted: #cbd5e1;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(7, 26, 53, 0.05);
    --shadow-md: 0 10px 30px rgba(7, 26, 53, 0.08);
    --shadow-lg: 0 20px 45px rgba(7, 26, 53, 0.14);
    --shadow-glow: 0 0 25px rgba(159, 197, 236, 0.25);
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg-light);
    color: var(--color-text-main);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
}

.container {
    width: 92%;
    max-width: 1240px;
    margin: 0 auto;
}

/* =====================================================
   HERO SECTION (FULL SCREEN CINEMATIC ARCHIVE)
===================================================== */
.hero {
    min-height: 560px;
    height: 78vh;
    max-height: 740px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 70px 20px;
    overflow: hidden;
    background: #040e1c;
    color: var(--color-text-inverse);
}

.hero-bg-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    background: #040e1c;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% 25%;
    /* Archival Monochrome Base */
    filter: grayscale(100%) contrast(1.22) brightness(0.8);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Retro Classic Blue Cyanotype Tint */
.hero-bg-tint {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7, 26, 53, 0.92) 0%, rgba(18, 59, 105, 0.65) 45%, rgba(4, 14, 28, 0.94) 100%);
    mix-blend-mode: color;
    pointer-events: none;
}

/* Atmospheric Depth & Contrast Vignette */
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 65% 35%, rgba(15, 43, 76, 0.12) 0%, rgba(7, 26, 53, 0.62) 55%, rgba(3, 9, 20, 0.95) 100%),
        linear-gradient(to bottom, rgba(4, 14, 28, 0.45) 0%, transparent 40%, rgba(3, 9, 20, 0.96) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 880px;
    margin: 0 auto;
    padding: 0 10px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    padding: 8px 22px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-sky-light);
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(38px, 6.5vw, 72px);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.75);
}

.hero h1 span {
    color: var(--color-sky-light);
    font-style: italic;
    text-shadow: 0 0 35px rgba(159, 197, 236, 0.5);
}

.hero p {
    max-width: 720px;
    margin: 0 auto;
    color: #e2eaf5;
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.65;
    font-weight: 400;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

.hero-date {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 34px;
    padding: 9px 24px;
    background: rgba(15, 43, 76, 0.85);
    border: 1px solid rgba(159, 197, 236, 0.35);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-sky-light);
    font-size: 13.5px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* =====================================================
   STICKY NAVBAR & RESPONSIVE HAMBURGER
===================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 26, 53, 0.95);
    border-bottom: 1px solid rgba(159, 197, 236, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.nav-container {
    width: 92%;
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    font-weight: 800;
    font-size: 13.5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.brand-text {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

/* Navigation Menu (Desktop Row) */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-btn {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    padding: 14px 16px;
    font-weight: 600;
    font-size: 12.5px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: all 0.25s ease;
    border-bottom: 3px solid transparent;
    cursor: pointer;
}

.nav-btn:hover {
    color: var(--color-sky-light);
}

.nav-btn.active {
    color: #ffffff;
    border-bottom: 3px solid var(--color-sky-light);
    background: rgba(255, 255, 255, 0.05);
}

/* Minimal Icon-Only Hamburger Button */
.nav-hamburger {
    display: none;
    background: transparent;
    border: 1px solid rgba(159, 197, 236, 0.25);
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    padding: 9px;
    border-radius: var(--radius-sm);
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-hamburger:hover,
.nav-hamburger:active {
    background: rgba(18, 59, 105, 0.5);
    border-color: var(--color-sky-light);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--color-sky-light);
    border-radius: 2px;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

/* Morphing to clean X */
.nav-hamburger.is-active .hamburger-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-hamburger.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-hamburger.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Simple Mobile Dropdown (<= 860px) */
@media (max-width: 860px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(7, 26, 53, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(159, 197, 236, 0.2);
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
        padding: 12px 16px 16px;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
        display: none;
    }

    .nav-menu.is-open {
        display: flex;
        animation: fadeInSlide 0.22s ease-out;
    }

    .nav-btn {
        width: 100%;
        text-align: left;
        padding: 12px 16px;
        font-size: 13.5px;
        border-radius: var(--radius-sm);
        border-bottom: none;
        border-left: 3px solid transparent;
        display: flex;
        align-items: center;
    }

    .nav-btn:hover,
    .nav-btn:active {
        background: rgba(18, 59, 105, 0.4);
        color: var(--color-sky-light);
    }

    .nav-btn.active {
        background: rgba(18, 59, 105, 0.6);
        border-left: 3px solid var(--color-sky-light);
        color: #ffffff;
    }
}

/* =====================================================
   SECTIONS GENERAL
===================================================== */
.section {
    padding: 95px 0;
    position: relative;
}

.section.dark {
    background: var(--color-navy-900);
    color: var(--color-text-inverse);
}

.section-header {
    text-align: center;
    margin-bottom: 55px;
}

.section-number {
    color: var(--color-navy-700);
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 12px;
    text-transform: uppercase;
}

.dark .section-number {
    color: var(--color-sky-light);
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 700;
    margin: 12px 0;
    letter-spacing: -0.01em;
}

.section-header p {
    max-width: 720px;
    margin: 0 auto;
    color: var(--color-text-muted);
    font-size: 16.5px;
}

.dark .section-header p {
    color: var(--color-text-inverse-muted);
}

/* =====================================================
   01. OVERVIEW: INFO CARDS
===================================================== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.info-card {
    background: var(--color-surface-white);
    padding: 36px 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-sky-400);
}

.info-icon {
    width: 48px;
    height: 48px;
    background: var(--color-sky-100);
    color: var(--color-navy-700);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 22px;
}

.info-card h3 {
    font-family: var(--font-heading);
    font-size: 21px;
    color: var(--color-navy-900);
    margin-bottom: 14px;
}

.info-card p {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.65;
}

/* =====================================================
   02. TIMELINE: 7 KABINET (SPACIOUS EDITORIAL DOSSIERS)
===================================================== */
.cabinet-filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 45px;
}

.filter-label {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    margin-right: 6px;
}

.filter-pill {
    background: rgba(14, 41, 74, 0.7);
    border: 1px solid rgba(159, 197, 236, 0.25);
    color: #cbd5e1;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.filter-pill:hover {
    background: rgba(22, 60, 105, 0.9);
    color: #ffffff;
    border-color: var(--color-sky-light);
}

.filter-pill.active {
    background: var(--color-sky-light);
    color: var(--color-navy-950);
    border-color: var(--color-sky-light);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.timeline-wrapper {
    position: relative;
    padding: 30px 0;
    max-width: 1140px;
    margin: 0 auto;
}

/* Timeline Vertical Line with Dynamic Gradient */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(159, 197, 236, 0.2);
    transform: translateX(-50%);
    border-radius: var(--radius-full);
}

.timeline-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--color-gold) 0%, var(--color-sky-light) 100%);
    box-shadow: none;
    border-radius: var(--radius-full);
    transition: height 0.15s ease-out;
}

.timeline-item {
    width: 50%;
    padding: 24px 44px;
    position: relative;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.timeline-item.hidden-item {
    display: none;
}

.timeline-item:nth-child(odd) {
    margin-right: auto;
    text-align: right;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 52px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border: 4px solid var(--color-navy-700);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    border-radius: 50%;
    z-index: 5;
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.35);
    background: var(--color-sky-light);
    border-color: #ffffff;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

/* Redesigned Large Dossier Card */
.timeline-card {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 250px;
    position: relative;
}

.timeline-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    border-color: #cbd5e1;
}

/* Portrait Side Panel (Enlarged) */
.card-portrait-wrap {
    width: 185px;
    min-width: 185px;
    background: linear-gradient(155deg, #0e2950 0%, #041021 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-right: 1px solid #e2e8f0;
}

/* Subtle Hover Light Sheen */
.card-portrait-wrap::after {
    content: '';
    position: absolute;
    top: -60%;
    left: -80%;
    width: 60%;
    height: 220%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.22), transparent);
    transform: rotate(30deg);
    transition: transform 0.8s ease;
    pointer-events: none;
    z-index: 4;
}

.timeline-card:hover .card-portrait-wrap::after {
    transform: rotate(30deg) translate(380px, 0);
}

.card-portrait-glow {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center 25%;
    filter: blur(20px) brightness(0.25) saturate(1.2);
    transform: scale(1.2);
    z-index: 1;
    pointer-events: none;
    opacity: 0.85;
}

.card-portrait {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    max-height: 215px;
    object-fit: cover;
    object-position: center 15%;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.4s ease;
}

.timeline-card:hover .card-portrait {
    transform: scale(1.04);
}

/* Content Side Panel */
.card-content {
    padding: 24px 28px;
    color: var(--color-text-main);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.card-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.card-year {
    display: inline-block;
    background: var(--color-navy-900);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.card-party-tag {
    background: var(--color-sky-100);
    color: var(--color-navy-700);
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: var(--radius-full);
}

.card-content h3 {
    font-family: var(--font-heading);
    margin: 4px 0 4px;
    color: var(--color-navy-900);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.card-pm {
    color: var(--color-text-muted);
    font-size: 14.5px;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-summary {
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.click-hint {
    color: var(--color-navy-700);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
    transition: gap 0.2s ease, color 0.2s ease;
    margin-top: auto;
}

.timeline-card:hover .click-hint {
    color: var(--color-navy-600);
    gap: 10px;
}

/* =====================================================
   03. DEMOKRASI LIBERAL: CARDS & COMPARE
===================================================== */
.compare-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 40px;
}

.compare-card {
    background: var(--color-surface-white);
    padding: 34px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
}

.compare-card h3 {
    font-family: var(--font-heading);
    font-size: 23px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-navy-900);
}

.compare-list {
    list-style: none;
}

.compare-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 15px;
}

.compare-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.compare-list li b {
    color: var(--color-navy-900);
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
}

/* =====================================================
   04. TRANSISI & DEKRET 1959
===================================================== */
.transition-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
    gap: 18px;
    margin: 40px 0 50px;
}

.transition-card {
    background: var(--color-surface-white);
    padding: 28px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.transition-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.transition-number {
    width: 38px;
    height: 38px;
    background: var(--color-navy-700);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 16px;
    font-size: 15px;
}

.transition-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-navy-900);
    margin-bottom: 10px;
}

.transition-card p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.55;
}

.dekret {
    background: linear-gradient(135deg, var(--color-navy-900) 0%, var(--color-navy-800) 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 50px 45px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(159, 197, 236, 0.2);
    box-shadow: var(--shadow-lg);
}

.dekret::after {
    content: "1959";
    position: absolute;
    right: -20px;
    bottom: -40px;
    font-family: var(--font-heading);
    font-size: clamp(100px, 14vw, 180px);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    user-select: none;
    pointer-events: none;
}

.dekret h3 {
    color: var(--color-sky-light);
    font-family: var(--font-heading);
    font-size: clamp(26px, 3.5vw, 36px);
    margin-bottom: 12px;
}

.dekret p {
    color: #e2eaf5;
    font-size: 16px;
    max-width: 700px;
}

.dekret ul {
    margin: 24px 0 30px 24px;
    list-style-type: square;
}

.dekret li {
    margin: 10px 0;
    color: #f1f5f9;
    font-size: 15.5px;
}

.primary-btn {
    background: var(--color-sky-light);
    color: var(--color-navy-950);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.primary-btn:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.fact-box {
    background: rgba(255, 255, 255, 0.98);
    color: var(--color-text-main);
    padding: 24px 28px;
    border-radius: var(--radius-md);
    margin-top: 24px;
    display: none;
    border-left: 5px solid var(--color-navy-700);
    box-shadow: var(--shadow-md);
    font-size: 15px;
    line-height: 1.6;
}

.fact-box.show {
    display: block;
    animation: fadeInSlide 0.3s ease-out;
}

/* =====================================================
   05. DEMOKRASI TERPIMPIN
===================================================== */
.guided-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.guided-card {
    background: rgba(16, 43, 76, 0.7);
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-lg);
    padding: 32px 26px;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.guided-card:hover {
    transform: translateY(-6px);
    background: rgba(22, 57, 95, 0.9);
    border-color: var(--color-sky-light);
}

.guided-card .number {
    color: var(--color-sky-light);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}

.guided-card h3 {
    font-family: var(--font-heading);
    margin: 12px 0 10px;
    font-size: 21px;
    color: #ffffff;
}

.guided-card p {
    color: var(--color-text-inverse-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* =====================================================
   FOOTER
===================================================== */
footer {
    background: var(--color-navy-950);
    color: var(--color-text-inverse-muted);
    text-align: center;
    padding: 60px 20px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer h3 {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 24px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

footer p {
    font-size: 15px;
}

/* =====================================================
   MUSEUM DOSSIER MODAL (2-COLUMN EDITORIAL)
===================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(3, 9, 20, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 24px;
    overflow-y: auto;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-box {
    background: #ffffff;
    width: 100%;
    max-width: 920px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-dossier-layout {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 520px;
    overflow-y: auto;
}

/* Aside: Leader Portrait & Caption */
.modal-dossier-aside {
    width: 310px;
    min-width: 310px;
    background: linear-gradient(160deg, #091e38 0%, #030c18 100%);
    padding: 34px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-right: 1px solid rgba(159, 197, 236, 0.2);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.modal-portrait-glow {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center 25%;
    filter: blur(28px) brightness(0.25) saturate(1.2);
    transform: scale(1.2);
    z-index: 1;
    pointer-events: none;
}

.modal-portrait-frame {
    position: relative;
    z-index: 2;
    width: fit-content;
    max-width: 230px;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
    border: 2px solid rgba(159, 197, 236, 0.35);
    background: #040e1d;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.modal-portrait-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: 100%;
    object-fit: contain !important;
    border-radius: 6px;
    display: block;
}

.modal-dossier-caption {
    position: relative;
    z-index: 2;
    width: 100%;
}

.caption-label {
    color: var(--color-sky-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.modal-pm-name {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 12px;
}

.dossier-period-badge {
    display: inline-block;
    background: rgba(159, 197, 236, 0.15);
    border: 1px solid rgba(159, 197, 236, 0.35);
    color: var(--color-sky-light);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
}

/* Main Dossier Content */
.modal-dossier-main {
    flex: 1;
    padding: 36px 40px;
    overflow-y: auto;
    background: #ffffff;
}

.modal-eyebrow {
    display: block;
    color: var(--color-navy-700);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--color-navy-900);
    margin-bottom: 14px;
    line-height: 1.2;
}

.modal-desc {
    color: var(--color-text-muted);
    font-size: 15.5px;
    line-height: 1.65;
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border-light);
}

.dossier-sections-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dossier-item {
    background: var(--color-surface-subtle);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: none;
}

.dossier-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.dossier-body strong {
    display: block;
    color: var(--color-navy-900);
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.dossier-body p {
    color: #334155;
    font-size: 14px;
    line-height: 1.55;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(7, 26, 53, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: background-color 0.2s, transform 0.2s;
}

.close-modal:hover {
    background: var(--color-navy-700);
    transform: rotate(90deg);
}

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

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   RESPONSIVE STYLES
===================================================== */
@media (max-width: 1040px) {
    .info-grid,
    .guided-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .transition-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 820px) {
    .section {
        padding: 65px 0;
    }

    .hero {
        height: auto;
        min-height: 480px;
        padding: 55px 16px;
    }

    .info-grid,
    .guided-grid,
    .compare-grid,
    .transition-container {
        grid-template-columns: 1fr;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding-left: 55px;
        padding-right: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 10px;
        right: auto;
    }

    /* Modal Mobile Stack (Cinematic Large Hero Cover) */
    .modal {
        padding: 10px;
    }

    .modal-box {
        max-height: 92vh;
        border-radius: var(--radius-lg);
    }

    .modal-dossier-layout {
        flex-direction: column;
    }

    .modal-dossier-aside {
        width: 100%;
        min-width: 100%;
        height: 290px;
        position: relative;
        padding: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: stretch;
        border-right: none;
        border-bottom: 1px solid rgba(159, 197, 236, 0.25);
    }

    .modal-portrait-glow {
        display: none;
    }

    .modal-portrait-frame {
        position: absolute;
        inset: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: #06152a;
        display: block;
    }

    .modal-portrait-img {
        width: 100%;
        height: 100%;
        object-fit: cover !important;
        object-position: center 15%;
        border-radius: 0;
        filter: brightness(0.92) contrast(1.08);
    }

    /* Text Overlays the Lower Half of the Large Photo */
    .modal-dossier-caption {
        position: relative;
        z-index: 5;
        width: 100%;
        padding: 45px 20px 16px;
        background: linear-gradient(to top, rgba(4, 14, 28, 0.96) 0%, rgba(4, 14, 28, 0.72) 55%, transparent 100%);
        text-align: left;
    }

    .caption-label {
        font-size: 10.5px;
        letter-spacing: 2px;
        margin-bottom: 2px;
    }

    .modal-pm-name {
        font-size: 22px;
        line-height: 1.25;
        margin-bottom: 8px;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
    }

    .dossier-period-badge {
        padding: 5px 12px;
        font-size: 11px;
        backdrop-filter: blur(4px);
    }

    .close-modal {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
        font-size: 20px;
        background: rgba(4, 14, 28, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(8px);
    }

    .modal-dossier-main {
        padding: 24px 18px;
    }

    .modal-title {
        font-size: 24px;
    }

    .dekret {
        padding: 35px 24px;
    }
}

@media (max-width: 540px) {
    .timeline-card {
        flex-direction: column;
    }

    .card-portrait-wrap {
        width: 100%;
        min-width: 100%;
        height: 220px;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .card-portrait {
        max-height: 195px;
        width: auto;
    }
}

/* =====================================================
   ADVANCED MOTION & SCROLL REVEAL SYSTEM
===================================================== */
.reveal-init {
    opacity: 0;
    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;
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-45px);
}

.reveal-right {
    transform: translateX(45px);
}

.reveal-scale {
    transform: scale(0.92) translateY(30px);
}

/* Stagger Delays */
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.40s; }
.stagger-6 { transition-delay: 0.48s; }

/* Active State */
.is-revealed {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) scale(1) !important;
}

/* Mobile Fallback for Lateral Slides */
@media (max-width: 820px) {
    .reveal-left,
    .reveal-right {
        transform: translateY(35px) !important;
    }
}

/* Timeline Dot Active State */
.timeline-dot.is-active {
    background: var(--color-sky-light);
    border-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    transform: scale(1.35);
}

/* =====================================================
   FLOATING PROGRESS DIAL / BACK TO TOP
===================================================== */
.scroll-progress-fab {
    position: fixed;
    right: 26px;
    bottom: 26px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(7, 26, 53, 0.9);
    border: 1px solid rgba(159, 197, 236, 0.3);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    color: var(--color-sky-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-progress-fab.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-progress-fab:hover {
    background: var(--color-navy-700);
    color: #ffffff;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.progress-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring-circle {
    stroke: var(--color-sky-light);
    stroke-width: 3;
    fill: transparent;
    stroke-dasharray: 126;
    stroke-dashoffset: 126;
    transition: stroke-dashoffset 0.15s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    .reveal-init {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
