/* ============================================
   BNDGG - Bilal Nation Defending Grave Gang
   Main Stylesheet - styles.css
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-black: #0a0a0a;
    --color-black-rich: #0d0d0d;
    --color-void: #050505;
    --color-dark-gray: #1a1a1c;
    --color-mid-gray: #2a2a2e;
    --color-gray: #3d3d42;
    --color-light-gray: #6b6b72;
    --color-off-white: #c8c8cc;
    --color-white: #f0f0f0;
    --color-pure-white: #ffffff;
    --color-accent: #e8e8ec;
    --color-bone: #d4cfc4;
    --color-bone-dark: #a89f91;
    --color-blood: #3a1015;

    --font-heading: 'Cinzel', 'Georgia', 'Times New Roman', serif;
    --font-body: 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    --font-narrative: 'Crimson Text', 'Georgia', serif;

    --max-width: 1100px;
    --header-height: 70px;
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-black);
    color: var(--color-off-white);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- Selection --- */
::selection {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--color-pure-white);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--color-void);
}
::-webkit-scrollbar-thumb {
    background: var(--color-gray);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-light-gray);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-pure-white);
}

a {
    color: var(--color-off-white);
    text-decoration: none;
    transition: color var(--transition-smooth);
}
a:hover {
    color: var(--color-pure-white);
}

strong {
    color: var(--color-pure-white);
    font-weight: 600;
}

em {
    color: var(--color-bone);
    font-style: italic;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background var(--transition-smooth), border-color var(--transition-smooth);
    height: var(--header-height);
}

.site-header.scrolled {
    background: rgba(8, 8, 8, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.logo-symbol {
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--color-pure-white);
    white-space: nowrap;
}

/* Navigation */
.main-nav .nav-list {
    list-style: none;
    display: flex;
    gap: 6px;
}

.nav-link {
    display: block;
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-light-gray);
    border-radius: 4px;
    transition: all var(--transition-smooth);
    position: relative;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-pure-white);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--color-pure-white);
    border-radius: 1px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--color-pure-white);
    border-radius: 2px;
    transition: all var(--transition-smooth);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #1a1a1e 0%, #0a0a0c 40%, #030303 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.15) 2px,
            rgba(0, 0, 0, 0.15) 4px
        );
    pointer-events: none;
    z-index: 1;
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100vh) translateX(40px);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 24px;
    max-width: 750px;
}

.hero-symbol-container {
    margin-bottom: 30px;
    margin-top: 20px;
    animation: symbolPulse 4s ease-in-out infinite;
}

@keyframes symbolPulse {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
    }
    50% {
        filter: drop-shadow(0 0 35px rgba(255, 255, 255, 0.25));
    }
}

.hero-symbol {
    width: 120px;
    height: auto;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--color-pure-white);
    text-shadow: 0 0 60px rgba(255, 255, 255, 0.08);
}

.hero-subtitle {
    font-family: var(--font-narrative);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-bone);
    letter-spacing: 0.04em;
    margin-bottom: 20px;
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 0.7rem;
    color: var(--color-light-gray);
    letter-spacing: 0.1em;
}

.divider-dot {
    font-size: 0.4rem;
    color: var(--color-bone);
}

.hero-quote {
    font-family: var(--font-narrative);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--color-light-gray);
    margin-bottom: 40px;
}

.hero-scroll-indicator {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: opacity var(--transition-smooth);
    animation: bounceDown 2s ease-in-out infinite;
}

.hero-scroll-indicator:hover {
    opacity: 0.7;
}

.scroll-arrow {
    font-size: 1.2rem;
    color: var(--color-bone);
}

.scroll-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-light-gray);
}

@keyframes bounceDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* ============================================
   CONTENT SECTIONS (Shared)
   ============================================ */
.content-section {
    padding: 100px 24px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--color-bone-dark);
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.section-underline {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-bone), transparent);
    margin: 0 auto;
    border-radius: 1px;
}

.section-intro {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 40px;
    font-family: var(--font-narrative);
    font-size: 1.1rem;
    color: var(--color-light-gray);
    font-style: italic;
}

.section-body {
    margin-top: 20px;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.two-col.reverse {
    direction: rtl;
}
.two-col.reverse > * {
    direction: ltr;
}

.section-text {
    font-size: 1rem;
    color: var(--color-off-white);
}

.section-text p {
    margin-bottom: 16px;
}

.drop-cap::first-letter {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    float: left;
    line-height: 0.75;
    padding-right: 10px;
    padding-top: 4px;
    color: var(--color-pure-white);
}

/* Section Visual Cards */
.section-visual {
    display: flex;
    justify-content: center;
}

.visual-card {
    background: var(--color-dark-gray);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    max-width: 300px;
    width: 100%;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.visual-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.visual-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(-4px);
}

.visual-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.visual-label {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-pure-white);
    margin-bottom: 4px;
}

.visual-sub {
    font-size: 0.85rem;
    color: var(--color-light-gray);
    margin-bottom: 12px;
}

.visual-quote {
    font-family: var(--font-narrative);
    font-style: italic;
    font-size: 0.9rem;
    color: var(--color-bone-dark);
}

/* ============================================
   ORIGINS SECTION
   ============================================ */
.origins-section {
    background: var(--color-black-rich);
}

.origins-visual {
    background: linear-gradient(180deg, #1c1c20 0%, #151518 100%);
}

/* ============================================
   SYMBOLS SECTION
   ============================================ */
.symbols-section {
    background: var(--color-black);
}

.symbols-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.symbol-card {
    background: var(--color-dark-gray);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 28px 22px;
    text-align: center;
    transition: all var(--transition-smooth);
}

.symbol-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.symbol-icon {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    min-height: 60px;
    align-items: center;
}

.symbol-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--color-pure-white);
}

.symbol-card p {
    font-size: 0.9rem;
    color: var(--color-light-gray);
    line-height: 1.5;
}

.colors-card {
    display: flex;
    flex-direction: column;
}

.color-swatches {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 16px;
}

.swatch {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-smooth);
    cursor: default;
}

.swatch:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.swatch-black {
    background: #0a0a0a;
    color: #888;
}
.swatch-gray {
    background: #3a3a3e;
    color: #ccc;
}
.swatch-white {
    background: #e8e8e8;
    color: #222;
    border-color: rgba(0, 0, 0, 0.3);
}

/* ============================================
   HIERARCHY SECTION
   ============================================ */
.hierarchy-section {
    background: var(--color-black-rich);
}

.hierarchy-pyramid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 700px;
    margin: 0 auto;
}

.rank-card {
    background: var(--color-dark-gray);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 24px 28px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    width: 100%;
    max-width: 550px;
    transition: all var(--transition-smooth);
    position: relative;
}

.rank-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5);
    transform: translateX(4px);
}

.rank-mourner {
    max-width: 600px;
    border-color: rgba(255, 255, 255, 0.18);
    background: linear-gradient(180deg, #222228 0%, #1a1a1e 100%);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.03);
}

.rank-badge {
    font-size: 2rem;
    flex-shrink: 0;
    width: 50px;
    text-align: center;
    line-height: 1;
}

.rank-info {
    flex: 1;
}

.rank-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-pure-white);
    margin-bottom: 2px;
}

.rank-level {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-bone-dark);
    margin-bottom: 8px;
}

.rank-desc {
    font-size: 0.9rem;
    color: var(--color-light-gray);
    line-height: 1.5;
}

.rank-connector {
    width: 2px;
    height: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    border-radius: 1px;
}

.rank-row-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    max-width: 550px;
}

.rank-row-bottom .rank-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 22px 18px;
}

.rank-row-bottom .rank-badge {
    font-size: 1.6rem;
    width: auto;
}

/* ============================================
   CODE OF HONOR SECTION
   ============================================ */
.code-section {
    background: var(--color-black);
}

.code-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 750px;
    margin: 0 auto;
}

.code-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--color-dark-gray);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 20px 24px;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.code-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-bone-dark);
    border-radius: 0 2px 2px 0;
    transition: all var(--transition-smooth);
}

.code-item:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.code-item:hover::before {
    width: 5px;
    background: var(--color-bone);
}

.code-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-bone-dark);
    flex-shrink: 0;
    width: 40px;
    text-align: center;
    opacity: 0.7;
}

.code-content {
    flex: 1;
}

.code-content h3 {
    font-size: 1rem;
    color: var(--color-pure-white);
    margin-bottom: 4px;
}

.code-content p {
    font-size: 0.88rem;
    color: var(--color-light-gray);
    line-height: 1.5;
}

.code-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    opacity: 0.7;
}

/* ============================================
   OPERATIONS SECTION
   ============================================ */
.operations-section {
    background: var(--color-black-rich);
}

.ops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.ops-card {
    background: var(--color-dark-gray);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 30px 22px;
    text-align: center;
    transition: all var(--transition-smooth);
}

.ops-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5);
}

.ops-icon {
    font-size: 2.5rem;
    margin-bottom: 14px;
}

.ops-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--color-pure-white);
}

.ops-card p {
    font-size: 0.88rem;
    color: var(--color-light-gray);
    line-height: 1.5;
}

/* ============================================
   MYTHOLOGY SECTION
   ============================================ */
.mythology-section {
    background: var(--color-black);
}

.myth-text {
    font-family: var(--font-narrative);
    font-size: 1.05rem;
}

.myth-highlight {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-bone);
    border-left: 3px solid var(--color-bone-dark);
    padding-left: 20px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.myth-visual {
    background: linear-gradient(180deg, #1a1a22 0%, #111118 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

.whisper-effect {
    margin-top: 16px;
    font-family: var(--font-narrative);
    font-style: italic;
    font-size: 0.85rem;
    color: var(--color-bone-dark);
    min-height: 24px;
    transition: all 0.5s ease;
    letter-spacing: 0.04em;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--color-void);
    padding: 60px 24px 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
    max-width: 500px;
    margin: 0 auto;
}

.footer-symbol {
    margin-bottom: 16px;
    opacity: 0.5;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--color-pure-white);
    margin-bottom: 4px;
}

.footer-subtitle {
    font-size: 0.8rem;
    color: var(--color-light-gray);
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

.footer-divider {
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 auto 16px;
}

.footer-motto {
    font-family: var(--font-narrative);
    font-style: italic;
    color: var(--color-bone);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.footer-location {
    font-size: 0.8rem;
    color: var(--color-light-gray);
    margin-bottom: 20px;
}

.footer-copy {
    font-size: 0.7rem;
    color: var(--color-gray);
    letter-spacing: 0.04em;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS (JS adds classes)
   ============================================ */
.scroll-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-hidden.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children — parent must have .stagger-container and .revealed */
.stagger-container.revealed > .scroll-hidden:nth-child(1) { transition-delay: 0.05s; }
.stagger-container.revealed > .scroll-hidden:nth-child(2) { transition-delay: 0.12s; }
.stagger-container.revealed > .scroll-hidden:nth-child(3) { transition-delay: 0.19s; }
.stagger-container.revealed > .scroll-hidden:nth-child(4) { transition-delay: 0.26s; }
.stagger-container.revealed > .scroll-hidden:nth-child(5) { transition-delay: 0.33s; }
.stagger-container.revealed > .scroll-hidden:nth-child(6) { transition-delay: 0.40s; }
.stagger-container.revealed > .scroll-hidden:nth-child(7) { transition-delay: 0.47s; }
.stagger-container.revealed > .scroll-hidden:nth-child(8) { transition-delay: 0.54s; }

/* Ensure children are visible when revealed */
.stagger-container.revealed > .scroll-hidden {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .two-col {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .two-col.reverse {
        display: flex;
        flex-direction: column-reverse;
    }

    .section-visual {
        order: -1;
    }

    .two-col.reverse .section-visual {
        order: -1;
    }

    .hierarchy-pyramid {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .content-section {
        padding: 70px 16px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-symbol {
        width: 90px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    /* Mobile Navigation */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 90px 30px 40px;
        transition: right var(--transition-smooth);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 999;
    }

    .main-nav.open {
        right: 0;
    }

    .main-nav .nav-list {
        flex-direction: column;
        gap: 4px;
    }

    .nav-link {
        font-size: 0.95rem;
        padding: 14px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile overlay */
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 998;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition-smooth);
    }

    .nav-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* Rank cards */
    .rank-row-bottom {
        grid-template-columns: 1fr;
    }

    .rank-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .code-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .code-item::before {
        left: 50%;
        transform: translateX(-50%);
        top: 0;
        bottom: auto;
        width: 40px;
        height: 3px;
        border-radius: 0 0 2px 2px;
    }

    .code-item:hover::before {
        width: 50px;
        height: 3px;
    }

    .symbols-grid,
    .ops-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .symbols-grid,
    .ops-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-symbol {
        width: 70px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .drop-cap::first-letter {
        font-size: 2.5rem;
    }
}

/* Icon styling – adjust size and color as needed */
.icon-logo {
    width: 40px;
    height: auto;
}
.icon-hero {
    width: 120px;
    height: auto;
}
.icon-visual {
    width: 60px;
    height: auto;
}
.icon-symbol {
    width: 55px;
    height: auto;
}
.icon-rank {
    width: 48px;
    height: auto;
}
.icon-code {
    width: 64px;
    height: auto;
}
.icon-footer {
    width: 50px;
    height: auto;
}
/* ============================================
   AMBIENT AUDIO TOGGLE BUTTON
   ============================================ */
.audio-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition-smooth);
    padding: 0;
    outline: none;
}

.audio-toggle:hover {
    background: rgba(20, 20, 20, 0.9);
    border-color: rgba(255, 255, 255, 0.35);
    transform: scale(1.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.audio-toggle:active {
    transform: scale(0.95);
}

/* Show/hide icons based on audio state */
.audio-toggle.playing .audio-icon-off {
    display: none;
}
.audio-toggle.playing .audio-icon-on {
    display: inline;
}
.audio-toggle:not(.playing) .audio-icon-on {
    display: none;
}
.audio-toggle:not(.playing) .audio-icon-off {
    display: inline;
}

/* Mobile adjustment */
@media (max-width: 768px) {
    .audio-toggle {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
/* If you want all icons to appear white on dark background, uncomment:
img[src^="Icons/"] {
    filter: brightness(0) invert(1);
}
*/