/* ================================================================
   VESTÍGIOS URBANOS — MESOPOTÂMIA
   Estilos principais com animações CSS avançadas
   ================================================================ */

/* ---- CSS VARIABLES ---- */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-tertiary: #1a1a24;
    --text-primary: #e8e6e3;
    --text-secondary: #a8a5a0;
    --text-muted: #6b6860;
    --accent-gold: #d4a855;
    --accent-gold-light: #f0d48a;
    --accent-ur: #ef5350;
    --accent-ur-dark: #c62828;
    --accent-uruk: #ffb74d;
    --accent-uruk-dark: #e65100;
    --accent-nippur: #7e57c2;
    --accent-nippur-dark: #4527a0;
    --accent-water: #4fc3f7;
    --accent-green: #66bb6a;
    --font-display: 'Cinzel', serif;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Noto Sans', sans-serif;
    --glow-gold: 0 0 20px rgba(212, 168, 85, 0.3);
    --glow-ur: 0 0 20px rgba(239, 83, 80, 0.3);
    --glow-uruk: 0 0 20px rgba(255, 183, 77, 0.3);
    --glow-nippur: 0 0 20px rgba(126, 87, 194, 0.3);
}

/* ---- RESET & BASE ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold) var(--bg-primary);
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 4px;
}

/* ---- CANVASES ---- */
#webgl-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#particles-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ---- NAVIGATION ---- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

#navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.7rem 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(212, 168, 85, 0.1);
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 3px;
}

.nav-links {
    display: flex;
    gap: 0.3rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold);
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 60%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--accent-gold);
    transition: all 0.3s ease;
}

/* ---- SECTIONS ---- */
.section {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: 6rem 2rem;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-gold);
    background: rgba(212, 168, 85, 0.1);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 168, 85, 0.2);
    margin-bottom: 1.2rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.title-underline {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ---- HERO SECTION ---- */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 6rem 2rem 2rem;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 5;
}

.hero-subtitle-top {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeDown 1s 0.3s forwards;
}

.hero-title {
    font-family: var(--font-display);
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-primary);
    opacity: 0;
    animation: scaleIn 0.8s 0.5s forwards;
}

.title-line.accent {
    color: var(--accent-gold);
    text-shadow: var(--glow-gold);
    animation-delay: 0.7s;
}

.hero-divider {
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    margin: 1.5rem auto;
    animation: expandWidth 1s 1s forwards;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 0.8s 1.2s forwards;
}

.cuneiform-decoration {
    font-size: 1.5rem;
    color: var(--accent-gold);
    opacity: 0.6;
    letter-spacing: 8px;
}

.hero-cities {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-city-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: 1px solid rgba(212, 168, 85, 0.2);
    border-radius: 8px;
    background: rgba(212, 168, 85, 0.05);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation: staggerUp 0.6s forwards;
}

.hero-city-tag:nth-child(1) { animation-delay: 1.4s; }
.hero-city-tag:nth-child(2) { animation-delay: 1.6s; }
.hero-city-tag:nth-child(3) { animation-delay: 1.8s; }

.hero-city-tag:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    background: rgba(212, 168, 85, 0.12);
    box-shadow: var(--glow-gold);
}

.hero-city-tag[data-city="ur"]:hover {
    border-color: var(--accent-ur);
    box-shadow: var(--glow-ur);
}

.hero-city-tag[data-city="uruk"]:hover {
    border-color: var(--accent-uruk);
    box-shadow: var(--glow-uruk);
}

.hero-city-tag[data-city="nippur"]:hover {
    border-color: var(--accent-nippur);
    box-shadow: var(--glow-nippur);
}

.hero-city-tag .cuneiform {
    font-size: 1.8rem;
    color: var(--accent-gold-light);
}

.hero-city-tag span:last-child {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--text-primary);
}

.scroll-indicator {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeUp 0.8s 2s forwards;
    transition: color 0.3s;
}

.scroll-indicator:hover {
    color: var(--accent-gold);
}

.scroll-arrow {
    animation: bounce 2s infinite;
}

/* Floating symbols */
.floating-symbols {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.float-symbol {
    position: absolute;
    left: var(--x);
    top: var(--y);
    font-size: 2rem;
    color: var(--accent-gold);
    opacity: 0.08;
    animation: floatSymbol 8s var(--delay) infinite ease-in-out;
}

/* ---- INTRODUCTION SECTION ---- */
.intro-section {
    background: linear-gradient(180deg, 
        rgba(10,10,15,0.95) 0%, 
        rgba(20,20,30,0.98) 50%, 
        rgba(10,10,15,0.95) 100%);
}

/* ---- INTRO BANNER & COLUMNS ---- */
.intro-banner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 3rem;
    max-height: 350px;
}

.intro-banner-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    filter: brightness(0.6) saturate(1.2);
    transition: transform 0.6s ease, filter 0.6s ease;
}

.intro-banner:hover .intro-banner-img {
    transform: scale(1.03);
    filter: brightness(0.7) saturate(1.3);
}

.intro-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.intro-banner-overlay span {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--accent-gold-light);
    letter-spacing: 3px;
}

.intro-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.intro-col p {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.intro-col strong {
    color: var(--text-primary);
}

.intro-col em {
    color: var(--accent-water);
}

.drop-cap::first-letter {
    font-family: var(--font-display);
    font-size: 3.5rem;
    float: left;
    line-height: 0.8;
    margin-right: 0.5rem;
    margin-top: 0.1rem;
    color: var(--accent-gold);
}

/* ---- CITY PREVIEW CARDS ---- */
.city-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.city-preview-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(212, 168, 85, 0.12);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-secondary);
}

.city-preview-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-gold);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--glow-gold);
}

.card-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.city-preview-card:hover .card-img-wrap img {
    transform: scale(1.1);
}

.card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(0,0,0,0.8));
}

.card-info {
    padding: 1.5rem;
    text-align: center;
}

.card-cuneiform {
    font-size: 1.5rem;
    color: var(--accent-gold);
    opacity: 0.6;
}

.card-info h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 5px;
    color: var(--text-primary);
    margin: 0.3rem 0;
}

.card-info p {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 0.8rem;
}

.card-cta {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--accent-gold);
    letter-spacing: 1px;
    font-weight: 600;
    transition: letter-spacing 0.3s ease;
}

.city-preview-card:hover .card-cta {
    letter-spacing: 3px;
}

/* ---- IMAGE GALLERIES ---- */
.image-gallery {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(15, 15, 22, 0.6);
}

.gallery-main {
    position: relative;
    height: 320px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-main:hover img {
    transform: scale(1.03);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

.gallery-thumbs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(0,0,0,0.3);
}

.gallery-thumb {
    flex: 1;
    height: 70px;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    opacity: 1;
    border-color: var(--accent-gold);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- LIGHTBOX ---- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
    cursor: zoom-out;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 3001;
    transition: transform 0.3s;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(0,0,0,0.5);
}

.lightbox-caption {
    margin-top: 1rem;
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
}

/* ---- QUIZ SECTION ---- */
/* Quiz removed */
.quiz-container {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(212, 168, 85, 0.15);
    border-radius: 16px;
    padding: 2.5rem;
}

.quiz-progress {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.quiz-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-uruk));
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

.quiz-question-counter {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.quiz-question {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.quiz-option {
    padding: 1rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    cursor: pointer;
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quiz-option::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(212,168,85,0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.quiz-option:hover:not(.disabled) {
    border-color: var(--accent-gold);
    background: rgba(212, 168, 85, 0.08);
    color: var(--text-primary);
    transform: translateX(5px);
}

.quiz-option:hover:not(.disabled)::before {
    transform: translateX(100%);
}

.quiz-option.correct {
    border-color: var(--accent-green) !important;
    background: rgba(76, 175, 80, 0.12) !important;
    color: var(--accent-green) !important;
}

.quiz-option.wrong {
    border-color: var(--accent-ur) !important;
    background: rgba(239, 83, 80, 0.12) !important;
    color: var(--accent-ur) !important;
}

.quiz-option.disabled {
    cursor: default;
    opacity: 0.5;
}

.quiz-option.correct.disabled,
.quiz-option.wrong.disabled {
    opacity: 1;
}

.quiz-feedback {
    text-align: center;
    margin-top: 1rem;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--text-secondary);
    min-height: 1.5rem;
}

.quiz-next-btn {
    display: block;
    margin: 1.5rem auto 0;
    padding: 0.8rem 2rem;
    border: 1px solid var(--accent-gold);
    border-radius: 8px;
    background: rgba(212, 168, 85, 0.1);
    color: var(--accent-gold);
    font-family: var(--font-display);
    font-size: 0.9rem;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.quiz-next-btn:hover {
    background: rgba(212, 168, 85, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--glow-gold);
}

.quiz-result {
    text-align: center;
    padding: 2rem;
}

.quiz-result h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.quiz-result p {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.quiz-score {
    font-size: 3rem;
    font-weight: 900;
    font-family: var(--font-display);
    color: var(--accent-gold);
    display: block;
    margin: 1rem 0;
}

.quiz-restart-btn {
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    border: 1px solid var(--accent-gold);
    border-radius: 8px;
    background: rgba(212, 168, 85, 0.15);
    color: var(--accent-gold);
    font-family: var(--font-display);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-restart-btn:hover {
    background: rgba(212, 168, 85, 0.25);
    box-shadow: var(--glow-gold);
}

/* ---- CURSOR TRAIL ---- */
.cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-gold);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
    mix-blend-mode: screen;
    filter: blur(1px);
}

/* Timeline */
.timeline-container {
    margin-top: 4rem;
    padding: 2rem 0;
}

.timeline-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, 
        transparent, 
        var(--accent-gold) 10%, 
        var(--accent-gold) 90%, 
        transparent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 45%;
    padding: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    margin-left: 55%;
    text-align: left;
}

.timeline-item:nth-child(even) {
    margin-right: 55%;
    text-align: right;
}

.timeline-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--accent-gold);
    border-radius: 50%;
    top: 1.8rem;
    box-shadow: var(--glow-gold);
}

.timeline-item:nth-child(odd) .timeline-dot {
    left: -32px;
}

.timeline-item:nth-child(even) .timeline-dot {
    right: -32px;
}

.timeline-content {
    background: rgba(212, 168, 85, 0.05);
    border: 1px solid rgba(212, 168, 85, 0.15);
    border-radius: 8px;
    padding: 1.2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.timeline-content:hover {
    border-color: rgba(212, 168, 85, 0.4);
    background: rgba(212, 168, 85, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 168, 85, 0.12);
}

.timeline-item.active .timeline-content {
    border-color: var(--accent-gold);
    background: rgba(212, 168, 85, 0.12);
    box-shadow: 0 0 20px rgba(212, 168, 85, 0.15);
}

.timeline-item.active .timeline-dot {
    transform: scale(1.4);
    box-shadow: 0 0 20px rgba(212, 168, 85, 0.6);
}

.timeline-date {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--accent-gold);
    font-weight: 700;
}

.timeline-content h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0.3rem 0;
}

.timeline-content p {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ---- CITY SECTIONS ---- */
.city-section {
    padding: 6rem 2rem;
}

.city-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(255,255,255,0.05) 50px, rgba(255,255,255,0.05) 51px),
        repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(255,255,255,0.05) 50px, rgba(255,255,255,0.05) 51px);
    pointer-events: none;
}

.city-ur {
    background: linear-gradient(180deg, 
        rgba(10,10,15,0.98) 0%, 
        rgba(40,15,15,0.15) 50%, 
        rgba(10,10,15,0.98) 100%);
}

.city-uruk {
    background: linear-gradient(180deg, 
        rgba(10,10,15,0.98) 0%, 
        rgba(40,30,10,0.15) 50%, 
        rgba(10,10,15,0.98) 100%);
}

.city-nippur {
    background: linear-gradient(180deg, 
        rgba(10,10,15,0.98) 0%, 
        rgba(25,15,40,0.15) 50%, 
        rgba(10,10,15,0.98) 100%);
}

.city-header {
    text-align: center;
    margin-bottom: 4rem;
}

.city-cuneiform {
    font-size: 3rem;
    color: var(--accent-gold);
    opacity: 0.6;
    margin-bottom: 0.5rem;
    animation: glowPulse 3s infinite;
}

.city-name {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    letter-spacing: 10px;
    margin-bottom: 0.5rem;
}

.city-ur .city-name { color: var(--accent-ur); text-shadow: var(--glow-ur); }
.city-uruk .city-name { color: var(--accent-uruk); text-shadow: var(--glow-uruk); }
.city-nippur .city-name { color: var(--accent-nippur); text-shadow: var(--glow-nippur); }

.city-epithet {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 2rem;
}

.city-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.city-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.city-content-grid.reverse {
    direction: rtl;
}

.city-content-grid.reverse > * {
    direction: ltr;
}

.city-article h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
}

.city-article p {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.city-article strong {
    color: var(--text-primary);
}

.city-article em {
    color: var(--accent-water);
}

.highlight-box {
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.ur-highlight {
    background: rgba(239, 83, 80, 0.05);
    border: 1px solid rgba(239, 83, 80, 0.2);
    border-left: 4px solid var(--accent-ur);
}

.uruk-highlight {
    background: rgba(255, 183, 77, 0.05);
    border: 1px solid rgba(255, 183, 77, 0.2);
    border-left: 4px solid var(--accent-uruk);
}

.nippur-highlight {
    background: rgba(126, 87, 194, 0.05);
    border: 1px solid rgba(126, 87, 194, 0.2);
    border-left: 4px solid var(--accent-nippur);
}

.highlight-box h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.highlight-box p {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---- 3D ZIGGURAT ---- */
.ziggurat-3d {
    perspective: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.ziggurat-wrapper {
    position: relative;
    width: 280px;
    height: 200px;
    transform-style: preserve-3d;
    transform: rotateX(-20deg) rotateY(-30deg);
    transition: transform 0.6s ease;
    animation: zigguratFloat 6s ease-in-out infinite;
}

.ziggurat-3d:hover .ziggurat-wrapper {
    animation-play-state: paused;
}

.zig-level {
    position: absolute;
    transform-style: preserve-3d;
    bottom: 0;
    left: 50%;
}

.zig-base {
    width: 240px;
    height: 50px;
    margin-left: -120px;
}

.zig-mid {
    width: 180px;
    height: 45px;
    margin-left: -90px;
    bottom: 50px;
}

.zig-top-level {
    width: 130px;
    height: 40px;
    margin-left: -65px;
    bottom: 95px;
}

.zig-temple {
    width: 60px;
    height: 35px;
    margin-left: -30px;
    bottom: 135px;
}

.zig-face {
    position: absolute;
    backface-visibility: hidden;
}

/* Base faces */
.zig-base .zig-front {
    width: 240px; height: 50px;
    background: linear-gradient(180deg, #c7956d, #a07550);
    transform: translateZ(60px);
    border: 1px solid rgba(255,255,255,0.08);
}
.zig-base .zig-back {
    width: 240px; height: 50px;
    background: linear-gradient(180deg, #9c6d42, #7d5530);
    transform: rotateY(180deg) translateZ(60px);
}
.zig-base .zig-left {
    width: 120px; height: 50px;
    background: linear-gradient(180deg, #b4845e, #8d6640);
    transform: rotateY(-90deg) translateZ(0px);
}
.zig-base .zig-right {
    width: 120px; height: 50px;
    background: linear-gradient(180deg, #b4845e, #8d6640);
    transform: rotateY(90deg) translateZ(240px);
}
.zig-base .zig-top {
    width: 240px; height: 120px;
    background: linear-gradient(180deg, #d4a875, #c7956d);
    transform: rotateX(90deg) translateZ(0px);
}

/* Mid faces */
.zig-mid .zig-front {
    width: 180px; height: 45px;
    background: linear-gradient(180deg, #d4a875, #b88d5e);
    transform: translateZ(45px);
    border: 1px solid rgba(255,255,255,0.08);
}
.zig-mid .zig-back {
    width: 180px; height: 45px;
    background: linear-gradient(180deg, #a67c4a, #8d6640);
    transform: rotateY(180deg) translateZ(45px);
}
.zig-mid .zig-left {
    width: 90px; height: 45px;
    background: linear-gradient(180deg, #c49665, #a67c4a);
    transform: rotateY(-90deg) translateZ(0px);
}
.zig-mid .zig-right {
    width: 90px; height: 45px;
    background: linear-gradient(180deg, #c49665, #a67c4a);
    transform: rotateY(90deg) translateZ(180px);
}
.zig-mid .zig-top {
    width: 180px; height: 90px;
    background: linear-gradient(180deg, #e0b888, #d4a875);
    transform: rotateX(90deg) translateZ(0px);
}

/* Top level faces */
.zig-top-level .zig-front {
    width: 130px; height: 40px;
    background: linear-gradient(180deg, #e0b888, #c49665);
    transform: translateZ(35px);
    border: 1px solid rgba(255,255,255,0.1);
}
.zig-top-level .zig-back {
    width: 130px; height: 40px;
    background: linear-gradient(180deg, #b88d5e, #a67c4a);
    transform: rotateY(180deg) translateZ(35px);
}
.zig-top-level .zig-left {
    width: 70px; height: 40px;
    background: linear-gradient(180deg, #d4a875, #b88d5e);
    transform: rotateY(-90deg) translateZ(0px);
}
.zig-top-level .zig-right {
    width: 70px; height: 40px;
    background: linear-gradient(180deg, #d4a875, #b88d5e);
    transform: rotateY(90deg) translateZ(130px);
}
.zig-top-level .zig-top {
    width: 130px; height: 70px;
    background: linear-gradient(180deg, #ecc99a, #e0b888);
    transform: rotateX(90deg) translateZ(0px);
}

/* Temple faces */
.zig-temple .zig-front {
    width: 60px; height: 35px;
    background: linear-gradient(180deg, #f0d48a, #e0b888);
    transform: translateZ(18px);
    border: 1px solid rgba(255,255,255,0.15);
}
.zig-temple .zig-back {
    width: 60px; height: 35px;
    background: linear-gradient(180deg, #d4a875, #c49665);
    transform: rotateY(180deg) translateZ(18px);
}
.zig-temple .zig-left {
    width: 36px; height: 35px;
    background: linear-gradient(180deg, #e0b888, #d4a875);
    transform: rotateY(-90deg) translateZ(0px);
}
.zig-temple .zig-right {
    width: 36px; height: 35px;
    background: linear-gradient(180deg, #e0b888, #d4a875);
    transform: rotateY(90deg) translateZ(60px);
}
.zig-temple .zig-top {
    width: 60px; height: 36px;
    background: linear-gradient(180deg, #f5dda0, #f0d48a);
    transform: rotateX(90deg) translateZ(0px);
    box-shadow: 0 0 20px rgba(240, 212, 138, 0.3);
}

.visual-caption {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
    margin-top: 1rem;
}

/* ---- URBAN FEATURES ---- */
.urban-features {
    margin-top: 2rem;
}

.urban-features h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.feature-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(212,168,85,0.04), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.feature-item:hover::after {
    transform: translateX(100%);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 168, 85, 0.3);
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(212, 168, 85, 0.08);
}

.feature-item.expanded {
    background: rgba(212, 168, 85, 0.06);
    border-color: rgba(212, 168, 85, 0.25);
    transform: scale(1.02);
}

.feature-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
}

.feature-text {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.feature-text strong {
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.85rem;
}

/* ---- CITY PLAN SVG ---- */
.city-layout-interactive {
    background: rgba(15, 15, 22, 0.8);
    border: 1px solid rgba(255, 183, 77, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
}

.city-plan-svg {
    width: 100%;
    height: auto;
}

.district {
    cursor: pointer;
    transition: all 0.3s ease;
}

.district:hover {
    filter: brightness(1.3);
}

/* ---- NIPPUR MAP ---- */
.nippur-map-ancient {
    margin-bottom: 2rem;
}

.clay-tablet {
    background: rgba(15, 15, 22, 0.8);
    border: 1px solid rgba(126, 87, 194, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
}

.nippur-plan-svg {
    width: 100%;
    height: auto;
}

.canal-animation {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: flowWater 4s infinite linear;
}

/* ---- COMPARATIVE SECTION ---- */
.comparative-section {
    background: linear-gradient(180deg, 
        rgba(10,10,15,0.98) 0%, 
        rgba(15,15,25,0.98) 50%, 
        rgba(10,10,15,0.98) 100%);
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-bottom: 4rem;
    border-radius: 12px;
    border: 1px solid rgba(212, 168, 85, 0.15);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.comparison-table thead {
    background: rgba(212, 168, 85, 0.08);
}

.comparison-table th {
    font-family: var(--font-display);
    font-weight: 700;
    padding: 1.2rem 1rem;
    text-align: center;
    border-bottom: 2px solid rgba(212, 168, 85, 0.2);
    letter-spacing: 2px;
    font-size: 1rem;
}

.col-cuneiform {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    opacity: 0.7;
}

.aspect-col { text-align: left; color: var(--text-primary); }
.ur-col { color: var(--accent-ur); }
.uruk-col { color: var(--accent-uruk); }
.nippur-col { color: var(--accent-nippur); }

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-serif);
    color: var(--text-secondary);
    vertical-align: top;
}

.comparison-table td.aspect {
    font-family: var(--font-sans);
    color: var(--text-primary);
    font-size: 0.85rem;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.02);
}

.comparison-table tbody tr {
    transition: all 0.4s ease;
    cursor: pointer;
}

.comparison-table tbody tr:hover {
    background: rgba(212, 168, 85, 0.08);
    transform: scale(1.01);
}

.comparison-table tbody tr:hover td {
    color: var(--text-primary);
}

.comparison-table tbody tr.active-row {
    background: rgba(212, 168, 85, 0.12);
    border-left: 3px solid var(--accent-gold);
}

.comparison-table tbody tr.active-row td.aspect strong {
    color: var(--accent-gold);
}

/* Similarities & Differences */
.sim-diff-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.sim-diff-card {
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid;
}

.sim-diff-card.similarities {
    background: rgba(76, 175, 80, 0.04);
    border-color: rgba(76, 175, 80, 0.2);
}

.sim-diff-card.differences {
    background: rgba(239, 83, 80, 0.04);
    border-color: rgba(239, 83, 80, 0.2);
}

.sim-diff-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.similarities h3 { color: var(--accent-green); }
.differences h3 { color: var(--accent-ur); }
.similarities h3 svg { stroke: var(--accent-green); }
.differences h3 svg { stroke: var(--accent-ur); }

.sim-diff-card ul {
    list-style: none;
}

.sim-diff-card li {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.6;
}

.sim-diff-card li:last-child {
    border-bottom: none;
}

.sim-diff-card li strong {
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.85rem;
}

/* Venn Diagram */
.venn-container {
    text-align: center;
    padding: 2rem 0;
}

.venn-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.venn-diagram {
    position: relative;
    width: 550px;
    height: 550px;
    margin: 0 auto;
}

.venn-circle {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.venn-ur {
    top: 0;
    left: 40px;
    background: rgba(239, 83, 80, 0.1);
    border: 2px solid rgba(239, 83, 80, 0.3);
}

.venn-uruk {
    top: 0;
    right: 40px;
    background: rgba(255, 183, 77, 0.1);
    border: 2px solid rgba(255, 183, 77, 0.3);
}

.venn-nippur {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(126, 87, 194, 0.1);
    border: 2px solid rgba(126, 87, 194, 0.3);
}

.venn-circle {
    cursor: pointer;
}

.venn-circle:hover {
    transform: scale(1.08);
    z-index: 5;
    box-shadow: 0 0 30px rgba(212, 168, 85, 0.15);
}

.venn-nippur:hover {
    transform: translateX(-50%) scale(1.08);
}

.venn-circle.active {
    z-index: 6;
    transform: scale(1.1);
}

.venn-nippur.active {
    transform: translateX(-50%) scale(1.1);
}

.venn-circle.active .venn-label {
    text-shadow: 0 0 15px currentColor;
}

.venn-shared span {
    cursor: pointer;
    transition: all 0.3s ease;
}

.venn-shared span:hover {
    transform: scale(1.15);
    background: rgba(212, 168, 85, 0.3);
    box-shadow: 0 0 15px rgba(212, 168, 85, 0.3);
}

.venn-label {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.venn-ur .venn-label { color: var(--accent-ur); }
.venn-uruk .venn-label { color: var(--accent-uruk); }
.venn-nippur .venn-label { color: var(--accent-nippur); }

.venn-items {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: center;
}

.venn-items span {
    font-size: 0.7rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.3);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
}

.venn-center {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.venn-shared {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.venn-shared span {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--accent-gold);
    background: rgba(212, 168, 85, 0.15);
    padding: 0.2rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(212, 168, 85, 0.3);
}

/* ---- LEGACY SECTION ---- */
.legacy-section {
    background: linear-gradient(180deg, 
        rgba(10,10,15,0.98) 0%, 
        rgba(20,18,12,0.2) 50%, 
        rgba(10,10,15,0.98) 100%);
}

.legacy-intro {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.legacy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.legacy-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 168, 85, 0.12);
    border-radius: 12px;
    padding: 1.8rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.legacy-card:hover {
    background: rgba(212, 168, 85, 0.06);
    border-color: rgba(212, 168, 85, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.legacy-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.legacy-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.legacy-card p {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.final-quote {
    max-width: 700px;
    margin: 3rem auto;
    text-align: center;
    padding: 2rem;
    border-left: none;
    border-top: 1px solid rgba(212, 168, 85, 0.2);
    border-bottom: 1px solid rgba(212, 168, 85, 0.2);
}

.final-quote p {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--accent-gold-light);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.final-quote cite {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: normal;
    letter-spacing: 1px;
}

/* ---- FOOTER ---- */
.site-footer {
    position: relative;
    z-index: 2;
    padding: 4rem 2rem;
    background: rgba(5, 5, 8, 0.98);
    border-top: 1px solid rgba(212, 168, 85, 0.1);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-cuneiform {
    font-size: 1.5rem;
    color: var(--accent-gold);
    opacity: 0.4;
    margin-bottom: 1rem;
    letter-spacing: 5px;
}

.footer-text {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.footer-refs {
    text-align: left;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
}

.footer-refs h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-refs ul {
    list-style: none;
}

.footer-refs li {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.4rem 0;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-refs li:last-child {
    border-bottom: none;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
}

.footer-bottom .cuneiform-decoration {
    font-size: 1rem;
    opacity: 0.3;
}

/* ---- MODAL ---- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid rgba(212, 168, 85, 0.2);
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: modalIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--text-primary);
}

#modal-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

#modal-text {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 120px; }
}

@keyframes staggerUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes floatSymbol {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(3deg); }
    50% { transform: translateY(-5px) rotate(-2deg); }
    75% { transform: translateY(-20px) rotate(1deg); }
}

@keyframes pulse {
    0% { r: 12; opacity: 0.3; }
    50% { r: 18; opacity: 0.1; }
    100% { r: 12; opacity: 0.3; }
}

@keyframes drawRiver {
    to { stroke-dashoffset: 0; }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.4; text-shadow: none; }
    50% { opacity: 0.8; text-shadow: 0 0 20px currentColor; }
}

@keyframes zigguratFloat {
    0%, 100% { transform: rotateX(-20deg) rotateY(-30deg); }
    50% { transform: rotateX(-25deg) rotateY(-20deg); }
}

@keyframes flowWater {
    0% { stroke-dashoffset: 500; }
    100% { stroke-dashoffset: 0; }
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Scroll reveal classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .intro-columns,
    .city-content-grid,
    .sim-diff-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .city-cards-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .city-content-grid.reverse {
        direction: ltr;
    }

    .legacy-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .venn-diagram {
        width: 100%;
        max-width: 400px;
        height: 380px;
    }

    .venn-circle {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 1rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        z-index: 999;
    }

    .nav-links.mobile-open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-cities {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-city-tag {
        width: 80%;
        flex-direction: row;
        justify-content: center;
    }

    .city-stats {
        gap: 1.5rem;
    }

    .legacy-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        width: 80% !important;
        margin-left: 20% !important;
        margin-right: 0 !important;
        text-align: left !important;
    }

    .timeline-line {
        left: 10%;
    }

    .timeline-dot {
        left: -25px !important;
        right: auto !important;
    }

    .comparison-table {
        font-size: 0.75rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.6rem 0.5rem;
    }

    .venn-diagram {
        display: none;
    }

    .sim-diff-grid {
        grid-template-columns: 1fr;
    }

    .ziggurat-wrapper {
        transform: rotateX(-20deg) rotateY(-30deg) scale(0.75);
    }
}

@media (max-width: 480px) {
    .hero-title .title-line {
        font-size: 1.8rem;
    }

    .city-name {
        font-size: 2.5rem !important;
        letter-spacing: 5px;
    }

    .section-title {
        font-size: 1.5rem;
    }
}
