/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

:root {
    --nav-height: 70px;
    --hero-top-gap: 48px;
    --hero-bottom-gap: 64px;
}

/* Prevent initial flash before JS hooks animations */
.js .person-card,
.js .evidence-card,
.js .timeline-item,
.js .person-card-detailed {
    opacity: 0;
    transform: translateY(30px);
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: #E5E7EB;
    background: linear-gradient(135deg, #0B2545 0%, #1E293B 100%);
    background-attachment: fixed;
    font-size: 16px;
    font-weight: 400;
}

/* ==========================
   Cinematic Intro Overlay
   ========================== */
.intro {
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none; /* enabled in JS just while visible */
    opacity: 1;
}

.intro-bg {
    position: absolute;
    inset: 0;
    background: #081a30 url('img/caso_negreira_intro.png') center center / cover no-repeat;
    transform: scale(1.08);
    filter: saturate(0.9) contrast(1.05) brightness(0.9);
}

/* Subtle scanning lights (police ambiance) */
.intro-lights {
    position: absolute;
    inset: -20% -10%;
    background:
        radial-gradient(60% 40% at 0% 30%, rgba(59,130,246,0.22), transparent 60%),
        radial-gradient(55% 35% at 100% 70%, rgba(239,68,68,0.22), transparent 60%);
    mix-blend-mode: screen;
    filter: blur(18px) saturate(120%);
    animation: lightsSweep 5.5s ease-in-out infinite;
}

@keyframes lightsSweep {
    0% { transform: translateX(-8%) translateY(0) rotate(-2deg); opacity: 0.6; }
    50% { transform: translateX(8%) translateY(-2%) rotate(2deg); opacity: 0.85; }
    100% { transform: translateX(-8%) translateY(0) rotate(-2deg); opacity: 0.6; }
}

.intro-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(1200px 1200px at 50% 40%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.6) 100%), linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.55));
    animation: vignetteFade 1.6s ease forwards;
}

@keyframes vignetteFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.intro-content {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    text-align: center;
    padding: 24px;
}

/* Subtle hint at the bottom to indicate interaction */
.intro-hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #E5E7EB;
    opacity: 0;
    transform: translateY(6px);
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
    pointer-events: none;
}

.intro-hint .intro-hint-arrow {
    font-size: 1.2rem;
    animation: hintBounce 1.8s ease-in-out infinite;
    color: #F59E0B;
}

.intro-hint .intro-hint-text {
    font-size: 0.95rem;
    color: #CBD5E1;
}

.intro.show .intro-hint {
    animation: fadeSlideUp 700ms ease forwards 1800ms;
}

@keyframes hintBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
    60% { transform: translateY(-3px); }
}

/* Subtle local darkening behind the centered intro text for better readability */
.intro-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 600px at 50% 45%, rgba(2, 6, 23, 0.55) 0%, rgba(2, 6, 23, 0.28) 60%, rgba(2, 6, 23, 0) 100%);
    pointer-events: none;
}

.intro-title { position: relative; display: inline-block; }
.intro-title::after {
    content: '';
    position: absolute;
    inset: -10px -18px;
    /* Flat look: hide decorative glow behind the title for cleaner typography */
    display: none;
}

.intro-title {
    line-height: 1.08;
    margin: 0 0 1.2rem 0;
}

.intro-title-top {
    display: block;
    font-size: clamp(2.2rem, 3.2vw + 1.2rem, 3.4rem); /* mirror .hero-title sizing */
    font-weight: 800;
    letter-spacing: 0.2px;
    /* Flat, high-contrast and consistent with hero */
    color: #F8FAFC;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    -webkit-text-stroke: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(10px);
}

.intro-title-bottom {
    display: block;
    font-size: clamp(1.3rem, 2.2vw + 0.9rem, 2.4rem);
    font-weight: 700;
    /* Flat blue aligned with hero palette */
    color: #3B82F6; /* darker hero blue for stronger contrast */
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    -webkit-text-stroke: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(10px);
}

.intro-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 2.6vw, 28px);
    margin: clamp(18px, 2.4vw, 32px) auto;
    max-width: 820px;
    opacity: 0;
    transform: translateY(10px);
    position: relative;
}

.intro-stats::before {
    content: '';
    position: absolute;
    inset: -10px -14px;
    background: radial-gradient(120% 200% at 50% 55%, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.22) 50%, rgba(0,0,0,0.06) 85%, transparent 100%);
    border-radius: 26px;
    filter: blur(4px);
    z-index: -1;
}

.intro-stat { text-align: center; }
.intro-stat-number {
    font-size: clamp(2rem, 2.8vw + 0.8rem, 2.5rem); /* close to .stat-number */
    font-weight: 700;
    color: #3B82F6;
    -webkit-text-stroke: 0.2px rgba(0, 0, 0, 0.25);
    text-shadow:
        0 1px 1px rgba(0, 0, 0, 0.35),
        0 2px 6px rgba(0, 0, 0, 0.35);
}
.intro-stat-label {
    margin-top: 6px;
    font-size: clamp(0.75rem, 0.7vw + 0.65rem, 0.95rem);
    color: #94A3B8; /* mirror .stat-label */
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.95;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.35),
        0 6px 18px rgba(0, 0, 0, 0.3);
}

.intro-lead {
    max-width: 900px;
    margin: 0 auto;
    color: #CBD5E1; /* flat, consistent with hero lead */
    opacity: 0.98;
    font-size: clamp(1.05rem, 0.6vw + 0.9rem, 1.25rem); /* mirror .hero-lead size */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(10px);
}

@media (max-width: 480px) {
    .intro-title-top, .intro-title-bottom { -webkit-text-stroke-width: 0.2px; }
    .intro-stat-number { -webkit-text-stroke-width: 0.2px; }
}

/* Reveal states toggled via JS (sequenced) */
.intro.show .intro-title-top { animation: fadeSlideUp 600ms ease forwards 400ms; }
.intro.show .intro-title-bottom { animation: fadeSlideUp 600ms ease forwards 1000ms; }
.intro.show .intro-lead { animation: fadeSlideUp 700ms ease forwards 1400ms; }

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

/* Exit animation to hand off to site */
.intro.exit {
    animation: introExit 700ms ease forwards;
}

@keyframes introExit {
    0% { opacity: 1; filter: none; }
    100% { opacity: 0; filter: blur(6px); }
}

/* Hide site chrome while intro active */
.intro-active .navbar { opacity: 0; pointer-events: none; }
.intro-active main.hero { opacity: 0; }
.intro-pending .navbar { opacity: 0; pointer-events: none; }
.intro-pending main.hero { opacity: 0; }

/* Prevent scroll jank while intro plays */
.intro-active, .intro-active body { overflow: hidden; overscroll-behavior: none; }

@media (max-width: 768px) {
    .intro-stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .intro-lights { animation: none; }
    .intro.show .intro-title-top,
    .intro.show .intro-title-bottom,
    .intro.show .intro-stats,
    .intro.show .intro-lead { animation-duration: 1ms !important; }
    .intro.exit { animation-duration: 1ms !important; }
}

/* Minimal-motion hard overrides (activated by .min-motion on <html>) */
.min-motion *,
.min-motion *::before,
.min-motion *::after {
    transition: none !important;
    animation: none !important;
}

.min-motion .intro-title-top,
.min-motion .intro-title-bottom,
.min-motion .intro-lead { opacity: 1 !important; transform: none !important; }

.min-motion .animate-in { animation: none !important; opacity: 1 !important; transform: none !important; }
.min-motion .js .person-card,
.min-motion .js .evidence-card,
.min-motion .js .timeline-item,
.min-motion .js .person-card-detailed { opacity: 1 !important; transform: none !important; }

/* Remove hover transforms/shadows in minimal mode */
.min-motion .timeline-item:hover,
.min-motion .person-card:hover,
.min-motion .evidence-card:hover { transform: none !important; box-shadow: none !important; }
.min-motion .person-card:hover .person-avatar { transform: none !important; }
.min-motion .timeline-item:hover .timeline-dot { transform: none !important; }

/* Disable tooltip visibility animations in minimal mode */
.min-motion .timeline-tooltip { transition: none !important; opacity: 1; visibility: visible; display: none; }
.min-motion .cta-cat-image { animation: none !important; }
.min-motion .cta-value-card:hover { transform: none !important; }

/* Skip link for keyboard users */
.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: #3B82F6;
    color: #FFFFFF;
    padding: 8px 12px;
    border-radius: 6px;
    z-index: 10000;
}

.skip-link:focus {
    left: 10px;
    top: 10px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #FFFFFF;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-wrap: balance;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

p {
    margin-bottom: 1rem;
    color: #E5E7EB;
}

a {
    color: #3B82F6;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #60A5FA;
}

/* Better focus styles for accessibility */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #F59E0B;
    outline-offset: 2px;
    border-radius: 6px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 16px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    will-change: transform, box-shadow;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #3B82F6 0%, #1E40AF 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563EB 0%, #1E3A8A 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
    color: white;
    border: 2px solid #475569;
    box-shadow: 0 4px 15px rgba(30, 41, 59, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(51, 65, 85, 0.4);
}

.btn-outline {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
    border: 2px solid #3B82F6;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: linear-gradient(135deg, #3B82F6 0%, #1E40AF 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Navigation */
.navbar {
    background-color: #1E293B;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #334155;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3B82F6;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #E5E7EB;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #3B82F6;
}

.nav-menu a.active,
.nav-menu a[aria-current="page"] {
    color: #FFFFFF;
    position: relative;
}

.nav-menu a.active::after,
.nav-menu a[aria-current="page"]::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: linear-gradient(90deg, #3B82F6, #F59E0B);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #E5E7EB;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    margin-top: var(--nav-height);
    padding: var(--hero-top-gap) 0 var(--hero-bottom-gap);
    text-align: center;
    background: linear-gradient(135deg, #0B2545 0%, #1E293B 50%, #0B2545 100%);
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    scroll-margin-top: var(--nav-height);
}

@supports (height: 100svh) {
    .hero {
        min-height: calc(100svh - var(--nav-height));
    }
}

@supports (height: 100dvh) {
    .hero {
        min-height: calc(100dvh - var(--nav-height));
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.2rem, 3.2vw + 1.2rem, 3.4rem);
    margin-bottom: 2rem;
    line-height: 1.1;
    font-weight: 700;
    background: linear-gradient(135deg, #FFFFFF 0%, #E5E7EB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-lead {
    font-size: clamp(1.05rem, 0.6vw + 0.9rem, 1.25rem);
    margin-bottom: 2.5rem;
    color: #CBD5E1;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    position: relative;
    overflow: hidden;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

/* Satire Disclaimer */
.satire-disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.2) 100%);
    border: 2px solid #F59E0B;
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.disclaimer-icon {
    font-size: 1.5rem;
    animation: wiggle 2s ease-in-out infinite;
}

.satire-disclaimer p {
    margin: 0;
    color: #F59E0B;
    font-weight: 600;
    font-size: 0.95rem;
}

@keyframes wiggle {
    0%, 7% { transform: rotateZ(0); }
    15% { transform: rotateZ(-15deg); }
    20% { transform: rotateZ(10deg); }
    25% { transform: rotateZ(-10deg); }
    30% { transform: rotateZ(6deg); }
    35% { transform: rotateZ(-4deg); }
    40%, 100% { transform: rotateZ(0); }
}

/* Hero Highlight */
.hero-highlight {
    background: linear-gradient(135deg, #3B82F6 0%, #1E40AF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2.5rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3B82F6;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #94A3B8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-icon {
    font-size: 1.2rem;
}

/* Hero Trust */
.hero-trust {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-trust p {
    color: #94A3B8;
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}


/* Section Spacing */
section {
    padding: 100px 0;
    position: relative;
    scroll-margin-top: var(--nav-height);
}

section:nth-child(even) {
    background: linear-gradient(135deg, #1E293B 0%, #0B2545 100%);
}

section:nth-child(odd) {
    background: linear-gradient(135deg, #0B2545 0%, #1E293B 100%);
}

/* Add subtle pattern overlay to sections */
section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(245, 158, 11, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

section > .container {
    position: relative;
    z-index: 1;
}

/* What We Know Section */
.what-we-know {
    background: linear-gradient(135deg, #0B2545 0%, #1E293B 100%);
    border-top: 1px solid #334155;
    border-bottom: 1px solid #334155;
}

/* Story Section */
.story {
    background: linear-gradient(135deg, #0B2545 0%, #152238 100%);
    border-top: 1px solid #334155;
    border-bottom: 1px solid #334155;
}

.story h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.story-rows {
    display: grid;
    gap: 3.5rem;
}

.story-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.story-row.reverse {
    grid-template-columns: 1fr 1.2fr;
}

.story-copy {
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.story-copy .story-lead {
    font-size: 1.1rem;
    color: #CBD5E1;
}

.story-media {
    margin: 0;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #334155;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
}

.story-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 37, 69, 0.2), rgba(30, 41, 59, 0.2) 60%, transparent 100%);
    pointer-events: none;
}

.story-media img {
    display: block;
    width: 100%;
    height: auto;
}

@media (hover: hover) {
    .story-media img { transition: transform 0.6s ease; }
    .story-media:hover img { transform: scale(1.03); }
    .story-copy { transition: transform 0.3s ease, box-shadow 0.3s ease; }
    .story-copy:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(0,0,0,0.3); }
}

/* Accent divider under h2 */
.story h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    margin: 14px auto 0;
    background: linear-gradient(90deg, #3B82F6, #F59E0B);
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 1024px) {
    .story-row,
    .story-row.reverse {
        grid-template-columns: 1fr;
    }
    .story-row .story-media,
    .story-row.reverse .story-media { order: -1; }
}

@media (max-width: 640px) {
    .story-copy { padding: 1.5rem; }
}

.knowledge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.knowledge-column {
    background: rgba(30, 41, 59, 0.5);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid #334155;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.knowledge-column h3 {
    color: #3B82F6;
    margin-bottom: 2rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    position: relative;
}

.knowledge-column h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3B82F6, #1E40AF);
    border-radius: 2px;
}

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

.knowledge-list li {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    border-left: 5px solid;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.knowledge-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.knowledge-list.confirmed li {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(30, 58, 138, 0.1) 100%);
    border-color: #3B82F6;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.knowledge-list.disputed li {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(124, 45, 18, 0.1) 100%);
    border-color: #F59E0B;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

.knowledge-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Timeline Preview */
.timeline-preview {
    background: linear-gradient(135deg, #1E293B 0%, #0B2545 100%);
    position: relative;
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #3B82F6 0%, #F59E0B 50%, #EF4444 100%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(11, 37, 69, 0.8) 100%);
    padding: 2.5rem;
    border-radius: 16px;
    border-left: 5px solid #3B82F6;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    cursor: pointer;
    will-change: transform, box-shadow;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-left-color: #F59E0B;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
    border-radius: 16px;
    pointer-events: none;
}

.timeline-dot {
    position: absolute;
    left: -3.2rem;
    top: 2.5rem;
    width: 1.2rem;
    height: 1.2rem;
    background: linear-gradient(135deg, #3B82F6 0%, #1E40AF 100%);
    border-radius: 50%;
    border: 4px solid #1E293B;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
    z-index: 2;
}

.timeline-item:hover .timeline-dot {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
    transform: scale(1.2);
}

.timeline-content h4 {
    color: #3B82F6;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.timeline-content p {
    color: #CBD5E1;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.timeline-sources {
    background-color: rgba(11, 37, 69, 0.5);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 3px solid #3B82F6;
    font-size: 0.9rem;
    color: #94A3B8;
}

.timeline-quotes {
    margin: 1rem 0;
}

.timeline-quotes blockquote {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(124, 45, 18, 0.1) 100%);
    padding: 1rem;
    border-left: 4px solid #F59E0B;
    font-style: italic;
    color: #CBD5E1;
    border-radius: 8px;
    margin: 0;
    font-size: 0.95rem;
}

.timeline-status {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1.5rem;
    border: 2px solid;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-status.confirmed {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(30, 58, 138, 0.2) 100%);
    color: #60A5FA;
    border-color: #3B82F6;
}

.timeline-status.in-progress {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(124, 45, 18, 0.2) 100%);
    color: #FBBF24;
    border-color: #F59E0B;
}

.timeline-status.disputed {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(124, 45, 18, 0.2) 100%);
    color: #FCA5A5;
    border-color: #EF4444;
}

/* Key People */
.key-people {
    background: linear-gradient(135deg, #0B2545 0%, #1E293B 100%);
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.person-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(11, 37, 69, 0.9) 100%);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid #334155;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    will-change: transform, box-shadow;
}

.person-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(245, 158, 11, 0.03) 100%);
    pointer-events: none;
}

.person-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: #3B82F6;
}

.person-card:hover::before {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
}

.person-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3B82F6 0%, #1E40AF 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
    border: 4px solid #1E293B;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.person-card:hover .person-avatar {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    transform: scale(1.1);
}

.person-card h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.person-role {
    color: #CBD5E1;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.person-description {
    margin-bottom: 1.5rem;
    color: #94A3B8;
    line-height: 1.6;
}

.person-status {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.person-status.confirmed {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(30, 58, 138, 0.2) 100%);
    color: #60A5FA;
    border-color: #3B82F6;
}

.person-status.in-progress {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(124, 45, 18, 0.2) 100%);
    color: #FBBF24;
    border-color: #F59E0B;
}

.person-status.disputed {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(124, 45, 18, 0.2) 100%);
    color: #FCA5A5;
    border-color: #EF4444;
}

/* Evidence Section */
.evidence {
    background: linear-gradient(135deg, #1E293B 0%, #0B2545 100%);
}

.evidence-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.evidence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.evidence-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(11, 37, 69, 0.9) 100%);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid #334155;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    will-change: transform, box-shadow;
}

.evidence-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(245, 158, 11, 0.03) 100%);
    pointer-events: none;
}

.evidence-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: #3B82F6;
}

.evidence-card:hover::before {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
}

.evidence-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.evidence-card h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.evidence-card p {
    color: #CBD5E1;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.evidence-details {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border-left: 4px solid #3B82F6;
}

.evidence-amount {
    font-weight: 700;
    color: #F59E0B;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.evidence-period,
.evidence-date,
.evidence-type,
.evidence-reason {
    color: #94A3B8;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.evidence-meta {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.evidence-source {
    color: #64748B;
    font-size: 0.85rem;
    font-style: italic;
}

.evidence-status {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid;
}

.evidence-status.confirmed {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(30, 58, 138, 0.2) 100%);
    color: #60A5FA;
    border-color: #3B82F6;
}

.evidence-status.in-progress {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(124, 45, 18, 0.2) 100%);
    color: #FBBF24;
    border-color: #F59E0B;
}

.evidence-status.disputed {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(124, 45, 18, 0.2) 100%);
    color: #FCA5A5;
    border-color: #EF4444;
}

.evidence-certainty {
    margin-top: 1.5rem;
    text-align: center;
}

.certainty-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.certainty-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
    background: linear-gradient(90deg, #10B981, #3B82F6);
}

.certainty-text {
    font-size: 0.8rem;
    color: #94A3B8;
    font-weight: 500;
}

/* Evidence Legend */
.evidence-legend {
    background: rgba(30, 41, 59, 0.5);
    padding: 2rem;
    border-radius: 16px;
    margin-top: 3rem;
    border: 1px solid #334155;
}

.evidence-legend h3 {
    color: #3B82F6;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-align: center;
}

.evidence-legend .legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #CBD5E1;
    font-size: 0.9rem;
}

.evidence-legend .legend-item:last-child {
    margin-bottom: 0;
}

/* Consequences Section */
.consequences {
    background-color: #0B2545;
}

.consequences-content {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.consequence-item {
    background-color: #1E293B;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #3B82F6;
}

.consequence-item h3 {
    color: #3B82F6;
    margin-bottom: 1rem;
}

.consequence-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 1rem;
}

.consequence-status.confirmed {
    background-color: #1E3A8A;
    color: #60A5FA;
}

.consequence-status.in-progress {
    background-color: #7C2D12;
    color: #FBBF24;
}

.consequence-status.disputed {
    background-color: #7C2D12;
    color: #F59E0B;
}

/* Media Tracker */
.media-tracker {
    background-color: #1E293B;
}

.news-list {
    margin-top: 2rem;
}

.news-item {
    background-color: #0B2545;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #3B82F6;
}

.news-date {
    color: #3B82F6;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-item h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.news-item p {
    margin-bottom: 1rem;
    color: #CBD5E1;
}

.news-item cite {
    color: #64748B;
    font-style: italic;
    font-size: 0.9rem;
}

/* Fact Quiz Section */
.fact-quiz-section {
    background: linear-gradient(135deg, #1E293B 0%, #0B2545 100%);
    border-top: 1px solid #334155;
    border-bottom: 1px solid #334155;
}

.fact-quiz-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #F59E0B;
    font-size: 2.2rem;
    font-weight: 700;
}

/* FAQ Section */
.faq {
    background: linear-gradient(135deg, #0B2545 0%, #1E293B 100%);
}

.faq-list {
    margin-top: 2rem;
}

.faq-item {
    background-color: #1E293B;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #3B82F6;
}

.faq-item h3 {
    color: #3B82F6;
    margin-bottom: 1rem;
}

.faq-item p {
    color: #CBD5E1;
}

/* About Section */
.about {
    background-color: #1E293B;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-methodology {
    background-color: #0B2545;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    border-left: 4px solid #3B82F6;
    font-style: italic;
    color: #CBD5E1;
}

/* Contact Form */
.contact-form-container {
    background-color: #0B2545;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.contact-form-container h3 {
    color: #3B82F6;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: #E5E7EB;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #334155;
    background-color: #1E293B;
    color: #E5E7EB;
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #F59E0B;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

.checkbox-group {
    flex-direction: row !important;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

/* Form hints and feedback */
.form-hint {
    display: block;
    margin-top: 6px;
    color: #94A3B8;
    font-size: 0.85rem;
}

.form-feedback {
    display: none;
    padding: 12px 14px;
    border-radius: 10px;
    border-left: 4px solid #3B82F6;
    background: linear-gradient(135deg, rgba(59,130,246,0.1) 0%, rgba(30,58,138,0.1) 100%);
    color: #E5E7EB;
    font-weight: 500;
}

.form-feedback.show {
    display: block;
}

.form-feedback.success {
    border-left-color: #10B981;
    background: linear-gradient(135deg, rgba(16,185,129,0.12) 0%, rgba(5,150,105,0.12) 100%);
}

.form-feedback.error {
    border-left-color: #EF4444;
    background: linear-gradient(135deg, rgba(239,68,68,0.12) 0%, rgba(220,38,38,0.12) 100%);
}

/* Invalid state */
.form-group input:invalid,
.form-group textarea:invalid {
    border-color: #F59E0B;
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.5);
}

.form-group input.valid,
.form-group textarea.valid {
    border-color: #10B981;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0B2545 0%, #1E293B 100%);
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    border: 2px solid #F59E0B;
    position: relative;
    overflow: hidden;
}

/* Extra top spacing above promo CTA to avoid touching previous section */
.cta-section--promo {
    margin-top: 3rem;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Enhanced CTA Section */
.cta-section--enhanced {
    border: 2px solid #3B82F6;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.2), 0 0 100px rgba(245, 158, 11, 0.1);
    padding: 0;
    overflow: visible;
}

.cta-section--enhanced::before {
    background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 70% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 60%);
}

.cta-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem 3rem 2rem;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.cta-cat-container {
    flex-shrink: 0;
}

.cta-cat-image {
    width: clamp(64px, 22vw, 120px);
    height: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.3));
    animation: gentleFloat 3s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.cta-headline-wrapper {
    flex: 1;
    text-align: left;
}

.cta-main-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: #CBD5E1;
    margin-bottom: 0;
}

.cta-subtitle strong {
    color: #F59E0B;
    font-weight: 700;
}

.cta-value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 2rem 3rem;
    position: relative;
    z-index: 1;
}

.cta-value-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(30, 58, 138, 0.05) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.cta-value-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
    border-color: #3B82F6;
}

.value-icon {
    font-size: 2rem;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.value-content {
    text-align: left;
}

.value-content h4 {
    color: #FFFFFF;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.value-content p {
    color: #94A3B8;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.cta-form-wrapper {
    padding: 2rem 3rem 2.5rem;
    background: linear-gradient(135deg, rgba(11, 37, 69, 0.5) 0%, rgba(30, 41, 59, 0.5) 100%);
    position: relative;
    z-index: 1;
}

.cta-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.cta-form-header h4 {
    color: #3B82F6;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.cta-form-header p {
    color: #CBD5E1;
    font-size: 1rem;
    margin: 0;
}

.cta-or-divider {
    text-align: center;
    position: relative;
    margin: 1.5rem 0;
    color: #64748B;
    font-size: 0.9rem;
}

.cta-or-divider::before,
.cta-or-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.cta-or-divider::before {
    left: 0;
}

.cta-or-divider::after {
    right: 0;
}

.cta-or-divider span {
    position: relative;
    padding: 0 1rem;
    background: linear-gradient(135deg, rgba(11, 37, 69, 0.8) 0%, rgba(30, 41, 59, 0.8) 100%);
}

.cta-trust-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    padding: 1.5rem 3rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(11, 37, 69, 0.3) 100%);
    border-top: 1px solid rgba(59, 130, 246, 0.15);
    position: relative;
    z-index: 1;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #CBD5E1;
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-check {
    color: #10B981;
    font-size: 1.1rem;
    font-weight: 700;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3B82F6 0%, #1E40AF 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.cta-icon {
    font-size: 1.1rem;
}

.cta-section h3 {
    color: #FFFFFF;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.cta-subtitle {
    color: #F59E0B;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.cta-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #CBD5E1;
    font-weight: 500;
}

.benefit-icon {
    font-size: 1.2rem;
}

.cta-form {
    margin-bottom: 2rem;
}

.mini-contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.mini-contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mini-contact-form label {
    font-weight: 600;
    color: #E5E7EB;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.mini-contact-form input,
.mini-contact-form textarea {
    padding: 14px 16px;
    border-radius: 10px;
    border: 2px solid #334155;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(11, 37, 69, 0.6) 100%);
    color: #E5E7EB;
    font-size: 16px; /* prevent iOS zoom */
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.mini-contact-form input::placeholder,
.mini-contact-form textarea::placeholder {
    color: #64748B;
}

.mini-contact-form input:focus,
.mini-contact-form textarea:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 4px 12px rgba(59, 130, 246, 0.2);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(11, 37, 69, 0.8) 100%);
}

.mini-contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-cta {
    background: linear-gradient(135deg, #3B82F6 0%, #1E40AF 100%);
    color: white;
    font-weight: 700;
    padding: 18px 32px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    font-size: 16px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-cta:hover::before {
    left: 100%;
}

.btn-cta:hover {
    background: linear-gradient(135deg, #2563EB 0%, #1E3A8A 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.mini-contact-form .checkbox-group {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
}

.mini-contact-form .checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #3B82F6;
}

.mini-contact-form .checkbox-group label {
    font-weight: 400;
    font-size: 0.9rem;
    color: #CBD5E1;
    line-height: 1.5;
    cursor: pointer;
}

.mini-contact-form .form-hint {
    color: #64748B;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-top: 4px;
}

.mini-contact-form .form-feedback {
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    text-align: center;
    font-weight: 500;
}

.cta-actions {
    text-align: center;
    margin-top: 1rem;
}

.cta-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 14px 24px;
    font-size: 0.95rem;
}

.cta-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #F59E0B;
}

.cta-arrow span {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

.cta-arrow p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Actions row in CTA */
.cta-actions {
    margin-top: 1rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Update CTA Container */
.update-cta-container {
    background-color: #0B2545;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #3B82F6;
    margin-top: 2rem;
}

.update-cta-container h3 {
    color: #3B82F6;
    margin-bottom: 1rem;
}

.update-cta-container p {
    color: #CBD5E1;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background-color: #0B2545;
    padding: 3rem 0 1rem;
    border-top: 1px solid #334155;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #3B82F6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #CBD5E1;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3B82F6;
}

.footer-badge {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 1rem;
    display: inline-block;
}

.badge-text {
    font-size: 0.8rem;
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #64748B;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .cta-cat-image {
        animation: none !important;
    }

    .cta-value-card:hover {
        transform: none !important;
    }
}

.footer-disclaimer {
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid #F59E0B;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

.footer-disclaimer p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Section CTA */
.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Page Hero */
.page-hero {
    padding: 120px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, #0B2545 0%, #1E293B 100%);
}

.people-filters, .timeline-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0; /* zapewnia spójną przerwę także pod tagami */
}

.filter-btn {
    padding: 8px 16px;
    background-color: transparent;
    color: #CBD5E1;
    border: 1px solid #334155;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #3B82F6;
    color: white;
    border-color: #3B82F6;
}

/* Detailed Timeline */
.detailed-timeline {
    background-color: #0B2545;
    padding: 60px 0;
}

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

.timeline-line {
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #3B82F6, #F59E0B);
}

.timeline-items {
    position: relative;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    background-color: #1E293B;
    padding: 2rem;
    border-radius: 12px;
    margin-left: 100px;
    border-left: 4px solid #3B82F6;
    display: block;
}

.timeline-item.major {
    border-left-color: #F59E0B;
    background-color: #1E3A8A;
}

.timeline-marker {
    position: absolute;
    left: -45px;
    top: 2rem;
    width: 12px;
    height: 12px;
    background-color: #3B82F6;
    border-radius: 50%;
    border: 3px solid #0B2545;
}

.timeline-item.major .timeline-marker {
    background-color: #F59E0B;
    width: 16px;
    height: 16px;
    left: -47px;
}

.timeline-content {
    color: #E5E7EB;
}

.timeline-date {
    color: #3B82F6;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.timeline-details {
    background-color: #0B2545;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    border-left: 3px solid #3B82F6;
}

.timeline-quotes {
    margin: 1rem 0;
}

.timeline-quotes blockquote {
    background-color: #0B2545;
    padding: 1rem;
    border-left: 4px solid #F59E0B;
    font-style: italic;
    color: #CBD5E1;
    margin: 0;
}

.timeline-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 1rem;
}

/* Timeline Stats */
.timeline-stats {
    background-color: #1E293B;
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background-color: #0B2545;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #334155;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #3B82F6;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #CBD5E1;
    font-size: 0.9rem;
}

/* Detailed People Cards */
.detailed-people {
    background-color: #0B2545;
    padding: 60px 0;
}

.people-grid-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: stretch;
    margin-top: 2rem;
}

.person-card-detailed {
    background-color: #1E293B;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #334155;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.person-card-detailed:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.person-header {
    background: linear-gradient(135deg, #3B82F6, #1E40AF);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.person-avatar-large {
    width: 80px;
    height: 80px;
    background-color: #FFFFFF;
    color: #3B82F6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.person-info h2 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.person-role {
    color: #E0E7FF;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.person-status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.person-status.accused {
    background-color: #7C2D12;
    color: #FBBF24;
}

.person-status.witnesses {
    background-color: #1E3A8A;
    color: #60A5FA;
}

.person-content {
    padding: 2rem;
    color: #E5E7EB;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Ensure last row doesn't collapse; avoid huge bottom gap */
.detailed-people .container {
    display: block;
}

/* Reduce extra bottom spacing under map when cards are shown */
.connection-map {
    margin-top: 0;
}

.person-timeline,
.person-evidence {
    margin: 2rem 0;
}

.person-timeline h4,
.person-evidence h4,
.person-statements h4 {
    color: #3B82F6;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.person-timeline ul,
.person-evidence ul {
    list-style: none;
    padding-left: 0;
}

.person-timeline li,
.person-evidence li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #334155;
    position: relative;
    padding-left: 1rem;
}

.person-timeline li:before,
.person-evidence li:before {
    content: '→';
    color: #3B82F6;
    position: absolute;
    left: 0;
}

.person-statements blockquote {
    background-color: #0B2545;
    padding: 1.5rem;
    border-left: 4px solid #F59E0B;
    font-style: italic;
    color: #CBD5E1;
    margin: 0;
}

/* Connection Map */
.connection-map {
    background-color: #1E293B;
    padding: 80px 0;
}

.map-container {
    background-color: #0B2545;
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid #334155;
}

.map-legend {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-line {
    width: 30px;
    height: 3px;
}

.legend-line.confirmed {
    background-color: #3B82F6;
}

.legend-line.disputed {
    background-color: #64748B;
    border: 1px dashed;
}

.legend-line.investigation {
    background: linear-gradient(45deg, #10B981, #059669);
    border: 1px dashed;
}

.map-visual {
    background-color: #1E293B;
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid #334155;
}

.connection-svg {
    width: 100%;
    height: auto;
}

.node {
    cursor: pointer;
    transition: all 0.3s ease;
}

.node:hover {
    r: 12;
}

.connection {
    cursor: pointer;
    transition: all 0.3s ease;
}

.connection:hover {
    stroke-width: 6;
    filter: drop-shadow(0 0 8px currentColor);
}

.node-label {
    pointer-events: none;
    user-select: none;
}

.node-sublabel {
    pointer-events: none;
    user-select: none;
}

.connection-label {
    pointer-events: none;
    user-select: none;
    font-family: 'Inter', sans-serif;
}

.connection-sublabel {
    pointer-events: none;
    user-select: none;
    font-family: 'Inter', sans-serif;
}

.map-info {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #1E293B 0%, #0B2545 100%);
    border: 2px solid #3B82F6;
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
    backdrop-filter: blur(10px);
}

.map-info-content {
    color: #E5E7EB;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.map-info-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #CBD5E1;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-info-close:hover {
    color: #FFFFFF;
}

.node-group {
    cursor: pointer;
    transition: all 0.3s ease;
}

.node-group:hover circle {
    filter: drop-shadow(0 0 10px currentColor);
    transform: scale(1.1);
}

.node-group:hover text {
    font-weight: 700;
}

.connection-group {
    cursor: pointer;
    transition: all 0.3s ease;
}

.connection-group:hover line {
    stroke-width: 6;
    filter: drop-shadow(0 0 8px currentColor);
}

.connection-group:hover text {
    font-weight: 700;
    filter: drop-shadow(0 0 4px currentColor);
}

/* Back to Main Section */
.back-to-main {
    background-color: #0B2545;
    padding: 60px 0;
    text-align: center;
}

.back-button-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Status Badges in Footer */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.status-badge.accused {
    background-color: #7C2D12;
    color: #FBBF24;
}

.status-badge.witnesses {
    background-color: #1E3A8A;
    color: #60A5FA;
}

.status-badge.in-progress {
    background-color: #7C2D12;
    color: #F59E0B;
}

/* Inline tag badges for person cards */
.person-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
}

.status-badge.tag {
    background-color: rgba(255, 255, 255, 0.06);
    color: #CBD5E1;
    border: 1px solid #334155;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--nav-height);
        flex-direction: column;
        background-color: #1E293B;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title { font-size: 2rem; }

    .satire-disclaimer {
        flex-direction: column;
        gap: 8px;
        padding: 10px 15px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem 0;
    }

    .stat-number {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        width: 100%;
        max-width: 280px;
    }
    
    .knowledge-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .people-grid {
        grid-template-columns: 1fr;
    }
    
    .evidence-grid {
        grid-template-columns: 1fr;
    }
    
    .mini-contact-form {
        grid-template-columns: 1fr;
    }

    .cta-benefits {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-section {
        padding: 2rem 1rem;
    }

    .cta-section--enhanced {
        overflow: hidden;
    }

    .cta-header {
        flex-direction: column;
        text-align: center;
        padding: 1.75rem 1.25rem 1.25rem;
        gap: 1rem;
        overflow: hidden; /* zapobiega wychodzeniu cienia/obrazu poza kontener na iOS */
    }

    .cta-cat-image {
        width: clamp(64px, 24vw, 90px);
        height: auto;
    }

    .cta-headline-wrapper {
        text-align: center;
    }

    .cta-main-title {
        font-size: 1.4rem;
        line-height: 1.2;
    }

    .cta-subtitle {
        font-size: 0.98rem;
    }

    .cta-value-grid {
        grid-template-columns: 1fr;
        padding: 1.25rem 1.25rem;
        gap: 0.9rem;
    }

    .cta-form-wrapper {
        padding: 1.5rem 1.5rem 2rem;
    }

    .cta-form-header h4 {
        font-size: 1.15rem;
    }

    .cta-trust-footer {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.25rem;
    }
    
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline::before {
        left: 0.5rem;
    }
    
    .timeline-dot {
        left: -1.5rem;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero { padding: 72px 0 48px; }
    
    .hero-title { font-size: 1.75rem; }
    
    .hero-lead {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* Mobile responsive for new components */
    .people-filters, .timeline-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .timeline-item {
        margin-left: 0;
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .timeline-marker {
        left: -35px;
        top: 1.5rem;
    }
    
    .timeline-item.major .timeline-marker {
        left: -37px;
    }
    
    .person-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .person-avatar-large {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .back-button-container {
        flex-direction: column;
        align-items: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .map-container {
        padding: 1.5rem;
    }
    
    .map-legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cta-header {
        padding: 1.25rem 0.9rem 0.9rem;
        gap: 0.75rem;
    }

    .cta-cat-image {
        width: clamp(56px, 28vw, 70px);
        height: auto;
    }

    .cta-main-title {
        font-size: 1.25rem;
    }

    .cta-value-grid {
        padding: 0.9rem;
    }

    .cta-value-card {
        padding: 0.9rem;
    }

    .value-content h4 {
        font-size: 1rem;
    }

    .value-content p {
        font-size: 0.85rem;
    }

    .cta-form-wrapper {
        padding: 1rem;
    }
}

/* Avoid fixed background jank on mobile/tablet */
@media (max-width: 1024px) {
    body {
        background-attachment: scroll;
    }
}

/* Advanced Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(50px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.6), 0 0 30px rgba(59, 130, 246, 0.4);
    }
    100% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite alternate;
}

/* Enhanced hover effects */
.person-card:hover .person-avatar {
    animation: pulse 0.6s ease-in-out;
}

.evidence-card:hover .evidence-icon {
    animation: float 0.8s ease-in-out;
}

/* removed hover glow animation on timeline items to avoid overriding fadeInUp */

/* Staggered animations for cards */
.person-card:nth-child(1) { animation-delay: 0.1s; }
.person-card:nth-child(2) { animation-delay: 0.2s; }
.person-card:nth-child(3) { animation-delay: 0.3s; }
.person-card:nth-child(4) { animation-delay: 0.4s; }

.evidence-card:nth-child(1) { animation-delay: 0.1s; }
.evidence-card:nth-child(2) { animation-delay: 0.2s; }
.evidence-card:nth-child(3) { animation-delay: 0.3s; }
.evidence-card:nth-child(4) { animation-delay: 0.4s; }
.evidence-card:nth-child(5) { animation-delay: 0.5s; }
.evidence-card:nth-child(6) { animation-delay: 0.6s; }

/* Tooltip Styles */
.timeline-tooltip {
    position: fixed;
    background: linear-gradient(135deg, #1E293B 0%, #0B2545 100%);
    color: #E5E7EB;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #3B82F6;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 300px;
    font-size: 0.9rem;
    line-height: 1.5;
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.timeline-tooltip::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #3B82F6;
}

.timeline-tooltip.show {
    opacity: 1;
    visibility: visible;
}

.timeline-tooltip.critical {
    border-color: #EF4444;
}

.timeline-tooltip.critical::before {
    border-top-color: #EF4444;
}

/* Tooltip displayed below the element */
.timeline-tooltip.below::before {
    top: -8px;
    bottom: auto;
    border-top: none;
    border-bottom: 8px solid #3B82F6;
}

.timeline-tooltip.below.critical::before {
    border-bottom-color: #EF4444;
}

.quiz-container {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(11, 37, 69, 0.8) 100%);
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid #334155;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.quiz-question {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #3B82F6;
}

.quiz-options {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.quiz-option {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(30, 58, 138, 0.1) 100%);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 2px solid #3B82F6;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #CBD5E1;
}

.quiz-option:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(30, 58, 138, 0.2) 100%);
    transform: translateY(-2px);
}

.quiz-option.correct {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.2) 100%);
    border-color: #10B981;
    color: #D1FAE5;
}

.quiz-option.incorrect {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
    border-color: #EF4444;
    color: #FECACA;
}

.quiz-feedback {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
}

.quiz-feedback.correct {
    background: rgba(16, 185, 129, 0.2);
    color: #D1FAE5;
    border-left: 4px solid #10B981;
}

.quiz-feedback.incorrect {
    background: rgba(239, 68, 68, 0.2);
    color: #FECACA;
    border-left: 4px solid #EF4444;
}

/* iOS safe area for fixed navbar */
:root {
    --nav-height: 70px;
}
@supports (padding-top: env(safe-area-inset-top)) {
    body { padding-top: env(safe-area-inset-top); }
    .navbar { padding-top: calc(1rem + env(safe-area-inset-top)); }
}

/* Global responsive images */
img { max-width: 100%; height: auto; }
