/* ============================================
   ASIA — ANCIENT & ALIVE
   Single-scroll presentation (PowerPoint-style)
   Snap scrolling, glassmorphism, Inter typeface
   ============================================ */

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

:root {
    --bg-top: #0f172a;
    --bg-mid: #1e1b4b;
    --bg-bot: #312e81;
    --surface: rgba(15, 23, 42, 0.65);
    --cyan: #22d3ee;
    --cyan-dim: #06b6d4;
    --cyan-glow: rgba(34, 211, 238, 0.35);
    --text: #ffffff;
    --text-secondary: #f8fafc;
    --text-muted: rgba(248, 250, 252, 0.6);
    --text-dim: rgba(248, 250, 252, 0.35);
    --glass-bg: rgba(15, 23, 42, 0.55);
    --glass-border: rgba(248, 250, 252, 0.08);
    --glass-border-hover: rgba(34, 211, 238, 0.35);
    --glass-blur: blur(20px);
    --radius: 1.5rem;
    --radius-lg: 2rem;
    --radius-sm: 0.75rem;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.35s var(--ease);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.35);
    --shadow-cyan: 0 0 40px rgba(34, 211, 238, 0.12);
}

html {
    font-size: 16px;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 55%, var(--bg-bot) 100%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- Background overlays ---------- */
.bg-grid {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(248, 250, 252, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(248, 250, 252, 0.025) 1px, transparent 1px);
    background-size: 64px 64px;
}

.bg-noise {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat; background-size: 256px 256px;
}

/* ---------- Slide system ---------- */
.slide {
    min-height: 100vh;
    scroll-snap-align: start;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 2rem;
    overflow: hidden;
}

.slide-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 1.1rem 0; transition: all var(--transition); background: transparent;
}
.navbar.scrolled {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    padding: 0.6rem 0; border-bottom: 1px solid var(--glass-border);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    display: flex; align-items: center; gap: 0.6rem;
    font-weight: 800; font-size: 1.25rem; z-index: 1001; letter-spacing: -0.5px;
}
.logo-glyph { color: var(--cyan); font-size: 1.5rem; }
.nav-links { display: flex; list-style: none; gap: 0.25rem; }
.nav-links a {
    padding: 0.5rem 1rem; border-radius: var(--radius-sm);
    font-size: 0.875rem; font-weight: 500; color: var(--text-muted);
    transition: all var(--transition); position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: 2px; left: 50%; width: 50%; height: 2px;
    background: var(--cyan); border-radius: 2px;
    transform: translateX(-50%) scaleX(0); transition: transform var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: translateX(-50%) scaleX(1); }
.nav-links a.active { color: var(--cyan); }
.nav-links a.active::after { transform: translateX(-50%) scaleX(1); }
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; z-index: 1001; padding: 5px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- Slide progress bar ---------- */
.progress-bar {
    position: fixed; top: 0; left: 0; height: 3px; z-index: 1001;
    background: linear-gradient(90deg, var(--cyan-dim), var(--cyan));
    transition: width 0.3s ease; box-shadow: 0 0 12px var(--cyan-glow);
}

/* ---------- Slide indicator dots ---------- */
.slide-dots {
    position: fixed; right: 1.5rem; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 0.75rem; z-index: 999;
}
.slide-dot {
    width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--text-dim);
    background: transparent; cursor: pointer; transition: all var(--transition);
}
.slide-dot.active {
    background: var(--cyan); border-color: var(--cyan);
    box-shadow: 0 0 12px var(--cyan-glow); transform: scale(1.3);
}
.slide-dot:hover { border-color: var(--cyan); }

/* ---------- Cyan helpers ---------- */
.text-cyan { color: var(--cyan); }
.cyan-glow { color: var(--cyan); text-shadow: 0 0 60px var(--cyan-glow), 0 0 120px rgba(34, 211, 238, 0.12); }

/* ---------- Glass card ---------- */
.glass-card {
    background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border); border-radius: var(--radius); box-shadow: var(--shadow);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.glass-card:hover { border-color: var(--glass-border-hover); box-shadow: var(--shadow-lg), var(--shadow-cyan); }

/* ---------- SLIDE 1: Hero ---------- */
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 820px; margin: 0 auto; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none; z-index: 0; }
.hero-glow--1 { width: 650px; height: 650px; background: rgba(34, 211, 238, 0.07); top: -12%; left: 8%; }
.hero-glow--2 { width: 550px; height: 550px; background: rgba(99, 102, 241, 0.09); bottom: -5%; right: 3%; }
.hero-title { font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 900; line-height: 1.08; margin-bottom: 1.5rem; letter-spacing: -3px; }
.hero-subtitle { font-size: clamp(1rem, 2.2vw, 1.15rem); color: var(--text-muted); margin-bottom: 2.5rem; max-width: 560px; margin-left: auto; margin-right: auto; font-weight: 400; line-height: 1.85; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.85rem 2rem; font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 600; border-radius: 50px; cursor: pointer; transition: all var(--transition); border: none; text-align: center; }
.btn-primary { background: var(--cyan-dim); color: var(--bg-top); box-shadow: 0 4px 24px rgba(6, 182, 212, 0.3); }
.btn-primary:hover { background: var(--cyan); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(34, 211, 238, 0.4); }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid rgba(248, 250, 252, 0.2); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-3px); }
.hero-cards { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; max-width: 920px; width: 100%; margin: 4rem auto 0; }
.hero-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 4; background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); box-shadow: var(--shadow-lg); transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition); }
.hero-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); opacity: 0.75; }
.hero-card:hover { transform: translateY(-8px) scale(1.03); border-color: var(--glass-border-hover); box-shadow: var(--shadow-lg), 0 0 48px rgba(34, 211, 238, 0.15); }
.hero-card:hover img { transform: scale(1.08); opacity: 1; }
.hero-card-label { position: absolute; bottom: 1rem; left: 1rem; font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1.5px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7); }
.hero-scroll-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: var(--text-dim); font-size: 0.7rem; font-weight: 500; z-index: 2; letter-spacing: 1.5px; text-transform: uppercase; animation: fadeInUp 1s 2s both; }
.scroll-arrow { width: 18px; height: 18px; border-right: 1.5px solid var(--text-dim); border-bottom: 1.5px solid var(--text-dim); transform: rotate(45deg); animation: bounce 2.5s infinite; }
@keyframes bounce { 0%, 100% { transform: rotate(45deg) translateY(0); } 50% { transform: rotate(45deg) translateY(6px); } }

/* ---------- Section headers ---------- */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 1rem; letter-spacing: -1px; }
.section-subtitle { font-size: 1rem; color: var(--text-muted); max-width: 660px; margin: 0 auto; line-height: 1.85; }

/* ---------- Stats grid ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.stat-card { padding: 2rem 1.5rem; text-align: center; border-radius: var(--radius); }
.stat-card:hover { transform: translateY(-6px); }
.stat-number { font-size: 3rem; font-weight: 900; color: var(--cyan); letter-spacing: -2px; }
.stat-label { font-size: 0.88rem; color: var(--text-muted); margin-top: 0.4rem; font-weight: 500; }

/* ---------- Traditions grid ---------- */
.traditions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.tradition-card { overflow: hidden; border-radius: var(--radius); }
.tradition-card:hover { transform: translateY(-6px); }
.tradition-image { position: relative; height: 180px; overflow: hidden; }
.tradition-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.tradition-card:hover .tradition-image img { transform: scale(1.06); }
.tradition-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 0.75rem; background: linear-gradient(transparent, rgba(15, 23, 42, 0.85)); }
.tradition-region { font-size: 0.7rem; color: var(--cyan); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.tradition-content { padding: 1.25rem; }
.tradition-content h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.tradition-content p { color: var(--text-muted); font-size: 0.82rem; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Places grid ---------- */
.places-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.place-card { overflow: hidden; border-radius: var(--radius); }
.place-card:hover { transform: translateY(-6px); }
.place-image { position: relative; height: 180px; overflow: hidden; }
.place-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.place-card:hover .place-image img { transform: scale(1.06); }
.place-badge { position: absolute; top: 0.75rem; right: 0.75rem; background: rgba(34, 211, 238, 0.12); color: var(--cyan); border: 1px solid rgba(34, 211, 238, 0.25); padding: 0.2rem 0.7rem; border-radius: 50px; font-size: 0.7rem; font-weight: 600; backdrop-filter: blur(8px); }
.place-content { padding: 1.25rem; }
.place-content h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.place-content p { color: var(--text-muted); font-size: 0.82rem; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Facts grid ---------- */
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; }
.fact-card { padding: 1.5rem 1.25rem; text-align: center; border-radius: var(--radius); }
.fact-card:hover { transform: translateY(-6px); }
.fact-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.fact-counter-wrap { margin-bottom: 0.2rem; }
.fact-counter { font-size: 1.8rem; font-weight: 900; color: var(--cyan); letter-spacing: -1px; }
.fact-suffix { font-size: 0.9rem; font-weight: 700; color: var(--cyan-dim); }
.fact-counter-label { font-size: 0.65rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.75rem; font-weight: 600; }
.fact-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; }
.fact-card p { color: var(--text-muted); font-size: 0.8rem; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Stereotypes ---------- */
.stereotypes-list { display: flex; flex-direction: column; gap: 1.25rem; max-width: 900px; margin: 0 auto; }
.stereotype-card { display: flex; gap: 1.25rem; padding: 1.5rem; border-radius: var(--radius); }
.stereotype-card:hover { transform: translateX(6px); }
.stereotype-icon { font-size: 1.8rem; flex-shrink: 0; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; background: rgba(34, 211, 238, 0.06); border-radius: 50%; border: 1px solid rgba(34, 211, 238, 0.12); }
.stereotype-body { flex: 1; }
.stereotype-myth { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--glass-border); }
.myth-label { display: inline-block; padding: 0.2rem 0.6rem; background: rgba(248, 113, 113, 0.1); color: #f87171; border-radius: 50px; font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.4rem; }
.stereotype-myth h3 { font-size: 1rem; font-weight: 600; font-style: italic; color: var(--text-muted); }
.reality-label { display: inline-block; padding: 0.2rem 0.6rem; background: rgba(34, 211, 238, 0.08); color: var(--cyan); border-radius: 50px; font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.4rem; }
.stereotype-reality p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Quote section ---------- */
.big-quote { text-align: center; max-width: 780px; margin: 0 auto; }
.big-quote p { font-size: clamp(1.2rem, 2.5vw, 1.75rem); font-weight: 400; font-style: italic; line-height: 1.7; color: var(--text-muted); margin-bottom: 1.5rem; }
.big-quote cite { font-size: 0.92rem; font-style: normal; font-weight: 600; color: var(--cyan); }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 1; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--glass-border); padding: 3rem 0 1.5rem; scroll-snap-align: end; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid var(--glass-border); }
.footer-bottom p { color: var(--text-dim); font-size: 0.82rem; }

/* ---------- Animations ---------- */
.fade-in { opacity: 0; transform: translateY(24px); animation: fadeInUp 0.8s ease forwards; }
.delay-1 { animation-delay: 0.25s; }
.delay-2 { animation-delay: 0.5s; }
.delay-3 { animation-delay: 0.75s; }

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

.fade-in-up { opacity: 0; transform: translateY(36px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* ---------- Slide number ---------- */
.slide-number { position: absolute; top: 5rem; left: 2rem; font-size: 0.7rem; color: var(--text-dim); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; z-index: 2; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .slide { padding: 5rem 1.25rem 2rem; }
    .nav-toggle { display: flex; }
    .nav-links { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: rgba(15, 23, 42, 0.97); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); flex-direction: column; padding: 5rem 2rem 2rem; gap: 0.5rem; transition: right var(--transition); box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4); }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1rem; padding: 0.8rem 1rem; }
    .hero-title { letter-spacing: -1.5px; }
    .hero-cards { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-top: 2rem; }
    .traditions-grid, .places-grid { grid-template-columns: 1fr; }
    .stereotype-card { flex-direction: column; align-items: flex-start; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .facts-grid { grid-template-columns: 1fr; }
    .slide-dots { display: none; }
    .slide-number { display: none; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .hero-cards { grid-template-columns: repeat(2, 1fr); }
}
