:root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #10b981;
    --accent: #8b5cf6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(15, 23, 42, 0.6);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --nav-bg: rgba(15, 23, 42, 0.8);
    --nav-scrolled: rgba(15, 23, 42, 0.95);
}

[data-theme="light"] {
    --bg-dark: #f8fafc;
    /* Light gray/white background */
    --bg-darker: #ffffff;
    /* Pure white areas */
    --primary: #2563eb;
    /* Slightly darker blue for contrast on white */
    --primary-glow: rgba(37, 99, 235, 0.3);
    --secondary: #059669;
    /* Darker green */
    --accent: #7c3aed;
    --text-main: #0f172a;
    /* Dark slate text */
    --text-muted: #475569;
    /* Medium slate text */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --card-bg: rgba(255, 255, 255, 0.6);
    --nav-bg: rgba(255, 255, 255, 0.8);
    --nav-scrolled: rgba(255, 255, 255, 0.95);
}

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

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

/* Noise Texture Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Typography & Utils */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
}

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

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-darker {
    background-color: var(--bg-darker);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-heading);
    gap: 8px;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    background: var(--nav-bg);
    /* Fixed: Use variable for light/dark switching */
    backdrop-filter: blur(12px);

    /* Small Reflective Theme Button */
    #theme-toggle {
        width: 40px;
        height: 40px;
        padding: 0;
        min-width: unset !important;
        /* Override button.btn styling */
        border-radius: 50% !important;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        color: var(--primary);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4);
        display: inline-flex;
        justify-content: center;
        align-items: center;
        transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        margin-right: 15px;
        /* Spacing from Get Started */
    }

    #theme-toggle:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }

    #theme-toggle:active {
        transform: scale(0.95);
        background: linear-gradient(135deg, var(--glass-bg), var(--primary));
        color: white;
        border-color: white;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.5);
        /* Reflective burst */
    }

    -webkit-backdrop-filter: blur(12px);
    /* Safari support */
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.glass-nav.scrolled {
    background: var(--nav-scrolled);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Fluid Typography for Mobile Scaling */
html {
    font-size: 16px;
}

@media (max-width: 900px) {
    html {
        font-size: 14px;
        /* Slight scale down for mobile readability density */
    }

    /* Native-feel Active States */
    .btn:active,
    .card:active,
    .solution-card:active {
        transform: scale(0.98);
        transition: transform 0.1s;
    }

    /* Remove tap highlight on Webkit */
    * {
        -webkit-tap-highlight-color: transparent;
    }

    /* Mobile Navigation Bar (Bottom Sheet style adjustment) */
    .glass-nav {
        padding: 15px 0;
        /* Ensure safe area for notched phones */
        padding-top: max(15px, env(safe-area-inset-top));
    }
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    /* Fixed: Dynamic color */
    font-weight: 700;
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    color: white;
    /* Fixed: Always white icon on colored gradient */
}

.desktop-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.desktop-nav a:not(.btn) {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.desktop-nav a:not(.btn):hover {
    color: var(--primary);
    /* Fixed: Blue hover instead of white for better visibility in light mode */
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

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

.hero-bg-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 50%;
}

.hero-badge {
    display: inline-inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 24px;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(59, 130, 246, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.6);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 800;
}

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

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    align-items: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    /* Fixed: Dynamic color for light/dark mode */
}

/* Light Mode Overrides */
[data-theme="light"] .btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

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

.stat-line {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

.hero-visual {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    height: 80%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Industry Selector */
.industry-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.industry-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-family: var(--font-heading);
}

.industry-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
}

.industry-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

[data-theme="light"] .industry-btn {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .industry-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--primary);
}

/* Mini Industry Selector (Inside Card) */
.industry-btn-mini {
    background: transparent;
    border: 1px solid var(--glass-border);
    padding: 6px 12px;
    border-radius: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    font-family: var(--font-heading);
}

.industry-btn-mini:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.industry-btn-mini.active {
    background: rgba(239, 68, 68, 0.15);
    /* Reddish tint for 'Old Way' context */
    color: #ef4444;
    border-color: #ef4444;
}

[data-theme="light"] .industry-btn-mini {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .industry-btn-mini.active {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-color: #dc2626;
}

[data-theme="light"] .industry-btn.active {
    background: var(--primary);
    color: white;
}

/* Abstract DNA Animation */
.dna-helix {
    width: 300px;
    height: 600px;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Comparison Section */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.error-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.success-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.card h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.card ul {
    list-style: none;
}

.card ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.card ul li i {
    font-size: 1.2rem;
}

.old-way li i {
    color: #ef4444;
}

.new-way li i {
    color: #10b981;
}

/* Solutions Grid */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.solution-card {
    background: var(--glass-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-image-placeholder {
    height: 200px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.dairy-bg {
    background-image: linear-gradient(to top, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0)), url('Media/Photos/livestock_cow.jpg');
}

.beef-bg {
    background-image: linear-gradient(to top, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0)), url('https://images.unsplash.com/photo-1570042225831-d98fa7577f1e?auto=format&fit=crop&q=80');
}

.pharma-bg {
    background-image: linear-gradient(to top, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0)), url('Media/Photos/pharma.jpg');
}

.plant-bg {
    background-image: linear-gradient(to top, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0)), url('Media/Photos/crops.jpg');
}

.card-content {
    padding: 30px;
    position: relative;
    top: -20px;
}

.card-icon-small {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    margin-bottom: 15px;
    border: 4px solid var(--bg-dark);
}

.solution-card h3 {
    margin-bottom: 10px;
}

.solution-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    font-size: 0.85rem;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* Technology Section */
.tech-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-tag {
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.tech-steps {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step-item {
    display: flex;
    gap: 20px;
}

.step-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
}

.step-info h4 {
    margin-bottom: 5px;
    color: var(--primary);
}

.step-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.visual-container {
    position: relative;
    padding: 40px;
}

.code-block {
    background: #1e293b;
    border-radius: 12px;
    padding: 20px;
    font-family: 'Fira Code', monospace;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.code-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

code {
    color: #e2e8f0;
    font-size: 0.9rem;
}

.kw {
    color: #c586c0;
}

.cls {
    color: #4ec9b0;
}

.fn {
    color: #dcdcaa;
}

.var {
    color: #9cdcfe;
}

.glowing-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.4;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Roadmap */
.roadmap-container {
    position: relative;
    max-width: 800px;
    margin: 80px auto 0;
}

.roadmap-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--glass-border);
    transform: translateX(-50%);
}

.roadmap-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50px;
    position: relative;
    margin-bottom: 60px;
    width: 50%;
}

.roadmap-item.right {
    left: 50%;
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50px;
}

.roadmap-dot {
    position: absolute;
    right: -8px;
    top: 20px;
    width: 16px;
    height: 16px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    border-radius: 50%;
    z-index: 2;
}

.roadmap-item.right .roadmap-dot {
    right: auto;
    left: -8px;
}

.roadmap-content {
    background: var(--glass-bg);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    width: 100%;
}

.roadmap-year {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
}

/* CTA */
.cta-section {
    padding: 120px 0;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.1) 0%, transparent 60%);
}

.cta-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.partner-placeholder {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-muted);
    font-size: 1.5rem;
    opacity: 0.5;
    margin: 0 20px;
}

.logo-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
}

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

.footer-brand p {
    color: var(--text-muted);
    margin-top: 20px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.link-group h5 {
    margin-bottom: 20px;
    color: white;
}

.link-group a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.link-group a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

.delay-100 {
    animation-delay: 0.1s;
    transition-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
    transition-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
    transition-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
    transition-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .h1 {
        font-size: 2.5rem;
    }

    .section {
        padding: 60px 0;
    }

    .hero-content {
        width: 100%;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .btn-lg {
        width: 100%;
    }

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .hero-visual {
        display: none;
    }

    .comparison-grid,
    .solutions-grid,
    .tech-layout,
    .footer-content,
    .footer-links {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Mobile Navigation */
    .mobile-menu-btn {
        display: block;
        z-index: 200;
        position: relative;
    }

    .desktop-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--nav-scrolled);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        z-index: 150;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .desktop-nav.active {
        transform: translateX(0);
    }

    .desktop-nav a {
        font-size: 1.5rem;
    }

    .roadmap-line {
        left: 20px;
    }

    .roadmap-item,
    .roadmap-item.right {
        width: 100%;
        left: 0;
        padding-left: 50px;
        padding-right: 0;
        text-align: left;
        justify-content: flex-start;
    }

    .roadmap-dot,
    .roadmap-item.right .roadmap-dot {
        left: 12px;
        right: auto;
    }

    /* Video Section Mobile Fixes */
    .video-advantage-section {
        flex-direction: column;
        margin-top: 40px !important;
    }

    .advantage-text {
        text-align: center;
        width: 100%;
    }

    .advantage-list li {
        text-align: left;
    }

    .video-container {
        width: 100%;
        margin-bottom: 30px;
    }

    /* Logo Grid Mobile */
    .logo-grid {
        flex-wrap: wrap;
        gap: 20px;
    }

    .footer-links {
        gap: 30px;
        text-align: center;
    }

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

    .link-group h5 {
        margin-bottom: 15px;
        color: var(--primary);
    }

    /* DEEP RESEARCH: High Contrast Mode for Mobile */
    .advantage-list li,
    .card,
    .solution-card,
    .roadmap-content,
    .glass-card {
        background: rgba(10, 15, 25, 0.98) !important;
        /* Almost solid black-blue */
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        /* Very visible border */
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    }

    [data-theme="light"] .advantage-list li,
    [data-theme="light"] .card,
    [data-theme="light"] .solution-card,
    [data-theme="light"] .roadmap-content,
    [data-theme="light"] .glass-card {
        background: rgba(255, 255, 255, 0.98) !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
        color: #0f172a !important;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
    }

    /* Brighter Text for Outdoor Visibility (Dark Mode) */
    .hero-subtitle,
    .section-desc,
    .advantage-text p,
    .solution-card p,
    .tech-content p,
    .roadmap-content p {
        color: #ffffff !important;
        /* Force Pure White in Dark Mode */
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
        /* Strong shadow */
        opacity: 1;
    }

    /* Text Color Override for Light Mode */
    [data-theme="light"] .hero-subtitle,
    [data-theme="light"] .section-desc,
    [data-theme="light"] .advantage-text p,
    [data-theme="light"] .solution-card p,
    [data-theme="light"] .tech-content p,
    [data-theme="light"] .roadmap-content p {
        color: #334155 !important;
        /* Dark Slate */
        text-shadow: none !important;
    }

    /* Make icons pop */
    .card-icon,
    .card-icon-small,
    .roadmap-dot {
        border-color: white !important;
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
        /* Glow effect */
    }

    /* Mobile Specialized: Horizontal Scroll for Solutions */
    .solutions-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 20px;
        /* Space for scrollbar */
        padding-right: 20px;
        /* End padding */
    }

    .solution-card {
        flex: 0 0 85vw;
        /* Show mostly one card, hint at next */
        scroll-snap-align: center;
        margin-bottom: 0;
        /* Remove bottom margin in flex context */
    }

    /* Mobile Specialized: Roadmap Timeline */
    .roadmap-container {
        padding-left: 20px;
        border-left: 2px solid var(--glass-border);
    }

    .roadmap-line {
        display: none;
        /* Use container border as line */
    }

    .roadmap-item,
    .roadmap-item.right {
        width: 100%;
        left: 0;
        padding: 0 0 0 20px;
        /* Indent content */
        margin-bottom: 40px;
        border: none;
    }

    .roadmap-dot {
        left: -29px !important;
        /* Position on the border line */
    }

    /* Mobile Typography & Touch Targets */
    .hero-subtitle,
    .section-desc,
    .advantage-text p,
    .solution-card p,
    .tech-content p,
    .roadmap-content p {
        color: #e2e8f0;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        font-size: 1rem;
        /* readable base size */
    }

    .btn {
        min-height: 50px;
        /* Larger touch target */
    }
}

/* Video Advantage Section */
.video-advantage-section {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 80px;
}

.video-container {
    flex: 1;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    max-width: 800px;
    /* Limit width */
    margin: 0 auto;
}

.advantage-video {
    width: 100%;
    display: block;
    border-radius: 16px;
    max-height: 60vh;
    /* Prevent it from being too tall on desktop */
    object-fit: contain;
    /* Ensure aspect ratio is preserved */
    background: black;
    /* Fill empty space if aspect ratio differs */
}

.video-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
}

.video-overlay-text h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--primary);
}

.video-overlay-text p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.advantage-text {
    flex: 1;
}

.advantage-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.advantage-text p {
    color: var(--text-main);
    /* Fixed: Brighter white in dark mode */
}

[data-theme="light"] .advantage-text p {
    color: #334155;
    /* Dark gray for light mode readability */
    line-height: 1.6;
    margin-bottom: 30px;
}

.advantage-list {
    list-style: none;
    padding: 0;
}

.advantage-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-main);
    padding: 15px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.advantage-list li:hover {
    transform: translateX(10px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.advantage-list li i {
    color: var(--primary);
    font-size: 1.3rem;
    width: 30px;
    text-align: center;
}

@media (max-width: 900px) {
    .video-advantage-section {
        flex-direction: column;
    }

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

    .advantage-list li {
        text-align: left;
    }
}

/* Contact Form Styles */
.contact-form {
    padding: 40px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

/* === Mobile Optimizations === */
@media (max-width: 768px) {

    /* Industry Selector Buttons */
    .industry-selector .industry-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        flex: 1 1 auto;
        /* Allow buttons to grow and shrink */
        min-width: 100px;
        /* Minimum clickable width */
        margin-bottom: 5px;
    }

    .industry-selector {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        padding: 0 10px;
    }

    /* Comparison Grid */
    .comparison-grid {
        grid-template-columns: 1fr;
        /* Stack cards vertically */
        gap: 20px;
    }

    .card.compare-card {
        padding: 20px;
        /* Reduce padding on mobile */
    }

    /* Typography Adjustments */
    .section-title {
        font-size: 2rem;
        /* Smaller headings */
    }

    .section-desc {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* Video Section */
    .video-container {
        margin-bottom: 20px;
    }

    .video-advantage-section h3 {
        font-size: 1.8rem !important;
        /* Force smaller size on mobile */
    }
}