
/* CSS Variables */
:root {
    --primary: #1e90ff;
    --secondary: #0064c8;
    --accent: #4682ff;
    --bg-dark: #050a14;
    --bg-card: rgba(10, 15, 30, 0.8);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border: rgba(30, 144, 255, 0.2);
    --glow: 0 0 20px rgba(30, 144, 255, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile-specific CSS Variables for much brighter background */
@media (max-width: 768px) {
    :root {
        --bg-dark: #2a4058; /* Much brighter background for mobile */
        --bg-card: rgba(40, 60, 80, 0.95); /* Brighter cards */
        --text-primary: #ffffff; /* Brighter text */
        --text-secondary: rgba(255, 255, 255, 0.9); /* Brighter secondary text */
    }
}

/* Portrait mode specific adjustments for even better visibility */
@media (max-width: 768px) and (orientation: portrait) {
    :root {
        --bg-dark: #324a68; /* Much brighter for portrait mode */
        --bg-card: rgba(50, 70, 90, 0.95);
        --text-primary: #ffffff; /* Ensure bright text */
        --text-secondary: rgba(255, 255, 255, 0.95); /* Very bright secondary text */
    }
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Remove all default link underlines and borders */
a {
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
}

a:link,
a:visited,
a:active {
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
}

/* Remove any pseudo-element underlines */
a::before,
a::after,
span::before,
span::after {
    border: none !important;
    border-bottom: none !important;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(
        135deg,
        #050a14 0%,
        #0a1220 25%,
        #0f1a2c 50%,
        #0a1220 75%,
        #050a14 100%
    );
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    width: 100%;
    padding-top: 70px; /* Add space for fixed header */
}

/* Universal Container Fix */
.container {
    max-width: none;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Remove all gaps between sections */
main {
    margin: 0;
    padding: 0;
    width: 100%;
}

section {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Global Mobile Optimizations */
* {
    box-sizing: border-box;
}

/* Prevent horizontal scrolling on all devices */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Ensure all content respects viewport width */
*, *::before, *::after {
    max-width: 100%;
}

/* Fix any overflowing elements */
img, video, iframe, canvas, svg {
    max-width: 100%;
    height: auto;
}

/* Responsive text wrapping - prevent mid-word breaks and hyphens */
h1, h2, h3, h4, h5, h6, p, span, div, a {
    word-wrap: normal;
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
    white-space: normal;
}

/* Bright White Gleam Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    background:
        /* Bright white gleam highlights */
        radial-gradient(ellipse 800px 400px at 25% 30%, rgba(255, 255, 255, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 600px 300px at 75% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 500px 250px at 50% 10%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse 400px 200px at 10% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 45%),
        radial-gradient(ellipse 350px 175px at 90% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 35%),
        /* Subtle blue energy fields */
        radial-gradient(ellipse 800px 400px at 30% 20%, rgba(0, 255, 255, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 600px 300px at 70% 80%, rgba(30, 144, 255, 0.03) 0%, transparent 70%),
        /* Brightened foundation */
        linear-gradient(135deg,
            rgba(5, 10, 20, 1) 0%,
            rgba(8, 15, 25, 0.98) 50%,
            rgba(5, 10, 20, 1) 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    /* Removed background animation to prevent flickering */
}



/* Simplified Energy Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background:
        /* Subtle energy streams */
        linear-gradient(
            45deg,
            transparent 0%,
            rgba(0, 255, 255, 0.01) 50%,
            transparent 100%
        );
    background-size: 400px 400px;
    /* Removed stream animation to prevent flickering */
    mix-blend-mode: screen;
}

/* Dynamic Flow Layout - No Grid */
.page-flow {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Bright White Energy Effects */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(5, 10, 20, 1) 0%,
        rgba(15, 25, 45, 0.95) 15%,
        rgba(25, 40, 70, 0.9) 30%,
        rgba(30, 50, 85, 0.85) 45%,
        rgba(25, 40, 70, 0.9) 60%,
        rgba(15, 25, 45, 0.95) 75%,
        rgba(5, 10, 20, 1) 100%
    );
    /* Single professional gleam gradient - no tiling */
}





/* Simplified Wave Visualization */
.audio-wave-visualization {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.wave-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.2;
}

.wave-layer-1 {
    background: radial-gradient(ellipse at 30% 30%, rgba(0, 255, 255, 0.02) 0%, transparent 70%);
}

.wave-layer-2 {
    background: radial-gradient(ellipse at 70% 70%, rgba(30, 144, 255, 0.015) 0%, transparent 70%);
}

.wave-layer-3 {
    background: linear-gradient(135deg, transparent 0%, rgba(0, 255, 255, 0.01) 50%, transparent 100%);
    /* Subtle accent layer - no tiling */
}

.wellness-energy-orbs {
    position: absolute;
    top: -100%;
    left: -100%;
    right: -100%;
    bottom: -100%;
    width: 300%;
    height: 300%;
    pointer-events: none;
    overflow: visible;
    /* Remove 3D properties to prevent rendering issues */
    z-index: 10;
}

.energy-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(0, 51, 255, 0.3) 0%,
        rgba(30, 144, 255, 0.2) 25%,
        rgba(0, 100, 200, 0.15) 50%,
        rgba(0, 50, 150, 0.08) 75%,
        transparent 100%
    );
    /* Enhanced appearance for smooth parallax */
    box-shadow:
        inset 0 0 15px rgba(0, 136, 255, 0.12),
        0 0 25px rgba(0, 123, 255, 0.1);
    pointer-events: none;
    opacity: 0.7;
    /* Optimized for smooth parallax transforms */
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* Energy waves emanating from the spheres using pseudo-elements */
.energy-orb::before,
.energy-orb::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(0, 76, 255, 0.4);
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0 12px rgba(0, 106, 255, 0.3);
}

.energy-orb::before {
    width: 100%;
    height: 100%;
    animation: energyWaveExpand 5s linear infinite;
    animation-delay: 0s;
}

.energy-orb::after {
    width: 100%;
    height: 100%;
    animation: energyWaveExpand 7s linear infinite;
    animation-delay: 2.5s;
    border-color: rgba(30, 144, 255, 0.35);
}

/* Large spheres - strategic distribution with varied wave speeds */
.orb-1 {
    width: 180px;
    height: 180px;
    top: 10%;
    left: 5%;
    z-index: 20;
}

.orb-1::before {
    animation: energyWaveExpand 8s linear infinite;
    animation-delay: 0s;
}

.orb-1::after {
    animation: energyWaveExpand 12s linear infinite;
    animation-delay: 4s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 8%;
    z-index: 20;
}

.orb-3::before {
    animation: energyWaveExpand 9s linear infinite;
    animation-delay: 1.5s;
}

.orb-3::after {
    animation: energyWaveExpand 13s linear infinite;
    animation-delay: 6.5s;
}

.orb-5 {
    width: 160px;
    height: 160px;
    bottom: 20%;
    left: 50%;
    z-index: 20;
}

.orb-5::before {
    animation: energyWaveExpand 7s linear infinite;
    animation-delay: 3s;
}

.orb-5::after {
    animation: energyWaveExpand 11s linear infinite;
    animation-delay: 8s;
}



/* Small spheres - background layer with faster waves */
.orb-2 {
    width: 60px;
    height: 60px;
    top: 30%;
    left: 80%;
    z-index: 5;
    opacity: 0.4;
}

.orb-2::before {
    animation: energyWaveExpand 4s linear infinite;
    animation-delay: 0.5s;
}

.orb-2::after {
    animation: energyWaveExpand 6s linear infinite;
    animation-delay: 2.5s;
}

.orb-4 {
    width: 80px;
    height: 80px;
    bottom: 40%;
    left: 20%;
    z-index: 5;
    opacity: 0.4;
}

.orb-4::before {
    animation: energyWaveExpand 4.5s linear infinite;
    animation-delay: 1s;
}

.orb-4::after {
    animation: energyWaveExpand 6.5s linear infinite;
    animation-delay: 3.5s;
}

/* New additional spheres - balanced distribution with medium wave speeds */
.orb-6 {
    width: 140px;
    height: 140px;
    top: 15%;
    right: 15%;
    z-index: 15;
}

.orb-6::before {
    animation: energyWaveExpand 6.5s linear infinite;
    animation-delay: 2s;
}

.orb-6::after {
    animation: energyWaveExpand 9.5s linear infinite;
    animation-delay: 5.5s;
}

.orb-7 {
    width: 100px;
    height: 100px;
    bottom: 10%;
    right: 40%;
    z-index: 10;
}

.orb-7::before {
    animation: energyWaveExpand 5.5s linear infinite;
    animation-delay: 1.2s;
}

.orb-7::after {
    animation: energyWaveExpand 8s linear infinite;
    animation-delay: 4.2s;
}

.orb-8 {
    width: 120px;
    height: 120px;
    top: 40%;
    left: 30%;
    z-index: 12;
}

.orb-8::before {
    animation: energyWaveExpand 6s linear infinite;
    animation-delay: 0.8s;
}

.orb-8::after {
    animation: energyWaveExpand 8.5s linear infinite;
    animation-delay: 4.8s;
}

/* Additional orbs for other sections */
.orb-9 {
    width: 90px;
    height: 90px;
    top: 25%;
    right: 10%;
    z-index: 10;
    opacity: 0.6;
}

.orb-10 {
    width: 130px;
    height: 130px;
    bottom: 30%;
    left: 15%;
    z-index: 15;
}

.orb-11 {
    width: 70px;
    height: 70px;
    top: 70%;
    right: 50%;
    z-index: 8;
    opacity: 0.5;
}

.orb-12 {
    width: 110px;
    height: 110px;
    top: 20%;
    left: 10%;
    z-index: 12;
}

.orb-13 {
    width: 85px;
    height: 85px;
    bottom: 15%;
    right: 20%;
    z-index: 9;
    opacity: 0.7;
}

.orb-14 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 5%;
    z-index: 18;
}

.orb-15 {
    width: 95px;
    height: 95px;
    top: 15%;
    left: 70%;
    z-index: 11;
    opacity: 0.6;
}

.orb-16 {
    width: 125px;
    height: 125px;
    bottom: 25%;
    left: 25%;
    z-index: 14;
}

.orb-17 {
    width: 75px;
    height: 75px;
    top: 60%;
    right: 30%;
    z-index: 8;
    opacity: 0.5;
}

.orb-18 {
    width: 105px;
    height: 105px;
    bottom: 10%;
    right: 60%;
    z-index: 13;
    opacity: 0.8;
}





/* Seamless sections - no gaps or spacing */
.section {
    padding: 0.25rem 0;
    margin: 0;
    position: relative;
    z-index: 100;
    background: transparent;
    border: none;
    transition: none;
    width: 100%;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Remove 3D properties to prevent rendering issues */
    backdrop-filter: none;
    box-shadow: none;
    opacity: 1;
}

/* Remove background from hero section to allow text overlay */
.section.hero {
    background: none !important;
    border: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Improved text layout for all section content */
.section p {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    padding: 0 1rem;
}

/* Override section p styles for hero subtitle */
.section.hero .hero-subtitle,
.hero .hero-subtitle {
    max-width: 85% !important;
    padding: 0 2rem !important;
    font-size: clamp(1.2rem, 3.5vw, 1.8rem) !important;
    color: var(--text-primary) !important;
    background: none !important;
    position: relative !important;
    z-index: 200 !important;
}

.section ul, .section ol {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    padding: 0 1rem;
}

.section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.section:nth-child(even) {
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
}

/* Problem and solution section specific text styling */
.problem-list, .solution-list {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    padding: 0 1rem;
}

.problem-list li, .solution-list li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    padding-left: 0.5rem;
}

/* Center the grid containers - seamless */
.problem-grid, .solution-grid {
    display: flex;
    justify-content: center;
    margin: 0;
}

.problem-grid > div, .solution-grid > div {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}





.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

.section-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* Compact Section Containers with Translucent Backgrounds */
.section-container {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 1.5rem 2rem;
    margin: 1rem auto;
    backdrop-filter: none;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    max-width: 1200px;
    isolation: isolate;
}

/* Section containers with header images - enhanced styling */
.section-container:has(.section-header-image) {
    border-radius: 0;
    border: none;
    background: transparent;
}
    transition: none;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    word-wrap: normal;
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
    min-width: 0;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    will-change: transform;
    opacity: 0.9;
}

/* Remove gleam effect for seamless design */
.section-container::before {
    display: none;
}

/* No hover effects for fluid design */

/* Ensure all child elements respect container bounds */
.section-container * {
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: normal;
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
}

/* Section Header Images */
.section-header-image {
    position: relative;
    width: 100%; /* Contained within section bounds */
    height: 300px;
    margin: 0 0 1rem 0; /* Tighter spacing for better flow */
    border-radius: 8px; /* Subtle rounded corners */
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Subtle depth */
}

.header-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
    filter: brightness(1.3) contrast(1.2) saturate(1.1);
}



.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
}

.section-header-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 2;
    pointer-events: none;
}



/* Special container variants */
.section-container.problem-container {
    border: none;
    box-shadow: none;
}

.section-container.problem-container::before {
    display: none;
}

.section-container.solution-container {
    border: none;
    box-shadow: none;
}

.section-container.solution-container::before {
    display: none;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(30, 144, 255, 0.2);
    transition: var(--transition);
    box-shadow:
        0 2px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    height: 70px;
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.98);
    box-shadow: 
        0 4px 32px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(30, 144, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0 1.5rem;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: 'Comfortaa', cursive;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e90ff !important; /* Force visible color */
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    position: relative;
    z-index: 10;
    min-width: 150px; /* Ensure minimum width */
    opacity: 1 !important; /* Force visibility */
    visibility: visible !important; /* Force visibility */
}

/* Apply gradient effect only when supported and working */
@supports (background-clip: text) and (-webkit-background-clip: text) {
    .logo {
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

/* Ensure logo is always visible on mobile */
@media (max-width: 768px) {
    .logo {
        color: #1e90ff !important;
        font-size: 1.3rem;
    }
}

.logo-main {
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    color: inherit;
}

.logo-sub {
    font-size: 0.7rem;
    opacity: 0.7;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    color: inherit;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(30, 144, 255, 0.1);
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-links a:hover::before {
    width: 80%;
}



.auth-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(30, 144, 255, 0.4);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 20px rgba(30, 144, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}



.btn-primary {
    background:
        linear-gradient(135deg,
            rgba(0, 42, 255, 0.9) 0%,
            rgba(30, 144, 255, 0.8) 50%,
            rgba(0, 64, 255, 0.9) 100%);
    color: rgba(0, 8, 20, 0.95);
    border: 1px solid rgba(0, 85, 255, 0.4);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        0 0 0 1px rgba(0, 51, 255, 0.2);
    position: relative;
    overflow: hidden;
}



.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.75rem;
    border-radius: 8px;
    z-index: 1001;
    min-width: 44px; /* iOS touch target minimum */
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:active {
    background: rgba(30, 144, 255, 0.15);
    color: var(--primary);
    transform: scale(1.05);
}

.mobile-nav-toggle:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100vw;
    height: calc(100vh - 70px);
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(30, 144, 255, 0.2);
    z-index: 999;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
}

/* Mobile Navigation Backdrop */
.mobile-nav::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: -1;
}

.mobile-nav.active::before {
    opacity: 1;
    visibility: visible;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-links {
    list-style: none;
    margin-bottom: 2rem;
}

.mobile-nav-links li {
    margin-bottom: 1rem;
}

.mobile-nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    min-height: 44px; /* iOS touch target minimum */
}

.mobile-nav-links a:hover,
.mobile-nav-links a:active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    transform: translateX(0.5rem);
    background: rgba(30, 144, 255, 0.05);
    border-radius: 8px;
    margin: 0 -0.5rem;
    padding-left: 1rem;
    padding-right: 0.5rem;
}



.mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
}

.mobile-auth-buttons .btn {
    justify-content: center;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    text-align: center;
}

/* Dynamic Section Flow - No Grid Areas Needed */

/* Hero section optimized for stable text rendering */
.hero {
    min-height: calc(100vh - 70px); /* Account for fixed header */
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 1rem;
    /* Remove all backgrounds for clean text overlay */
    background: none !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background:
        /* Bright white gleam highlights */
        radial-gradient(ellipse 600px 300px at 30% 40%, rgba(255, 255, 255, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 500px 250px at 70% 60%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 400px 200px at 50% 20%, rgba(255, 255, 255, 0.04) 0%, transparent 45%),
        /* Central focus enhancement */
        radial-gradient(ellipse 60% 40% at 50% 50%, rgba(0, 255, 255, 0.06) 0%, transparent 70%),
        /* Corner accent lights */
        radial-gradient(circle at 20% 20%, rgba(0, 255, 255, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(30, 144, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}



.orb-9 {
    width: 50px;
    height: 50px;
    top: 85%;
    left: 60%;
    z-index: -16;
}

.orb-9::before {
    animation: energyWaveExpand 3.5s linear infinite;
    animation-delay: 0.3s;
}

.orb-9::after {
    animation: energyWaveExpand 5.5s linear infinite;
    animation-delay: 2.3s;
}

.orb-10 {
    width: 70px;
    height: 70px;
    top: 10%;
    right: 30%;
    z-index: -15;
}

.orb-10::before {
    animation: energyWaveExpand 4.2s linear infinite;
    animation-delay: 0.7s;
}

.orb-10::after {
    animation: energyWaveExpand 6.2s linear infinite;
    animation-delay: 2.9s;
}

.orb-11 {
    width: 110px;
    height: 110px;
    top: 65%;
    left: 25%;
    z-index: -9;
}

.orb-11::before {
    animation: energyWaveExpand 5.8s linear infinite;
    animation-delay: 1.4s;
}

.orb-11::after {
    animation: energyWaveExpand 8.2s linear infinite;
    animation-delay: 4.6s;
}

.orb-12 {
    width: 35px;
    height: 35px;
    top: 40%;
    right: 5%;
    z-index: -20;
    opacity: 0.09;
}

.orb-12::before {
    animation: energyWaveExpand 3s linear infinite;
    animation-delay: 0.1s;
}

.orb-12::after {
    animation: energyWaveExpand 4.8s linear infinite;
    animation-delay: 1.9s;
}

.orb-13 {
    width: 85px;
    height: 85px;
    bottom: 15%;
    right: 20%;
    z-index: 9;
    opacity: 0.7;
}

.orb-13::before {
    animation: energyWaveExpand 3.2s linear infinite;
    animation-delay: 0.4s;
}

.orb-13::after {
    animation: energyWaveExpand 5.1s linear infinite;
    animation-delay: 2.1s;
}

.orb-14 {
    width: 150px;
    height: 150px;
    bottom: 5%;
    left: 10%;
    z-index: 8;
    opacity: 0.4;
}

.orb-14::before {
    animation: energyWaveExpand 2.9s linear infinite;
    animation-delay: 0.7s;
}

.orb-14::after {
    animation: energyWaveExpand 4.6s linear infinite;
    animation-delay: 1.8s;
}

.orb-15 {
    width: 70px;
    height: 70px;
    top: 25%;
    left: 8%;
    z-index: 12;
    opacity: 0.8;
}

.orb-15::before {
    animation: energyWaveExpand 3.4s linear infinite;
    animation-delay: 0.2s;
}

.orb-15::after {
    animation: energyWaveExpand 5.3s linear infinite;
    animation-delay: 2.4s;
}

.orb-16 {
    width: 120px;
    height: 120px;
    top: 35%;
    right: 15%;
    z-index: 10;
    opacity: 0.5;
}

.orb-16::before {
    animation: energyWaveExpand 2.7s linear infinite;
    animation-delay: 0.9s;
}

.orb-16::after {
    animation: energyWaveExpand 4.4s linear infinite;
    animation-delay: 1.6s;
}

.orb-17 {
    width: 95px;
    height: 95px;
    top: 45%;
    left: 25%;
    z-index: 11;
    opacity: 0.6;
}

.orb-17::before {
    animation: energyWaveExpand 3.1s linear infinite;
    animation-delay: 0.5s;
}

.orb-17::after {
    animation: energyWaveExpand 4.9s linear infinite;
    animation-delay: 2.0s;
}

.orb-18 {
    width: 110px;
    height: 110px;
    top: 55%;
    right: 25%;
    z-index: 9;
    opacity: 0.65;
}

.orb-18::before {
    animation: energyWaveExpand 2.8s linear infinite;
    animation-delay: 0.8s;
}

.orb-18::after {
    animation: energyWaveExpand 4.7s linear infinite;
    animation-delay: 1.7s;
}

/* Extended Global Energy Field - covers entire site */
.global-energy-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    /* Remove 3D properties to prevent rendering issues */
}

/* Site-wide background spheres container */
.site-background-spheres {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 600vh;
    pointer-events: none;
    z-index: -1;
    overflow: visible;
}

.global-orb-1 {
    width: 140px;
    height: 140px;
    top: 120vh;
    left: 15%;
    z-index: -11;
    opacity: 0.17;
}

.global-orb-1::before {
    animation: energyWaveExpand 7.2s linear infinite;
    animation-delay: 2.1s;
}

.global-orb-1::after {
    animation: energyWaveExpand 10.8s linear infinite;
    animation-delay: 6.3s;
}

.global-orb-2 {
    width: 90px;
    height: 90px;
    top: 180vh;
    right: 20%;
    z-index: -14;
    opacity: 0.13;
}

.global-orb-2::before {
    animation: energyWaveExpand 4.8s linear infinite;
    animation-delay: 1.3s;
}

.global-orb-2::after {
    animation: energyWaveExpand 7.2s linear infinite;
    animation-delay: 3.9s;
}

.global-orb-3 {
    width: 110px;
    height: 110px;
    top: 250vh;
    left: 60%;
    z-index: -8;
    opacity: 0.18;
}

.global-orb-3::before {
    animation: energyWaveExpand 6.1s linear infinite;
    animation-delay: 0.9s;
}

.global-orb-3::after {
    animation: energyWaveExpand 8.7s linear infinite;
    animation-delay: 4.1s;
}

.global-orb-4 {
    width: 70px;
    height: 70px;
    top: 320vh;
    right: 10%;
    z-index: -16;
    opacity: 0.11;
}

.global-orb-4::before {
    animation: energyWaveExpand 4.3s linear infinite;
    animation-delay: 0.6s;
}

.global-orb-4::after {
    animation: energyWaveExpand 6.4s linear infinite;
    animation-delay: 2.8s;
}

.global-orb-5 {
    width: 130px;
    height: 130px;
    top: 400vh;
    left: 25%;
    z-index: -7;
    opacity: 0.19;
}

.global-orb-5::before {
    animation: energyWaveExpand 6.9s linear infinite;
    animation-delay: 1.7s;
}

.global-orb-5::after {
    animation: energyWaveExpand 10.1s linear infinite;
    animation-delay: 5.2s;
}

.global-orb-6 {
    width: 60px;
    height: 60px;
    top: 480vh;
    right: 35%;
    z-index: -18;
    opacity: 0.1;
}

.global-orb-7 {
    width: 100px;
    height: 100px;
    top: 560vh;
    left: 40%;
    z-index: -12;
    opacity: 0.15;
}

.global-orb-8 {
    width: 80px;
    height: 80px;
    top: 640vh;
    right: 15%;
    z-index: -15;
    opacity: 0.12;
}

/* Extended global orbs throughout entire site */
.global-orb-9 {
    width: 150px;
    height: 150px;
    top: 720vh;
    left: 20%;
    z-index: -10;
    opacity: 0.18;
}

.global-orb-10 {
    width: 75px;
    height: 75px;
    top: 800vh;
    right: 25%;
    z-index: -17;
    opacity: 0.11;
}

.global-orb-11 {
    width: 120px;
    height: 120px;
    top: 880vh;
    left: 45%;
    z-index: -12;
    opacity: 0.15;
}

.global-orb-12 {
    width: 65px;
    height: 65px;
    top: 960vh;
    right: 10%;
    z-index: -19;
    opacity: 0.09;
}

.global-orb-13 {
    width: 140px;
    height: 140px;
    top: 1040vh;
    left: 30%;
    z-index: -9;
    opacity: 0.17;
}

.global-orb-14 {
    width: 85px;
    height: 85px;
    top: 1120vh;
    right: 35%;
    z-index: -16;
    opacity: 0.12;
}

.global-orb-15 {
    width: 110px;
    height: 110px;
    top: 1200vh;
    left: 15%;
    z-index: -13;
    opacity: 0.14;
}

.global-orb-16 {
    width: 55px;
    height: 55px;
    top: 1280vh;
    right: 20%;
    z-index: -20;
    opacity: 0.08;
}

/* Extended Site-wide Spheres - Same style as hero spheres */
/* Large spheres distributed throughout the site */
.site-sphere-1 {
    width: 180px;
    height: 180px;
    top: 120vh;
    left: 15%;
    z-index: -5;
    opacity: 0.6;
}

.site-sphere-2 {
    width: 140px;
    height: 140px;
    top: 180vh;
    right: 10%;
    z-index: -8;
    opacity: 0.5;
}

.site-sphere-3 {
    width: 100px;
    height: 100px;
    top: 250vh;
    left: 70%;
    z-index: -10;
    opacity: 0.4;
}

.site-sphere-4 {
    width: 160px;
    height: 160px;
    top: 320vh;
    left: 25%;
    z-index: -6;
    opacity: 0.55;
}

.site-sphere-5 {
    width: 80px;
    height: 80px;
    top: 400vh;
    right: 30%;
    z-index: -12;
    opacity: 0.35;
}

.site-sphere-6 {
    width: 120px;
    height: 120px;
    top: 480vh;
    left: 60%;
    z-index: -9;
    opacity: 0.45;
}

.site-sphere-7 {
    width: 200px;
    height: 200px;
    top: 560vh;
    right: 20%;
    z-index: -4;
    opacity: 0.65;
}

/* Extended spheres with decreasing frequency down the page */
.global-orb-17 {
    width: 95px;
    height: 95px;
    top: 1400vh;
    left: 35%;
    z-index: -14;
    opacity: 0.12;
}

.global-orb-18 {
    width: 70px;
    height: 70px;
    top: 1600vh;
    right: 30%;
    z-index: -18;
    opacity: 0.09;
}

.global-orb-19 {
    width: 85px;
    height: 85px;
    top: 1900vh;
    left: 25%;
    z-index: -16;
    opacity: 0.10;
}

.global-orb-20 {
    width: 60px;
    height: 60px;
    top: 2300vh;
    right: 15%;
    z-index: -19;
    opacity: 0.08;
}

.global-orb-21 {
    width: 75px;
    height: 75px;
    top: 2800vh;
    left: 40%;
    z-index: -17;
    opacity: 0.09;
}

.global-orb-22 {
    width: 50px;
    height: 50px;
    top: 3500vh;
    right: 25%;
    z-index: -21;
    opacity: 0.07;
}

.global-orb-23 {
    width: 65px;
    height: 65px;
    top: 4300vh;
    left: 30%;
    z-index: -18;
    opacity: 0.08;
}

.global-orb-24 {
    width: 45px;
    height: 45px;
    top: 5200vh;
    right: 35%;
    z-index: -22;
    opacity: 0.06;
}



.hero-content {
    position: relative;
    z-index: 200;
    isolation: isolate;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 2rem 1rem 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    will-change: transform;
    overflow: visible;
    background: none !important; /* Ensure no background */
    border: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--primary);
    backdrop-filter: blur(20px);
    box-shadow:
        0 8px 32px rgba(0, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    text-decoration: none;
}

.hero-badge::after {
    display: none;
}

/* Static energy rings - no animation */
.sound-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    pointer-events: none;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    z-index: 5;
    box-shadow: 0 0 4px rgba(0, 255, 255, 0.1);
    /* Static rings for visual depth without animation */
}

/* OLD ENERGY WAVES REMOVED - REPLACED WITH PULSE RINGS */

/* OLD ENERGY WAVE VARIANTS REMOVED */

/* OLD ENERGY WAVE KEYFRAMES REMOVED */



/* Enable smooth parallax for spheres */
.parallax-layer {
    will-change: transform;
    transition: none;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    /* Hardware acceleration for smooth parallax */
}

/* Static sphere layers - no parallax movement */
.orb-1, .orb-3, .orb-5 {
    z-index: 20;
    filter: brightness(1.1) contrast(1.05);
    opacity: 0.8;
}

/* Medium spheres - static positioning */
.orb-6, .orb-8 {
    z-index: 15;
    filter: blur(0.3px) brightness(1.0) contrast(0.98);
    opacity: 0.7;
}

/* Small spheres - static positioning */
.orb-2, .orb-4, .orb-7 {
    z-index: 10;
    filter: blur(0.6px) brightness(0.95) contrast(0.95);
    opacity: 0.6;
}

/* Site-wide background spheres - same style as hero spheres */
.site-sphere-1, .site-sphere-2, .site-sphere-3, .site-sphere-4, .site-sphere-5, .site-sphere-6, .site-sphere-7 {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%,
        rgba(0, 255, 255, 0.25) 0%,
        rgba(30, 144, 255, 0.15) 40%,
        rgba(0, 100, 200, 0.05) 100%);
    border: 1px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px) saturate(1.2);
    will-change: transform;
    pointer-events: none;
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.15),
        inset 0 0 30px rgba(255, 255, 255, 0.05);
    /* Optimized for smooth parallax transforms */
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* Add energy waves to site spheres - same as hero spheres */
.site-sphere-1::before, .site-sphere-1::after,
.site-sphere-2::before, .site-sphere-2::after,
.site-sphere-3::before, .site-sphere-3::after,
.site-sphere-4::before, .site-sphere-4::after,
.site-sphere-5::before, .site-sphere-5::after,
.site-sphere-6::before, .site-sphere-6::after,
.site-sphere-7::before, .site-sphere-7::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: energyWaveExpand 7s linear infinite;
}

.site-sphere-1::after, .site-sphere-2::after, .site-sphere-3::after,
.site-sphere-4::after, .site-sphere-5::after, .site-sphere-6::after, .site-sphere-7::after {
    animation-delay: 3.5s;
    border-color: rgba(30, 144, 255, 0.35);
}

/* Content layers should be above parallax elements - no 3D transforms */
.hero-content {
    position: relative;
    z-index: 100;
    /* Remove 3D transform to prevent text flickering */
}

.section-content {
    position: relative;
    z-index: 50;
    /* Remove 3D transform to prevent text flickering */
}

/* OLD ENERGY WAVE VARIANTS REMOVED */

/* OLD ENERGY WAVE CLASSES REMOVED - NOW USING PSEUDO-ELEMENTS */

@keyframes energyWaveExpand {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
        border-width: 1px;
    }
    20% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.5);
        border-width: 0.8px;
    }
    40% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(2.5);
        border-width: 0.6px;
    }
    60% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(4);
        border-width: 0.4px;
    }
    80% {
        opacity: 0.15;
        transform: translate(-50%, -50%) scale(6);
        border-width: 0.3px;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(8);
        border-width: 0.2px;
    }
}





/* Static ring sizes for visual depth */
.wave-1 {
    width: 150px;
    height: 150px;
    opacity: 0.3;
}

.wave-2 {
    width: 250px;
    height: 250px;
    opacity: 0.2;
}



@keyframes heroGleamFlow {
    0%, 100% {
        background-position: 30% 40%, 70% 60%, 50% 20%;
        opacity: 0.9;
    }
    50% {
        background-position: 40% 50%, 60% 50%, 60% 30%;
        opacity: 1.0;
    }
}

/* Performance-optimized floating animations for site-wide spheres */
@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-15px) translateX(10px);
    }
    50% {
        transform: translateY(-8px) translateX(-5px);
    }
    75% {
        transform: translateY(-20px) translateX(8px);
    }
}

@keyframes floatMedium {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    33% {
        transform: translateY(-12px) translateX(-8px);
    }
    66% {
        transform: translateY(-18px) translateX(12px);
    }
}







.hero-title {
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(3.2rem, 9vw, 5.5rem);
    font-weight: 800;
    font-variation-settings: 'wght' 800;
    margin-bottom: 0.2rem;
    background: linear-gradient(135deg,
        #87ceeb 0%,
        #4fc3f7 15%,
        #29b6f6 30%,
        #03a9f4 45%,
        #039be5 60%,
        #0288d1 75%,
        #0277bd 90%,
        #01579b 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 300% 300%;
    line-height: 0.9;
    letter-spacing: 0.04em;
    text-shadow:
        0 0 10px rgba(135, 206, 235, 0.4),
        0 0 20px rgba(79, 195, 247, 0.3),
        0 0 30px rgba(41, 182, 246, 0.2);
    -webkit-text-stroke: 0.8px rgba(255, 255, 255, 0.6);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    position: relative;
    padding: 2rem 3rem;
    text-transform: uppercase;
    text-align: center;
    width: fit-content;
    max-width: 90%;
    margin: 0 auto 0.2rem auto;
    overflow: visible;
    white-space: nowrap;
    /* Removed animation to prevent blinking */
}









.hero-tagline {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 700;
    background: linear-gradient(135deg, #0073ff 0%, #1e90ff 50%, #0064c8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.8rem;
    opacity: 1;
    /* Removed blur text-shadow and filter */
    text-align: center;
    width: 100%;
    display: block;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3.5vw, 1.8rem); /* Better scaling like main title */
    color: var(--text-primary); /* Brighter text color */
    margin-top: 2.5rem;
    margin-bottom: 3.5rem;
    line-height: 1.5;
    word-wrap: normal;
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
    max-width: 85%; /* More margin on both sides */
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    font-weight: 400;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(0, 255, 255, 0.3);
    background: none !important; /* Force no background */
    padding: 0 2rem; /* Add horizontal padding for more margin */
    border-radius: 0;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    text-align: center;
    position: relative;
    z-index: 200; /* Ensure it overlays properly */
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
    align-items: stretch;
    margin: 4rem auto 0 auto;
    max-width: 800px;
    padding: 1.5rem 2rem;
    background:
        linear-gradient(135deg,
            rgba(0, 12, 30, 0.9) 0%,
            rgba(2, 18, 40, 0.85) 50%,
            rgba(0, 12, 30, 0.9) 100%);
    border: 2px solid rgba(0, 81, 255, 0.4);
    border-radius: 24px;
    backdrop-filter: blur(30px) saturate(1.3);
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.15),
        0 0 0 1px rgba(0, 255, 255, 0.2),
        0 0 60px rgba(30, 144, 255, 0.1);
}

.hero-stats .stat {
    flex: 1 1 160px;
    min-width: 140px;
    max-width: 200px;
}

.stat {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 1rem;
    backdrop-filter: none;
    transition: none;
    position: relative;
    overflow: visible;
    box-shadow: none;
    text-align: center;
    min-width: 120px;
}



.stat-number {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 81, 255, 0.5);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}



.btn-large::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 98, 255, 0.6) 25%,
        rgba(0, 64, 255, 0.8) 50%,
        rgba(0, 85, 255, 0.6) 75%,
        transparent 100%);
    border-radius: 20px 20px 0 0;
}



.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    box-shadow:
        0 0 20px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(30, 144, 255, 0.1);
}





/* Problem/Solution Sections - seamless styling with opacity */
.problem {
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    opacity: 0.9;
}

.solution {
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    opacity: 0.9;
}

.problem-grid, .solution-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.problem-list, .solution-list {
    list-style: none;
}

.problem-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    word-wrap: normal;
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
}

.problem-list li::before {
    content: "❌";
    flex-shrink: 0;
}

.solution-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    word-wrap: normal;
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
}

.solution-list li::before {
    content: "✅";
    flex-shrink: 0;
}

/* Stable Section Titles */
.section-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(
        135deg,
        #007bff 0%,
        #1e90ff 50%,
        #0040ff 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Removed blur text-shadow */
    letter-spacing: 0.05em;
}

.section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    max-width: 500px;
    margin-left: auto;
    word-wrap: normal;
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
    margin-right: auto;
    font-size: 1.2rem;
    line-height: 1.7;
    font-weight: 400;
    opacity: 1;
    text-shadow:
        0 0 15px rgba(0, 0, 0, 0.8),
        0 0 25px rgba(0, 255, 255, 0.3);
    background: transparent;
    padding: 0.25rem 0.5rem;
    border-radius: 0;
    backdrop-filter: none;
}

/* Modern Large Program Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
    justify-items: center;
}

.feature-card {
    background: linear-gradient(145deg,
        rgba(10, 20, 35, 0.98) 0%,
        rgba(15, 30, 50, 0.95) 50%,
        rgba(20, 35, 60, 0.92) 100%);
    border: 2px solid rgba(0, 64, 255, 0.3);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(25px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 30px rgba(0, 255, 200, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 380px;
    position: relative;
    cursor: pointer;
    isolation: isolate;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: rgba(0, 98, 255, 0.6);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(0, 89, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}





.feature-image {
    width: 100%;
    aspect-ratio: 1; /* Square containers for program images */
    position: relative;
    background: linear-gradient(135deg,
        rgba(30, 144, 255, 0.08) 0%,
        rgba(0, 212, 255, 0.04) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.feature-img {
    width: 80%;
    height: 80%;
    object-fit: contain; /* Show full image without cropping */
    object-position: center;
    filter: brightness(1.2) contrast(1.2) saturate(1.3);
    transition: all 0.4s ease;
    border-radius: 12px;
    opacity: 1;
}

.feature-card:hover .feature-img {
    transform: scale(1.1);
    filter: brightness(1.3) contrast(1.3) saturate(1.4);
}

/* Feature content removed - now using modal popup */
.feature-content {
    display: none;
    text-align: center;
    gap: 0.5rem;
}




.feature-title {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.feature-description {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    font-weight: 400;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    word-wrap: normal;
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
    text-align: center;
}

/* Dynamic Social Proof Layout */
.testimonial-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
}

.testimonial-grid .testimonial {
    flex: 1 1 320px;
    max-width: 450px;
    min-width: 300px;
}

.testimonial {
    background: var(--bg-card);
    border: 1px solid rgba(30, 144, 255, 0.4);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 20px rgba(30, 144, 255, 0.15);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    word-wrap: normal;
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-weight: 700;
}

.testimonial-info h4 {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.testimonial-info p {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Dynamic Pricing Layout */
.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
    align-items: stretch;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-grid .pricing-card {
    flex: 1 1 300px;
    max-width: 420px;
    min-width: 280px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid rgba(30, 144, 255, 0.4);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    position: relative;
    transition: var(--transition);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 20px rgba(30, 144, 255, 0.15);
}

.pricing-card.featured {
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 30px rgba(255, 255, 255, 0.2),
        0 0 0 1px rgba(30, 144, 255, 0.2);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--bg-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.pricing-price {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin-bottom: 0.25rem;
}

.pricing-period {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    word-wrap: normal;
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
}

.pricing-features .check {
    color: var(--primary);
}

.pricing-cta {
    width: 100%;
    justify-content: center;
}

/* Dynamic FAQ Layout */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid rgba(30, 144, 255, 0.4);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 20px rgba(30, 144, 255, 0.15);
}

.faq-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    word-wrap: normal;
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
    padding: 0 0.5rem;
}

/* ===== MOBILE RESPONSIVE DESIGN ===== */

/* Small Mobile Devices (320px - 480px) */
@media (max-width: 480px) {
    /* Base Layout */
    body {
        padding-top: 60px;
    }

    /* Header - Compact and Functional */
    .header {
        height: 56px;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
    }

    .header-content {
        padding: 0.35rem 0.75rem;
        height: 56px;
        gap: 0.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Hide desktop navigation on small mobile */
    .nav-links {
        display: none !important;
    }

    /* Logo - Compact but Readable */
    .logo {
        font-size: 0.95rem;
        flex-shrink: 0;
        min-width: 100px;
    }

    .logo-main {
        font-size: 0.95rem;
        letter-spacing: 0.01em;
    }

    .logo-sub {
        font-size: 0.5rem;
        opacity: 0.7;
    }

    /* Auth Buttons - Better Sizing */
    .auth-buttons {
        display: flex;
        gap: 0.35rem;
        flex-shrink: 0;
    }

    .auth-buttons .btn {
        padding: 0.35rem 0.55rem;
        font-size: 0.7rem;
        white-space: nowrap;
        border-radius: 6px;
    }

    .auth-buttons .btn i {
        font-size: 0.6rem;
        margin-right: 0.15rem;
    }

    /* Mobile Nav Toggle - Better Positioning */
    .mobile-nav-toggle {
        font-size: 1rem;
        padding: 0.3rem 0.4rem;
        background: none;
        border: none;
        color: var(--text-primary);
        cursor: pointer;
        flex-shrink: 0;
    }

    /* Much brighter background for small mobile devices */
    body {
        background: linear-gradient(135deg,
            #3a5a76 0%,
            #426484 25%,
            #4a6e92 50%,
            #426484 75%,
            #3a5a76 100%) !important;
        padding-top: 56px !important;
    }

    /* Enhanced background effects for small screens */
    .bg-effects {
        opacity: 1.0 !important;
    }

    .wave-layer-1 {
        background: radial-gradient(circle at 25% 25%, rgba(0, 255, 255, 0.6) 0%, transparent 60%) !important;
        opacity: 1.0 !important;
    }

    .wave-layer-2 {
        background: radial-gradient(circle at 75% 75%, rgba(30, 144, 255, 0.5) 0%, transparent 60%) !important;
        opacity: 1.0 !important;
    }

    .wave-layer-3 {
        background: linear-gradient(45deg, transparent 0%, rgba(0, 255, 255, 0.45) 50%, transparent 100%) !important;
        opacity: 1.0 !important;
    }

    /* Hero Section - Better Mobile Spacing */
    .hero {
        min-height: calc(100vh - 56px);
        padding: 1.5rem 0.75rem;
        margin: 0;
    }

    .hero-content {
        padding: 2rem 0.75rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin: 0 auto;
        max-width: 100%;
    }

    /* Hide hero badge on small mobile */
    .hero-badge {
        display: none !important;
    }

    /* Brighter images and higher contrast on small mobile */
    img, .feature-img, .header-img, .research-thumbnail img {
        filter: brightness(1.3) contrast(1.2) !important;
    }



    .hero-title {
        font-size: clamp(2.8rem, 14vw, 4.5rem);
        margin-bottom: 0.5rem;
        letter-spacing: 0.02em;
        line-height: 1.1;
        padding: 0 0.5rem;
        white-space: normal;
        overflow: visible;
        word-wrap: normal;
        overflow-wrap: normal;
        color: #ffffff !important;
        background: linear-gradient(135deg,
            #87ceeb 0%,
            #4fc3f7 25%,
            #29b6f6 50%,
            #03a9f4 75%,
            #0277bd 100%) !important;
        background-clip: text !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        text-shadow:
            0 2px 4px rgba(0, 0, 0, 0.8),
            0 0 20px rgba(30, 144, 255, 0.4) !important;
    }

    .hero-tagline,
    .section.hero .hero-tagline,
    .hero .hero-tagline {
        font-size: clamp(1.3rem, 6vw, 1.8rem) !important; /* Better scaling for mobile */
        letter-spacing: 0.06em !important;
        margin-bottom: 1.5rem !important;
        text-align: center !important;
        width: 100% !important;
        display: block !important;
        background: linear-gradient(135deg, #00ffff 0%, #1e90ff 50%, #0064c8 100%) !important;
        background-clip: text !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        text-shadow:
            0 2px 4px rgba(0, 0, 0, 0.8),
            0 0 20px rgba(30, 144, 255, 0.5) !important;
    }

    .hero-subtitle,
    .section.hero .hero-subtitle,
    .hero .hero-subtitle {
        font-size: clamp(1.3rem, 6vw, 2rem) !important; /* Better mobile scaling */
        margin-top: 1.2rem !important;
        margin-bottom: 2.5rem !important;
        line-height: 1.6 !important;
        padding: 0 1rem !important; /* Better padding */
        max-width: 95% !important; /* Better use of screen space */
        margin-left: auto !important;
        margin-right: auto !important;
        text-shadow:
            0 2px 4px rgba(0, 0, 0, 0.9),
            0 0 15px rgba(255, 255, 255, 0.2) !important;
        color: rgba(255, 255, 255, 0.98) !important;
        background: none !important; /* Force no background */
        position: relative !important;
        z-index: 200 !important;
        font-weight: 400 !important;
    }

    /* CTA Buttons */
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.25rem;
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .btn-large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        border-radius: 10px;
        justify-content: center;
        font-weight: 600;
    }

    /* Forms */
    .form-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .form-row .form-group {
        margin-bottom: 1rem;
    }

    .modal-content {
        padding: 1rem;
        margin: 1rem 0;
    }

    /* Mobile sections - Minimal spacing for better flow */
    .section {
        padding: 0.1rem 0;
        margin: 0;
        z-index: 100;
    }

    /* Mobile Section Containers */
    .section-container {
        padding: 1rem 1rem;
        margin: 0.5rem auto;
        width: calc(100% - 1rem);
        max-width: calc(100vw - 1rem);
        border-radius: 12px;
        background: linear-gradient(145deg,
            rgba(5, 15, 30, 0.6) 0%,
            rgba(10, 25, 45, 0.5) 50%,
            rgba(5, 15, 30, 0.6) 100%);
        border: 1px solid rgba(30, 144, 255, 0.2);
        backdrop-filter: blur(15px);
    }

    .container {
        padding: 0 0.75rem;
    }

    .section-content {
        padding: 0 0.75rem;
    }

    .section-narrow {
        padding: 0 0.75rem;
    }

    /* Mobile text improvements */
    .section p {
        max-width: 100%;
        padding: 0 0.5rem;
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .faq-item p {
        max-width: 100%;
        padding: 0 0.25rem;
        font-size: 0.85rem;
    }

    .problem-list, .solution-list {
        max-width: 100%;
        padding: 0 0.5rem;
    }

    /* Header Images - Mobile Optimized */
    .section-header-image {
        height: 180px;
        margin: 0 0 1rem 0;
        border-radius: 10px;
        width: 100%;
        overflow: hidden;
    }

    .header-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    /* Compact Mobile Program Cards */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1rem;
        max-width: 350px;
        margin: 0 auto;
    }

    .feature-card {
        max-width: 100%;
        border-radius: 12px;
    }

    .feature-image {
        aspect-ratio: 1;
        padding: 0.75rem;
    }

    .feature-content {
        padding: 0.75rem 1rem 1rem 1rem;
        gap: 0.4rem;
    }

    .feature-img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* Show full image without cropping */
        object-position: center;
        display: block;
        margin: 0 auto;
        background: rgba(0, 12, 30, 0.1); /* Subtle background for letterboxing */
    }

    .feature-content {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
        gap: 0.5rem;
    }
}

/* Tablet and Medium Mobile Devices (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    /* Optimized background for medium mobile devices */
    body {
        padding-top: 65px;
        background: linear-gradient(135deg,
            #2f4a70 0%,
            #375a7e 25%,
            #3f648c 50%,
            #375a7e 75%,
            #2f4a70 100%) !important;
    }

    /* Enhanced background effects for medium screens */
    .bg-effects {
        opacity: 0.9 !important;
    }

    .wave-layer-1 {
        background: radial-gradient(circle at 25% 25%, rgba(0, 255, 255, 0.55) 0%, transparent 60%) !important;
        opacity: 1.0 !important;
    }

    .wave-layer-2 {
        background: radial-gradient(circle at 75% 75%, rgba(30, 144, 255, 0.45) 0%, transparent 60%) !important;
        opacity: 1.0 !important;
    }

    .wave-layer-3 {
        background: linear-gradient(45deg, transparent 0%, rgba(0, 255, 255, 0.4) 50%, transparent 100%) !important;
        opacity: 1.0 !important;
    }

    /* Tablet Header - Better Spacing */
    .header {
        height: 65px;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
    }

    .header-content {
        padding: 0.5rem 1rem;
        height: 65px;
        gap: 0.75rem;
    }

    /* Tablet Logo */
    .logo {
        font-size: 1.2rem;
        min-width: 120px;
    }

    .logo-main {
        font-size: 1.2rem;
    }

    .logo-sub {
        font-size: 0.65rem;
    }

    /* Tablet Nav Links - Reduced spacing */
    .nav-links {
        gap: 1.25rem;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }

    /* Tablet Auth Buttons - Better sizing */
    .auth-buttons {
        display: flex;
        gap: 0.35rem;
        flex-shrink: 0;
    }

    .auth-buttons .btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .auth-buttons .btn i {
        font-size: 0.7rem;
        margin-right: 0.15rem;
    }

    /* Tablet Mobile Nav Toggle */
    .mobile-nav-toggle {
        display: none;
    }

    /* Medium Mobile Program Cards */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
        padding: 1.5rem;
    }

    .feature-card {
        max-width: 100%;
        border-radius: 14px;
    }

    .feature-image {
        aspect-ratio: 1;
        padding: 1rem;
    }

    .feature-content {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
        gap: 0.5rem;
    }

    .feature-img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* Show full image without cropping */
        object-position: center;
        display: block;
        margin: 0 auto;
        background: rgba(0, 12, 30, 0.1); /* Subtle background for letterboxing */
    }

    /* Hide hero badge on medium mobile */
    .hero-badge {
        display: none !important;
    }

    /* Brighter images and higher contrast on medium mobile */
    img, .feature-img, .header-img, .research-thumbnail img {
        filter: brightness(1.3) contrast(1.2) !important;
    }

    /* Container styling handled in main mobile CSS section */

    /* Header - Medium Mobile */
    .header {
        height: 65px;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
    }

    .header-content {
        padding: 0.75rem 1.25rem;
        height: 65px;
        width: 100%;
        max-width: 100%;
        gap: 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Logo */
    .logo {
        font-size: 1.2rem;
    }

    .logo-main {
        font-size: 1.2rem;
        letter-spacing: 0.02em;
    }

    .logo-sub {
        font-size: 0.6rem;
        opacity: 0.8;
    }

    /* Auth Buttons */
    .auth-buttons {
        gap: 0.25rem;
        flex-wrap: nowrap;
    }

    .auth-buttons .btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.75rem;
        white-space: nowrap;
        min-width: auto;
    }

    .auth-buttons .btn i {
        font-size: 0.7rem;
        margin-right: 0.25rem;
    }

    /* Mobile Nav Toggle */
    .mobile-nav-toggle {
        font-size: 1.1rem;
        padding: 0.25rem;
        color: var(--text-primary);
    }

    /* Hero Section - Medium Mobile */
    .hero {
        min-height: calc(100vh - 65px);
        padding: 1.5rem 1rem;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        padding: 1.25rem 1rem;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin: 0 auto;
    }

    .hero-title {
        font-size: clamp(3rem, 11vw, 4.5rem);
        margin-bottom: 1rem;
        letter-spacing: 0.02em;
        padding: 0 1.25rem;
        line-height: 1.1;
        background: linear-gradient(135deg,
            #87ceeb 0%,
            #4fc3f7 25%,
            #29b6f6 50%,
            #03a9f4 75%,
            #0277bd 100%) !important;
        background-clip: text !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        text-shadow:
            0 2px 4px rgba(0, 0, 0, 0.8),
            0 0 20px rgba(30, 144, 255, 0.4) !important;
    }

    .hero-tagline,
    .section.hero .hero-tagline,
    .hero .hero-tagline {
        font-size: clamp(1.2rem, 5vw, 1.8rem) !important; /* Better scaling for medium mobile */
        letter-spacing: 0.08em !important;
        margin-bottom: 1.5rem !important;
        text-align: center !important;
        width: 100% !important;
        display: block !important;
        background: linear-gradient(135deg, #00ffff 0%, #1e90ff 50%, #0064c8 100%) !important;
        background-clip: text !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        text-shadow:
            0 2px 4px rgba(0, 0, 0, 0.8),
            0 0 20px rgba(30, 144, 255, 0.5) !important;
    }

    .hero-subtitle,
    .section.hero .hero-subtitle,
    .hero .hero-subtitle {
        font-size: clamp(1.3rem, 4.5vw, 1.9rem) !important; /* Better scaling for medium mobile */
        margin-top: 1.8rem !important;
        margin-bottom: 2.8rem !important;
        line-height: 1.5 !important;
        padding: 0 2rem !important; /* More margin on both sides */
        max-width: 85% !important; /* Better centering with margins */
        margin-left: auto !important;
        margin-right: auto !important;
        background: none !important; /* Force no background */
        position: relative !important;
        z-index: 200 !important;
        color: rgba(255, 255, 255, 0.98) !important;
        text-shadow:
            0 2px 4px rgba(0, 0, 0, 0.9),
            0 0 15px rgba(255, 255, 255, 0.2) !important;
        font-weight: 400 !important;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 1.5rem;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        margin: 2rem 0;
        padding: 1rem 1rem;
        max-width: 500px;
    }

    .hero-stats .stat {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 140px;
    }

    .stat {
        padding: 1rem 0.75rem;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    /* CTA Buttons - Medium Mobile */
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
        width: 100%;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .btn-large {
        padding: 1.1rem 1.75rem;
        font-size: 1.05rem;
        width: 100%;
        border-radius: 12px;
        justify-content: center;
        font-weight: 600;
    }

    /* Medium mobile sections - Compact spacing */
    .section {
        padding: 0.2rem 0;
        margin: 0.1rem 0;
        z-index: 100;
    }

    /* Medium Mobile Section Containers */
    .section-container {
        padding: 1.5rem 1.5rem;
        margin: 0.75rem auto;
        width: calc(100% - 1.5rem);
        max-width: calc(100vw - 1.5rem);
        border-radius: 14px;
        background: linear-gradient(145deg,
            rgba(5, 15, 30, 0.5) 0%,
            rgba(10, 25, 45, 0.4) 50%,
            rgba(5, 15, 30, 0.5) 100%);
        border: 1px solid rgba(30, 144, 255, 0.18);
        backdrop-filter: blur(18px);
    }

    .container {
        padding: 0 1.25rem;
    }

    .section-content {
        padding: 0 1.25rem;
    }

    .section-narrow {
        padding: 0 1rem;
        max-width: 100%;
    }

    /* Tablet text improvements */
    .section p {
        max-width: 700px;
        padding: 0 1rem;
        font-size: 1rem;
        line-height: 1.7;
    }

    .faq-item p {
        max-width: 550px;
        padding: 0 0.75rem;
    }

    .problem-list, .solution-list {
        max-width: 600px;
        padding: 0 1rem;
    }

    /* Header Images - Medium Mobile */
    .section-header-image {
        height: 220px;
        margin: 0 0 1.25rem 0;
        border-radius: 12px;
        width: 100%;
        overflow: hidden;
    }

    .header-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* Mobile Performance Optimizations */
@media (max-width: 768px) {
    /* Enhanced background effects for mobile visibility */
    body {
        background: linear-gradient(135deg,
            #3a5476 0%,
            #4a6486 25%,
            #5a7496 50%,
            #4a6486 75%,
            #3a5476 100%) !important;
        background-attachment: fixed;
    }

    /* Ensure proper mobile text scaling */
    html {
        font-size: 16px;
    }



    /* High contrast section titles for mobile - no glow */
    .section-title, .feature-title, h1, h2, h3 {
        color: #ffffff !important;
        background: none !important;
        background-clip: unset !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: #ffffff !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 1.0) !important;
    }

    /* Hero title - mobile-optimized with scaled glow effects */
    .hero-title {
        background: linear-gradient(135deg, #1e90ff, #00ffff) !important;
        background-clip: text !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        text-shadow:
            0 1px 2px rgba(0, 0, 0, 0.6),
            0 0 10px rgba(30, 144, 255, 0.3),
            0 0 20px rgba(0, 255, 255, 0.15);
        font-size: clamp(2.2rem, 10vw, 3.5rem) !important;
    }

    /* Hero subtitle - high contrast, no glow */
    .hero-subtitle {
        color: #ffffff !important;
        text-shadow:
            0 2px 4px rgba(0, 0, 0, 1.0) !important;
    }

    /* Higher contrast for all text elements */
    .section-subtitle, .feature-description, p {
        color: #ffffff !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
    }

    /* Brighter images with higher contrast on mobile */
    img, .feature-img, .header-img, .research-thumbnail img {
        filter: brightness(1.3) contrast(1.2) !important;
    }

    /* Container styling consolidated - handled in main mobile sections */

    /* Enhanced button contrast */
    .btn-primary {
        background: linear-gradient(135deg,
            rgba(0, 255, 255, 1.0) 0%,
            rgba(30, 144, 255, 0.9) 50%,
            rgba(0, 255, 255, 1.0) 100%) !important;
        color: rgba(0, 8, 20, 1.0) !important;
    }



    /* Hide hero badge on mobile */
    .hero-badge {
        display: none !important;
    }

    /* MOBILE PERFORMANCE OPTIMIZATION: Hide all visual effects for maximum performance */

    /* Hide ALL wave layers on mobile */
    .audio-wave-visualization,
    .wave-layer,
    .wave-layer-1,
    .wave-layer-2,
    .wave-layer-3 {
        display: none !important;
    }

    /* Hide ALL background effects on mobile */
    .bg-effects,
    .bg-effects::before,
    .bg-effects::after {
        display: none !important;
    }

    /* Mobile-optimized spheres - smaller and fewer for performance */
    .energy-orb {
        transform: scale(0.6) !important; /* Scale down all spheres on mobile */
        opacity: 0.4 !important; /* Reduce opacity for subtlety */
    }
    
    /* Hide some orbs for performance but keep the main ones */
    .orb-2, .orb-4, .orb-6, .orb-8, .orb-10, .orb-12 {
        display: none !important;
    }

    /* Mobile-optimized global energy orbs */
    .global-energy-field .energy-orb {
        transform: scale(0.5) !important;
        opacity: 0.3 !important;
    }
    
    /* Hide most global orbs for performance */
    .global-orb-2, .global-orb-4, .global-orb-6, .global-orb-8,
    .global-orb-10, .global-orb-12, .global-orb-14, .global-orb-16,
    .global-orb-18, .global-orb-20 {
        display: none !important;
    }

    /* Mobile-optimized site spheres */
    .site-background-spheres .energy-orb {
        transform: scale(0.4) !important;
        opacity: 0.25 !important;
    }
    
    /* Hide some site spheres for performance */
    .site-sphere-2, .site-sphere-4, .site-sphere-6 {
        display: none !important;
    }

    /* Hide wellness energy orbs */
    .wellness-energy-orbs {
        display: none !important;
    }

    /* Hide all sound waves and energy waves */
    .sound-wave,
    .energy-wave {
        display: none !important;
    }

    /* DISABLE ALL ANIMATIONS AND EFFECTS ON MOBILE FOR MAXIMUM PERFORMANCE */

    /* Disable all parallax effects on mobile */
    .parallax-layer {
        transform: none !important;
        will-change: auto !important;
        animation: none !important;
        transition: none !important;
    }

    /* Force disable ALL animations on mobile */
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        will-change: auto !important;
        -webkit-animation: none !important;
        -moz-animation: none !important;
        -o-animation: none !important;
        -ms-animation: none !important;
    }

    /* Only allow essential UI animations (spinners, notifications) */
    .spinner,
    .loading-content .spinner,
    .spinner-ring,
    .notification {
        animation: revert !important;
        transition: revert !important;
        -webkit-animation: revert !important;
    }

    /* Disable CSS transforms for better mobile performance */
    * {
        -webkit-transform: none !important;
        -moz-transform: none !important;
        -ms-transform: none !important;
        -o-transform: none !important;
        transform: none !important;
    }

    /* Optimize mobile rendering */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeSpeed;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    /* Smooth scrolling for mobile */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    /* Optimize touch interactions */
    button, .btn, a {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    /* Prevent zoom on input focus */
    input, select, textarea {
        font-size: 16px;
    }
}

/* Portrait Mode Specific Optimizations */
@media (max-width: 768px) and (orientation: portrait) {
    /* Clean background for portrait mode - no effects */
    body {
        background: linear-gradient(135deg,
            #2a4058 0%,
            #324a68 25%,
            #3a5476 50%,
            #324a68 75%,
            #2a4058 100%) !important;
    }

    /* Ensure all effects remain hidden in portrait mode */
    .bg-effects,
    .bg-effects::before,
    .bg-effects::after,
    .audio-wave-visualization,
    .wave-layer,
    .wave-layer-1,
    .wave-layer-2,
    .wave-layer-3,
    .energy-orb,
    .global-energy-field,
    .wellness-energy-orbs,
    .sound-wave,
    .energy-wave {
        display: none !important;
        opacity: 0 !important;
    }

    /* Enhanced text visibility for portrait mode */
    .hero-title {
        text-shadow:
            0 2px 4px rgba(0, 0, 0, 0.8),
            0 0 20px rgba(0, 255, 255, 0.3);
    }

    .hero-tagline {
        text-shadow:
            0 2px 4px rgba(0, 0, 0, 0.7),
            0 0 15px rgba(30, 144, 255, 0.4);
    }

    .hero-subtitle,
    .section.hero .hero-subtitle,
    .hero .hero-subtitle {
        text-shadow:
            0 2px 4px rgba(0, 0, 0, 0.8),
            0 0 8px rgba(0, 255, 255, 0.15) !important;
        color: rgba(255, 255, 255, 0.98) !important;
        font-size: clamp(1.1rem, 4.5vw, 1.7rem) !important; /* Enhanced scaling for portrait */
        padding: 0 2.5rem !important; /* Even more margin for portrait */
        max-width: 80% !important;
        background: none !important;
        position: relative !important;
        z-index: 200 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }


}

/* Desktop and Large Screens (769px+) */
@media (min-width: 769px) {
    /* Base Layout */
    body {
        padding-top: 80px;
    }

    /* Header */
    .header {
        height: 80px;
    }

    .header-content {
        padding: 1rem 2rem;
        height: 80px;
    }

    /* Navigation */
    .nav-links {
        display: flex;
        justify-content: center;
    }

    .mobile-nav-toggle {
        display: none;
    }

    .mobile-nav {
        display: none;
    }

    /* Hero Section */
    .hero {
        padding: 1rem 1rem;
        min-height: calc(100vh - 80px);
    }

    .hero-content {
        padding: 1.5rem 1rem 0.75rem 1rem;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .hero-stats .stat {
        flex: 1 1 auto;
        min-width: 160px;
    }

    .features {
        padding: 1.5rem 1rem;
    }

    .cta-buttons {
        flex-wrap: nowrap;
        flex-direction: row;
    }

    .btn-large {
        width: auto;
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        max-width: 950px;
    }

    .feature-card {
        max-width: 300px;
    }

    .feature-image {
        aspect-ratio: 1;
        padding: 1rem;
    }

    .feature-content {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
        gap: 0.5rem;
    }

    .hero-title {
        font-size: clamp(4rem, 8vw, 5.5rem);
    }

    .hero-subtitle,
    .section.hero .hero-subtitle,
    .hero .hero-subtitle {
        font-size: clamp(1.4rem, 3vw, 1.8rem) !important; /* Better desktop scaling */
        padding: 0 3rem !important; /* More margin for desktop */
        max-width: 80% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        background: none !important;
        position: relative !important;
        z-index: 200 !important;
        color: var(--text-primary) !important;
    }

    /* Large desktop text improvements */
    .section p {
        max-width: 900px;
        padding: 0 1.5rem;
        font-size: 1.1rem;
        line-height: 1.8;
    }

    .faq-item p {
        max-width: 700px;
        padding: 0 1rem;
        font-size: 1rem;
    }

    .problem-list, .solution-list {
        max-width: 750px;
        padding: 0 1.5rem;
    }
}

@media (min-width: 1440px) {
    .hero-content {
        max-width: 1000px;
    }

    .hero-title {
        font-size: 5.5rem;
    }

    /* Extra large desktop */
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        max-width: 1000px;
    }

    .feature-card {
        max-width: 320px;
    }

    .feature-image {
        aspect-ratio: 1;
        padding: 1.25rem;
    }

    .feature-content {
        padding: 1rem 1.25rem 1.25rem 1.25rem;
        flex: 1;
    }

    .feature-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
}

/* Reduced motion preferences and mobile optimization */
@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .hero::after,
    .bg-effects,
    .bg-effects::before,
    .bg-effects::after,
    .hero-badge,
    .hero-title,
    .site-sphere-1,
    .site-sphere-2,
    .site-sphere-3,
    .site-sphere-4,
    .site-sphere-5,
    .site-sphere-6,
    .site-sphere-7 {
        animation: none;
    }

    /* Slower energy waves for reduced motion */
    .energy-wave {
        animation-duration: 8s; /* Slower for reduced motion */
    }

    .sound-wave {
        animation-duration: 8s; /* Slower for reduced motion */
    }
}



/* Modal Styles */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
    overflow-y: auto;
}

.auth-modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(30, 144, 255, 0.4);
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 420px;
    width: 100%;
    backdrop-filter: blur(20px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 20px rgba(30, 144, 255, 0.15);
    margin: auto 0;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}



.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    position: relative;
    margin-bottom: 1rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(30, 144, 255, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow:
        0 0 20px rgba(30, 144, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.form-input:focus {
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 0 0 3px rgba(30, 144, 255, 0.2),
        0 0 20px rgba(255, 255, 255, 0.1);
}

.form-icon {
    position: absolute;
    left: 0.875rem;
    top: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.password-toggle {
    position: absolute;
    right: 0.875rem;
    top: 2rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}



.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.link-button {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    text-decoration: none;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.form-divider {
    text-align: center;
    margin: 1rem 0;
    position: relative;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.form-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.form-divider span {
    background: var(--bg-card);
    padding: 0 1rem;
}

.auth-switch {
    text-align: center;
    color: var(--text-secondary);
}

.coupon-status {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.coupon-status.valid {
    background: rgba(34, 197, 94, 0.1);
    color: #22a2c5;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.coupon-status.invalid {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.coupon-status.checking {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.coupon-status.info {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.hidden {
    display: none !important;
}

/* Authentication-conditional content */
.auth-conditional {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.auth-conditional.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.user-info:hover {
    background: rgba(30, 144, 255, 0.05);
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.3;
}

.user-status {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(30, 144, 255, 0.15);
    padding: 0.1rem 0.4rem;
    border-radius: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-top: 0.1rem;
    border: 1px solid rgba(30, 144, 255, 0.2);
}

/* Button sizing variants */
.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.user-menu .btn-sm {
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
    border-radius: 8px;
}

.user-menu .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--bg-dark);
    border: none;
}



/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content {
    text-align: center;
    color: var(--text-primary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notifications */
.notification-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2500;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notification {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    min-width: 300px;
    backdrop-filter: blur(10px);
    box-shadow: var(--glow);
    transform: translateX(100%);
    animation: slideIn 0.3s ease-out forwards;
}

.notification.success {
    border-color: #2240c5;
}

.notification.error {
    border-color: #ef4444;
}

.notification.warning {
    border-color: #f59e0b;
}

@keyframes slideIn {
    to { transform: translateX(0); }
}

/* Sci-Fi Loading Spinner */
.sci-fi-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
}

.spinner-ring {
    position: absolute;
    border: 2px solid transparent;
    border-radius: 50%;
    animation: spinnerRotate 2s linear infinite;
}

.spinner-ring:nth-child(1) {
    width: 80px;
    height: 80px;
    border-top: 2px solid #1e90ff;
    animation-duration: 2s;
}

.spinner-ring:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border-right: 2px solid #001eff;
    animation-duration: 1.5s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 20px;
    border-bottom: 2px solid #0064c8;
    animation-duration: 1s;
}

@keyframes spinnerRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    opacity: 0.9;
    /* Removed loading pulse animation */
}



/* Global Spinner Styles - Consistent across all pages */
.spinner-small {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

/* Responsive Navigation Rules */
@media (max-width: 1024px) {
    .nav-links {
        display: none !important;
    }
    
    .mobile-nav-toggle {
        display: flex !important;
    }
}

@media (min-width: 1025px) {
    .nav-links {
        display: flex !important;
    }
    
    .mobile-nav-toggle {
        display: none !important;
    }
    
    .mobile-nav {
        display: none !important;
    }
}

/* Mobile User Menu Improvements */
@media (max-width: 1024px) {
    .user-menu {
        gap: 0.5rem;
    }
    
    .user-info {
        padding: 0.2rem 0.4rem;
    }
    
    .user-name {
        font-size: 0.8rem;
    }
    
    .user-status {
        font-size: 0.6rem;
        padding: 0.05rem 0.3rem;
    }
}

/* Remove duplicate mobile nav styles - already defined above */

.mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-auth-buttons .btn {
    justify-content: center;
    padding: 1rem 1.5rem;
    width: 100%;
    min-height: 48px; /* Better touch target */
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-auth-buttons .btn:hover,
.mobile-auth-buttons .btn:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 144, 255, 0.3);
}

.mobile-auth-buttons .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: var(--bg-dark);
}

.mobile-auth-buttons .btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.mobile-auth-buttons .btn-outline:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

/* User Menu Mobile Styles */
@media (max-width: 768px) {
    .user-menu {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        flex-shrink: 0;
        position: static;
        width: auto;
        background: none;
        backdrop-filter: none;
        border: none;
        border-radius: 0;
        padding: 0;
        margin-top: 0;
    }

    .user-info {
        display: flex;
        align-items: center;
        gap: 0.3rem;
        cursor: pointer;
        padding: 0.2rem 0.4rem;
        border-radius: 6px;
        transition: var(--transition);
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .user-info:hover {
        background: rgba(30, 144, 255, 0.08);
    }

    .user-name {
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--text-primary);
        white-space: nowrap;
    }

    .user-status {
        display: none !important;
    }

    .user-menu .btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.65rem;
        border-radius: 6px;
        margin-bottom: 0;
        width: auto;
        justify-content: center;
    }

    .user-menu .btn i {
        font-size: 0.6rem;
    }

    .user-menu .btn-sm {
        padding: 0.3rem 0.5rem;
    }

    /* Mobile Navigation adjustments for smaller screens */
    .mobile-nav {
        top: 56px;
        height: calc(100vh - 56px);
        padding: 1rem;
    }

    .mobile-nav-links a {
        font-size: 1rem;
        padding: 0.875rem 0;
        min-height: 44px;
    }

    .mobile-auth-buttons {
        gap: 0.75rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    .mobile-auth-buttons .btn {
        padding: 0.875rem 1rem;
        min-height: 44px;
        font-size: 0.95rem;
    }

    /* Tablet Layout */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 650px;
        padding: 1.5rem;
    }

    .feature-card {
        max-width: 100%;
    }

    .feature-image {
        aspect-ratio: 1;
        padding: 1rem;
    }

    .feature-img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* Show full image without cropping */
        object-position: center;
        display: block;
        margin: 0 auto;
        background: rgba(0, 12, 30, 0.1); /* Subtle background for letterboxing */
    }

    .feature-content {
        padding: 1.25rem 1.75rem 1.75rem 1.75rem;
        gap: 0.5rem;
    }

    .pricing-grid {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }

    .pricing-grid .pricing-card {
        flex: 1 1 auto;
        max-width: 100%;
    }
}

/* Ultra-small mobile screens (320px) */
@media (max-width: 375px) {
    .header {
        padding: 0 0.75rem;
        height: 60px;
    }
    
    .mobile-nav {
        top: 60px;
        height: calc(100vh - 60px);
        padding: 0.75rem;
    }
    
    .mobile-nav-links a {
        font-size: 0.95rem;
        padding: 0.75rem 0;
        min-height: 40px;
    }
    
    .mobile-nav-toggle {
        padding: 0.5rem;
        min-width: 40px;
        min-height: 40px;
        font-size: 1.1rem;
    }
    
    .user-info .user-name {
        font-size: 0.8rem;
    }
    
    .user-status {
        font-size: 0.55rem;
        padding: 0.05rem 0.25rem;
    }
    
    .mobile-auth-buttons .btn {
        padding: 0.75rem 1rem;
        min-height: 40px;
        font-size: 0.9rem;
    }
    
    /* Ensure modal is properly sized on very small screens */
    .modal-content {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
        padding: 1rem;
    }
    
    /* Optimize text for very small screens */
    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

/* Production-ready mobile optimizations */
@media (max-width: 1024px) {
    /* Reduce motion for users who prefer it */
    @media (prefers-reduced-motion: reduce) {
        .mobile-nav,
        .mobile-nav-toggle,
        .mobile-nav-links a,
        .mobile-auth-buttons .btn {
            animation: none;
            transition: none;
        }
    }
    
    /* High contrast mode support */
    @media (prefers-contrast: high) {
        .mobile-nav {
            border: 2px solid var(--primary);
        }
        
        .mobile-nav-links a {
            border-bottom-width: 2px;
        }
        
        .user-status {
            border-width: 2px;
        }
    }
    
    /* Dark mode improvements for mobile */
    @media (prefers-color-scheme: dark) {
        .mobile-nav {
            background: rgba(5, 5, 10, 0.99);
        }
        
        .mobile-nav-toggle:focus {
            outline-color: var(--secondary);
        }
    }
    
    /* Safe area support for iPhone X+ models */
    .header {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    .mobile-nav {
        padding-left: max(1.5rem, env(safe-area-inset-left));
        padding-right: max(1.5rem, env(safe-area-inset-right));
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }
}

    .testimonial-grid {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }

    .testimonial-grid .testimonial {
        flex: 1 1 auto;
        max-width: 100%;
    }

    /* Prevent horizontal scroll */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Fix any overflowing elements */
    img, video, iframe {
        max-width: 100%;
        height: auto;
    }

    /* Text wrapping for mobile - prevent mid-word breaks and hyphens */
    h1, h2, h3, h4, h5, h6, p, span, div {
        word-wrap: normal;
        overflow-wrap: normal;
        word-break: keep-all;
        hyphens: none;
        white-space: normal;
    }
}

.spinner-large {
    width: 60px;
    height: 60px;
    border-width: 4px;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}


* {
    animation-timing-function: ease-out !important;
}

/* Override any cubic-bezier bounce functions */
*[style*="cubic-bezier(0.68, -0.55"] {
    animation-timing-function: ease-out !important;
    transition-timing-function: ease-out !important;
}

/* Ensure stable text rendering globally */
h1, h2, h3, h4, h5, h6, p, span, div, a, button {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
}

/* Prevent text flickering in hero section */
.hero h1, .hero h2, .hero h3, .hero p, .hero span {
    transform: translateZ(0);
    will-change: auto;
}

/* GLOBAL ANIMATION DISABLE - Complete stability (except parallax and energy orb waves) */
*:not(.parallax-layer):not(.energy-orb),
*:not(.parallax-layer):not(.energy-orb)::before,
*:not(.parallax-layer):not(.energy-orb)::after {
    animation: none !important;
    transition: none !important;
    will-change: auto !important;
}

/* Allow energy orb pseudo-elements to animate with varied speeds */
.energy-orb::before,
.energy-orb::after {
    will-change: transform, opacity !important;
    /* Individual orb speeds are defined in their specific classes */
}

/* Disable transforms for most elements except parallax */
body *:not(.parallax-layer) {
    transform: none !important;
}

/* Explicitly allow transforms for parallax elements - no !important so JS can override */
.parallax-layer,
.energy-orb.parallax-layer,
.hero .energy-orb.parallax-layer {
    transform: translateY(0px); /* Initial position, JS will override this */
}

/* Force static positioning for all elements except parallax */
.bg-effects,
.bg-effects::before,
.bg-effects::after,
.hero-title,
.hero-title::before,
.hero-title::after,
.wave-layer-1,
.wave-layer-2,
.wave-layer-3,
.wellness-energy-orbs,
.energy-orb:not(.parallax-layer),
.sound-wave {
    animation: none !important;
    transition: none !important;
    will-change: auto !important;
}

/* Allow parallax transforms for smooth scrolling effects - higher specificity */
.energy-orb.parallax-layer,
.parallax-layer {
    will-change: transform !important;
    transition: none !important;
    animation: none !important;
}

/* OLD ENERGY WAVE ELEMENT RULES REMOVED - NOW USING PSEUDO-ELEMENTS */

/* Ensure parallax elements can be transformed by JavaScript */
.hero .energy-orb.parallax-layer,
.energy-orb.parallax-layer,
.parallax-layer {
    /* No transform restrictions - let JavaScript control this */
}

/* Test animation to verify transforms work */
@keyframes testParallax {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.parallax-layer.test-animation {
    animation: testParallax 2s ease-in-out infinite;
}





/* Large Desktop Screens */
@media (min-width: 1400px) {
    .container, .section-container {
        max-width: 1400px;
    }

    .section-container {
        padding: 1rem 1.5rem;
    }

    /* Large Desktop Header Images */
    .section-header-image {
        height: 350px;
        margin-bottom: 2.5rem;
        border-radius: 16px;
    }
}

/* Freqipedia Research Section - seamless styling with opacity */
.freqipedia {
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    opacity: 0.9;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 0.5rem 0;
}

.research-card {
    background:
        linear-gradient(135deg,
            rgba(0, 12, 30, 0.8) 0%,
            rgba(2, 18, 40, 0.7) 50%,
            rgba(0, 12, 30, 0.8) 100%);
    border: 1px solid rgba(30, 144, 255, 0.4);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(15px) saturate(1.1);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 20px rgba(30, 144, 255, 0.15);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}



.research-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background: rgba(0, 12, 30, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.research-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    filter: brightness(1.1) contrast(1.1);
}



.research-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.research-content h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.research-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    flex: 1;
    word-wrap: normal;
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0.5rem;
}

.research-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
    margin-top: auto;
}



.research-link i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}



.freqipedia-cta {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background:
        linear-gradient(135deg,
            rgba(0, 12, 30, 0.9) 0%,
            rgba(2, 18, 40, 0.85) 50%,
            rgba(0, 12, 30, 0.9) 100%);
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 20px;
    backdrop-filter: blur(25px) saturate(1.3);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(0, 255, 255, 0.15);
}

.freqipedia-cta h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.freqipedia-cta p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .research-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
        justify-items: center;
        align-items: center;
    }

    .research-card {
        margin: 0 auto;
        max-width: 350px;
        width: 100%;
    }

    .research-thumbnail {
        aspect-ratio: 16/9;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        background: rgba(0, 12, 30, 0.15);
        border-radius: 6px;
    }

    .research-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        display: block;
        margin: 0 auto;
        filter: brightness(1.2) contrast(1.2);
    }

    .research-content {
        padding: 0.75rem;
    }

    .research-content h3 {
        font-size: 0.9rem;
    }

    .research-content p {
        font-size: 0.8rem;
    }

    .freqipedia-cta {
        margin: 2rem 0 0 0;
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .research-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        justify-items: center;
        align-items: center;
        padding: 1rem;
    }

    .research-card {
        margin: 0 auto;
        max-width: 300px;
        width: 100%;
    }
}

/* Enhanced text wrapping for all content - prevent mid-word breaks and hyphens */
p, span, div, li, h1, h2, h3, h4, h5, h6,
.feature-description, .testimonial-text, .research-content p,
.section-subtitle, .hero-subtitle, .problem-list li,
.solution-list li, .pricing-features li, .faq-item p,
.form-description, .auth-switch p, .modal-title,
.pricing-period, .pricing-title, .feature-title,
.testimonial-info h4, .testimonial-info p,
.research-content h3, .freqipedia-cta h3, .freqipedia-cta p {
    word-wrap: normal !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
    hyphens: none !important;
    white-space: normal !important;
}

/* Special handling for very long words or URLs */
.research-link, .link-button, a {
    word-wrap: normal !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
    hyphens: none !important;
}

/* Program Modal Styles */
.program-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.program-modal:not(.hidden) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(0, 255, 200, 0.3);
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 255, 200, 0.1);
    animation: modalSlideIn 0.3s ease-out;
    z-index: 10001;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 200, 0.2);
}

.modal-title {
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    font-weight: 600;
    color: #004cff;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #0062ff;
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 255, 200, 0.1);
    transform: rotate(90deg);
}

.modal-body {
    color: #e0e0e0;
    font-size: 16px;
    line-height: 1.6;
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-body ul {
    margin: 15px 0;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 8px;
    color: #c0c0c0;
}

/* Prevent background scrolling when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Program Modal Content Styling */
.modal-program-content h4 {
    color: #0059ff;
    font-family: 'Orbitron', monospace;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-shadow: 0 0 10px rgba(0, 255, 200, 0.3);
}

.modal-program-content p {
    color: #e0e0e0;
    margin-bottom: 20px;
    line-height: 1.6;
}

.modal-program-content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.modal-program-content li {
    background: rgba(0, 255, 200, 0.05);
    border: 1px solid rgba(0, 255, 200, 0.15);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 10px;
    color: #c0c0c0;
    transition: all 0.3s ease;
}

.modal-program-content li:hover {
    background: rgba(0, 255, 200, 0.1);
    border-color: rgba(0, 255, 200, 0.3);
}

.modal-program-content li strong {
    color: #005eff;
    font-weight: 600;
}

.program-benefits {
    background: linear-gradient(135deg, 
        rgba(0, 255, 200, 0.05) 0%, 
        rgba(0, 150, 255, 0.05) 100%);
    border: 1px solid rgba(0, 255, 200, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
}

.program-benefits h5 {
    color: #006eff;
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    text-shadow: 0 0 8px rgba(0, 255, 200, 0.4);
}

.program-benefits p {
    color: #e0e0e0;
    margin: 0;
    font-style: italic;
}

/* Mobile Modal Adjustments */
@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        width: 95%;
        margin: 10px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-body {
        font-size: 14px;
    }

    .modal-program-content h4 {
        font-size: 18px;
    }

    .modal-program-content li {
        padding: 10px 12px;
        font-size: 14px;
    }

    .program-benefits {
        padding: 15px;
    }

    .program-benefits h5 {
        font-size: 14px;
    }
}
