:root {
    /* Primary Colors */
    --primary: #4DA3FF;
    --primary-hover: #3b8fe0;
    --primary-glow: rgba(77, 163, 255, 0.4);
    
    /* Secondary & Neutrals (Dark Theme) */
    --bg-light: rgba(255, 255, 255, 0.03); /* Subtle backdrop */
    --bg-white: rgba(15, 23, 42, 0.4); /* Glassmorphism Base */
    --text-dark: #F8FAFC; /* White-ish text */
    --text-muted: #94A3B8; /* Light Grey text */
    --dark-bg: #050812; /* Darker Footer base */
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4DA3FF 0%, #0066FF 100%);
    --gradient-hero-bg: transparent; /* Disable since body handles the dark mesh */
    
    /* Typography */
    --font-main: 'Montserrat', sans-serif;
    
    /* Spacing & Layout */
    --section-padding: 120px 0;
    --container-width: 1200px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-primary: 0 10px 25px rgba(77, 163, 255, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #060a16;
    background-image: 
        radial-gradient(circle at 80% -10%, #0d346e 0%, transparent 45%),
        radial-gradient(circle at 10% 100%, #082153 0%, transparent 50%),
        radial-gradient(circle at 45% 45%, rgba(6, 15, 33, 0.8) 0%, transparent 80%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

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

.bg-light {
    background-color: transparent; /* Disabled solid backgrounds for dark mode */
}

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

.section-padding {
    padding: var(--section-padding);
}

.section-padding-large {
    padding: 160px 0;
}

/* Typography structure */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.eyebrow {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 1rem;
}

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

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* =========================================
   Buttons & Links
========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
}

.cta-text {
    margin-bottom: 50px;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #FFFFFF;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(77, 163, 255, 0.4);
    color: #FFFFFF;
}

.btn-secondary {
    background: transparent;
    border-color: var(--border-color);
    color: #FFFFFF;
}

.btn-secondary:hover {
    border-color: #FFFFFF;
    background-color: #FFFFFF;
    color: var(--dark-bg);
    transform: translateY(-3px);
}

.btn-block {
    width: 100%;
}

.btn-glow {
    position: relative;
    z-index: 1;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--primary);
    filter: blur(20px);
    opacity: 0;
    z-index: -1;
    transition: var(--transition-base);
    border-radius: 50px;
}

.btn-glow:hover::after {
    opacity: 0.6;
}

/* =========================================
   Header & Navigation
========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: var(--transition-base);
    background-color: transparent;
}

.header.scrolled {
    background-color: rgba(6, 9, 19, 0.85); /* Dark Glass */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    padding: 15px 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-dark);
}

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

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
}

.nav-link:hover {
    color: var(--text-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-base);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-btn {
    padding: 10px 24px;
    font-size: 0.95rem;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   Cinematic Hero Transition
========================================= */
.cinematic-wrapper {
    position: relative;
    height: 500vh; /* Scroll track for sequence and transition */
    background: #060a16;
}

.cinematic-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.cinematic-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform, opacity, filter;
}

.sequence-layer {
    z-index: 2;
    background: #000;
    pointer-events: none;
}

#hero-laptop-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landing-layer {
    z-index: 1;
    opacity: 0;
    transform: scale(0.85); /* Starting scale for parallax */
    filter: blur(20px);
    pointer-events: none;
}

.hero-inner {
    width: 100%;
    min-height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    padding: 100px 0;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    z-index: 100;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.scroll-indicator span {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0.8;
}

.scroll-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* Original Hero Elements Restored */
.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blur-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
}

.blob-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: rgba(77, 163, 255, 0.2);
}

.blob-2 {
    bottom: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(26, 26, 26, 0.05);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-text {
    max-width: 650px;
}

.hero-headline {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-headline span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subheadline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

/* Interactive Hero Graphic */
.interactive-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
    position: relative;
}

/* Static Hero Image */
.hero-visual img {
    transition: transform 0.4s ease;
}
.hero-visual img:hover {
    transform: scale(1.02);
}

.text-white {
    color: #FFFFFF !important;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes floatFast {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-3deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.float-slow {
    animation: float 6s ease-in-out infinite;
}

.float-fast {
    animation: floatFast 4s ease-in-out infinite;
}


/* =========================================
   Services Section
========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: var(--bg-white);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-base);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(77, 163, 255, 0.2);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 24px;
    transition: var(--transition-base);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--bg-white);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.service-text {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.service-link {
    font-weight: 600;
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link i {
    transition: var(--transition-fast);
}

.service-card:hover .service-link {
    color: var(--primary);
}

.service-card:hover .service-link i {
    transform: translateX(4px);
}

/* =========================================
   Features (Why Choose Us)
========================================= */
/* =========================================
   Features Carousel (Why Choose Us)
========================================= */
.features-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    margin-top: 50px;
    padding-bottom: 20px; /* Space for scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-light);
}

.features-carousel::-webkit-scrollbar {
    height: 8px;
}

.features-carousel::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.features-carousel::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.feature-item {
    flex: 0 0 calc(25% - 22.5px);
    scroll-snap-align: start;
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-white);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
    cursor: pointer;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(77, 163, 255, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.125rem;
}

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

.lead-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.about-content p {
    margin-bottom: 16px;
    color: var(--text-muted);
}

.about-image {
    aspect-ratio: 4/3;
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    background: linear-gradient(135deg, rgba(245,247,250,1) 0%, rgba(226,232,240,0.5) 100%);
}

.logo-placeholder {
    font-size: 8rem;
    color: #cbd5e1;
}

/* =========================================
   Team Section
========================================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
    max-width: 900px;
    margin-inline: auto;
}

.team-card {
    background: var(--bg-white);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.team-image-placeholder {
    height: 300px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #cbd5e1;
}

.team-info {
    padding: 30px;
    text-align: center;
}

.team-name {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.team-role {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 16px;
}

.team-bio {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 50%;
    color: var(--text-dark);
}

.social-link:hover {
    background: var(--primary);
    color: var(--bg-white);
}

/* Logo Marquee Section */
.logo-marquee-container {
    padding: 60px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    margin-top: 30px;
}

.logo-marquee-container::before,
.logo-marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15rem;
    height: 100%;
    z-index: 2;
}

.logo-marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #050812, transparent);
}

.logo-marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #050812, transparent);
}

.logo-marquee-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.logo-marquee-container:hover .logo-marquee-track {
    animation-play-state: paused;
}

.logo-marquee-item {
    flex: 0 0 250px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
}

.logo-marquee-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(1) brightness(1.5) opacity(0.9);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.logo-marquee-item img:hover {
    filter: grayscale(0) brightness(5) opacity(1);
    transform: scale(1.1);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-250px * 5)); /* 5 logos */
    }
}

/* =========================================
   Testimonials Component (Reusable)
========================================= */
.testimonials-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 60px;
    max-width: 1100px;
    margin-inline: auto;
}

.testimonial-component {
    display: flex;
    background: var(--bg-white);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid var(--primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 60px;
    gap: 40px;
    align-items: center;
    color: var(--text-dark);
    transition: var(--transition-base);
}

.testimonial-component:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-text-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-quote {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 30px;
    font-style: normal;
    color: var(--text-dark);
}

.testimonial-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.testimonial-company {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.testimonial-image-wrapper {
    flex-shrink: 0;
    width: 520px;
    height: 360px;
    border-radius: 12px;
    overflow: hidden;
    /* Optional: add a subtle shadow to the image inside the blue box */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.testimonial-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================
   Contact Form
========================================= */
.contact-container {
    max-width: 800px;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.glass-card {
    background: var(--bg-white);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 60px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

input, select, textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255,255,255,0.05); /* Glass input bg */
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition-fast);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.15);
    background: rgba(255,255,255,0.1);
}

/* Custom Select Styling wrapper */
.custom-select {
    position: relative;
}

.custom-select::after {
    content: '\f107'; /* FontAwesome angle-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
}

select {
    appearance: none;
    cursor: pointer;
}

.form-success {
    text-align: center;
    padding: 40px 0;
}

.hidden {
    display: none !important;
}

.success-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 20px;
}

/* =========================================
   Footer
========================================= */
.footer {
    background-color: var(--dark-bg);
    color: #e2e8f0;
    padding: 80px 0 30px;
}

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

.text-white {
    color: #ffffff;
}

.footer-desc {
    color: #94a3b8;
    margin-top: 16px;
    max-width: 300px;
}

.footer h4 {
    color: #ffffff;
    margin-bottom: 24px;
    font-size: 1.125rem;
}

    .footer-links a, .footer-contact a, .footer-social a, .footer-contact p {
        display: block;
        color: #94a3b8;
        margin-bottom: 12px;
    }

    .footer-links a:hover, .footer-contact a:hover, .footer-social a:hover {
        color: var(--primary);
        transform: translateX(4px);
    }

    .footer-social i {
        margin-right: 8px;
    }

    .footer-bottom {
        text-align: center;
        padding-top: 30px;
        border-top: 1px solid rgba(255,255,255,0.1);
        color: #64748b;
        font-size: 0.875rem;
    }

    /* =========================================
       Scroll Animations Classes
    ========================================= */
    .fade-in-up, .fade-in-left, .fade-in-right {
        opacity: 0;
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }

    .fade-in-up {
        transform: translateY(40px);
    }

    .fade-in-left {
        transform: translateX(-40px);
    }

    .fade-in-right {
        transform: translateX(40px);
    }

    .is-visible {
        opacity: 1;
        transform: translate(0);
    }

    /* =========================================
       Custom Animated Chart (About Us)
    ========================================= */
    .custom-chart-container {
        background: rgba(15, 23, 42, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--border-radius-lg);
        padding: 40px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.5);
        display: flex;
        flex-direction: column;
        width: 100%;
        position: relative;
    }

    .chart-header {
        margin-bottom: 30px;
    }

    .chart-title {
        font-size: 1.125rem;
        font-weight: 500;
        color: var(--text-dark);
        margin-bottom: 12px;
    }

    .chart-stats {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .chart-number {
        font-size: 3.5rem;
        font-weight: 800;
        color: #fff;
        line-height: 1;
    }

    .chart-badge {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: #fff;
        padding: 6px 16px;
        border-radius: 50px;
        font-weight: 700;
        font-size: 1.125rem;
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    }

    .chart-body {
        position: relative;
        height: 200px;
        margin-top: 20px;
    }

    .chart-grid {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding-bottom: 30px;
        padding-top: 30px;
    }

    .grid-line {
        width: 100%;
        height: 1px;
        background: rgba(255,255,255,0.1);
        position: relative;
    }

    .grid-line span {
        position: absolute;
        left: 0;
        top: -10px;
        background: #0f172a;
        padding-right: 10px;
        color: var(--text-muted);
        font-size: 0.85rem;
    }

    .chart-svg-container {
        position: absolute;
        top: 0;
        left: 50px;
        width: calc(100% - 50px);
        height: 100%;
    }

    .animated-chart-svg {
        width: 100%;
        height: 100%;
        overflow: visible;
    }

    .chart-line-path {
        stroke-dasharray: 1000;
        stroke-dashoffset: 1000;
        animation: drawLine 3s ease-out forwards infinite alternate;
        filter: url(#glow);
    }

    @keyframes drawLine {
        0% { stroke-dashoffset: 1000; }
        25% { stroke-dashoffset: 0; }
        100% { stroke-dashoffset: 0; }
    }

    .chart-dot {
        position: absolute;
        width: 16px;
        height: 16px;
        background: #fff;
        border-radius: 50%;
        transform: translate(-50%, -50%);
        box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.3);
        z-index: 10;
    }

    .chart-dot.pulse {
        animation: pulseDot 2s infinite;
    }

    @keyframes pulseDot {
        0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
        70% { box-shadow: 0 0 0 15px rgba(59, 130, 246, 0); }
        100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
    }

    /* =========================================
       Modal / Popups
    ========================================= */
    .modal-overlay {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(10, 15, 26, 0.6);
        backdrop-filter: blur(5px);
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .modal-content {
        background: var(--bg-white);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        width: 100%;
        max-width: 500px;
        border-radius: var(--border-radius-lg);
        padding: 40px;
        position: relative;
        transform: translateY(20px) scale(0.95);
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        box-shadow: var(--shadow-hover);
        border: 1px solid var(--border-color);
    }

    .modal-overlay.active .modal-content {
        transform: translateY(0) scale(1);
    }

    .modal-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--text-muted);
        cursor: pointer;
        transition: color 0.2s ease;
    }

    .modal-close:hover {
        color: var(--text-dark);
    }

    .modal-header {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 20px;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 20px;
    }

    .modal-header i {
        font-size: 2rem;
        color: var(--primary);
    }

    .modal-header h3 {
        margin: 0;
        font-size: 1.5rem;
    }

    .modal-body p {
        color: var(--text-muted);
        margin-bottom: 16px;
    }

    .modal-body ul {
        margin-bottom: 30px;
        padding-left: 20px;
    }

    .modal-body li {
        color: var(--text-dark);
        margin-bottom: 10px;
        position: relative;
    }

    .modal-body li::before {
        content: '\f00c';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        color: var(--primary);
        position: absolute;
        left: -25px;
    }

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

    .service-btn {
        margin-top: 15px;
    }

    /* =========================================
       Responsive Breakpoints
    ========================================= */
    @media (max-width: 1024px) {
        .hero-content {
            gap: 40px;
        }
        .hero-headline {
            font-size: 3.5rem;
        }
        .features-carousel .feature-item {
            flex: 0 0 calc(50% - 15px);
        }
        .about-container {
            gap: 40px;
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 1024px) {
        .testimonial-component {
            flex-direction: column;
            padding: 40px 30px;
        }

        .testimonial-image-wrapper {
            width: 100%;
            height: auto;
            aspect-ratio: 520 / 360;
        }
    }

    @media (max-width: 768px) {
        .section-padding {
            padding: 60px 0;
        }
        
        .nav-links {
            display: none; /* Hide on mobile, require toggle */
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            background: rgba(6, 9, 19, 0.95);
            backdrop-filter: blur(15px);
            flex-direction: column;
            padding: 20px;
            box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        }
        
        .nav-links.active {
            display: flex;
        }

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

        .hero-content {
            grid-template-columns: 1fr;
            text-align: center;
            margin-top: 40px;
        }

        .hero-cta-group {
            justify-content: center;
            flex-direction: column;
            gap: 15px;
            width: 100%;
        }
        
        .hero-cta-group .btn {
            width: 100%;
        }

        .hero-headline {
            font-size: 2.75rem;
        }

        .cinematic-wrapper {
            height: 250vh; /* Faster scroll duration on mobile */
        }

        .cinematic-sticky {
            overflow: visible; /* Prevent cutting off on mobile */
            height: auto;
            min-height: 100vh;
        }

        .cinematic-layer.landing-layer {
            position: relative;
            height: auto;
        }

        .cinematic-layer.sequence-layer {
            height: 100vh;
            position: absolute; /* Keep it fixed to the sticky viewport */
        }

        .cinematic-layer {
            height: 100svh;
            /* position: fixed; removed to fix mobile background stuck issue */
        }

        .hero-inner {
            height: auto;
            min-height: 100svh;
            padding: 55vh 20px 20px;
            align-items: flex-start;
            justify-content: center;
        }

        .hero-content {
            grid-template-columns: 1fr;
            text-align: center;
            margin-top: 0;
            padding: 0 10px;
            width: 100%;
        }

        .hero-text {
            max-width: 100%;
        }

        .hero-subheadline {
            font-size: 1rem;
            margin-bottom: 20px;
            margin-left: auto;
            margin-right: auto;
        }
        
        .hero-visual {
            height: 250px;
            margin-top: 10px;
        }
        
        .hero-visual img {
            max-height: 100%;
            width: auto;
        }
        
        .team-grid {
            grid-template-columns: 1fr;
        }
        
        .footer-grid {
            grid-template-columns: 1fr 1fr;
        }
    }

    @media (max-width: 480px) {
        .hero-headline {
            font-size: 2rem;
        }
        
        .features-carousel .feature-item {
            flex: 0 0 85%;
            margin: auto;
        }
        
        .testimonial-component {
            padding: 30px 20px;
        }

        .logo-marquee-container::before,
        .logo-marquee-container::after {
            width: 5rem; /* Smaller fade masks on mobile */
        }
        
        .footer-grid {
            grid-template-columns: 1fr;
        }
        
        .glass-card {
            padding: 30px 20px;
        }
    }

/* =========================================
   Cookie Banner
========================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    padding: 20px 0;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner {
        transition: none;
    }
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner.hidden {
    display: none;
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.cookie-buttons {
    display: flex;
    gap: 16px; /* 8px grid system */
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-buttons {
        width: 100%;
        justify-content: stretch;
    }
    .cookie-buttons .btn {
        flex: 1;
        padding: 12px 16px;
    }
}
