/* ============================================================
   QUTBUDDIN AIBAK: THE FIRST SULTAN — UNMASKED
   Design System & Global Styles
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   CSS Custom Properties (Design Tokens)
   ============================================================ */
:root {
    /* Primary Colors — Deep Maroon, Saffron, Temple Gold */
    --saffron: #D4580A;
    --saffron-dark: #B04508;
    --saffron-light: #E87030;
    --gold: #C09030;
    --gold-light: #DDB84A;
    --gold-dark: #8A6820;

    /* Accent Colors */
    --crimson: #7A1520;
    --crimson-deep: #4D0A0F;
    --crimson-light: #A02830;
    --blood: #5C0010;
    --temple-stone: #A08050;
    --sacred-green: #1A5020;
    --khaki: #8B7355;

    /* Neutrals */
    --bg-primary: #080810;
    --bg-secondary: #0E0E18;
    --bg-tertiary: #181824;
    --bg-card: #141420;
    --bg-card-hover: #1C1C2A;
    --bg-overlay: rgba(8, 8, 16, 0.85);

    --text-primary: #ECE8E2;
    --text-secondary: #A09890;
    --text-muted: #6A6460;
    --text-accent: var(--saffron);

    --border-subtle: rgba(192, 144, 48, 0.12);
    --border-medium: rgba(192, 144, 48, 0.25);
    --border-accent: rgba(212, 88, 10, 0.4);

    /* Typography */
    --font-display: 'Cinzel', 'Georgia', serif;
    --font-heading: 'Playfair Display', 'Georgia', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 30px rgba(212, 88, 10, 0.15);
    --shadow-glow-strong: 0 0 60px rgba(212, 88, 10, 0.25);

    /* Borders */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-very-slow: 800ms ease;

    /* Layout */
    --max-width: 1200px;
    --max-width-narrow: 900px;
    --max-width-wide: 1400px;
    --nav-height: 72px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--saffron);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--gold-light);
}

ul,
ol {
    list-style: none;
}

/* Selection */
::selection {
    background: rgba(212, 88, 10, 0.3);
    color: var(--text-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* ============================================================
   Navigation
   ============================================================ */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(8, 8, 16, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all var(--transition-base);
}

.site-nav.scrolled {
    background: rgba(8, 8, 16, 0.96);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 0 var(--space-6);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    flex-shrink: 0;
    min-width: 0;
    max-width: 180px;
}

.nav-logo-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.nav-logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.72rem;
    color: var(--gold);
    letter-spacing: 0.2px;
    text-transform: uppercase;
    line-height: 1.2;
    white-space: normal;
    word-break: break-word;
}

.nav-logo-text .highlight {
    color: var(--saffron);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    justify-content: flex-end;
    flex-wrap: nowrap;
    overflow: hidden;
}

.nav-link {
    padding: var(--space-2) var(--space-2);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--saffron);
    background: rgba(212, 88, 10, 0.08);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 2px;
    background: var(--saffron);
    border-radius: var(--radius-full);
}

/* Language Switch */
.lang-switch {
    flex-shrink: 0;
    margin-left: var(--space-1);
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--gold);
    font-weight: 600;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.lang-btn:hover {
    background: rgba(192, 144, 48, 0.1);
    border-color: var(--gold);
    color: var(--gold-light);
}

.lang-icon {
    font-size: 0.9rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    z-index: 1001;
    flex-shrink: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 998;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.mobile-overlay.active {
    opacity: 1;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--space-20) var(--space-6);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(8, 8, 16, 0.25) 0%,
            rgba(8, 8, 16, 0.55) 40%,
            rgba(8, 8, 16, 0.97) 100%);
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(212, 88, 10, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(122, 21, 32, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(192, 144, 48, 0.04) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 950px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-5);
    background: rgba(212, 88, 10, 0.1);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--saffron);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-8);
    animation: fadeInDown 0.8s ease forwards;
}

.hero-title {
    font-family: var(--font-display);
    font-size: var(--text-7xl);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-title .line {
    display: block;
}

.hero-title .accent {
    color: var(--saffron);
    text-shadow: 0 0 40px rgba(212, 88, 10, 0.35);
}

.hero-title .accent-crimson {
    color: var(--crimson-light);
    text-shadow: 0 0 40px rgba(160, 40, 48, 0.35);
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-10);
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-muted);
    font-size: var(--text-xs);
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounce 2s ease infinite;
}

.hero-scroll-indicator .arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(45deg);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--text-base);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1.4;
    color: #fff;
}

.btn-primary {
    background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(212, 88, 10, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 88, 10, 0.45);
    color: #fff !important;
}

.btn-secondary {
    background: transparent;
    color: var(--gold) !important;
    border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
    background: rgba(192, 144, 48, 0.1);
    border-color: var(--gold);
    color: var(--gold-light) !important;
    transform: translateY(-2px);
}

.btn-sm {
    padding: var(--space-2) var(--space-5);
    font-size: var(--text-sm);
}

.btn-lg {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-lg);
}

/* ============================================================
   Sections
   ============================================================ */
.section {
    padding: var(--space-24) var(--space-6);
    position: relative;
}

.section-dark {
    background: var(--bg-secondary);
}

.section-darker {
    background: var(--bg-tertiary);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.container-narrow {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
}

.container-wide {
    max-width: var(--max-width-wide);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-4);
    background: rgba(212, 88, 10, 0.08);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--saffron);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-4);
    font-family: var(--font-mono);
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-4);
}

.section-title .accent {
    color: var(--saffron);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ============================================================
   Cards
   ============================================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-medium);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-subtle);
}

.card-image-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-4);
}

.card-image-placeholder .placeholder-icon {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-2);
}

.card-image-placeholder .placeholder-text {
    font-size: var(--text-sm);
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
    font-style: italic;
}

.card-body {
    padding: var(--space-6);
}

.card-tag {
    display: inline-flex;
    padding: var(--space-1) var(--space-3);
    background: rgba(212, 88, 10, 0.1);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    color: var(--saffron);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-3);
    font-weight: 600;
}

.card-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-3);
    line-height: 1.3;
}

.card-text {
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--saffron);
    font-weight: 600;
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.card-link:hover {
    gap: var(--space-3);
    color: var(--gold-light);
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-6);
}

.card-grid-2 {
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
}

.card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* ============================================================
   Statistics / Counters
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
}

.stat-card {
    text-align: center;
    padding: var(--space-8) var(--space-4);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--saffron), var(--gold), var(--crimson-light));
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: var(--border-accent);
}

.stat-icon {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-3);
}

.stat-number {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 900;
    color: var(--saffron);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.stat-source {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-2);
    font-style: italic;
}

/* ============================================================
   Timeline
   ============================================================ */
.timeline {
    position: relative;
    padding: var(--space-8) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom,
            transparent,
            var(--gold-dark),
            var(--saffron),
            var(--crimson),
            var(--gold-dark),
            transparent);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: var(--space-6);
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: var(--space-12);
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: var(--space-12);
}

.timeline-dot {
    position: absolute;
    top: var(--space-8);
    width: 16px;
    height: 16px;
    background: var(--saffron);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 2px var(--saffron);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-year {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--saffron);
    letter-spacing: 2px;
    margin-bottom: var(--space-2);
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    transition: all var(--transition-base);
}

.timeline-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.timeline-text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================================
   Page Header (inner pages)
   ============================================================ */
.page-header {
    position: relative;
    padding: calc(var(--nav-height) + var(--space-16)) var(--space-6) var(--space-16);
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.page-header-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(8, 8, 16, 0.5) 0%,
        rgba(8, 8, 16, 0.7) 60%,
        rgba(8, 8, 16, 0.95) 100%
    );
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--saffron);
}

.breadcrumb .separator {
    color: var(--text-muted);
}

.breadcrumb .current {
    color: var(--text-secondary);
}

.page-header-badge {
    display: inline-flex;
    padding: var(--space-1) var(--space-3);
    background: rgba(212, 88, 10, 0.15);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    color: var(--saffron);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: var(--space-4);
    font-family: var(--font-mono);
}

.page-header-title {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-4);
}

.page-header-subtitle {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 700px;
}

/* ============================================================
   Content Blocks
   ============================================================ */
.content-block h2 {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-6);
}

.content-block h3 {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    margin-top: var(--space-8);
    color: var(--gold-light);
}

.content-block h4 {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-3);
    margin-top: var(--space-6);
    color: var(--text-secondary);
}

.content-block p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-5);
}

.content-block ul,
.content-block ol {
    margin-bottom: var(--space-5);
    padding-left: var(--space-6);
}

.content-block li {
    position: relative;
    padding-left: var(--space-4);
    margin-bottom: var(--space-3);
    color: var(--text-secondary);
    line-height: 1.7;
}

.content-block ul li::before {
    content: '▸';
    position: absolute;
    left: -8px;
    color: var(--saffron);
    font-size: var(--text-sm);
}

.content-block ol {
    counter-reset: item;
    list-style: none;
    padding-left: 0;
}

.content-block ol li {
    counter-increment: item;
    padding-left: var(--space-8);
}

.content-block ol li::before {
    content: counter(item) '.';
    position: absolute;
    left: 0;
    color: var(--saffron);
    font-weight: 700;
    font-family: var(--font-display);
}

.content-block strong {
    color: var(--text-primary);
    font-weight: 600;
}

.content-block em {
    color: var(--gold-light);
    font-style: italic;
}

/* ============================================================
   Blockquote
   ============================================================ */
.blockquote {
    position: relative;
    padding: var(--space-8) var(--space-8) var(--space-8) var(--space-12);
    background: var(--bg-card);
    border-left: 4px solid var(--saffron);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.7;
    margin: var(--space-8) 0;
    box-shadow: var(--shadow-md);
}

.blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: var(--space-4);
    font-size: 5rem;
    color: var(--saffron);
    opacity: 0.3;
    font-family: var(--font-display);
    line-height: 1;
}

.blockquote-source {
    display: block;
    margin-top: var(--space-4);
    font-size: var(--text-sm);
    font-style: normal;
    color: var(--text-muted);
    font-family: var(--font-body);
}

.blockquote-source a {
    color: var(--saffron);
}

/* ============================================================
   Info Boxes
   ============================================================ */
.info-box {
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    border: 1px solid;
    margin: var(--space-6) 0;
}

.info-box.warning {
    background: rgba(122, 21, 32, 0.08);
    border-color: rgba(122, 21, 32, 0.3);
}

.info-box.info {
    background: rgba(26, 80, 32, 0.08);
    border-color: rgba(26, 80, 32, 0.3);
}

.info-box.neutral {
    background: var(--bg-card);
    border-color: var(--border-subtle);
}

.info-box-title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 700;
    font-size: var(--text-base);
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

/* ============================================================
   Comparison Grid
   ============================================================ */
.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
}

.comparison-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.comparison-card.myth {
    border-top: 3px solid var(--sacred-green);
}

.comparison-card.reality {
    border-top: 3px solid var(--crimson-light);
}

.comparison-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-6);
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-subtle);
}

.comparison-icon {
    font-size: var(--text-2xl);
}

.comparison-label {
    font-weight: 700;
    font-size: var(--text-base);
}

/* ============================================================
   Source List
   ============================================================ */
.source-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    margin-top: var(--space-6);
}

.source-item {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.source-item:hover {
    border-color: var(--border-medium);
    background: var(--bg-card-hover);
}

.source-icon {
    font-size: var(--text-2xl);
    flex-shrink: 0;
    margin-top: 2px;
}

.source-info {
    flex: 1;
}

.source-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-1);
    color: var(--text-primary);
}

.source-author {
    font-size: var(--text-sm);
    color: var(--saffron);
    margin-bottom: var(--space-2);
    font-style: italic;
}

.source-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-3);
}

.source-info a {
    font-size: var(--text-sm);
    font-weight: 600;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-16) var(--space-6) var(--space-8);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-10);
    margin-bottom: var(--space-12);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--gold);
    margin-bottom: var(--space-4);
}

.footer-brand p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-section h4 {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: var(--space-4);
}

.footer-section a {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-2);
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--saffron);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: var(--space-6);
}

.footer-bottom p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-bottom .disclaimer {
    margin-top: var(--space-4);
    font-size: var(--text-xs);
    color: var(--text-muted);
    opacity: 0.7;
    line-height: 1.6;
}

/* ============================================================
   Founder Card
   ============================================================ */
.founder-card {
    display: flex;
    gap: var(--space-8);
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    margin-top: var(--space-8);
}

.founder-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    flex-shrink: 0;
    box-shadow: 0 0 30px rgba(192, 144, 48, 0.2);
}

.founder-info h3 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-1);
    margin-top: 0;
    color: var(--text-primary);
}

.founder-title {
    font-size: var(--text-sm);
    color: var(--saffron);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.founder-info p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

/* ============================================================
   Next Chapter Bar
   ============================================================ */
.next-chapter {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-10) var(--space-6);
    text-align: center;
}

.next-chapter-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-2);
}

.next-chapter-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--gold);
    margin-bottom: var(--space-2);
}

.next-chapter-title a {
    color: inherit;
    transition: color var(--transition-fast);
}

.next-chapter-title a:hover {
    color: var(--saffron);
}

/* ============================================================
   Journey Progress Bar
   ============================================================ */
.journey-progress {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(192, 144, 48, 0.1);
    z-index: 999;
}

.journey-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--crimson-light), var(--saffron), var(--gold));
    width: 0%;
    transition: width 0.1s linear;
}

/* ============================================================
   Utility Classes
   ============================================================ */
.text-center { text-align: center; }
.text-saffron { color: var(--saffron); }
.text-gold { color: var(--gold); }
.text-crimson { color: var(--crimson-light); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

/* ============================================================
   Reveal Animations
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   Modal / Lightbox
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
}

.modal-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--radius-lg);
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: var(--text-xl);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--crimson);
    border-color: var(--crimson);
}

/* ============================================================
   Tabs
   ============================================================ */
.tabs {
    margin: var(--space-8) 0;
}

.tab-list {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: var(--space-6);
    overflow-x: auto;
}

.tab-btn {
    padding: var(--space-3) var(--space-6);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-secondary);
}

.tab-btn.active {
    color: var(--saffron);
    border-bottom-color: var(--saffron);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ============================================================
   Animations (Keyframes)
   ============================================================ */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================================
   Responsive Design
   ============================================================ */
@media (max-width: 1100px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(8, 8, 16, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: var(--space-6);
        gap: var(--space-2);
        transform: translateX(100%);
        transition: transform var(--transition-base);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .mobile-overlay.active {
        display: block;
    }

    .nav-link {
        padding: var(--space-4) var(--space-4);
        font-size: var(--text-base);
        border-radius: var(--radius-md);
    }

    .mobile-menu-btn {
        display: flex;
    }
}

@media (max-width: 900px) {
    :root {
        --text-7xl: 3rem;
        --text-5xl: 2.25rem;
        --text-4xl: 1.875rem;
    }

    .card-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }

    .comparison {
        grid-template-columns: 1fr;
    }

    .founder-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 640px) {
    :root {
        --text-7xl: 2.25rem;
        --text-5xl: 1.875rem;
        --text-4xl: 1.5rem;
        --text-3xl: 1.375rem;
    }

    .section {
        padding: var(--space-16) var(--space-4);
    }

    .card-grid-3 {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .hero-title {
        font-size: 2rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: var(--space-12) !important;
        padding-right: var(--space-4) !important;
        text-align: left !important;
    }

    .timeline-dot {
        left: 12px !important;
        right: auto !important;
    }

    .page-header-title {
        font-size: var(--text-4xl);
    }

    .btn-lg {
        padding: var(--space-4) var(--space-6);
        font-size: var(--text-base);
    }
}

/* ============================================================
   Portrait
   ============================================================ */
.portrait-float {
    float: right;
    margin: 0 0 var(--space-6) var(--space-8);
    max-width: 280px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-medium);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(122, 21, 32, 0.2);
}

.portrait-float img {
    width: 100%;
    border-radius: var(--radius-lg);
}

.portrait-caption {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--text-muted);
    padding: var(--space-2);
    font-style: italic;
}

@media (max-width: 640px) {
    .portrait-float {
        float: none;
        margin: var(--space-4) auto;
        max-width: 220px;
    }
}
