/* Non-Critical CSS - Extended Theme System and Components */
/* Critical styles are now inlined in HTML head for optimal LCP */

:root {
    /* Extended color system for theme variations */
    --success: #059669;
    --warning: #d97706;
    --error: #dc2626;
    --text-light: #9ca3af;
    --section-padding: 5rem 0;
    --element-spacing: 2rem;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition-slow: 0.5s ease;
    
    /* Navigation and linking colors */
    --link-color: #2563eb;
    --link-hover: #1d4ed8;
    --breadcrumb-bg: rgba(249, 250, 251, 0.95);
    --breadcrumb-border: #e5e7eb;
}

/* Breadcrumb Navigation Styles */
.breadcrumb-nav {
    background: var(--breadcrumb-bg);
    border-bottom: 1px solid var(--breadcrumb-border);
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 110;
    backdrop-filter: blur(8px);
}

.breadcrumb {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: var(--text-light);
}

.breadcrumb-item a {
    color: var(--link-color);
    text-decoration: none;
    transition: var(--transition-fast);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.breadcrumb-item a:hover {
    color: var(--link-hover);
    background-color: rgba(37, 99, 235, 0.1);
}

.breadcrumb-item:last-child a {
    color: var(--text-secondary);
    cursor: default;
}

.breadcrumb-item:last-child a:hover {
    background-color: transparent;
}

/* Section Navigation Menu */
.section-nav {
    position: fixed;
    top: 50%;
    left: 2rem;
    transform: translateY(-50%);
    z-index: 90;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.section-nav-toggle {
    padding: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.section-nav-toggle:hover {
    color: var(--primary-color);
}

.section-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-top: 1px solid var(--border-light);
}

.section-nav.expanded .section-nav-menu {
    max-height: 400px;
}

.section-nav-menu li {
    margin: 0;
}

.section-nav-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--border-light);
}

.section-nav-menu a:hover,
.section-nav-menu a.active {
    color: var(--primary-color);
    background-color: var(--primary-bg);
}

.section-nav-menu li:last-child a {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Internal Link Styles */
.inline-link {
    color: var(--link-color);
    text-decoration: underline;
    text-decoration-color: rgba(37, 99, 235, 0.3);
    text-underline-offset: 2px;
    transition: var(--transition-fast);
}

.inline-link:hover {
    color: var(--link-hover);
    text-decoration-color: var(--link-hover);
}

.feature-link {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

/* Section Navigation Links */
.section-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.nav-link {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--link-hover);
    background-color: rgba(37, 99, 235, 0.1);
}

/* Section Footer with Related Links */
.section-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-light);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.related-sections h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.related-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.related-link {
    color: var(--link-color);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: var(--transition-fast);
    display: block;
    font-weight: 500;
}

.related-link:hover {
    color: var(--link-hover);
    background-color: rgba(37, 99, 235, 0.1);
}

.next-section {
    text-align: right;
}

/* Hero Navigation Arrow */
.hero-navigation {
    margin-top: 2rem;
    text-align: center;
}

.nav-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.nav-arrow:hover {
    color: var(--primary-dark);
    background-color: var(--primary-bg);
}

.nav-arrow i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Styles for Internal Linking */
@media (max-width: 1024px) {
    .section-nav {
        left: 1rem;
    }
    
    .section-footer {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .next-section {
        text-align: center;
    }
}

@media (max-width: 768px) {
    /* Adjust breadcrumb for mobile */
    .breadcrumb-nav {
        padding: 0.25rem 0;
    }
    
    .breadcrumb {
        font-size: 0.75rem;
        justify-content: center;
    }
    
    .breadcrumb-item a {
        padding: 0.125rem 0.25rem;
    }
    
    /* Hide section nav on mobile to avoid clutter */
    .section-nav {
        display: none;
    }
    
    /* Adjust back to top button */
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    /* Section navigation adjustments */
    .section-navigation {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .related-links {
        grid-template-columns: 1fr;
    }
    
    /* Adjust hero navigation */
    .hero-navigation {
        margin-top: 1.5rem;
    }
    
    .nav-arrow {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 480px) {
    /* Further mobile optimizations */
    .breadcrumb {
        font-size: 0.7rem;
    }
    
    .breadcrumb-item:not(:first-child):not(:last-child) {
        display: none;
    }
    
    .section-navigation {
        gap: 0.75rem;
    }
    
    .nav-link {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Print styles */
@media print {
    .breadcrumb-nav,
    .section-nav,
    .back-to-top,
    .nav-arrow {
        display: none;
    }
    
    .inline-link {
        color: inherit;
        text-decoration: none;
    }
    
    .inline-link::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* Theme Variations */
[data-theme="custom-light"] {
    --primary-color: #2fa9e1;
    --primary-dark: #1e88c7;
    --primary-light: #4fc3f7;
    --secondary-color: #0277bd;
    --primary-bg: rgba(47, 169, 225, 0.1);
}

[data-theme="custom-dark"] {
    --primary-color: #106bb3;
    --primary-dark: #0d5690;
    --primary-light: #1976d2;
    --secondary-color: #0d47a1;
    --primary-bg: rgba(16, 107, 179, 0.1);
}

[data-theme="green"] {
    --primary-color: #059669;
    --primary-dark: #047857;
    --primary-light: #10b981;
    --secondary-color: #065f46;
    --primary-bg: rgba(5, 150, 105, 0.1);
}

[data-theme="orange"] {
    --primary-color: #ea580c;
    --primary-dark: #c2410c;
    --primary-light: #f97316;
    --secondary-color: #9a3412;
    --primary-bg: rgba(234, 88, 12, 0.1);
}

[data-theme="purple"] {
    --primary-color: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-light: #8b5cf6;
    --secondary-color: #581c87;
    --primary-bg: rgba(124, 58, 237, 0.1);
}

[data-theme="red"] {
    --primary-color: #dc2626;
    --primary-dark: #b91c1c;
    --primary-light: #ef4444;
    --secondary-color: #991b1b;
    --primary-bg: rgba(220, 38, 38, 0.1);
}

[data-theme="teal"] {
    --primary-color: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #14b8a6;
    --secondary-color: #134e4a;
    --primary-bg: rgba(13, 148, 136, 0.1);
}

[data-theme="cyan"] {
    --primary-color: #0891b2;
    --primary-dark: #0e7490;
    --primary-light: #06b6d4;
    --secondary-color: #155e75;
    --primary-bg: rgba(8, 145, 178, 0.1);
}

[data-theme="amber"] {
    --primary-color: #d97706;
    --primary-dark: #b45309;
    --primary-light: #f59e0b;
    --secondary-color: #92400e;
    --primary-bg: rgba(217, 119, 6, 0.1);
}

[data-theme="emerald"] {
    --primary-color: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;
    --secondary-color: #065f46;
    --primary-bg: rgba(16, 185, 129, 0.1);
}

[data-theme="indigo"] {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #6366f1;
    --secondary-color: #3730a3;
    --primary-bg: rgba(79, 70, 229, 0.1);
}

[data-theme="rose"] {
    --primary-color: #e11d48;
    --primary-dark: #be123c;
    --primary-light: #f43f5e;
    --secondary-color: #9f1239;
    --primary-bg: rgba(225, 29, 72, 0.1);
}

[data-theme="slate"] {
    --primary-color: #475569;
    --primary-dark: #334155;
    --primary-light: #64748b;
    --secondary-color: #1e293b;
    --primary-bg: rgba(71, 85, 105, 0.1);
}

[data-theme="lime"] {
    --primary-color: #65a30d;
    --primary-dark: #4d7c0f;
    --primary-light: #84cc16;
    --secondary-color: #365314;
    --primary-bg: rgba(101, 163, 13, 0.1);
}

[data-theme="pink"] {
    --primary-color: #ec4899;
    --primary-dark: #db2777;
    --primary-light: #f472b6;
    --secondary-color: #be185d;
    --primary-bg: rgba(236, 72, 153, 0.1);
}

[data-theme="violet"] {
    --primary-color: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --secondary-color: #6d28d9;
    --primary-bg: rgba(139, 92, 246, 0.1);
}

[data-theme="sky"] {
    --primary-color: #0284c7;
    --primary-dark: #0369a1;
    --primary-light: #0ea5e9;
    --secondary-color: #075985;
    --primary-bg: rgba(2, 132, 199, 0.1);
}

[data-theme="yellow"] {
    --primary-color: #eab308;
    --primary-dark: #ca8a04;
    --primary-light: #fbbf24;
    --secondary-color: #a16207;
    --primary-bg: rgba(234, 179, 8, 0.1);
}

[data-theme="fuchsia"] {
    --primary-color: #d946ef;
    --primary-dark: #c026d3;
    --primary-light: #e879f9;
    --secondary-color: #a21caf;
    --primary-bg: rgba(217, 70, 239, 0.1);
}



/* Non-critical base styles - critical styles inlined in HTML */
html {
    scroll-behavior: smooth;
}

/* Development Theme Selector */
.theme-selector {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1000;
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border);
}

.theme-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.theme-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 2px solid transparent;
}

.theme-btn:hover {
    transform: scale(1.1);
    border-color: var(--text-secondary);
}

.theme-btn.active {
    border-color: var(--text-primary);
    transform: scale(1.15);
}

.theme-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: var(--font-weight-medium);
}

/* Non-critical container and utility styles */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

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

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

h1 {
    font-size: 3rem;
    font-weight: var(--font-weight-extrabold);
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

.framework-item h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: var(--transition-normal);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white !important;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary.large,
.btn-secondary.large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Header extensions - base header styles are inlined for LCP */
.partnership {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
}

/* Hero Section Extensions - critical styles inlined for LCP optimization */

/* Non-critical hero components - above-the-fold image and CTA inlined */
.hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.vehicle-showcase {
    position: relative;
}

.image-badges {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.badge {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    box-shadow: var(--shadow-md);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features {
    padding: var(--section-padding);
    background-color: var(--background);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--primary-bg);
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Specifications Section */
.specifications {
    padding: var(--section-padding);
    background-color: var(--background-alt);
}

.specs-container {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.specs-image {
    position: relative;
}

.specs-photo {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

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

.spec-category h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-bg);
}

.spec-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
}

.spec-value {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    text-align: right;
}

/* Business Opportunity Section */
.business-opportunity {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--background-alt) 100%);
    border-top: 1px solid var(--border-light);
}

.opportunity-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.opportunity-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

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

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.benefit-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.opportunity-highlight {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    text-align: center;
}

.opportunity-highlight h3 {
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.highlight-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.highlight-item {
    text-align: center;
    padding: 1rem;
    background: var(--background-alt);
    border-radius: 12px;
}

.highlight-number {
    display: block;
    font-size: 1.75rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.highlight-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

.opportunity-cta {
    margin-top: 3rem;
}

.cta-note {
    margin: 1rem 0;
    font-size: 0.875rem;
    color: var(--text-primary);
    text-align: center;
    font-weight: var(--font-weight-medium);
}

/* Technology Demo Section */
.technology-demo {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--background) 0%, var(--primary-bg) 100%);
}

.demo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.video-showcase {
    position: relative;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.video-highlights {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.highlight-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
}

.highlight-badge i {
    font-size: 1rem;
}

.demo-stats h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.demo-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.demo-stats .stat-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.demo-stats .stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.demo-stats .stat-content {
    display: flex;
    flex-direction: column;
}

.demo-stats .stat-number {
    font-size: 1.8rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--text-primary);
    line-height: 1;
}

.demo-stats .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Mobile App Section */
.mobile-app {
    padding: var(--section-padding);
    background-color: var(--background);
    border-top: 1px solid var(--border-light);
}

.app-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.app-info h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.app-features {
    margin: 2.5rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.app-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.app-feature i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0.25rem;
    min-width: 24px;
}

.app-feature h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.app-feature p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.app-benefits {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-highlight {
    text-align: center;
    padding: 1rem;
    background: var(--primary-bg);
    border-radius: 12px;
    flex: 1;
}

.benefit-number {
    display: block;
    font-size: 1.5rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.benefit-text {
    font-size: 0.875rem;
    color: #5a616c;
    font-weight: var(--font-weight-medium);
}

.tech-illustration {
    max-width: 350px;
    margin: 0 auto;
    text-align: center;
}

.tech-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.tech-layer {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    min-width: 250px;
}

.tech-layer:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-bg);
}

.tech-layer i {
    font-size: 1.5rem;
    color: var(--primary-color);
    min-width: 24px;
}

.tech-layer span {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    font-size: 1rem;
}

.tech-connector {
    width: 3px;
    height: 20px;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-light));
    margin: 0.5rem 0;
    border-radius: 2px;
}

.tech-note {
    background: var(--primary-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.tech-note p {
    margin: 0;
    color: var(--text-primary);
}

.tech-note p:first-child {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.tech-note p:last-child {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.tech-documentation {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.doc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary) !important;
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid var(--primary-color);
}

.doc-link:hover {
    color: var(--primary-dark) !important;
    text-decoration: none;
    background: var(--primary-bg);
    border-color: var(--primary-color);
}

.doc-link i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Specifications Documentation */
.specs-documentation {
    margin-top: 2rem;
    text-align: center;
}

.documentation-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    border: 2px solid #ffd700;
}

.documentation-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.documentation-link i {
    font-size: 2rem;
    color: #ffd700;
}

.documentation-link span {
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    margin: 0;
    color: white;
}

.documentation-link small {
    font-size: 0.9rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* About Section */
.about {
    padding: var(--section-padding);
    background-color: var(--background);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.about-features {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.about-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.about-item h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.about-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.partnership-logos {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.logo-item img {
    height: 60px;
}

.partnership-symbol {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: var(--font-weight-bold);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--primary-color);
    display: block;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
    margin-top: 0.5rem;
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    background-color: var(--background-alt);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.contact-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
    justify-content: space-between;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: center;
    flex-direction: column;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    align-self: center;
}

.contact-item h4 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.contact-item p a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: all 0.3s ease;
}

.contact-item p a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Priority Nigeria Contact */
.contact-priority {
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 20px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 2px solid #ffd700;
}

.priority-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ffd700;
}

.priority-header i {
    color: #ffd700;
    font-size: 1.5rem;
}

.priority-header h4 {
    margin: 0;
    color: #ffd700;
    font-size: 1.3rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nigeria-contact {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid #ffd700;
    color: var(--primary-color);
}

.contact-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    font-size: 1.8rem;
    flex-shrink: 0;
    border: 3px solid #ffd700;
}

.contact-details h5 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
}

.contact-details .title {
    margin: 0 0 1.5rem 0;
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    background: #ffd700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    display: inline-block;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background: var(--primary-bg);
    border-radius: 10px;
    border-left: 4px solid #ffd700;
}

.contact-method i {
    color: var(--primary-color);
    font-size: 1.3rem;
    width: 24px;
}

.contact-method a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-method a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Secondary Global Contact */
.contact-secondary {
    margin-top: 2rem;
    width: 100%;
}

.contact-secondary h4 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

/* Form Styles */
.quote-form {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition-fast);
    font-family: var(--font-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Footer */
.footer {
    background-color: var(--text-primary);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: #d1d5db;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-section ul li a:hover {
    color: var(--primary-light);
}

.service-placeholder {
    color: #9ca3af;
    font-style: italic;
    cursor: default;
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

.developer-credit {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.8rem;
    color: var(--text-light);
}

.developer-credit a {
    color: #4a97cf;
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: all 0.3s ease;
}

.developer-credit a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Mobile-First Responsive Design - Optimized for Nigerian Mobile Networks */
@media screen and (max-width: 1024px) {
    /* Tablet optimizations */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .about-content,
    .contact-content,
    .opportunity-content,
    .app-content,
    .demo-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .opportunity-benefits,
    .app-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .app-benefits {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .theme-selector {
        right: 10px;
        padding: 0.75rem;
    }
}

@media screen and (max-width: 768px) {
    /* Mobile-specific optimizations for Nigerian networks */
    /* Critical mobile styles already inlined in head */
    
    .hero-features {
        grid-template-columns: 1fr;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .features-grid,
    .specs-grid,
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .specs-grid {
        gap: 2rem;
    }
    
    .specs-container {
        padding: 2rem 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .theme-selector {
        display: none; /* Hide on mobile for performance */
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .subtitle {
        font-size: 1.25rem;
        margin-top: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .section-header p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .btn-primary.large,
    .btn-secondary.large {
        padding: 14px 20px;
        font-size: 16px;
        min-height: 52px;
        border-radius: 8px;
        font-weight: var(--font-weight-bold);
    }
    
    .contact-items {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Enhanced mobile typography for Nigerian users */
    .hero-description {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }
    
    .feature-card h3,
    .benefit-card h3 {
        font-size: 1.1rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }
    
    .feature-card p,
    .benefit-card p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Improved mobile spacing */
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 6rem 1rem 4rem;
    }
    
    .features,
    .business-opportunity,
    .technology-demo,
    .mobile-app,
    .specifications,
    .about,
    .contact {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    /* Mobile form improvements */
    .quote-form {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-group label {
        font-size: 14px;
        font-weight: var(--font-weight-semibold);
        margin-bottom: 8px;
        color: var(--text-primary);
    }
    
    /* Mobile card spacing */
    .features-grid,
    .opportunity-benefits,
    .specs-grid {
        gap: 1.5rem;
    }
    
    .feature-card,
    .benefit-card {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    /* Mobile navigation improvements */
    .nav {
        padding: 0.75rem 1rem;
    }
    
    .logo {
        height: 36px;
    }
    
    /* Mobile stats and highlights */
    .highlight-items {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .highlight-item {
        padding: 1rem;
    }
    
    .highlight-number {
        font-size: 1.5rem;
    }
    
    .highlight-label {
        font-size: 0.8rem;
    }
    
    /* Contact section mobile optimization */
    .contact-priority {
        padding: 2rem;
        margin-bottom: 2rem;
        border-radius: 16px;
    }
    
    .contact-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .contact-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        align-self: center;
    }
    
    .contact-methods {
        gap: 0.75rem;
    }
    
    .contact-method {
        padding: 12px 16px;
        border-radius: 8px;
        justify-content: center;
    }
    
    /* Video container mobile optimization */
    .video-container {
        border-radius: 12px;
        margin-bottom: 1rem;
    }
    
    .video-highlights {
        justify-content: center;
        gap: 8px;
    }
    
    .highlight-badge {
        padding: 6px 12px;
        font-size: 0.8rem;
        border-radius: 20px;
    }
    
    /* Specs container mobile */
    .specs-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .spec-category h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .spec-item {
        padding: 0.5rem 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .spec-value {
        text-align: left;
        font-size: 0.9rem;
    }
    
    /* Footer mobile optimization */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Enhanced Mobile Menu Styles for Nigerian Users */
.nav-links.show {
    display: flex !important;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 999;
    border-top: 1px solid var(--border);
    animation: slideDownFade 0.3s ease-out;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

.nav-links.show a {
    padding: 16px 20px;
    margin: 4px 0;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.02);
    border: 2px solid transparent;
    transition: all 0.2s ease;
    font-size: 16px;
    font-weight: var(--font-weight-medium);
    text-align: center;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links.show a:hover {
    background: var(--primary-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.nav-links.show a:active {
    background: var(--primary-color);
    color: white;
    transform: scale(0.98);
}

.nav-links.show a.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: var(--font-weight-bold);
    margin-top: 8px;
}

.nav-links.show a.btn-primary:active {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Mobile menu overlay for better UX */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Mobile menu animation */
@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced mobile menu button */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        min-width: 48px;
        padding: 12px;
        border-radius: 8px;
        background: rgba(0, 0, 0, 0.05);
        border: 2px solid transparent;
        transition: all 0.2s ease;
        cursor: pointer;
        position: relative;
        overflow: hidden;
    }
    
    .mobile-menu-btn:hover {
        background: var(--primary-bg);
        border-color: var(--primary-color);
    }
    
    .mobile-menu-btn:active {
        background: var(--primary-color);
        color: white;
        transform: scale(0.95);
    }
    
    .mobile-menu-btn i {
        font-size: 20px;
        transition: all 0.3s ease;
    }
    
    /* Animated hamburger menu */
    .mobile-menu-btn.active i.fa-bars {
        transform: rotate(90deg);
        opacity: 0;
    }
    
    .mobile-menu-btn.active i.fa-times {
        transform: rotate(0deg);
        opacity: 1;
    }
    
    /* Ripple effect for mobile menu button */
    .mobile-menu-btn::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(16, 107, 179, 0.3);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.3s ease, height 0.3s ease;
    }
    
    .mobile-menu-btn:active::after {
        width: 60px;
        height: 60px;
    }
}

/* Header Scroll Effect */
.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

/* Animation Classes */
.animate-in {
    animation: slideInUp 0.6s ease-out forwards;
    opacity: 1;
    transform: translateY(0);
}

.feature-card,
.spec-category,
.about-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

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

/* Loading States */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* Enhanced Hover Effects */
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Form Validation States */
.form-group input.error,
.form-group textarea.error {
    border-color: var(--error);
    background-color: rgba(220, 38, 38, 0.05);
}

.form-group input.success,
.form-group textarea.success {
    border-color: var(--success);
    background-color: rgba(5, 150, 105, 0.05);
}

/* Toast Notification Styles */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary);
    min-width: 320px;
    max-width: 500px;
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
}

.toast-success {
    border-left-color: var(--success);
}

.toast-error {
    border-left-color: var(--error);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
}

.toast-content i {
    font-size: 1.25rem;
}

.toast-success .toast-content i {
    color: var(--success);
}

.toast-error .toast-content i {
    color: var(--error);
}

.toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.toast-close:hover {
    background: var(--bg-light);
    color: var(--text);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Error Handling for Missing Images */
img[src*=".webp"], img[src*=".jpg"], img[src*=".jpeg"], img[src*=".png"] {
    transition: opacity 0.3s ease;
}

img[style*="display: none"] {
    opacity: 0;
    pointer-events: none;
}

/* Video Fallback Styles */
.video-fallback {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    border: 2px dashed var(--border);
}

.fallback-content i {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.fallback-content h4 {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.fallback-content p {
    color: var(--text-light);
    margin: 0;
}

/* Performance Optimization Styles */

/* Loading animation for form submission */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced video fallback for mobile optimization */
.video-fallback {
    background: var(--background-alt);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    border: 2px dashed var(--border);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fallback-content {
    max-width: 400px;
}

.fallback-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.video-fallback .btn-secondary {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
}

/* Icon fallback styles for when Font Awesome fails to load */
.no-icons i.fas,
.no-icons i.fab {
    display: inline-block;
    width: 1em;
    height: 1em;
    text-align: center;
}

.no-icons i.fa-bars::before { content: "☰"; }
.no-icons i.fa-times::before { content: "✕"; }
.no-icons i.fa-trophy::before { content: "🏆"; }
.no-icons i.fa-chart-line::before { content: "📈"; }
.no-icons i.fa-globe-africa::before { content: "🌍"; }
.no-icons i.fa-handshake::before { content: "🤝"; }
.no-icons i.fa-chess-king::before { content: "♔"; }
.no-icons i.fa-rocket::before { content: "🚀"; }
.no-icons i.fa-medal::before { content: "🥇"; }
.no-icons i.fa-shield-alt::before { content: "🛡️"; }
.no-icons i.fa-network-wired::before { content: "🌐"; }
.no-icons i.fa-brain::before { content: "🧠"; }
.no-icons i.fa-crown::before { content: "👑"; }
.no-icons i.fa-flag::before { content: "🏁"; }
.no-icons i.fa-envelope::before { content: "✉️"; }
.no-icons i.fa-phone::before { content: "📞"; }
.no-icons i.fa-map-marker-alt::before { content: "📍"; }
.no-icons i.fa-globe::before { content: "🌐"; }
.no-icons i.fa-whatsapp::before { content: "💬"; }
.no-icons i.fa-linkedin::before { content: "🔗"; }
.no-icons i.fa-twitter::before { content: "🐦"; }
.no-icons i.fa-facebook::before { content: "📘"; }
.no-icons i.fa-check-circle::before { content: "✓"; }
.no-icons i.fa-exclamation-circle::before { content: "⚠️"; }
.no-icons i.fa-info-circle::before { content: "ℹ️"; }
.no-icons i.fa-user-tie::before { content: "👔"; }
.no-icons i.fa-star::before { content: "⭐"; }

/* Mobile performance optimizations */
@media (max-width: 768px) {
    /* Reduce animations on mobile for better performance */
    .no-reduce-motion .animate-in {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    /* Enhanced touch targets for mobile - Nigerian mobile users */
    button, .btn-primary, .btn-secondary {
        min-height: 48px;
        min-width: 48px;
        padding: 12px 24px;
        border-radius: 8px;
        font-size: 16px;
        font-weight: var(--font-weight-semibold);
        position: relative;
        overflow: hidden;
    }
    
    /* Touch feedback animations */
    button:active, .btn-primary:active, .btn-secondary:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Enhanced link touch targets */
    a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 12px;
        border-radius: 4px;
        transition: all 0.2s ease;
    }
    
    /* Navigation links mobile optimization */
    .nav-links a {
        padding: 16px 20px;
        margin: 4px 0;
        border-radius: 8px;
        background: rgba(0, 0, 0, 0.02);
        border: 1px solid transparent;
    }
    
    .nav-links a:active {
        background: var(--primary-bg);
        border-color: var(--primary-color);
        transform: scale(0.98);
    }
    
    /* Mobile menu button enhancements */
    .mobile-menu-btn {
        min-height: 48px;
        min-width: 48px;
        padding: 12px;
        border-radius: 8px;
        background: rgba(0, 0, 0, 0.05);
        border: 1px solid transparent;
        transition: all 0.2s ease;
    }
    
    .mobile-menu-btn:active {
        background: var(--primary-bg);
        border-color: var(--primary-color);
        transform: scale(0.95);
    }
    
    /* Form elements mobile optimization */
    input, textarea, select {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 48px;
        padding: 12px 16px;
        border-radius: 8px;
        border: 2px solid var(--border);
        background: white;
        transition: all 0.2s ease;
    }
    
    input:focus, textarea:focus, select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 4px var(--primary-bg);
        transform: scale(1.02);
    }
    
    input:active, textarea:active, select:active {
        transform: scale(1.01);
    }
    
    /* Enhanced card interactions for mobile */
    .feature-card, .benefit-card, .contact-card {
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    .feature-card:active, .benefit-card:active {
        transform: scale(0.98);
        box-shadow: var(--shadow-md);
    }
    
    /* Contact method links mobile enhancement */
    .contact-method a {
        min-height: 48px;
        padding: 12px 16px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 16px;
        text-decoration: none;
        transition: all 0.2s ease;
    }
    
    .contact-method a:active {
        transform: scale(0.98);
        background: rgba(0, 0, 0, 0.05);
    }
    
    /* Icon touch targets */
    i.fas, i.fab {
        min-width: 24px;
        min-height: 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Reduced motion fallback */
    .video-fallback {
        min-height: 250px;
        padding: 2rem 1rem;
    }
    
    /* Swipe gesture hints for mobile carousels/sliders */
    .swipe-hint {
        position: relative;
    }
    
    .swipe-hint::after {
        content: "← Swipe →";
        position: absolute;
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 12px;
        color: var(--text-light);
        opacity: 0.7;
    }
    
    /* Mobile-specific hover states (touch devices) */
    @media (hover: none) and (pointer: coarse) {
        .feature-card:hover,
        .benefit-card:hover,
        .btn-primary:hover,
        .btn-secondary:hover {
            transform: none;
            box-shadow: var(--shadow-md);
        }
        
        /* Use active states instead of hover for touch devices */
        .feature-card:active,
        .benefit-card:active {
            transform: scale(0.98);
            box-shadow: var(--shadow-lg);
        }
    }
}

/* Prefers reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-in {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* High contrast mode support for accessibility */
@media (prefers-contrast: high) {
    :root {
        --border: #000000;
        --text-secondary: #000000;
    }
    
    .btn-primary, .btn-secondary {
        border-width: 2px;
    }
}

/* Mobile virtual keyboard handling */
.keyboard-open {
    position: fixed;
    width: 100%;
}

.keyboard-open .header {
    position: absolute;
}

.keyboard-open .contact-form {
    padding-bottom: 200px; /* Extra space for virtual keyboard */
}

/* Error message styling for mobile forms */
.error-message {
    color: #dc2626;
    font-size: 14px;
    margin-top: 4px;
    font-weight: var(--font-weight-medium);
    display: flex;
    align-items: center;
    gap: 4px;
}

.error-message::before {
    content: "⚠️";
    font-size: 12px;
}

/* Success message styling for mobile forms */
.success-message {
    color: #059669;
    font-size: 14px;
    margin-top: 4px;
    font-weight: var(--font-weight-medium);
    display: flex;
    align-items: center;
    gap: 4px;
}

.success-message::before {
    content: "✅";
    font-size: 12px;
}

/* Enhanced focus states for Nigerian mobile users */
@media (max-width: 768px) {
    input:focus, textarea:focus, select:focus {
        border: 3px solid var(--primary-color);
        box-shadow: 0 0 0 4px var(--primary-bg);
        transform: scale(1.02);
        border-radius: 8px;
        outline: none;
        position: relative;
        z-index: 10;
    }
    
    /* Enhanced button states for mobile */
    .btn-primary:focus, .btn-secondary:focus {
        outline: 3px solid var(--primary-bg);
        outline-offset: 2px;
        transform: scale(1.05);
    }
    
    /* Improved checkbox and radio button styling for mobile */
    input[type="checkbox"], input[type="radio"] {
        min-width: 20px;
        min-height: 20px;
        margin-right: 8px;
        transform: scale(1.2);
    }
    
    /* Enhanced select styling for mobile */
    select {
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' 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;
        padding-right: 40px;
    }
    
    /* Loading states for form submission */
    .form-loading {
        position: relative;
        pointer-events: none;
    }
    
    .form-loading::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.8);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        z-index: 100;
    }
    
    /* Progressive Web App enhancements */
    .pwa-install-banner {
        position: fixed;
        bottom: 20px;
        left: 20px;
        right: 20px;
        background: var(--primary-color);
        color: white;
        padding: 16px;
        border-radius: 12px;
        box-shadow: var(--shadow-lg);
        z-index: 1000;
        display: none;
        align-items: center;
        justify-content: space-between;
        font-size: 14px;
        font-weight: var(--font-weight-medium);
    }
    
    .pwa-install-banner.show {
        display: flex;
        animation: slideUpFade 0.3s ease-out;
    }
    
    .pwa-install-banner button {
        background: white;
        color: var(--primary-color);
        border: none;
        padding: 8px 16px;
        border-radius: 6px;
        font-weight: var(--font-weight-bold);
        font-size: 14px;
        cursor: pointer;
    }
    
    @keyframes slideUpFade {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Connection speed optimizations for Nigerian networks */
@media (max-width: 768px) and (prefers-reduced-data: reduce) {
    /* Reduce shadows and effects for slower connections */
    .feature-card, .benefit-card, .contact-card {
        box-shadow: var(--shadow-sm);
    }
    
    .feature-card:hover, .benefit-card:hover {
        box-shadow: var(--shadow-md);
        transform: none;
    }
    
    /* Simplify animations for slower devices */
    * {
        animation-duration: 0.2s !important;
        transition-duration: 0.2s !important;
    }
    
    /* Reduce blur effects */
    .header {
        backdrop-filter: none;
        background: rgba(255, 255, 255, 0.95);
    }
    
    .nav-links.show {
        backdrop-filter: none;
        background: white;
    }
} 