/* layout.css */

/* Header - MODIFIED AND NEW STYLES FOR STICKY/COMPACT NAVBAR */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0; 
    position: sticky;
    top: 0;
    /* The header should be high, but the menu needs to be higher */
    z-index: 999;
    /* Smoother and slightly faster transitions */
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), /* Fast Out, Slow In */
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%; 
    width: 100%;
}

.logo {
    font-size: 1.8rem; 
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center; 
    gap: 0.5rem; /* Increased gap for better spacing */
    transition: font-size 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Ensure link also has proper spacing */
    text-decoration: none;
    color: inherit;
}

.logo a:hover {
    text-decoration: none;
}

.logo a:hover .logo-icon {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.logo-icon {
    font-size: 1.5rem; 
    color: var(--accent);
    display: flex; 
    align-items: center;
    justify-content: center;
    transition: font-size 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 24px; /* Ensure consistent width */
}

.logo .logo-text {
    display: inline-block; 
    vertical-align: middle; 
    white-space: nowrap; 
    opacity: 1;
    max-width: 120px; /* Increased to prevent clipping */
    color: var(--primary); 
    font-size: inherit; 
    font-weight: inherit; 
    line-height: 1; 
    /* Smoother and slightly faster transitions */
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.03s, /* Slight delay */
                visibility 0s linear 0.3s; 
    visibility: visible;
}

/* Desktop Nav Links - visible by default */
.nav-links {
    display: flex;
    gap: 1.8rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    transition: gap 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode toggle in nav */
.nav-dark-mode-toggle {
    margin-left: 1rem;
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hide dark mode toggle when scrolled - use display to remove from layout */
header.scrolled .nav-dark-mode-toggle {
    display: none;
}

.nav-links a {
    color: var(--dark);
    font-weight: 500;
    position: relative;
    text-decoration: none;
    padding: 0.5rem 0.1rem; 
    transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                font-size 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0px; 
    left: 0;
    background-color: var(--primary);
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1); 
}

.nav-links a:hover::after,
.nav-links a.active::after { 
    width: 100%;
}

.nav-links a.active {
    color: var(--primary);
    font-weight: 600; 
}

/* Mobile Menu Icon - hidden by default on desktop */
.mobile-menu {
    display: none;
}

/* --- START: BUTTON STYLE FIXES --- */
header .btn { 
    padding: 0.65rem 1.3rem; 
    font-size: 0.85rem; 
    border-radius: var(--radius-md); /* Default less-rounded corners */
    /* Smoother and slightly faster transitions */
    transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                font-size 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                border-radius 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                color 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
}
/* --- END: BUTTON STYLE FIXES --- */

header .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Scrolled State 1: Navbar becomes sticky, translucent, logo text hides */
header.scrolled {
    background-color: rgba(255, 255, 255, 0.75); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07); 
    padding: 0.4rem 0; 
}

header.scrolled .logo .logo-text {
    opacity: 0;
    max-width: 0;
    visibility: hidden;
    /* Smoother and slightly faster transitions */
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                max-width 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0s linear 0.25s; 
}

/* Scrolled State 2: "Super Compact" - Pill effect */
header.super-compact {
    background-color: transparent !important; 
    box-shadow: none !important; 
    backdrop-filter: none !important; 
    padding: 0.5rem 0; 
}

header.super-compact .container {
    max-width: 650px; /* Slightly wider for better spacing */
    margin: 0 auto; 
    background-color: rgba(255, 255, 255, 0.9); /* Slightly more opaque */
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px);
    border-radius: 50px; 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* Slightly stronger shadow */
    padding: 0.5rem 1.5rem; /* Better padding */
    transform: translateY(-100%); 
    opacity: 0;
    animation: slideInPill 0.35s cubic-bezier(0.23, 1, 0.32, 1) forwards; /* Smoother animation (easeOutExpo), slightly faster */
}

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

/* Adjustments for elements inside the super-compact pill */
header.super-compact .logo {
    font-size: 1.4rem; /* Slightly larger for better visibility */
    gap: 0.4rem; /* Consistent spacing */
}

header.super-compact .logo a {
    gap: 0.4rem; /* Match parent gap */
}

header.super-compact .logo-icon {
    font-size: 1.3rem; 
    min-width: 20px; /* Consistent sizing */
    color: var(--accent); /* Ensure color is maintained */
}

/* Ensure the logo text stays hidden in super-compact */
header.super-compact .logo .logo-text {
    opacity: 0;
    max-width: 0;
    visibility: hidden;
}

header.super-compact .nav-links {
    gap: 1.2rem; /* Better spacing between nav items */
}

header.super-compact .nav-links a {
    font-size: 0.85rem; /* Slightly larger for readability */
    font-weight: 500;
    padding: 0.4rem 0.6rem; /* Better padding */
    color: var(--dark);
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
                background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-sm);
}

header.super-compact .nav-links a:hover {
    color: var(--primary);
    background-color: rgba(0, 71, 171, 0.08);
}

header.super-compact .nav-links a.active {
    color: var(--primary);
    font-weight: 600;
    background-color: rgba(0, 71, 171, 0.12);
}

header.super-compact .nav-links a::after {
    bottom: -3px; 
    height: 1.5px;
}

/* --- START: BUTTON STYLE FIXES --- */
header.super-compact .btn { 
    padding: 0.5rem 1rem; /* Better padding */
    font-size: 0.8rem; 
    border-radius: 50px; /* Pill shape for scrolled state */
}
/* --- END: BUTTON STYLE FIXES --- */

header.super-compact .btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px) scale(1.02); 
    box-shadow: 0 4px 12px rgba(0, 71, 171, 0.2);
}

/* --- START: NEW & IMPROVED MOBILE NAVIGATION STYLES --- */

/* Body scroll lock when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Animated Hamburger Icon Styles */
.mobile-menu {
    border: none;
    background: transparent;
    cursor: pointer;
    display: none; /* Hidden by default, shown in media query */
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    padding: 0;
    /* This needs to be on top of the menu so it's always clickable */
    z-index: 1001; 
    position: relative;
}

.mobile-menu span {
    width: 2rem;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    transform-origin: 1px;
}

/* 'X' animation for active state */
.mobile-menu.active span:nth-child(1) {
    transform: rotate(45deg);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Desktop styles for the subscribe button inside nav */
@media (min-width: 769px) {
    .nav-subscribe-btn-li {
        display: none; /* Hide the LI element on desktop */
    }
}


/* Mobile Menu Display Logic & Styles */
@media (max-width: 768px) {
    .mobile-menu {
        display: flex; /* Show the hamburger menu */
    }

    /* Hide the subscribe button that's outside the nav list on mobile */
    .desktop-subscribe-btn {
        display: none;
    }

    /* Dark mode toggle positioning on mobile */
    .nav-dark-mode-toggle {
        display: none;
        position: fixed;
        top: 1.1rem;
        left: 1.1rem;
        right: auto;
        z-index: 1001;
        margin-left: 0;
        padding: 0.25rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.85);
        border: 1px solid rgba(0, 0, 0, 0.08);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    /* Also hide on mobile when scrolled */
    header.scrolled .nav-dark-mode-toggle {
        display: none;
    }

    /* Only surface the toggle when the mobile menu is open */
    body.menu-open header .nav-dark-mode-toggle {
        display: flex;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    }

    /* Override existing .nav-links styles to create the full-screen overlay */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100dvh; /* Use dynamic viewport height to avoid browser chrome issues */
        min-height: 100vh;
        background:
            radial-gradient(circle at 15% 20%, rgba(0, 71, 171, 0.08), transparent 32%),
            radial-gradient(circle at 85% 10%, rgba(20, 184, 166, 0.06), transparent 28%),
            linear-gradient(165deg, #ffffff 0%, #f4f7fb 45%, #e8f0ff 100%);
        flex-direction: column;
        justify-content: flex-start; /* Align to top */
        align-items: stretch;
        gap: 1.2rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        opacity: 1;
        visibility: visible;
        padding: 5.25rem 1.5rem 2.5rem 1.5rem; /* Add padding for content */
        box-shadow: -10px 0 30px rgba(0,0,0,0.25);
        max-height: 100vh;
        overflow-y: auto;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-left: 1px solid rgba(255, 255, 255, 0.06);
        /* FIX: Ensure menu is on top of other content like the main header */
        z-index: 1000;
        color: var(--dark);
    }
    
    .nav-links.active {
        transform: translateX(0);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    /* Style for links inside the overlay */
    .nav-links li {
        width: 100%;
        max-width: 520px;
        text-align: left;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        margin: 0 auto;
    }
    
    /* Staggered animation for list items */
    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(6) { transition-delay: 0.35s; } /* For subscribe button */

    /* FIX: Make this selector more specific to override compact styles */
    .nav-links.active a:not(.btn), 
    .nav-links.active .dropdown > a {
        font-size: 1.35rem !important; /* Refined scale for overlay */
        font-weight: 700 !important;
        padding: 0.85rem 0.25rem !important; /* Tighten padding for better scanning */
        border-left: none !important;
        display: inline-block !important;
        width: 100% !important;
        background-color: transparent !important; /* Ensure no bg color from compact state */
        color: var(--dark) !important;
        text-align: left;
        letter-spacing: 0.01em;
    }

    .nav-links.active .dropdown > a {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .nav-links a:hover, 
    .nav-links a.active {
        background-color: transparent;
        border-left-color: transparent;
        color: var(--primary);
    }
    
    .nav-links a::after { 
        display: none;
    }
    
    /* Show subscribe button LI and style it */
    .nav-links .nav-subscribe-btn-li {
        display: block; /* Show in mobile menu */
        margin-top: 1.25rem; /* Bring closer to menu items */
        padding-bottom: 1.5rem; /* Spacing from the bottom edge */
        width: 100%;
        max-width: 520px;
    }

    .nav-links .nav-subscribe-btn-li .btn {
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
        color: var(--white); /* Ensure white text */
        background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 16px 32px rgba(0, 71, 171, 0.35), 0 2px 8px rgba(0, 0, 0, 0.35);
        letter-spacing: 0.01em;
        text-align: center;
    }
    
    /* Mobile Dropdown (Accordion style) */
    .nav-links .dropdown {
        padding-bottom: 0;
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-links .dropdown > a .fa-caret-down {
        transition: transform 0.3s ease;
        display: inline-block; /* Make transformable */
        margin-left: 0.5rem;
    }
    
    .nav-links .dropdown.open > a .fa-caret-down {
        transform: rotate(180deg);
    }

    .nav-links .dropdown .dropdown-content {
        display: none; /* Hide by default */
        position: static; /* Override absolute positioning */
        background-color: transparent;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: auto;
        padding-top: 0.5rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    }
    
    .nav-links .dropdown.open .dropdown-content {
        display: block;
        max-height: 200px; /* Animate height */
        padding: 0.5rem 0.35rem;
    }

    .nav-links .dropdown .dropdown-content a {
        font-size: 1.05rem !important; /* Smaller font for sub-items */
        font-weight: 500 !important;
        color: var(--gray) !important;
        padding: 0.65rem 0.65rem !important;
        border-radius: var(--radius-md);
        background: rgba(0, 0, 0, 0.03);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-links .dropdown .dropdown-content a:hover {
        background-color: rgba(0, 71, 171, 0.06) !important;
        color: var(--primary) !important;
    }
    
    /* Remove desktop hover effect for main dropdown on mobile */
    .nav-links .dropdown:hover .dropdown-content {
        display: none;
    }
    .nav-links .dropdown.open:hover .dropdown-content {
        display: block;
    }

    /* Improve close button hit area when menu is open */
    body.menu-open .mobile-menu {
        position: fixed;
        top: 1.1rem;
        right: 1.1rem;
        z-index: 1002;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        padding: 0.55rem;
        width: 2.6rem;
        height: 2.6rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    body.menu-open .mobile-menu span {
        background: #0c1223;
    }

    /* Mobile considerations for super-compact */
    header.super-compact .container {
        max-width: calc(100% - 2rem); 
        padding: 0.4rem 1rem; 
        border-radius: 30px; 
        animation: slideInPillMobile 0.35s cubic-bezier(0.23, 1, 0.32, 1) forwards; /* Smoother, slightly faster */
    }
    
    @keyframes slideInPillMobile { 
        to { transform: translateY(0); opacity: 1; }
    }

    header.super-compact nav {
        height: 44px; 
        align-items: center;
    }

    header.super-compact .logo {
        font-size: 1.3rem; 
        gap: 0.3rem;
    }
    
    header.super-compact .logo-icon {
        font-size: 1.2rem; 
        min-width: 18px;
    }
    
    /* FIX: Adjust hamburger icon size in compact mode */
    header.super-compact .mobile-menu {
        width: 1.75rem;
        height: 1.75rem;
    }
    header.super-compact .mobile-menu span {
        width: 1.75rem;
        height: 2.5px;
    }

    body.menu-open header.super-compact .mobile-menu {
        width: 2.6rem;
        height: 2.6rem;
    }

    /* Dark mode overrides for the mobile overlay */
    body.dark-mode .nav-dark-mode-toggle {
        background: rgba(12, 18, 35, 0.85);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    body.dark-mode .nav-links {
        background:
            radial-gradient(circle at 15% 20%, rgba(96, 165, 250, 0.08), transparent 32%),
            radial-gradient(circle at 85% 10%, rgba(45, 212, 191, 0.06), transparent 28%),
            linear-gradient(165deg, #0c1223 0%, #0f172a 45%, #0c1223 100%);
        color: var(--white);
    }

    body.dark-mode .nav-links.active a:not(.btn),
    body.dark-mode .nav-links.active .dropdown > a {
        color: var(--white) !important;
    }

    body.dark-mode .nav-links .dropdown .dropdown-content a {
        color: rgba(255, 255, 255, 0.8) !important;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    body.dark-mode .nav-links .dropdown .dropdown-content a:hover {
        background-color: rgba(255, 255, 255, 0.08) !important;
        color: var(--primary) !important;
    }

    body.dark-mode.menu-open .mobile-menu {
        background: rgba(12, 18, 35, 0.85);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    }

    body.dark-mode.menu-open .mobile-menu span {
        background: #fff;
    }
}

/* --- END: NEW & IMPROVED MOBILE NAVIGATION STYLES --- */


/* Hero Section (Keep existing, ensure it's below header) */
.hero {
    position: relative;
    padding: 8rem 0 6rem;
    overflow: hidden;
    background: linear-gradient(165deg, #FAFBFC 0%, #F0F7FF 35%, #E6F0FF 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(0, 71, 171, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(20, 184, 166, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 90%, rgba(255, 215, 0, 0.06) 0%, transparent 45%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230047AB' fill-opacity='0.02'%3E%3Cpath d='M0 0h80v80H0V0zm20 20h40v40H20V20zm5 5v30h30V25H25z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
    opacity: 0.5;
}

.hero .container {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 650px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(0, 71, 171, 0.2) 0%, rgba(20, 184, 166, 0.16) 100%), rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 71, 171, 0.35);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
    box-shadow: 0 6px 16px rgba(0, 71, 171, 0.14);
    transition: all 0.3s ease;
}

.hero-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 71, 171, 0.12);
}

.hero h1 {
    margin-bottom: 1.5rem;
    color: var(--dark);
    max-width: 16ch;
}

/* Mobile/Desktop content switching - default desktop visible */
.hero-headline-mobile,
.hero-desc-mobile,
.hero-buttons.hero-buttons-mobile,
.scroll-indicator {
    display: none;
}

.hero-headline-desktop,
.hero-desc-desktop {
    display: block;
}

.hero-buttons-desktop {
    display: flex;
}

.hero h1 span {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 100%;
    height: 8px;
    background: var(--primary);
    opacity: 0.1;
    z-index: -1;
    border-radius: 4px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--gray);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-image {
    position: relative;
    width: 100%;
    max-width: 640px;
    justify-self: end;
    z-index: 2;
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: -12px;
    background: linear-gradient(135deg, rgba(0, 71, 171, 0.1), rgba(20, 184, 166, 0.08));
    border-radius: 24px;
    z-index: 0;
    box-shadow: 0 20px 60px rgba(0, 71, 171, 0.15);
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
    border-radius: 22px;
    z-index: 1;
    pointer-events: none;
}

.hero-image img {
    position: relative;
    z-index: 2;
    border-radius: 20px;
    object-fit: cover;
    background: var(--color-white);
    box-shadow: 0 8px 32px rgba(0, 71, 171, 0.12);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-image:hover img {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 71, 171, 0.18);
}

.floating-badge {
    position: absolute;
    bottom: -15px;
    left: -15px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    padding: 0.9rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    z-index: 3;
    border: 1px solid rgba(0, 71, 171, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: float 4s ease-in-out infinite;
}

.badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--color-teal) 100%);
    display: grid;
    place-items: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0, 71, 171, 0.2);
}

.badge-text {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.875rem;
    letter-spacing: 0.3px;
}

.animated-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 43% 57% 70% 30% / 45% 45% 55% 55%;
    transform: translate(-50%, -50%) rotate(0deg);
    background: linear-gradient(45deg, rgba(0, 71, 171, 0.25) 0%, rgba(20, 184, 166, 0.2) 100%);
    animation: blob-animation 15s infinite ease-in-out;
    z-index: 1;
    filter: blur(20px);
    pointer-events: none;
    opacity: 0.8;
}

.animated-blob-2 {
    width: 500px;
    height: 500px;
    animation-duration: 18s;
    animation-direction: reverse;
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.2) 0%, rgba(20, 184, 166, 0.15) 100%);
    border-radius: 57% 43% 30% 70% / 55% 55% 45% 45%;
}

.animated-blob-1 {
    top: 30%;
    left: 70%;
}

.animated-blob-2 {
    top: 70%;
    left: 30%;
}

@media (max-width: 768px), (prefers-reduced-motion: reduce) {
    .animated-blob,
    .animated-blob-2 {
        display: none;
        animation: none;
    }
}

@keyframes blob-animation {
    0% {
        border-radius: 43% 57% 70% 30% / 45% 45% 55% 55%;
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }
    25% {
        border-radius: 57% 43% 45% 55% / 70% 30% 70% 30%;
        transform: translate(-40%, -60%) rotate(90deg) scale(1.25);
    }
    50% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: translate(-60%, -45%) rotate(180deg) scale(0.85);
    }
    75% {
        border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%;
        transform: translate(-45%, -40%) rotate(270deg) scale(1.15);
    }
    100% {
        border-radius: 43% 57% 70% 30% / 45% 45% 55% 55%;
        transform: translate(-50%, -50%) rotate(360deg) scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Section layouts */
.section {
    padding: 4rem 0;
    position: relative;
    overflow: hidden; 
}

.section-dark {
    background-color: var(--dark);
    color: var(--white);
}

.section-light {
    background-color: var(--light);
}

.section-light::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: 
        radial-gradient(circle at 90% 10%, rgba(0, 71, 171, 0.04) 0%, transparent 60%),
        radial-gradient(circle at 10% 90%, rgba(0, 71, 171, 0.04) 0%, transparent 60%);
    z-index: 0;
}

.section-primary {
    background-color: var(--primary-light);
}

.section-primary::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: 
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 10% 90%, rgba(0, 47, 138, 0.15) 0%, transparent 60%);
    z-index: 0;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark);
    position: relative;
    z-index: 1;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 3px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.section-dark .section-title {
    color: var(--white);
}

.section-dark .section-subtitle {
    color: var(--light-gray);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Grid layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-auto {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Featured grid */
.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.featured-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Articles grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Tools grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Resources grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

/* About layout */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0b152d 0%, #0f203f 100%);
    color: var(--white);
    padding: 3rem 0 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(20, 184, 166, 0.08) 0%, transparent 45%);
    opacity: 0.7;
    pointer-events: none;
}

.footer-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-logo {
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-gold);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--color-gold);
}

.copyright {
    position: relative;
    z-index: 1;
    margin-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.copyright a {
    color: var(--color-gold);
}

.footer-credit-band {
    background: #0a1024;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-credit-band a {
    color: var(--color-gold);
    font-weight: 600;
}

/* Responsive layouts */
@media (max-width: 1024px) { 
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero .container {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 2.5rem;
    }
    
    .hero-image {
        max-width: 520px;
        width: 100%;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1; 
    }
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
    
    .hero {
        padding: 6rem 0 4rem;
        min-height: 80vh;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .hero-image {
        position: static;
        width: 100%;
        max-width: 400px;
        margin: 2rem auto 0;
        transform: none;
    }
    
    .floating-badge {
        position: static;
        margin: 1rem auto 0;
        width: fit-content;
    }
    
    /* Mobile testimonials */
    .testimonial-slider .testimonial {
        padding: 0;
        transform: translateY(6px);
    }
    
    .testimonial-slider .testimonial.active {
        transform: translateY(0);
    }
    
    /* Mobile subscribe form */
    .subscribe-form-container {
        padding: 0 0.5rem;
        max-width: 100%;
    }
    
    .subscribe-form {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.875rem;
        border-radius: var(--radius-lg);
        align-items: stretch;
    }
    
    .subscribe-form input[type="email"] {
        border-radius: var(--radius-md);
        padding: 1rem 1.25rem;
        text-align: center;
    }
    
    .btn-subscribe {
        width: 100%;
        border-radius: var(--radius-md);
        margin: 0;
        padding: 1rem 1.5rem;
    }
    
    .form-messages {
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) { 
    .hero h1 {
        font-size: 2.2rem; 
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-badge {
        font-size: 0.9rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr; 
    }
    
    .testimonial .quote {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .testimonial .quote::before,
    .testimonial .quote::after {
        font-size: 2rem;
    }
}

/* === DARK MODE NAVBAR STYLES === */
body.dark-mode header {
    background-color: var(--dark-bg-secondary);
    border-bottom: 1px solid rgba(96, 165, 250, 0.1);
}

/* Scrolled state dark mode */
body.dark-mode header.scrolled {
    background-color: rgba(21, 27, 46, 0.85);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

/* Super compact dark mode */
body.dark-mode header.super-compact .container {
    background-color: rgba(21, 27, 46, 0.95);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

body.dark-mode .logo {
    color: var(--white);
}

body.dark-mode .logo-icon {
    color: var(--dark-accent);
}

body.dark-mode .logo .logo-text {
    color: var(--white);
}

body.dark-mode .nav-links a {
    color: var(--dark-text-primary);
}

body.dark-mode .nav-links a:hover,
body.dark-mode .nav-links a.active {
    color: var(--dark-primary);
}

body.dark-mode .nav-links a::after {
    background-color: var(--dark-primary);
}

body.dark-mode .dropdown-content {
    background-color: var(--dark-bg-secondary);
    border: 1px solid rgba(96, 165, 250, 0.2);
}

body.dark-mode .dropdown-content a {
    color: var(--dark-text-primary);
}

body.dark-mode .dropdown-content a:hover {
    background-color: rgba(96, 165, 250, 0.1);
    color: var(--dark-primary);
}

/* Mobile menu dark mode */
@media (max-width: 768px) {
    body.dark-mode .nav-links {
        background-color: var(--dark-bg-secondary);
    }
    
    body.dark-mode .mobile-menu span {
        background-color: var(--dark-text-primary);
    }
}

/* Footer dark mode */
body.dark-mode footer {
    background: linear-gradient(135deg, var(--dark-bg-secondary) 0%, var(--dark-bg-primary) 100%);
    border-top: 1px solid rgba(96, 165, 250, 0.1);
}

body.dark-mode .footer-links a {
    color: var(--dark-text-secondary);
}

body.dark-mode .footer-links a:hover {
    color: var(--dark-primary);
}

body.dark-mode .copyright {
    border-top: 1px solid rgba(96, 165, 250, 0.1);
    color: var(--dark-text-tertiary);
}

body.dark-mode .copyright a {
    color: var(--dark-text-secondary);
}

body.dark-mode .copyright a:hover {
    color: var(--dark-primary);
}

/* ========================================
   MOBILE-FIRST HOMEPAGE IMPROVEMENTS
   Clean, easy-to-use mobile experience
   ======================================== */

@media (max-width: 768px) {
    /* --- HERO SECTION MOBILE --- */
    /* Premium mobile hero */
    .hero {
        padding: 2rem 0 4rem;
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        align-items: flex-start;
        padding-top: 4.5rem;
        background: linear-gradient(175deg, #f8fafc 0%, #e8f4f8 40%, #dbeafe 100%);
    }

    /* Centered glow orb - bigger and brighter */
    .hero::before {
        content: '';
        position: absolute;
        width: 200%;
        height: 90%;
        top: 5%;
        left: -50%;
        background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(20, 184, 166, 0.25) 0%, rgba(20, 184, 166, 0.1) 40%, transparent 70%);
        z-index: 0;
        filter: blur(60px);
    }

    .hero::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background:
            radial-gradient(circle at 50% 35%, rgba(20, 184, 166, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.12) 0%, transparent 45%),
            radial-gradient(circle at 20% 80%, rgba(251, 191, 36, 0.1) 0%, transparent 40%);
        z-index: 0;
    }

    /* Dark mode mobile hero */
    body.dark-mode .hero {
        background: linear-gradient(175deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    }

    body.dark-mode .hero::before {
        background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(20, 184, 166, 0.4) 0%, rgba(20, 184, 166, 0.15) 40%, transparent 70%);
    }

    body.dark-mode .hero::after {
        background:
            radial-gradient(circle at 50% 35%, rgba(20, 184, 166, 0.2) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(96, 165, 250, 0.15) 0%, transparent 45%),
            radial-gradient(circle at 20% 80%, rgba(251, 191, 36, 0.12) 0%, transparent 40%);
    }

    .hero .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 2;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
        padding: 0 1.25rem;
        margin-top: 0.5rem;
    }

    /* Hide desktop elements */
    .hero-badge,
    .hero-image,
    .hero-headline-desktop,
    .hero-desc-desktop,
    .hero-buttons-desktop {
        display: none;
    }

    .hero-headline-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        margin-bottom: 0;
        width: 100%;
    }

    .hero-desc-mobile {
        display: block;
    }

    .hero-buttons-mobile {
        display: flex;
    }

    /* Trust badge - compact (light mode default) */
    .hero-mobile-trust-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        background: rgba(20, 184, 166, 0.12);
        border: 1px solid rgba(20, 184, 166, 0.25);
        color: #0d9488;
        font-size: 0.8rem;
        font-weight: 600;
        padding: 0.45rem 0.95rem;
        border-radius: 50px;
        margin-bottom: 1rem;
        letter-spacing: 0.02em;
    }

    .trust-dot {
        width: 6px;
        height: 6px;
        background: #0d9488;
        border-radius: 50%;
        animation: pulse-dot 2s ease-in-out infinite;
    }

    /* Dark mode trust badge */
    body.dark-mode .hero-mobile-trust-badge {
        background: rgba(20, 184, 166, 0.15);
        border: 1px solid rgba(20, 184, 166, 0.3);
        color: #5eead4;
    }

    body.dark-mode .trust-dot {
        background: #14b8a6;
    }

    @keyframes pulse-dot {
        0%, 100% { opacity: 1; transform: scale(1); }
        50% { opacity: 0.6; transform: scale(1.2); }
    }

    /* Hero text styling - compact (light mode default) */
    .hero-mobile-line1 {
        display: block;
        font-family: 'Fraunces', Georgia, serif;
        font-size: 1.85rem;
        font-weight: 400;
        color: rgba(15, 23, 42, 0.7);
        letter-spacing: -0.01em;
        line-height: 1.2;
        margin-bottom: 0.25rem;
    }

    .hero-mobile-rotating-wrapper {
        display: block;
        height: 3.8rem;
        overflow: hidden;
        position: relative;
    }

    .hero-mobile-rotating {
        display: block;
        position: relative;
        height: 100%;
    }

    .hero-mobile-rotating .rotating-word {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        font-family: 'Fraunces', Georgia, serif;
        font-size: 2.9rem;
        font-weight: 700;
        background: linear-gradient(135deg, #0d9488 0%, #0f766e 50%, #14b8a6 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        letter-spacing: -0.02em;
        line-height: 1.2;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        white-space: nowrap;
    }

    /* Dark mode text */
    body.dark-mode .hero-mobile-line1 {
        color: rgba(255, 255, 255, 0.8);
    }

    body.dark-mode .hero-mobile-rotating .rotating-word {
        background: linear-gradient(135deg, #5eead4 0%, #14b8a6 50%, #2dd4bf 100%);
        background-clip: text;
        -webkit-background-clip: text;
    }

    .hero-mobile-rotating .rotating-word.active {
        opacity: 1 !important;
        transform: translateY(0);
        position: relative;
    }

    .hero h1 {
        font-size: inherit;
        line-height: inherit;
        max-width: 100%;
        margin-bottom: 0;
        letter-spacing: inherit;
        font-weight: inherit;
        color: #fff;
    }

    .hero h1 span:not(.rotating-word):not(.hero-mobile-rotating):not(.hero-mobile-rotating-wrapper):not(.hero-mobile-trust-badge):not(.trust-dot) {
        display: block;
        margin-top: 0;
    }

    .hero h1 span::after {
        display: none;
    }

    /* Ensure rotating words have correct display */
    .hero-mobile-rotating-wrapper,
    .hero-mobile-rotating {
        display: block !important;
    }

    .hero p.hero-desc-mobile {
        font-size: 1.15rem;
        line-height: 1.5;
        margin-top: 0.75rem;
        margin-bottom: 1.5rem;
        color: rgba(51, 65, 85, 0.8);
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
        font-weight: 400;
        letter-spacing: 0.01em;
    }

    body.dark-mode .hero p.hero-desc-mobile {
        color: rgba(255, 255, 255, 0.7);
    }

    .hero-buttons-mobile {
        flex-direction: column;
        gap: 0.65rem;
        width: 100%;
        max-width: 280px;
    }

    /* Scroll indicator */
    .scroll-indicator {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.35rem;
        margin-top: 1.75rem;
        opacity: 0.5;
        animation: fadeInUp 1s ease 0.5s both;
    }

    .scroll-text {
        font-size: 0.75rem;
        font-weight: 500;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: rgba(51, 65, 85, 0.6);
    }

    .scroll-arrow {
        animation: bounceDown 2s ease-in-out infinite;
    }

    .scroll-arrow svg {
        stroke: rgba(51, 65, 85, 0.5);
    }

    body.dark-mode .scroll-text {
        color: rgba(255, 255, 255, 0.7);
    }

    body.dark-mode .scroll-arrow svg {
        stroke: rgba(255, 255, 255, 0.7);
    }

    @keyframes bounceDown {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(8px);
        }
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 0.6;
            transform: translateY(0);
        }
    }

    /* Premium buttons - compact (light mode default) */
    .btn-mobile-primary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        padding: 0.95rem 1.5rem;
        font-size: 1.05rem;
        font-weight: 600;
        border-radius: 12px;
        background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
        color: #fff;
        border: none;
        box-shadow:
            0 0 0 1px rgba(13, 148, 136, 0.4),
            0 6px 16px rgba(13, 148, 136, 0.25),
            0 2px 4px rgba(0, 0, 0, 0.08);
        transition: all 0.25s ease;
    }

    .btn-mobile-primary:hover {
        transform: translateY(-2px);
        box-shadow:
            0 0 0 1px rgba(13, 148, 136, 0.5),
            0 10px 24px rgba(13, 148, 136, 0.3),
            0 3px 6px rgba(0, 0, 0, 0.1);
    }

    .btn-mobile-primary svg {
        width: 14px;
        height: 14px;
        transition: transform 0.25s ease;
    }

    .btn-mobile-primary:hover svg {
        transform: translateX(3px);
    }

    .btn-mobile-secondary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 0.95rem 1.5rem;
        font-size: 1.05rem;
        font-weight: 600;
        border-radius: 12px;
        background: rgba(15, 23, 42, 0.05);
        color: #334155;
        border: 1px solid rgba(15, 23, 42, 0.15);
        backdrop-filter: blur(8px);
        transition: all 0.25s ease;
    }

    .btn-mobile-secondary:hover {
        background: rgba(15, 23, 42, 0.08);
        border-color: rgba(15, 23, 42, 0.25);
        transform: translateY(-2px);
    }

    /* Dark mode buttons */
    body.dark-mode .btn-mobile-primary {
        background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
        box-shadow:
            0 0 0 1px rgba(20, 184, 166, 0.5),
            0 6px 16px rgba(20, 184, 166, 0.35),
            0 2px 4px rgba(0, 0, 0, 0.15);
    }

    body.dark-mode .btn-mobile-primary:hover {
        box-shadow:
            0 0 0 1px rgba(20, 184, 166, 0.6),
            0 10px 24px rgba(20, 184, 166, 0.4),
            0 3px 6px rgba(0, 0, 0, 0.2);
    }

    body.dark-mode .btn-mobile-secondary {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    body.dark-mode .btn-mobile-secondary:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.25);
    }

    .floating-badge {
        display: none;
    }

    /* --- SECTION HEADERS MOBILE --- */
    .section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .section-title::after {
        width: 40px;
        height: 2px;
        bottom: -6px;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin: 0 auto 2rem;
        line-height: 1.5;
    }

    .section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    /* --- FEATURED SECTION MOBILE --- */
    .featured-grid {
        gap: 1.5rem;
    }

    .featured-main .featured-image {
        border-radius: 12px;
        overflow: hidden;
    }

    .featured-main .featured-content {
        padding: 1.25rem;
    }

    .featured-main h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .featured-sidebar {
        gap: 0.75rem;
    }

    .sidebar-item {
        padding: 1rem;
    }

    /* --- ARTICLES GRID MOBILE --- */
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .article-card {
        border-radius: 12px;
    }

    .article-card .article-image {
        margin: 0.75rem 0.75rem 0;
        border-radius: 10px;
    }

    .article-content {
        padding: 1rem;
    }

    .article-content h3 {
        font-size: 1.1rem;
        margin: 0.25rem 0 0.5rem;
    }

    .article-content p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }

    .article-meta {
        font-size: 0.8rem;
        gap: 0.75rem;
    }

    /* --- TOOLS SECTION MOBILE --- */
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tool-card {
        padding: 1.5rem;
        border-radius: 12px;
        text-align: center;
    }

    .tool-icon {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
        margin-bottom: 1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .tool-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .tool-card p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .tool-card .btn-tool {
        width: 100%;
        padding: 0.875rem 1.25rem;
    }

    /* --- RESOURCES SECTION MOBILE --- */
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .resource-card {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .resource-card h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .resource-list li {
        padding-left: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .resource-list a {
        font-size: 0.9rem;
    }

    /* --- TESTIMONIALS SECTION MOBILE --- */
    .testimonials {
        padding: 2.5rem 0;
    }

    .testimonial-header {
        margin-bottom: 1.5rem;
    }

    .testimonial-header .section-kicker {
        font-size: 0.8rem;
    }

    .testimonial-card {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .testimonial-card .quote {
        font-size: 0.95rem;
        line-height: 1.6;
        padding: 0;
    }

    .testimonial-card .quote-mark {
        font-size: 2.5rem;
    }

    .testimonial-topic {
        font-size: 0.8rem;
        margin: 0.75rem 0;
    }

    .testimonial-meta {
        padding-top: 0.75rem;
    }

    .testimonial-meta .avatar {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .testimonial-meta .author {
        font-size: 0.9rem;
    }

    .testimonial-meta .location {
        font-size: 0.8rem;
    }

    .slider-controls {
        margin-top: 1.25rem;
    }

    .slider-nav {
        gap: 1rem;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
    }

    .slider-dots {
        gap: 0.5rem;
    }

    .slider-dots .dot {
        width: 8px;
        height: 8px;
    }

    /* --- SUBSCRIBE SECTION MOBILE --- */
    .subscribe {
        padding: 2.5rem 0;
    }

    .subscribe-content {
        text-align: center;
    }

    .subscribe-content h2 {
        font-size: 1.35rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .subscribe-content p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
    }

    .subscribe-form-container {
        max-width: 100%;
        padding: 0;
    }

    .subscribe-form {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
        border-radius: 16px;
    }

    .subscribe-form input[type="email"] {
        padding: 1rem;
        font-size: 1rem;
        border-radius: 10px;
        text-align: center;
    }

    .btn-subscribe {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        border-radius: 10px;
    }

    .privacy-note {
        font-size: 0.8rem;
        margin-top: 1rem;
    }

    /* --- ABOUT SECTION MOBILE --- */
    .about-grid {
        gap: 1.5rem;
    }

    .about-content h2 {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    .about-content p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .about-content .btn {
        width: 100%;
    }

    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .about-image img {
        border-radius: 12px;
    }

    /* --- VIEW MORE BUTTONS MOBILE --- */
    .view-more {
        text-align: center;
        margin-top: 1.5rem;
    }

    .view-more .btn {
        width: 100%;
        max-width: 300px;
        padding: 1rem 1.5rem;
    }

    /* --- FOOTER MOBILE --- */
    footer {
        padding: 2.5rem 0 1.5rem;
    }

    .footer-grid {
        gap: 1.5rem;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .footer-logo {
        justify-content: center;
        font-size: 1.1rem;
    }

    .footer-links {
        gap: 0.5rem;
    }

    .footer-links a {
        font-size: 0.9rem;
    }

    .social-links {
        justify-content: center;
    }

    .copyright {
        font-size: 0.85rem;
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
}

/* Extra small screens */
@media (max-width: 380px) {
    .hero {
        padding-top: 3.5rem;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-mobile-trust-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .hero-mobile-line1 {
        font-size: 1.65rem;
    }

    .hero-mobile-rotating .rotating-word {
        font-size: 2.6rem;
    }

    .hero-mobile-rotating-wrapper {
        height: 3.5rem;
    }

    .hero p.hero-desc-mobile {
        font-size: 1.05rem;
        max-width: 280px;
    }

    .hero-buttons-mobile {
        max-width: 280px;
    }

    .btn-mobile-primary,
    .btn-mobile-secondary {
        font-size: 1rem;
        padding: 0.9rem 1.25rem;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .tool-card,
    .article-card,
    .resource-card {
        padding: 1rem;
    }
}
