/* --- CSS VARIABLES & RESET --- */
:root {
    /* Brand Colors - Exact Match from App */
    --color-primary: #3460C5;
    /* Darker Blue for accessible contrast (4.5:1+) */
    /* --color-primary: #5A8DEE; Original */
    --color-primary-light: #7B61FF;
    --color-primary-dark: #2A4EA3;

    --color-secondary: #89D934;
    /* Fresh Lime */
    --color-secondary-light: #E9F7D9;

    --color-accent: #00b894;
    /* Teal */

    --color-bg: #F8FAFC;
    /* Slate 50 */
    --color-surface: #FFFFFF;
    --color-text: #1E293B;
    /* Darker Slate 800 */
    --color-text-light: #334155;
    /* Slate 700 for better contrast */
    /* Darkened from #475569 for strict contrast */
    --color-secondary-text: #365E0E;
    /* Deep Green for accessible text */

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #5A8DEE 0%, #7B61FF 100%);
    --gradient-soft: radial-gradient(circle at top left, #f8fafc, #eef2f6);

    /* Typography */
    --font-heading: 'Fredoka', sans-serif;
    /* Friendly & Round */
    --font-body: 'Quicksand', sans-serif;
    /* Clean & Soft */

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px;

    /* Effects */
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-float: 0 20px 40px -10px rgba(90, 141, 238, 0.2);
    --shadow-card: 0 10px 30px -10px rgba(90, 141, 238, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: 1px solid rgba(255, 255, 255, 0.8);
    --glass-blur: blur(20px);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- LAYOUT UTILITIES --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 2;
}


/* --- COMPONENTS --- */

.brand-logo {
    max-width: 150px;
    height: auto;
}




/* Cards with Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-card);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-float);
}






/* Mobile Utility to hide elements */
/* Mobile Utility to hide elements */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}





/* Mobile Utility to hide elements */
@media (max-width: 1200px) {
    .desktop-only {
        display: none !important;
    }
}

/* --- NAVBAR STYLES (Restored) --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    backdrop-filter: blur(0px);
    box-shadow: none;
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-family: var(--font-heading, 'Fredoka', sans-serif);
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    transition: color 0.4s ease;
    white-space: nowrap;
    color: var(--color-primary);
    /* Default blue */
}

/* Force Default Brand Color to Blue */
.brand {
    color: #5A8DEE !important;
}

.brand-logo {
    width: 55px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-body, 'Quicksand', sans-serif);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    text-decoration: none !important;
    /* White by default for Hero contrast, but override if needed */
    color: rgba(255, 255, 255, 0.95);
    transition: color 0.3s ease;
}

.navbar.scrolled .nav-link {
    color: var(--color-text, #2C3E50);
}

.nav-link:hover {
    color: white;
}

.navbar.scrolled .nav-link:hover {
    color: var(--color-primary, #5A8DEE);
}

/* --- NAVBAR INVERSE (For Light Background Pages) --- */
/* Use this class on pages with white/light hero sections */
.navbar-inverse .brand {
    color: var(--color-primary, #5A8DEE);
    text-shadow: none;
}

.navbar-inverse .brand-logo {
    filter: none;
}

.navbar-inverse .nav-link {
    color: var(--color-text, #2C3E50);
}

.navbar-inverse .nav-link::before {
    background: rgba(90, 141, 238, 0.1);
}

.navbar-inverse .nav-link:hover {
    color: var(--color-primary, #5A8DEE);
}

.navbar-inverse .nav-link.active {
    color: var(--color-primary, #5A8DEE);
}

/* Mobile Toggle for Inverse */
.navbar-inverse .mobile-menu-btn span {
    background-color: var(--color-primary, #5A8DEE);
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    min-width: 220px;
    padding: 10px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    padding: 10px 15px;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    border-radius: 10px;
}

.dropdown-item:hover {
    background: var(--color-secondary-light);
    color: var(--color-primary);
}

/* Mobile Menu Btn (Restored) */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2002;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    width: 32px;
    height: 4px;
    background-color: #FF6B35;
    margin: 6px 0;
    border-radius: 4px;
    transition: 0.3s;
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: right 0.4s, visibility 0.4s;
    visibility: hidden;
    /* Hide from Screen Readers when closed */
}

.mobile-menu-overlay.open {
    right: 0;
    visibility: visible;
}

.mobile-nav-link {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
}

@media (max-width: 1024px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

/* Parallax Background Layers */
.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    /* Taller for scroll room */
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.layer-bg {
    background: radial-gradient(circle at top right, rgba(90, 141, 238, 0.1), transparent 60%),
        radial-gradient(circle at bottom left, rgba(137, 217, 52, 0.15), transparent 60%);
}

/* Organic Shapes CSS w/ Parallax */
.blob {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0.6;
    filter: blur(40px);
}

.blob-1 {
    top: 10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: var(--color-secondary-light);
}

.blob-2 {
    bottom: 10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: #E0F2FE;
}

/* Footer CTA - Specific to Home */
.footer-cta {
    position: relative;
    z-index: 10;
    margin-top: -100px;
}

/* Privacy Policy Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 40px;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 25px;
    top: 15px;
    transition: 0.3s;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--color-primary);
    text-decoration: none;
    cursor: pointer;
}

.modal-body h2 {
    color: var(--color-primary-dark);
    margin-bottom: 10px;
}

.modal-body h3 {
    color: var(--color-secondary);
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.modal-body p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--color-text-light);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    /* Increased width for centered layout */
    margin: 0 auto;
    /* Center content */
    text-align: center;
    /* Center text */
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 24px;
    /* opacity & animation removed; children animate instead */
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInSlideUp 1s ease forwards 0.4s;
}

.hero-btns {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInSlideUp 1s ease forwards 0.6s;
    display: flex;
    gap: 20px;
    justify-content: center;
    /* Center buttons */
}

/* Hero Image - Floating Parallax */
/* Hero Image - Full Width Background */
.hero-visual {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    /* Fully visible dark hero */
    opacity: 1;
    transition: opacity 0.1s ease-out;
}

.hero-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darker overlay for White Text readability matches Wellness Coaching */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.hero-img-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transform: translateY(var(--scroll-y, 0px));
    /* Slightly darken the image itself too */
    filter: brightness(0.9);
}

/* --- SPLASH SCREEN --- */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: #FFFFFF;
    /* Matches site background */
    display: flex;
    flex-direction: column;
    /* Stack video and button */
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-video-container {
    position: relative;
    width: 70%;
    /* Increased from 50% */
    max-width: 900px;
    /* box-shadow: none; border: none; overflow: visible; */
    margin-bottom: -40px;
    /* Slight overlap or tight spacing */
    z-index: 1;
}

.splash-video {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: multiply;
    /* Blends white video bg with page bg */
}

.splash-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInSlideUp 1s ease-out 0.5s backwards;
}

.splash-btn {
    background: var(--color-primary);
    color: white;
    font-size: 1.2rem;
    padding: 15px 40px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    margin-top: 5vh;
    /* Adjusted to 5vh based on user request */
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.splash-btn:hover {
    transform: scale(1.05);
    background: var(--color-primary-dark);
}

/* --- GLOBAL BUTTON STYLES (Restored) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none !important;
    font-family: var(--font-heading, 'Fredoka', sans-serif);
}

.btn-primary {
    background: var(--color-primary, #5A8DEE);
    color: white !important;
    box-shadow: 0 10px 25px rgba(90, 141, 238, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(90, 141, 238, 0.4);
    background: var(--color-primary-dark, #3F72D3);
    color: white !important;
}

.btn-secondary {
    background: white;
    color: var(--color-primary, #5A8DEE) !important;
    border: 2px solid var(--color-primary, #5A8DEE);
}

.btn-secondary:hover {
    background: var(--color-primary, #5A8DEE);
    color: white !important;
    transform: translateY(-2px);
}

/* Global Pulse Animation Class */
.btn-pulse {
    animation: pulse-glow 2s infinite;
    box-shadow: 0 4px 15px rgba(137, 217, 52, 0.3);
}

.btn-pulse:hover {
    animation: none;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 25px rgba(137, 217, 52, 0.6);
}

/* --- LIQUID ANIMATION (Global) --- */
.btn-liquid {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease-in-out;
    background: transparent !important;
    /* Force transparent so liquid shows */
}

/* Base Background (Behind everything) */
.btn-liquid::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    border-radius: 50px;
    transition: all 0.4s ease;
}

/* Map Base Colors */
.btn-primary.btn-liquid::after {
    background: var(--color-primary, #5A8DEE);
}

.btn-secondary.btn-liquid::after {
    background: white;
}

/* The Liquid Wave (Green by Default) */
.btn-liquid::before {
    content: "";
    position: absolute;
    top: 200%;
    left: 50%;
    width: 500px;
    height: 500px;
    z-index: -1;
    border-radius: 40%;
    transform: translateX(-50%) rotate(0deg);
    transition: top 1.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    animation: waveSpin 6s linear infinite;
    opacity: 0;
    background: var(--color-secondary, #89D934);
}

.btn-liquid:hover::before {
    top: -50px;
    opacity: 1;
}

.btn-liquid:hover {
    color: white !important;
    box-shadow: 0 10px 20px rgba(137, 217, 52, 0.4);
}

@keyframes waveSpin {
    from {
        transform: translateX(-50%) rotate(0deg);
    }

    to {
        transform: translateX(-50%) rotate(360deg);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(137, 217, 52, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(137, 217, 52, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(137, 217, 52, 0);
    }
}


/* --- SECTIONS --- */

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

.about-img-wrapper {
    position: relative;
}

.about-img {
    border-radius: 40px 4px 40px 4px;
    box-shadow: var(--shadow-float);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.about-img:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 30px 60px -12px rgba(90, 141, 238, 0.25);
}

.about-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: white;
    padding: 24px;
    border-radius: 50%;
    box-shadow: var(--shadow-card);
    text-align: center;
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-weight: 700;
    color: var(--color-primary);
    border: 4px solid var(--color-bg);
    animation: float 6s ease-in-out infinite;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Default 3 col desktop */
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    text-align: left;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--color-primary-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 28px;
    color: white;
}

/* Process */
.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 80px;
}

.process-line {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #E2E8F0;
    z-index: -1;
    background-image: linear-gradient(to right, var(--color-primary) 50%, transparent 50%);
    background-size: 20px 100%;
}

.step {
    text-align: center;
    background: var(--color-bg);
    padding: 0 10px;
    flex: 1;
}

.step-num {
    width: 80px;
    height: 80px;
    background: white;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 auto 24px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.step:hover .step-num {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1);
}

/* Testimonials */
.testimonials {
    background: var(--color-surface);
    overflow: hidden;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* CTA */
.cta-section {
    background: var(--color-primary);
    color: white;
    text-align: center;
    border-radius: 40px;
    margin: 40px 24px;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    color: white;
}

.cta-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background: radial-gradient(circle, white 2px, transparent 2px);
    background-size: 30px 30px;
}

/* Footer */
footer {
    background: #111827;
    /* Darker Slate 900 */
    color: white;
    padding: 60px 0 30px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.footer-links a {
    opacity: 0.9;
    color: white;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-secondary);
    text-decoration: underline;
}

.footer-nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    margin: 0 15px;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-nav-link:hover {
    color: var(--color-secondary) !important;
}

/* --- ANIMATIONS --- */
/* --- ANIMATIONS --- */
@keyframes fadeInSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Colourful Text Animation */
.colourful-text {
    background: linear-gradient(to right, #5A8DEE, #89D934, #5A8DEE);
    /* Brand Blue -> Brand Green -> Brand Blue Loop */
    background-size: 200% auto;
    color: transparent !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    animation: gradientFlow 3s linear infinite, fadeInScale 0.8s ease-out forwards;
    /* Faster flow (3s) for more dynamic feel */
    opacity: 0;
    display: inline-block;
}

@keyframes gradientFlow {
    to {
        background-position: 200% center;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Scroll Reveal Utility */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    :root {
        --section-padding: 80px;
    }
}

@media (max-width: 768px) {
    .hero {
        /* flex-direction: column;  Already column by default flow if content allows, but flex-col centers items well */
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 100px;
        /* Reduced padding */
    }

    .hero-content {
        margin: 0 auto;
        padding: 0 16px;
        max-width: 100%;
    }

    .hero-btns {
        flex-direction: column;
        /* Stack buttons on mobile which is better for thumb reach */
        gap: 16px;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        /* Full width buttons */
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .process-steps {
        flex-direction: column;
        gap: 40px;
    }

    .process-line {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Fix Hero Visual for Mobile - Keep it immersive */
    .hero-visual {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        margin: 0;
        right: auto;
        /* opacity: 0.3; Inherits global, which is good */
    }

    h1 {
        font-size: 2.5rem;
        /* Smaller H1 */
    }

    /* Splash Optimizations */
    .splash-video-container {
        width: 90%;
        /* Larger video on mobile */
    }

    .section {
        padding: 60px 0;
        /* Tighter spacing */
    }

    /* Footer Mobile Optimization */
    .footer-links {
        flex-direction: column;
        gap: 15px;
        margin: 20px 0;
    }

    .footer-nav-link {
        margin: 5px 0;
        display: block;
        font-size: 1.1rem;
        /* Larger touch target */
    }
}

/* --- VIDEO MODAL (Restored) --- */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Prevent scrolling behind */
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

.video-modal-content {
    background-color: #000;
    margin: auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 1000px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 16 / 9;
    /* Enforce video aspect ratio */
}

.video-modal-content video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
}

.video-modal-close {
    color: white;
    position: absolute;
    right: -50px;
    /* Outside right on desktop */
    top: 0;
    z-index: 10001;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.3s ease;
    padding: 0;
    /* accurate centering */
}

.video-modal-close:hover {
    background: white;
    color: black;
    transform: rotate(90deg);
}

.video-modal-close span {
    font-size: 28px;
    line-height: 1;
}

@media (max-width: 1100px) {
    .video-modal-close {
        right: 10px;
        top: 10px;
        background: rgba(0, 0, 0, 0.5);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}