@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital@1&family=EB+Garamond:ital,wght@1,500&display=swap');

:root {
    --primary: #003366;
    --accent: #00d4ff;
    --gold: #ffcc00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: #fff;
    color: #2d2d2d;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- HOME (INDEX) NAVBAR: TRANSPARENT ON TOP --- */
.home .navbar{
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  box-shadow: none;
}

/* White text on top of video */
.home .logo,
.home .nav-links a{
  color: #fff;
}

/* Dropdown looks good on dark hero */
.home .dropdown-content{
  background: rgba(0,0,0,0.85);
  border-top: 3px solid var(--accent);
  backdrop-filter: blur(10px);
}
.home .dropdown-content a{
  color: rgba(255,255,255,0.9);
}
.home .dropdown-content a:hover{
  color: var(--accent);
}

/* When scrolled: switch to white navbar */
.navbar.scrolled{
  background: rgba(255,255,255,0.98) !important;
  border-bottom: 1px solid #eee !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06) !important;
}
.home .navbar.scrolled .logo,
.home .navbar.scrolled .nav-links a{
  color: #444 !important;
}

/* --- NAVIGATION & DROPDOWN (No Underlines, Stable) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: #fff;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
    height: 80px;
    border-bottom: 1px solid #eee;
}

a, .logo, .nav-links a, .dropdown-content a, footer a {
    text-decoration: none !important;
}

.logo {
    font-weight: 300;
    font-size: 1.5rem;
    color: #2d2d2d;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}

.logo span {
    font-weight: 800;
    color: var(--accent);
    margin-left: 4px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
    height: 100%;
}

.nav-links a {
    color: #444;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Dropdown Bridge & Stability */
.dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 3px solid var(--accent);
    padding: 10px 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    padding: 12px 20px;
    display: block;
    color: #444;
    text-transform: none;
    font-size: 0.9rem;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.12);
    z-index: -1;
}

.hero-glass {
    position: relative;
    z-index: 1;
}

.hero-glass h1 {
    color: #fff;
    font-size: clamp(2rem, 8vw, 2.8rem);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 30px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

/* --- HIGHER PERCEPTION SECTION (Organic Threads & Glow) --- */
.vision-section {
    padding: 120px 20px;
    text-align: center;
    min-height: 85vh;
    background: radial-gradient(circle at center, #0a1125 0%, #000 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section-header h2 {
    font-size: 2rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.section-header p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 40px;
}

.center-node {
    width: 120px;
    height: 120px;
    background: var(--primary);
    border: 2px solid #fff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.8), 0 0 100px rgba(255, 204, 0, 0.4);
    z-index: 10;
    position: relative;
    line-height: 1.3;
}

/* Golden Organic Threads (Worm-like Filaments) */
.center-node::before,
.center-node::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
}

.center-node::before {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, transparent 20%, rgba(255, 204, 0, 0.2) 100%);
    border: 1px solid rgba(255, 204, 0, 0.4);
    mask-image: conic-gradient(from 0deg, #000 0deg, transparent 10deg, #000 20deg, transparent 40deg);
    -webkit-mask-image: conic-gradient(from 0deg, #000 0deg, transparent 10deg, #000 20deg, transparent 40deg);
    animation: threadSpin 12s linear infinite;
}

.center-node::after {
    width: 600px;
    height: 600px;
    border: 0.5px solid rgba(255, 215, 0, 0.3);
    mask-image: conic-gradient(from 180deg, #000 5deg, transparent 15deg, #000 45deg);
    -webkit-mask-image: conic-gradient(from 180deg, #000 5deg, transparent 15deg, #000 45deg);
    animation: threadSpin 20s linear reverse infinite;
}

.pulse-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    animation: outerPulse 4s ease-out infinite;
}

@keyframes threadSpin {
    from { transform: translate(-50%, -50%) rotate(0deg) scale(0.8); }
    50%  { transform: translate(-50%, -50%) rotate(180deg) scale(1.1); }
    to   { transform: translate(-50%, -50%) rotate(360deg) scale(0.8); }
}

@keyframes outerPulse {
    0%   { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(4.5); opacity: 0; }
}

/* --- PROBLEM GRID & INTRO TEXT --- */
.grid-section {
    background: #000;
    padding: 100px 8%;
    color: #fff;
}

.grid-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.grid-intro h2 {
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    color: var(--accent);
}

.grid-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.7;
    font-weight: 300;
}

.banners-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.banner-card {
    height: 320px;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.banner-card.flipped .card-inner {
    transform: rotateY(180deg);
}

/* Flip on hover (desktop) */
.banner-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    display: block;
    overflow-y: auto;
    text-align: left;
    padding: 25px;
}

.card-front {
    background: #0d0d0d;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.card-back {
    background: var(--primary);
    color: #fff;
    transform: rotateY(180deg);
    font-size: 0.95rem;
}

/* Scrollbar */
.card-back::-webkit-scrollbar { width: 6px; }
.card-back::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.card-back::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

/* --- FOUNDER PAGE STYLES --- */
.about-hero { padding: 160px 8% 80px; background: #fff; }
.about-container { display: flex; align-items: center; gap: 60px; max-width: 1200px; margin: 0 auto; }
.about-text { flex: 1.2; }
.about-text h2 { font-size: 2.8rem; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 25px; color: var(--primary); }
.about-text p { font-size: 1.1rem; color: #555; margin-bottom: 20px; line-height: 1.8; }
.about-image { flex: 0.8; }
.about-image img { width: 100%; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.1); border: 1px solid #eee; }

/* Kindle Section */
.kindle-section { padding: 80px 8%; background: #f8f9fa; }
.kindle-promo { max-width: 1000px; margin: 0 auto; background: #fff; padding: 50px; border-radius: 30px; display: flex; align-items: center; gap: 50px; box-shadow: 0 15px 40px rgba(0,0,0,0.05); }
.kindle-img-box { flex: 0.6; }
.kindle-img { width: 100%; max-width: 250px; border-radius: 5px; box-shadow: 5px 15px 30px rgba(0,0,0,0.2); }
.kindle-info { flex: 1.4; }
.kindle-info h3 { font-size: 2rem; margin: 10px 0 20px; color: var(--primary); }
.btn-dark { padding: 15px 40px; background: #000; color: #fff; border-radius: 50px; text-transform: uppercase; font-size: 0.8rem; font-weight: 600; letter-spacing: 2px; transition: 0.3s; display: inline-block; }
.btn-dark:hover { background: var(--accent); transform: translateY(-3px); }

/* --- FOOTER --- */
footer {
    padding: 60px 8%;
    background: #0a0a0a;
    color: #fff;
    border-top: 2px solid var(--accent);
    text-align: center;
}

/* --- SOCIALS INTEGRATION --- */
.footer-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

.footer-socials a {
    color: #ffffff !important;
    font-size: 1.4rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-socials a:hover {
    color: var(--accent) !important;
    transform: translateY(-5px);
}

/* --- FOUNDER SOCIAL LINKS --- */
.founder-socials {
    display: flex;
    gap: 20px;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.founder-socials a {
    color: var(--primary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.founder-socials a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

/* --- QUOTE SECTION --- */
.quote-section {
    padding: 120px 20px;
    background: #ffffff;
    text-align: center;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.quote-section .section-header p {
    font-family: 'EB Garamond', serif;
    font-size: 1.8rem;
    font-style: italic;
    color: #333333;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.quote-section .section-header p::before {
    content: "\201C";
    display: block;
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 10px;
    font-family: serif;
}

/* --- SIMPLE REFERENCE SECTION --- */
.simple-ref-section {
    padding: 80px 8%;
    background: #000;
    color: #fff;
    border-top: 1px solid #222;
}

.ref-main-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 40px;
    text-align: left;
}

.ref-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.ref-list {
    list-style: none;
    padding: 0;
}

.ref-list li {
    margin-bottom: 15px;
    font-family: 'EB Garamond', serif;
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start;
}

.ref-num {
    color: var(--accent);
    margin-right: 15px;
    font-weight: bold;
    min-width: 30px;
}

.ref-list a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: 0.3s;
}

.ref-list a:hover {
    color: #fff;
    padding-left: 5px;
}

/* --- BLOG PAGE STYLES --- */
.blog-container { padding: 140px 8% 80px; max-width: 1400px; margin: 0 auto; }
.blog-header { text-align: center; margin-bottom: 60px; }
.blog-header h2 { font-size: 2.5rem; text-transform: uppercase; letter-spacing: 4px; color: var(--primary); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }

.blog-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s ease;
    border: 1px solid #eee;
}
.blog-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

.blog-img { position: relative; height: 230px; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-img .category {
    position: absolute; top: 20px; left: 20px;
    background: var(--accent); color: #fff;
    padding: 5px 15px; font-size: 0.7rem;
    text-transform: uppercase; font-weight: 700;
    border-radius: 20px;
}

.blog-content { padding: 30px; }
.blog-content .date { font-size: 0.8rem; color: #999; display: block; margin-bottom: 10px; }
.blog-content h3 { font-size: 1.4rem; margin-bottom: 15px; color: #2d2d2d; line-height: 1.3; }
.blog-content p { font-size: 0.95rem; color: #666; margin-bottom: 20px; }

.read-more {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.read-more:hover { color: var(--accent); }

/* --- PAGINATION --- */
.pagination { margin-top: 80px; display: flex; justify-content: center; align-items: center; gap: 10px; }
.page-num, .page-btn {
    width: 45px; height: 45px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #eee; border-radius: 50%;
    color: #444; font-weight: 600;
    transition: 0.3s;
}
.page-num.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-num:hover:not(.active) { background: #f4f4f4; border-color: var(--accent); }
.dots { color: #999; }

/* --- SINGLE BLOG POST STYLES --- */
.single-post-container { max-width: 800px; margin: 0 auto; padding: 160px 20px 80px; }
.post-header { text-align: center; margin-bottom: 50px; }
.post-meta { text-transform: uppercase; letter-spacing: 2px; font-size: 0.75rem; color: #888; margin-bottom: 15px; }
.category-tag { color: var(--accent); font-weight: 700; }
.post-header h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; margin-bottom: 20px; color: var(--primary); }
.post-subtitle { font-size: 1.2rem; color: #666; font-style: italic; margin-bottom: 30px; }

.post-author { display: flex; align-items: center; justify-content: center; gap: 15px; }
.post-author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.post-author span { font-size: 0.9rem; font-weight: 600; }

.post-hero-image { width: 100%; margin-bottom: 60px; }
.post-hero-image img { width: 100%; border-radius: 15px; box-shadow: 0 20px 50px rgba(0,0,0,0.1); }

.post-content {
    font-family: 'EB Garamond', serif;
    font-size: 1.25rem;
    line-height: 1.8;
    color: #333;
}
.post-content p { margin-bottom: 25px; }

.dropcap {
    float: left;
    font-size: 4.5rem;
    line-height: 1;
    font-weight: bold;
    margin-right: 15px;
    color: var(--primary);
}

.post-content h2, .post-content h3 {
    font-family: 'Inter', sans-serif;
    color: var(--primary);
    margin: 50px 0 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

blockquote {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 1.6rem;
    border-left: 4px solid var(--accent);
    padding-left: 30px;
    margin: 40px 0;
    color: #555;
}

.post-content ul { margin-bottom: 30px; padding-left: 20px; }
.post-content li { margin-bottom: 10px; }

.post-footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-links { display: flex; align-items: center; gap: 15px; }
.share-links i { font-size: 1.2rem; color: var(--primary); transition: 0.3s; }
.share-links i:hover { color: var(--accent); }

.back-to-blog a {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #999;
}
.back-to-blog a:hover { color: var(--primary); }

/* --- JOIN THE MOVEMENT / SUBSCRIBE SECTION --- */
.join-section { padding: 140px 8%; text-align: center; min-height: 60vh; background: #ffffff; }
.join-container { max-width: 600px; margin: 0 auto; }
.join-container h2 { font-size: 2.2rem; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 20px; color: var(--primary); }
.join-container p { font-size: 1.1rem; color: #666; margin-bottom: 40px; }

.subscribe-box { background: #f9f9f9; padding: 40px; border-radius: 15px; border: 1px solid #eee; }
.subscribe-group { display: flex; gap: 10px; }
.subscribe-group input { flex: 2; padding: 15px; border: 1px solid #ddd; border-radius: 5px; outline: none; font-size: 1rem; }
.subscribe-group input:focus { border-color: var(--accent); }
.subscribe-group button { flex: 1; background: var(--primary); color: #fff; border: none; border-radius: 5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: 0.3s; }
.subscribe-group button:hover { background: var(--accent); transform: translateY(-2px); }

.unsubscribe-note { font-size: 11px; color: #999; margin-top: 20px; line-height: 1.4; }
.unsubscribe-note a { color: #666; text-decoration: underline !important; }

#status-message { font-size: 12px; margin-top: 15px; font-weight: 600; display: none; }

/* --- VISION POPUP STYLES --- */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 5000;
    padding: 20px;
}

.popup-content {
    background: #fff;
    max-width: 500px;
    width: 100%;
    padding: 50px 40px;
    border-radius: 20px;
    position: relative;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    animation: popupFadeIn 0.5s ease forwards;
}

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

.close-popup {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: 0.3s;
}
.close-popup:hover { color: #000; }

.popup-tag {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 15px;
}

.popup-inner h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.popup-inner p { color: #666; margin-bottom: 30px; line-height: 1.6; }

.popup-btn {
    display: inline-block;
    padding: 15px 35px;
    background: var(--primary);
    color: #fff;
    text-decoration: none !important;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: 0.3s;
}

.popup-btn:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
}

/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */
@media (max-width: 992px) {
    /* Tablet navbar - always dark background so logo is visible */
    .home .navbar {
        background: rgba(0, 0, 0, 0.95) !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .banners-container { grid-template-columns: repeat(2, 1fr); }
    .about-container, .kindle-promo { flex-direction: column; text-align: center; }
    .about-image { order: -1; margin-bottom: 40px; }
    
    /* Tablet Hero Video Fix - Show full video */
    .hero {
        height: auto;
        min-height: auto;
        padding-top: 80px;
        background: #000;
    }
    
    .hero-video {
        position: relative;
        width: 100%;
        height: auto;
        object-fit: contain;
        background: #000;
        display: block;
    }
    
    .hero-overlay {
        display: none;
    }
}

/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

/* Hide hamburger on desktop */
.menu-toggle { display: none; }

/* Mobile Hero Video Fix - Show full video */
@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: auto;
        padding-top: 80px;
        background: #000;
    }
    
    .hero-video {
        position: relative;
        width: 100%;
        height: auto;
        object-fit: contain;
        background: #000;
        display: block;
    }
    
    .hero-overlay {
        display: none;
    }
}

@media (max-width: 768px) {

    /* Mobile navbar - always dark background so logo is visible */
    .home .navbar {
        background: rgba(0, 0, 0, 0.95) !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    /* Navbar */
    .navbar { z-index: 9999; }

    /* Hamburger visible */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }

    /* Hamburger bars */
    .menu-toggle span {
        width: 26px;
        height: 2px;
        border-radius: 2px;
        background: var(--primary);
        transition: 0.25s ease;
    }

    /* Home page: white bars on hero */
    body.home .menu-toggle span { background: #fff; }
    body.home .navbar.scrolled .menu-toggle span { background: #111; }

    /* Fullscreen mobile menu panel */
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        overflow-y: auto;
        padding: 16px 0;
        gap: 0;
        z-index: 9998;
    }

    /* show when JS toggles */
    .nav-links.active { display: flex; }

    /* Background theme */
    body.home .nav-links {
        background: rgba(0,0,0,0.95);
        backdrop-filter: blur(12px);
        border-top: 1px solid rgba(255,255,255,0.12);
    }
    body:not(.home) .nav-links {
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0,0,0,0.08);
    }

    /* Nav items */
    .nav-links li { 
        width: 100%; 
        text-align: left; 
        height: auto;
    }

    .nav-links > li > a {
        display: block;
        padding: 16px 24px;
        text-transform: uppercase;
        letter-spacing: 2px;
        font-size: 0.9rem;
    }

    body.home .nav-links > li > a { color: rgba(255,255,255,0.92); }
    body:not(.home) .nav-links > li > a { color: rgba(0,0,0,0.78); }

    /* Dropdown - disable hover, use click via JS */
    .dropdown { 
        flex-direction: column; 
        align-items: flex-start;
        height: auto;
    }
    .dropdown::after { display: none; }
    .dropdown:hover .dropdown-content { display: none; }

    .dropdown-content {
        position: static;
        width: 100%;
        min-width: 0;
        box-shadow: none;
        border-top: none;
        padding: 0;
        display: none;
        background: transparent;
    }

    /* Show dropdown when .open class is added by JS */
    .dropdown.open .dropdown-content { 
        display: block; 
    }

    .dropdown-content a {
        display: block;
        padding: 14px 40px;
        text-transform: none;
        font-size: 0.85rem;
    }

    body.home .dropdown-content {
        background: rgba(255,255,255,0.05);
    }
    body.home .dropdown-content a { 
        color: rgba(255,255,255,0.8); 
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    body.home .dropdown-content a:hover { color: var(--accent); }

    body:not(.home) .dropdown-content {
        background: rgba(0,0,0,0.03);
    }
    body:not(.home) .dropdown-content a { 
        color: rgba(0,0,0,0.65); 
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    body:not(.home) .dropdown-content a:hover { color: var(--accent); }

    /* Grid adjustments */
    .banners-container { grid-template-columns: 1fr; }
    .grid-intro h2 { font-size: 1.6rem; }
    .grid-intro p { font-size: 0.95rem; }

    /* Reference section */
    .ref-grid-container { grid-template-columns: 1fr; }

    /* Footer socials spacing */
    .footer-socials { gap: 25px; }

    /* Blog grid */
    .blog-grid { grid-template-columns: 1fr; }
}

/* small phones: subscribe stack */
@media (max-width: 600px) {
    .subscribe-group { flex-direction: column; }
    .logo { font-size: 1.2rem; }
}