/* Step-by-step process styles */
.steps-container {
    position: relative;
    padding: 2rem 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.step-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    z-index: 1;
}

.step-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 0 20px rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--indigo), var(--accent-purple));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.step-card:hover::before {
    transform: scaleX(1);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 102, 241, 0.2);
    border-color: var(--indigo);
}

.step-1 {
    grid-column: 1;
    grid-row: 1;
}

.step-2 {
    grid-column: 2;
    grid-row: 2;
}

.step-3 {
    grid-column: 1;
    grid-row: 3;
}

.step-circle {
    width: 56px;
    height: 56px;
    border: 3px solid var(--indigo);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-card) 0%, #1e293b 100%);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4), inset 0 0 20px rgba(99, 102, 241, 0.1);
    margin-bottom: 1.25rem;
    position: relative;
}

.step-circle::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(45deg, var(--indigo), var(--accent-purple), var(--accent-cyan));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

.step-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--indigo);
    text-shadow: 0 0 10px var(--glow-color);
}

.step-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.step-description {
    color: var(--slate);
    line-height: 1.5;
}

/* Flowchart styles (How It Works) */
.flowchart {
    position: relative;
    padding: 2rem 0;
}

.flow-line {
    position: absolute;
    top: 50%;
    left: 6%;
    right: 6%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.15), transparent);
    z-index: 0;
}

.flow-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.flow-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px) saturate(120%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: none;
}

.flow-card:nth-child(1) { animation-delay: 0.05s; }
.flow-card:nth-child(2) { animation-delay: 0.15s; }
.flow-card:nth-child(3) { animation-delay: 0.25s; }
.flow-card:nth-child(4) { animation-delay: 0.35s; }

.flow-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    animation: flow-hover 2.6s ease-in-out infinite;
}

.flow-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0f172a;
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.35), rgba(255, 255, 255, 0.95));
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.8), 0 6px 16px rgba(148, 163, 184, 0.2);
    margin-bottom: 1rem;
}

.flow-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.flow-text {
    color: var(--slate);
    line-height: 1.6;
    font-size: 0.95rem;
}

@keyframes flow-hover {
    0%, 100% { transform: translateY(-6px); }
    50% { transform: translateY(-12px); }
}

@media (max-width: 1024px) {
    .flow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .flow-line {
        top: 16%;
    }
}

@media (max-width: 640px) {
    .flow-grid {
        grid-template-columns: 1fr;
    }
    .flow-line {
        display: none;
    }
}

/* Arrow styles */
.step-arrow {
    position: absolute;
    z-index: 0;
}

.arrow-svg {
    position: absolute;
    width: 120px;
    height: 120px;
}

/* Arrow 1 → 2 */
.step-1-to-2 {
    grid-column: 1;
    grid-row: 1;
}

.step-1-to-2 .arrow-svg {
    right: 0;
    bottom: 0;
    transform: translate(50%, 0);
}

/* Arrow 2 → 3 */
.step-2-to-3 {
    grid-column: 2;
    grid-row: 2;
}

.step-2-to-3 .arrow-svg {
    left: 0;
    bottom: 0;
    transform: translate(-50%, 0);
}

/* Mobile layout */
@media (max-width: 768px) {
    .steps-container {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 1fr);
        gap: 1.5rem;
        padding: 1.5rem 0;
    }

    .step-item {
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .step-1,
    .step-2,
    .step-3 {
        grid-column: 1;
    }

    .step-1 {
        grid-row: 1;
    }

    .step-2 {
        grid-row: 2;
    }

    .step-3 {
        grid-row: 3;
    }

    .step-arrow {
        display: none;
    }

    /* Add vertical arrows for mobile */
    .step-item::after {
        content: '';
        position: absolute;
        left: 50%;
        top: 100%;
        width: 3px;
        height: 20px;
        background: linear-gradient(180deg, var(--indigo), var(--accent-purple));
        transform: translateX(-50%);
        z-index: 0;
        box-shadow: 0 0 10px var(--glow-color);
    }

    .step-3::after {
        display: none;
    }
}

/* Base styles to prevent horizontal scroll */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    background-color: var(--dark-bg);
    color: var(--light-text);
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

/* Dark theme body */
body {
    background:
        radial-gradient(900px 500px at 15% 10%, rgba(255, 255, 255, 0.04), transparent 60%),
        radial-gradient(700px 400px at 85% 20%, rgba(255, 255, 255, 0.03), transparent 65%),
        linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
    min-height: 100vh;
}

/* Light theme overrides (homepage) */
.light-theme {
    --indigo: #94a3b8;
    --slate: #475569;
    --soft-gray: #f8fafc;
    --navy: #0f172a;
    --dark-bg: #ffffff;
    --dark-card: rgba(255, 255, 255, 0.95);
    --dark-border: rgba(15, 23, 42, 0.08);
    --accent-purple: #94a3b8;
    --accent-cyan: #cbd5e1;
    --glow-color: rgba(148, 163, 184, 0.25);
    --light-text: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(15, 23, 42, 0.08);
    --glass-highlight: rgba(15, 23, 42, 0.05);
    background:
        radial-gradient(1000px 600px at 10% 0%, rgba(148, 163, 184, 0.12), transparent 60%),
        radial-gradient(800px 500px at 90% 15%, rgba(203, 213, 225, 0.15), transparent 65%),
        #ffffff;
    color: var(--navy);
}

/* Navigation base styles */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 72px;
    z-index: 1000;
    background-color: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px) saturate(110%);
    border-bottom: 1px solid var(--dark-border);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
}

.light-nav {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(120%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

/* Add padding to body to account for fixed nav */
.index-page body,
.about-page body,
.contact-page body {
    padding-top: 5.5rem;
}

/* Custom CSS variables for consistent theming - Dark Tech Theme */
:root {
    --indigo: #94a3b8;     /* Primary brand color */
    --slate: #cbd5e1;      /* Secondary text color */
    --soft-gray: #0a0a0a;  /* Dark background color */
    --navy: #e2e8f0;       /* Light text for dark bg */
    --dark-bg: #050505;    /* Darkest background */
    --dark-card: rgba(255, 255, 255, 0.04);  /* Card background */
    --dark-border: rgba(255, 255, 255, 0.08); /* Border color */
    --accent-purple: #cbd5e1;
    --accent-cyan: #94a3b8;
    --glow-color: rgba(148, 163, 184, 0.35);
    --light-text: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.06);
}

/* Navigation styles */
.nav-link {
    color: #cbd5e1;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.light-theme .nav-link {
    color: #0f172a;
}

.nav-link:hover {
    color: var(--indigo);
    text-shadow: 0 0 8px var(--glow-color);
}

.light-theme .nav-link:hover {
    color: #475569;
    text-shadow: none;
}

.nav-link.active {
    color: var(--indigo);
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--indigo), var(--accent-purple));
    box-shadow: 0 0 10px var(--glow-color);
}

.nav-pill .nav-link.active::after {
    display: none;
}

.light-theme .nav-link.active::after {
    box-shadow: none;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 100%;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin: 0 auto;
}

.nav-pill {
    position: relative;
    padding: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(0, 0, 0, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 20px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.nav-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(148, 163, 184, 0.16), rgba(255, 255, 255, 0.7), rgba(148, 163, 184, 0.12));
    background-size: 200% 100%;
    opacity: 0.6;
    pointer-events: none;
    animation: nav-sheen 6s ease-in-out infinite;
}

@keyframes nav-sheen {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.nav-pill .nav-link {
    position: relative;
    z-index: 2;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
}

.nav-indicator {
    position: absolute;
    top: 0.35rem;
    left: 0.35rem;
    height: calc(100% - 0.7rem);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.5), rgba(255, 255, 255, 0.85));
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.75), 0 6px 16px rgba(148, 163, 184, 0.25);
    transition: transform 0.25s ease, width 0.25s ease;
    z-index: 1;
    pointer-events: none;
}

.light-theme .nav-pill {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(0, 0, 0, 0.22);
}

.light-theme .nav-indicator {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.35), rgba(255, 255, 255, 0.95));
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.85), 0 6px 16px rgba(148, 163, 184, 0.2);
}

.logo-container {
    display: flex;
    align-items: center;
    position: absolute;
    left: -19.25rem;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
}

.logo-link:hover {
    opacity: 0.9;
}

.logo {
    height: 4rem;
    width: 4em;
}

/* Ensure the navigation bar has proper height */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 72px;
    z-index: 1000;
}

/* Hero Section Styles */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 72px;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.6), rgba(5, 5, 5, 0.9));
    z-index: 1;
}

.light-theme .hero-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.7));
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
    font-family: "Ubuntu", "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.hero-headline {
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: white;
    white-space: nowrap;
    letter-spacing: -0.02em;
    font-family: "Ubuntu", "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.light-theme .hero-headline {
    color: #000000;
    text-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

.hero-headline span {
    display: block;
    color: white;
    white-space: normal;
}

.light-theme .hero-headline span {
    color: #000000;
}

.hero-headline span:first-child {
    white-space: normal;
}

.hero-subheadline {
    font-size: clamp(1rem, 3vw, 1.25rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.light-theme .hero-subheadline {
    color: #475569;
}

/* Floating bubble effects */
.bubble-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.85), rgba(148, 163, 184, 0.18) 45%, rgba(255, 255, 255, 0) 70%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.6), 0 0 24px rgba(148, 163, 184, 0.25);
    animation: float 14s ease-in-out infinite;
    opacity: 0.6;
    filter: blur(0.2px);
}

.bubble-1 { width: 240px; height: 240px; top: 12%; left: 6%; animation-duration: 18s; }
.bubble-2 { width: 180px; height: 180px; top: 22%; right: 8%; animation-duration: 16s; animation-delay: -4s; }
.bubble-3 { width: 120px; height: 120px; bottom: 18%; left: 18%; animation-duration: 12s; animation-delay: -2s; }
.bubble-4 { width: 200px; height: 200px; bottom: 10%; right: 18%; animation-duration: 20s; animation-delay: -6s; }
.bubble-5 { width: 90px; height: 90px; top: 40%; left: 45%; animation-duration: 10s; animation-delay: -3s; }
.bubble-6 { width: 140px; height: 140px; top: 55%; right: 36%; animation-duration: 14s; animation-delay: -5s; }
.bubble-7 { width: 70px; height: 70px; top: 15%; left: 55%; animation-duration: 9s; animation-delay: -1s; }
.bubble-8 { width: 110px; height: 110px; bottom: 28%; right: 50%; animation-duration: 13s; animation-delay: -7s; }

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); }
    50% { transform: translateY(-16px) translateX(10px) scale(1.02); }
}

@media (max-width: 768px) {
    .bubble-1, .bubble-2, .bubble-4 { display: none; }
    .bubble-3 { width: 90px; height: 90px; }
}

@media (prefers-reduced-motion: reduce) {
    .bubble {
        animation: none;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-headline {
        font-size: clamp(1.4rem, 4.5vw, 2.2rem);
        white-space: normal;
    }
    
    .hero-subheadline {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .hero-subheadline {
        font-size: 1.1rem;
    }
}

/* Button styles */
.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--indigo) 0%, var(--accent-purple) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    position: relative;
    overflow: hidden;
}

.light-theme .btn-primary {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
}

.light-theme .btn-primary:hover {
    background: #111827;
    color: #ffffff;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.2);
}

/* Hero-specific CTA button */
.hero-section .btn-primary {
    background: #0b0f1a;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(2, 6, 23, 0.45);
}

.hero-section .btn-primary:hover {
    background: #111827;
    color: #ffffff;
    box-shadow: 0 14px 26px rgba(2, 6, 23, 0.55);
}

#cta .btn-primary {
    background: #0b0f1a;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(2, 6, 23, 0.45);
}

#cta .btn-primary:hover {
    background: #111827;
    color: #ffffff;
    box-shadow: 0 14px 26px rgba(2, 6, 23, 0.55);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.cta-button {
    padding: 0.75rem 2rem;
    border: 1px solid transparent;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.375rem;
    background-color: #506bf6;
    color: white;
    transition: all 0.2s ease;
}

.cta-button:hover {
    background-color: #4058e6;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
    .cta-button {
        padding: 1rem 2.5rem;
        font-size: 1.125rem;
    }
}

/* Section styles */
.section-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--navy);
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

@media (min-width: 640px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-content {
    margin-top: 1rem;
    max-width: 42rem;
    font-size: 1.125rem;
    color: #4b5563;
    margin-left: auto;
    margin-right: auto;
}

/* About Us specific styles */
#profile-placeholder-1,
#profile-placeholder-2,
#profile-placeholder-3,
#profile-placeholder-4,
#profile-placeholder-5,
#profile-placeholder-6 {
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"%3E%3Cdefs%3E%3ClinearGradient x1="25%" y1="100%" x2="75%" y2="0%" id="a"%3E%3Cstop stop-color="%23FFA000" stop-opacity="0" offset="0%"/%3E%3Cstop stop-color="%23FFA000" stop-opacity=".6" offset="50%"/%3E%3Cstop stop-color="%23FFA000" stop-opacity="0" offset="100%"/%3E%3C/linearGradient%3E%3ClinearGradient x1="-75%" y1="70%" x2="75%" y2="130%" id="b"%3E%3Cstop stop-color="%231976D2" stop-opacity="0" offset="0%"/%3E%3Cstop stop-color="%231976D2" stop-opacity=".6" offset="50%"/%3E%3Cstop stop-color="%231976D2" stop-opacity="0" offset="100%"/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cpath fill="url(#a)" d="M0 0h32v32H0z"/%3E%3Cpath fill="url(#b)" d="M0 0h32v32H0z"/%3E%3C/g%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.team-section {
    padding: 2rem 0;
}

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

.team-grid-centered {
    justify-content: center;
    justify-items: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 2000px;
}

@media (max-width: 640px) {
    .team-grid-centered {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

.team-member {
    background: var(--dark-card);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 0 20px rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--dark-border);
    width: 100%;
    max-width: none;
}

.team-showcase {
    display: grid;
    gap: 1.5rem;
}

.team-card-horizontal {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.75rem;
    align-items: center;
    padding: 2rem;
    border-radius: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px) saturate(120%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card-horizontal:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.12);
}

.team-avatar {
    width: 200px;
    height: 200px;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-meta h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
}

.team-role {
    font-size: 0.95rem;
    color: var(--slate);
    margin-top: 0.25rem;
}

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

.team-links {
    display: inline-flex;
    gap: 0.5rem;
}

.team-bio {
    color: var(--slate);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 768px) {
    .team-card-horizontal {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .team-avatar {
        margin: 0 auto;
    }

    .team-header {
        flex-direction: column;
    }
}

.team-member:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 102, 241, 0.2);
    border-color: var(--indigo);
}

.team-member img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.team-member h3 {
    font-size: 1rem;
    margin-top: 0.5rem;
    color: var(--navy);
}

.team-member p {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    color: var(--slate);
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.social-link {
    color: var(--slate);
    transition: all 0.2s ease-in-out;
}

.social-link:hover {
    color: var(--indigo);
    text-shadow: 0 0 10px var(--glow-color);
    transform: scale(1.1);
}

.team-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--slate);
    background-color: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 50%;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.team-social-link:hover {
    color: white;
    background: linear-gradient(135deg, var(--indigo) 0%, var(--accent-purple) 100%);
    border-color: var(--indigo);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.team-social-link i {
    font-size: 1rem;
}

/* Footer styles */
.footer-content {
    padding: 3rem 0;
    border-top: 1px solid var(--dark-border);
    color: var(--slate);
}

footer {
    background-color: var(--dark-bg);
    color: var(--slate);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Mobile-specific styles */
@media (max-width: 767px) {
    .nav-container {
        justify-content: space-between;
        width: 100%;
    }

    .nav-links {
        display: none;
    }

    #mobile-menu-button {
        display: flex;
        align-items: center;
        padding: 0.5rem;
        color: var(--navy);
    }

    #mobile-menu {
        background-color: var(--dark-card);
        border-top: 1px solid var(--dark-border);
        transition: all 0.3s ease-in-out;
        transform: translateY(-10px);
        opacity: 0;
        width: 100%;
    }

    .light-theme #mobile-menu {
        background-color: #ffffff;
        border-top: 1px solid rgba(15, 23, 42, 0.08);
    }

    #mobile-menu:not(.hidden) {
        transform: translateY(0);
        opacity: 1;
    }

    #mobile-menu .px-2 {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .mobile-nav-link {
        display: block;
        width: 100%;
        padding: 0.75rem 1rem;
        color: var(--slate);
        font-size: 1rem;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.2s ease-in-out;
        border-bottom: 1px solid var(--dark-border);
    }

    .light-theme .mobile-nav-link {
        color: #0f172a;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    }

    .mobile-nav-link:last-child {
        border-bottom: none;
    }

    .mobile-nav-link:hover {
        background-color: var(--dark-bg);
        color: var(--indigo);
        text-shadow: 0 0 8px var(--glow-color);
    }

    .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
        width: 100%;
        box-sizing: border-box;
    }

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

/* Ensure mobile elements are hidden on desktop */
@media (min-width: 768px) {
    #mobile-menu-button {
        display: none;
    }
}

/* Why Civisight Section */
.why-civisight {
    padding: 3rem 0;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    background-color: var(--dark-bg);
    color: var(--navy);
}

.container {
    padding: 0 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
    justify-items: center;
}

.feature-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 102, 241, 0.2);
    border-color: var(--indigo);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--indigo) 0%, var(--accent-purple) 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.8);
}

.feature-icon i {
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--slate);
    line-height: 1.6;
}

/* Desktop layout (4 cards in a row) */
@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .team-grid-centered {
        grid-template-columns: repeat(2, minmax(0, 300px));
    }
}

/* Mobile layout (2 cards in a row) */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Challenge and Solution Sections */
.challenge-section,
.solution-section {
    padding: 4rem 0;
    position: relative;
}

.challenge-section .container {
    max-width: 100%;
    padding: 0 2rem;
}

.solution-section .container {
    max-width: 100%;
    padding: 0 2rem;
}

/* Challenge and Solution Modern Design */
.challenge-wrapper,
.solution-wrapper {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: start;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(2, 6, 23, 0.35);
    transition: all 0.3s ease;
    backdrop-filter: blur(18px) saturate(120%);
}

.challenge-wrapper {
    width: 100%;
    grid-template-columns: 1fr;
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.25);
}

.solution-wrapper {
    width: 100%;
    grid-template-columns: 1fr;
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.25);
}

.challenge-wrapper::before,
.solution-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--indigo), var(--accent-purple));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.challenge-wrapper:hover::before,
.solution-wrapper:hover::before {
    transform: scaleY(1);
}

.challenge-wrapper:hover {
    border-color: var(--glass-border);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.28);
    transform: translateY(-1px);
}

.solution-wrapper:hover {
    border-color: var(--glass-border);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.28);
    transform: translateY(-1px);
}

.solution-wrapper::before {
    width: 2px;
    opacity: 0.45;
}

.challenge-wrapper::before {
    width: 2px;
    opacity: 0.45;
}

.challenge-icon-box,
.solution-icon-box {
    flex-shrink: 0;
}

.challenge-icon,
.solution-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    font-size: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.challenge-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
}

.solution-icon {
    background: linear-gradient(135deg, var(--indigo) 0%, var(--accent-purple) 100%);
    color: white;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
}

.challenge-wrapper:hover .challenge-icon,
.solution-wrapper:hover .solution-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.6);
}

.challenge-content,
.solution-content {
    flex: 1;
}

.challenge-title,
.solution-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0rem;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    letter-spacing: -0.02em;
}

.challenge-source {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--slate);
    margin-top: -0.1rem;
    margin-bottom: 1.5rem;
}

.challenge-source img {
    height: 28px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.75;
}

.challenge-text,
.solution-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.challenge-text p,
.solution-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--slate);
    margin: 0;
}

/* Legacy section-card styles for backward compatibility */
.section-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 0 20px rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--indigo), var(--accent-purple));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.section-card:hover::before {
    transform: scaleX(1);
}

.section-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 102, 241, 0.2);
    border-color: var(--indigo);
}

.section-card h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--navy);
}

.section-card p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--slate);
}

.section-card ul {
    list-style-position: inside;
}

.section-card li {
    font-size: 1.125rem;
    color: var(--slate);
}

.section-card li strong {
    color: var(--indigo);
    font-weight: 600;
    text-shadow: 0 0 8px var(--glow-color);
}

/* Responsive adjustments */
@media (max-width: 968px) {
    .challenge-wrapper,
    .solution-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    
    .challenge-icon-box,
    .solution-icon-box {
        display: flex;
        justify-content: center;
    }
    
    .challenge-title,
    .solution-title {
        font-size: 2rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .challenge-section,
    .solution-section {
        padding: 2rem 0;
    }
}

@media (max-width: 640px) {
    .challenge-wrapper,
    .solution-wrapper {
        padding: 1.5rem;
    }
    
    .challenge-icon,
    .solution-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .challenge-title,
    .solution-title {
        font-size: 1.75rem;
    }
    
    .challenge-text p,
    .solution-text p {
        font-size: 1rem;
    }
}

/* Container styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section,
    .challenge-section,
    .solution-section,
    .why-civisight {
        padding: 2rem 0;
    }

    .section-card {
        padding: 1.5rem;
    }

    .section-card h2 {
        font-size: 1.75rem;
    }

    .section-card p,
    .section-card li {
        font-size: 1rem;
    }
}

/* Values Section */
.values-section {
    padding: 2rem 0;
    background: linear-gradient(to bottom, var(--dark-bg), #0a0e1a);
}

.light-theme .values-section {
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    background: var(--dark-card);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--dark-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 0 20px rgba(99, 102, 241, 0.1);
    width: 100%;
    max-width: 300px;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--indigo), var(--accent-purple));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 102, 241, 0.3);
    border-color: var(--indigo);
}

.value-icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--indigo) 0%, var(--accent-purple) 100%);
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.value-card:hover .value-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
}

.value-icon {
    font-size: 1.75rem;
    color: white;
}

.value-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.value-description {
    color: var(--slate);
    line-height: 1.7;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .value-card {
        padding: 2rem 1.5rem;
    }
    
    .value-icon-wrapper {
        width: 56px;
        height: 56px;
    }
    
    .value-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* Form Input Styles */
.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--dark-border);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--dark-card);
    color: var(--navy);
}

.form-control:focus {
    outline: none;
    border-color: var(--indigo);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1), 0 0 15px rgba(99, 102, 241, 0.2);
}

.form-control::placeholder {
    color: var(--slate);
    opacity: 0.6;
}

.form-textarea {
    height: 150px;
    resize: vertical;
}

/* Team Member Images */
.team-member img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.team-member:hover img {
    transform: scale(1.05);
}

/* Fade animation classes */
.fade-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    visibility: hidden;
}

.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

.fade-out {
    opacity: 0 !important;
    transform: translateY(20px) !important;
    visibility: hidden !important;
}

/* Specific section styles */
.challenge-section.fade-scroll,
.solution-section.fade-scroll,
.steps-container.fade-scroll,
.why-civisight.fade-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    visibility: hidden;
}

/* Ensure mobile layout remains functional */
@media (max-width: 768px) {
    .challenge-section.fade-scroll,
    .solution-section.fade-scroll,
    .steps-container.fade-scroll,
    .why-civisight.fade-scroll {
        transform: translateY(15px);
    }
}

/* Dark theme background classes */
.bg-soft-gray {
    background: linear-gradient(180deg, var(--dark-bg) 0%, #0a0a0a 100%);
}

.light-theme .bg-soft-gray {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.bg-navy {
    background: linear-gradient(135deg, #070707 0%, #0b0b0b 100%);
    border-top: 1px solid var(--dark-border);
    border-bottom: 1px solid var(--dark-border);
}

.light-theme .bg-navy {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.bg-gray-50 {
    background-color: var(--dark-bg);
}

/* Challenge and Solution sections dark theme */
.challenge-section,
.solution-section {
    background-color: var(--dark-bg);
    color: var(--navy);
}

/* How It Works and Citizen Hub sections */
#how-it-works,
#citizen-hub {
    background: linear-gradient(180deg, var(--dark-bg) 0%, #0a0a0a 100%);
    position: relative;
}

.light-theme #how-it-works,
.light-theme #citizen-hub {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

#how-it-works::before,
#citizen-hub::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--indigo), transparent);
    opacity: 0.3;
}

/* CTA Section */
#cta {
    background: linear-gradient(135deg, #070707 0%, #0b0b0b 100%);
    position: relative;
    overflow: hidden;
}

.light-theme #cta {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

#cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
    z-index: 0;
}

#cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('images/usmap.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: min(1040px, 100%);
    opacity: 0.22;
    filter: grayscale(1);
    z-index: 0;
}

.light-theme #cta::after {
    opacity: 0.18;
    filter: grayscale(1) brightness(0.95);
}

#cta .max-w-7xl {
    position: relative;
    z-index: 1;
}

.light-theme #cta::before {
    background: radial-gradient(circle, rgba(148, 163, 184, 0.15) 0%, transparent 70%);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

#cta h2 {
    color: var(--navy);
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

/* Arrow colors for dark theme */
svg path[stroke="#334155"] {
    stroke: var(--indigo);
    filter: drop-shadow(0 0 4px var(--glow-color));
}

svg marker path[fill="#334155"] {
    fill: var(--indigo);
}

/* Dark theme form styles */
.dark-form-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    color: var(--navy);
}

.light-theme .dark-form-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #0f172a;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.dark-input {
    background-color: var(--dark-bg);
    border: 1px solid var(--dark-border);
    color: var(--navy);
    padding: 0.75rem;
}

.light-theme .dark-input {
    background-color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: #0f172a;
}

.dark-input::placeholder {
    color: var(--slate);
    opacity: 0.6;
}

.dark-input:focus {
    outline: none;
    border-color: var(--indigo);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1), 0 0 15px rgba(99, 102, 241, 0.2);
}

.dark-theme {
    background:
        radial-gradient(900px 500px at 15% 10%, rgba(255, 255, 255, 0.04), transparent 60%),
        radial-gradient(700px 400px at 85% 20%, rgba(255, 255, 255, 0.03), transparent 65%),
        linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
    color: var(--navy);
}

.dark-nav {
    background-color: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px) saturate(110%);
    border-bottom: 1px solid var(--dark-border);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
}

.dark-footer {
    background-color: var(--dark-bg);
    color: var(--slate);
    border-top: 1px solid var(--dark-border);
}

.light-footer {
    background-color: #ffffff;
    color: #475569;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

/* Features Section Modern Styling */
#features {
    background: linear-gradient(180deg, var(--dark-bg) 0%, #0a0a0a 100%);
    position: relative;
}

.light-theme #features {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

/* Demo Section */
.demo-section {
    background: linear-gradient(180deg, #070707 0%, #0a0a0a 100%);
    position: relative;
}

.light-theme .demo-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.demo-video-wrapper {
    max-width: 960px;
    margin: 0 auto;
}

.demo-video-inner {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    border-radius: 1.5rem;
    overflow: hidden;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 40px rgba(99, 102, 241, 0.3);
}

.demo-video-inner iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Features Marquee Container */
.features-marquee-container {
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    width: 100%;
    max-width: 100vw;
}

.marquee-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.marquee-nav-btn:hover {
    background: linear-gradient(135deg, var(--indigo) 0%, var(--accent-purple) 100%);
    color: white;
    border-color: var(--indigo);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.marquee-nav-left {
    left: 2rem;
}

.marquee-nav-right {
    right: 2rem;
}

.features-marquee-container::before,
.features-marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.features-marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--dark-bg), transparent);
}

.features-marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--dark-bg), transparent);
}

.features-marquee {
    display: flex;
    gap: 2rem;
    width: fit-content;
    animation: marquee-scroll 60s linear infinite;
    --scroll-offset: 0px;
    cursor: grab;
    user-select: none;
}

.features-marquee:active {
    cursor: grabbing;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(calc(-704px + var(--scroll-offset, 0px)));
    }
    100% {
        transform: translateX(calc(-3168px + var(--scroll-offset, 0px)));
    }
}

/* Square Feature Cards */
.feature-square-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    width: 320px;
    height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 0 20px rgba(99, 102, 241, 0.1);
}

.feature-square-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--indigo), var(--accent-purple));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-square-card:hover::before {
    transform: scaleX(1);
}

.feature-square-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 40px rgba(99, 102, 241, 0.3);
    border-color: var(--indigo);
}

.feature-square-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.4));
    transition: transform 0.3s ease;
    display: block;
}

.feature-square-card:hover .feature-square-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.6));
}

.feature-square-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
    line-height: 1.3;
}

.feature-square-description {
    color: var(--slate);
    line-height: 1.5;
    font-size: 0.875rem;
    margin: 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

/* Navigation button responsive */
@media (max-width: 768px) {
    .marquee-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .marquee-nav-left {
        left: 1rem;
    }
    
    .marquee-nav-right {
        right: 1rem;
    }
    
    .marquee-nav-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 768px) {
    .features-marquee {
        gap: 1.5rem;
        animation-duration: 40s;
    }
    
    .feature-square-card {
        width: 320px;
        height: 320px;
        padding: 2rem 1.5rem;
    }
    
    .feature-square-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .feature-square-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-square-description {
        font-size: 0.875rem;
    }
    
    .features-marquee-container::before,
    .features-marquee-container::after {
        width: 50px;
    }
}

@media (max-width: 480px) {
    .feature-square-card {
        width: 280px;
        height: 280px;
        padding: 1.5rem;
    }
    
    .feature-square-icon {
        font-size: 2.5rem;
    }
    
    .feature-square-title {
        font-size: 1.125rem;
    }
    
    .feature-square-description {
        font-size: 0.8rem;
    }
}
