:root {
    /* Color Palette - Premium SaaS Dark Mode */
    --bg-dark: #050720;
    --navy-deep: #070b2e;
    --navy-light: #0a1140;
    --primary: #2B3990;
    --secondary: #F9B233; /* Brand Gold */
    --accent: #00d2ff; /* Teal accent for logos/highlights */
    --text-main: #ffffff;
    --text-muted: #ffffff; /* Make all text pure white */
    --border: rgba(255, 255, 255, 0.08);
    
/* Spacing System (Mobile First) */
    --container-px-m: 16px;
    --container-px-d: 24px;
    --section-py-m: 48px;
    --section-py-d: 80px;
    --block-gap: 24px;
    --cta-gap: 32px;
    
    /* Punctuation & Icons */
    --accent-purple: #5E2D91;
    
    /* Transitions */
    --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Awareness Banner (Restored) */
.awareness-banner {
    background: linear-gradient(90deg, var(--primary), var(--accent-purple));
    color: white;
    text-align: center;
    padding: 12px 16px;
    font-size: 0.9rem;
    position: relative;
    z-index: 1100;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.awareness-banner p {
    margin-bottom: 0;
    color: white;
    font-size: 0.9rem;
    line-height: 1.2;
}

.awareness-banner a {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: underline;
    margin-left: 8px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Subtle Animated Background Gradient */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, #0a1140 0%, transparent 40%),
                radial-gradient(circle at 70% 70%, #050720 0%, transparent 40%),
                radial-gradient(circle at 50% 50%, #070b2e 0%, transparent 50%);
    z-index: -1;
    animation: gradientMove 25s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes gradientMove {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-25%, -25%); }
    100% { transform: translate(0, 0); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-px-m);
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--container-px-d);
    }
}

/* Typography (Calm & Trustworthy) */
h1, h2, h3 {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em; /* Tighter for modern look */
    line-height: 1.15;
    text-transform: none; /* strictly enforce as typed */
    font-weight: 700;
}

h1 {
    font-size: clamp(2.25rem, 8vw, 3.5rem);
    margin-bottom: var(--block-gap);
}

h2 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    margin-bottom: var(--block-gap);
}

p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Header */
.main-header {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 7, 32, 0.85);
}

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

.brand-logo {
    height: 42px;
    width: auto;
    /* Removed brightness filter to use natural brand colors */
}

.ndis-wrapper {
    background: #ffffff;
    padding: 10px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ndis-badge-header {
    height: 34px;
    width: auto;
    display: block;
}

/* Hero Section with 3D Texture Overlay */
.hero-vsl {
    padding: var(--section-py-m) 0;
    position: relative;
    overflow: hidden;
}

.hero-vsl::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('autism-images/animated.jpg') center/cover no-repeat;
    opacity: 0.1; /* Slightly more visible depth */
    mix-blend-mode: soft-light;
    pointer-events: none;
    z-index: -1;
}

@media (min-width: 1024px) {
    .hero-vsl {
        padding: var(--section-py-d) 0;
        text-align: center; /* Centered flow for video-at-top layout */
    }
    
    .hero-vsl .grid-2 {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
        max-width: 1000px;
        margin: 0 auto;
    }
    
    .hero-vsl .content-wrapper {
        max-width: 800px;
    }
}

.hero-vsl .content-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--block-gap);
    margin-bottom: 32px;
}

@media (min-width: 1024px) {
    .hero-vsl .content-wrapper {
        margin-bottom: 0;
    }
}

.hero-title span {
    color: var(--secondary);
}

.hero-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: var(--block-gap);
    align-items: flex-start; /* Left-align the text with each other */
    width: fit-content;      /* Center the block itself */
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .hero-points {
        align-items: flex-start; /* Maintain consistent left-alignment on desktop */
    }
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    color: var(--text-main);
}

.hero-points li span {
    width: 28px;
    height: 28px;
    background: #00d2ff;
    color: #050720;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 900;
    flex-shrink: 0;
}

/* Buttons System */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 999px;
    transition: var(--transition-smooth);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    text-align: center;
    border: none;
    width: 100%; /* Mobile full width */
}

@media (min-width: 768px) {
    .btn {
        width: auto;
    }
}

.btn-primary {
    background-color: var(--secondary);
    color: #1a1a1a;
    box-shadow: 0 4px 14px 0 rgba(249, 178, 51, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 178, 51, 0.5);
}

.cta-subtext {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 12px;
    display: block;
}

/* VSL Container */
.vsl-container {
    width: 100%;
    margin-bottom: var(--block-gap);
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}

.vsl-video-wrapper {
    width: 100%;
    height: 100%;
}

/* Trust Stats / Services / Contact with VC8 Watermark */
.trust-stats, .services-info, .contact-cta {
    padding: var(--section-py-d) 0;
    position: relative;
    overflow: hidden;
}

.trust-stats .stats-grid {
    display: flex;
    justify-content: space-between; /* Spread out across the 1200px */
    flex-wrap: wrap;
    gap: 40px;
    text-align: center;
}

.services-info .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start; /* Start from the top to minimize bottom gap */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.services-info .content-wrapper {
    padding: 24px 20px 0 0; /* Add a bit of top cushion */
    margin: 0;
}

.services-info .feature-list {
    gap: 24px; /* Increase vertical spread */
}

@media (max-width: 1023px) {
    .services-info .grid-2 {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.trust-stats::before, .services-info::before, .contact-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('autism-images/VC (8).jpg') center/contain no-repeat;
    opacity: 0.1; /* Increased visibility for branding */
    pointer-events: none;
    z-index: -1;
}

.trust-stats {
    background: var(--navy-deep);
}

@media (min-width: 1024px) {
    .trust-stats {
        padding: var(--section-py-d) 0;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--secondary);
}

/* Services / SIL Section */
.services-info {
    padding: var(--section-py-m) 0;
}

@media (min-width: 1024px) {
    .services-info {
        padding: var(--section-py-d) 0;
    }
    
    .services-info .grid-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 80px;
        align-items: flex-start;
    }
}

.feature-list {
    list-style: none;
    margin: var(--block-gap) 0 var(--cta-gap);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-list li {
    display: flex;
    gap: 16px;
}

.feature-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #00d2ff;
    color: #050720;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 900;
    font-size: 1.1rem;
}

/* Gallery Carousel */
.gallery-section {
    padding: var(--section-py-d) 0;
    position: relative;
    overflow: hidden;
}

.gallery-wrapper {
    position: relative;
    z-index: 1;
}

.gallery-section .section-title {
    margin-bottom: 12px;
}

.gallery-section .section-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

.gallery-title {
    text-align: center;
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 24px;
    font-weight: 600;
}

.carousel-container {
    width: 100%;
    max-width: 1100px; /* Larger desktop carousel */
    margin: 40px auto 0;
    position: relative;
    padding: 0 40px;
    aspect-ratio: 16/9;
}

.gallery-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.6);
    background: #000;
}

.gallery-slide {
    display: none; /* JS will toggle 'visible' */
    width: 100%;
    height: 100%;
    animation: fadeEffect 0.8s ease-in-out;
}

.gallery-slide.active {
    display: block;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact/Form Section */
.contact-cta {
    padding: var(--section-py-m) 0;
    background: var(--navy-deep);
}

.contact-wrapper-box {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

.cta-form {
    margin-top: var(--block-gap);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 640px) {
    .form-row {
        flex-direction: row;
    }
}

input, select {
    flex: 1;
    padding: 16px;
    background: #1a1e3d; /* Solid background for dropdowns to fix invisible text issues */
    border: 1px solid var(--border);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--secondary);
    background: #23284f;
}

/* Explicitly style options for visibility against white system backgrounds */
option {
    background-color: #1a1e3d;
    color: white;
    padding: 12px;
}

/* Custom Success Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 32, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: modalFadeIn 0.4s ease;
}

.modal-card {
    background: var(--navy-light);
    border: 1px solid var(--secondary);
    padding: 40px;
    border-radius: 24px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
    animation: modalSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-title {
    color: var(--secondary);
    font-size: 2.25rem;
    margin-bottom: 16px;
}

.modal-text {
    font-size: 1.15rem;
    color: white;
    margin-bottom: 24px;
    line-height: 1.6;
}

.btn-modal {
    width: auto !important;
    padding: 12px 40px !important;
}

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

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

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

/* Footer */
.main-footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
    background: var(--bg-dark);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .grid-2, .stats-grid, .footer-content {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .hero-vsl {
        padding: 60px 0;
    }
    
    .contact-wrapper-box {
        padding: 2rem 1.5rem;
    }

    .header-content {
        gap: 16px;
    }

    .brand-logo {
        height: 36px;
    }

    .ndis-wrapper {
        padding: 6px 12px;
    }

    .ndis-badge-header {
        height: 28px;
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        align-items: flex-start;
    }
}

.footer-brand-img {
    height: 40px;
    filter: brightness(0) invert(1);
    margin-bottom: 16px;
}

.footer-links, .contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
}

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

.ndis-badge-footer {
    height: 50px;
    background: transparent !important;
}

.sub-footer {
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Global Grid Consistency */
/* Improved Entrance Animations */
.animate-in {
    opacity: 0;
    transform: translateY(40px);
    will-change: transform, opacity;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Stagger Effects */
.stat-item:nth-child(1) { transition-delay: 0.1s; }
.stat-item:nth-child(2) { transition-delay: 0.3s; }
.stat-item:nth-child(3) { transition-delay: 0.5s; }

.hero-points li:nth-child(1) { transition-delay: 0.2s; }
.hero-points li:nth-child(2) { transition-delay: 0.4s; }
.hero-points li:nth-child(3) { transition-delay: 0.6s; }
.hero-points li:nth-child(4) { transition-delay: 0.8s; }

.feature-list li:nth-child(1) { transition-delay: 0.1s; }
.feature-list li:nth-child(2) { transition-delay: 0.3s; }
.feature-list li:nth-child(3) { transition-delay: 0.5s; }


