/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scroll */
    -webkit-text-size-adjust: 100%; /* Prevent text scaling on iOS */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%; /* Ensure full width constraint */
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

.nav-logo i {
    margin-right: 10px;
    color: #7c3aed;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(45deg, #2563eb, #7c3aed);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    margin-right: 1rem;
}

.lang-btn {
    padding: 8px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    color: #6b7280;
}

.lang-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.lang-btn.active {
    background: linear-gradient(45deg, #2563eb, #7c3aed);
    color: white;
    border-color: transparent;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.hamburger:hover {
    background: rgba(0, 0, 0, 0.05);
}

.hamburger:active {
    transform: scale(0.95);
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hamburger animation */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-dropdown-toggle:hover {
    color: #2563eb;
}

.nav-dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle i {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu li {
    list-style: none;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-dropdown-menu a:hover {
    background: #f8fafc;
    color: #2563eb;
    border-left-color: #2563eb;
}

.nav-dropdown-menu a.active {
    background: #eff6ff;
    color: #2563eb;
    border-left-color: #2563eb;
}

/* Breadcrumb Navigation */
.breadcrumb {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    margin-top: 70px;
}

.breadcrumb .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-nav a {
    text-decoration: none;
    color: #6b7280;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.breadcrumb-nav a:hover {
    color: #2563eb;
}

.breadcrumb-separator {
    color: #9ca3af;
    font-size: 0.8rem;
}

.breadcrumb-current {
    color: #2563eb;
    font-weight: 600;
}

.back-to-home-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    color: #2563eb;
    text-decoration: none;
    border: 2px solid #2563eb;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.back-to-home-btn:hover {
    background: #2563eb;
    color: white;
}

.back-to-home-btn i {
    transition: transform 0.3s ease;
}

.back-to-home-btn:hover i {
    transform: translateX(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)" /></svg>');
    opacity: 0.5;
}

/* AI Floating Particles */
.ai-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle.code {
    width: auto;
    height: auto;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    background: none;
}

.particle.ai-term {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Simple particles for mobile devices */
.ai-particles.simple .particle {
    font-size: 14px;
    opacity: 0.7;
    animation: simpleFloat 6s ease-in-out infinite;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
}

.ai-particles.simple .particle.simple {
    background: rgba(37, 99, 235, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    backdrop-filter: blur(4px);
}

@keyframes simpleFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        opacity: 0.7;
    }
    50% { 
        transform: translateY(-10px) scale(1.05);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Data Streams */
.data-streams {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.data-stream {
    position: absolute;
    width: 2px;
    height: 0;
    background: linear-gradient(to bottom, transparent, rgba(34, 197, 94, 0.8), transparent);
    animation: stream 3s linear infinite;
}

@keyframes stream {
    0% {
        height: 0;
        top: -100px;
    }
    50% {
        height: 100px;
    }
    100% {
        height: 0;
        top: 100vh;
    }
}

/* AI Dropping Items */
.ai-dropping-items {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.ai-dropping-item {
    position: absolute;
    top: -50px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    animation: aiDrop linear infinite;
    opacity: 0.7;
    user-select: none;
}

.ai-dropping-item.emoji {
    font-size: 24px;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
}

.ai-dropping-item.text {
    font-size: 16px;
    color: #3b82f6;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
    font-weight: 700;
}

.ai-dropping-item.code {
    font-size: 14px;
    color: #10b981;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
    font-family: 'Courier New', monospace;
}

.ai-dropping-item.binary {
    font-size: 12px;
    color: #6b7280;
    text-shadow: 0 0 6px rgba(107, 114, 128, 0.4);
    font-family: 'Courier New', monospace;
}

.ai-dropping-item.symbol {
    font-size: 20px;
    color: #7c3aed;
    text-shadow: 0 0 12px rgba(124, 58, 237, 0.6);
    font-weight: 700;
}

@keyframes aiDrop {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 0.7;
    }
    95% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(calc(100% + 50px)) rotate(360deg);
        opacity: 0;
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%; /* Ensure proper width constraint */
    overflow: hidden; /* Prevent content overflow */
}

.hero-content {
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, #2563eb, #7c3aed);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #1e40af, #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2563eb;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-outline:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* Section CTA */
.section-cta {
    margin-top: 1.5rem;
    text-align: center;
}

.section-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 14px 24px;
    font-weight: 600;
}

.section-cta .btn i {
    font-size: 0.9rem;
}

/* AI Animation */
.hero-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    width: 100%; /* Ensure proper width constraint */
    max-width: 100%; /* Prevent overflow */
}

.hero-image-container {
    margin-bottom: 1rem;
    width: 100%; /* Full width within container */
    max-width: 500px; /* Reasonable max size */
    display: flex;
    justify-content: center;
}

.hero-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    max-width: 100%; /* Prevent overflow */
    width: 100%; /* Fill container */
}

.hero-image:hover {
    transform: scale(1.02);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}


.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.image-overlay:hover {
    opacity: 1;
}

.image-overlay p {
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border-radius: 5px;
}

/* Multi-Modal AI Processing Pipeline */
.ai-pipeline-animation {
    position: relative;
    width: 100%;
    max-width: 100%; /* Prevent overflow */
    height: 300px;
    margin-top: 2rem;
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 50%, #0f1419 100%);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(52, 152, 219, 0.2);
    padding: 1.5rem;
    box-sizing: border-box; /* Include padding in width calculation */
}

.pipeline-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    justify-content: space-between;
}

/* Input Modalities */
.input-modalities {
    display: flex;
    flex-direction: column;
    width: 20%;
    gap: 0.5rem;
}

.modality-input {
    position: relative;
    background: rgba(30, 41, 59, 0.95); /* Simplified solid background for Android compatibility */
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: 6px;
    padding: 0.4rem;
    text-align: center;
    backdrop-filter: blur(10px);
    animation: modalityPulse 5s ease-in-out infinite;
    min-height: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Android-specific fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.modality-input:nth-child(1) { animation-delay: 0s; }
.modality-input:nth-child(2) { animation-delay: 1s; }
.modality-input:nth-child(3) { animation-delay: 2s; }
.modality-input:nth-child(4) { animation-delay: 3s; }

.input-icon {
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
    animation: iconFloat 3s ease-in-out infinite;
}

.input-label {
    font-size: 0.5rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

.data-stream {
    display: none;
}

.data-packet {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 3px;
    padding: 0.1rem 0.2rem;
    font-family: 'Courier New', monospace;
    font-size: 0.4rem;
    color: #94a3b8;
    animation: dataFlow 4s ease-in-out infinite;
    line-height: 1.1;
}

.data-packet:nth-child(1) { animation-delay: 0s; }
.data-packet:nth-child(2) { animation-delay: 2s; }

/* Processing Pipeline */
.processing-pipeline {
    display: flex;
    flex-direction: column;
    width: 45%;
    gap: 0.5rem;
}

.pipeline-stage {
    background: rgba(55, 65, 81, 0.95); /* Simplified solid background for Android compatibility */
    border: 1px solid rgba(156, 163, 175, 0.5);
    border-radius: 6px;
    padding: 0.4rem;
    text-align: center;
    backdrop-filter: blur(10px);
    animation: stageProcess 6s ease-in-out infinite;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Android-specific fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.pipeline-stage:nth-child(1) { animation-delay: 0s; }
.pipeline-stage:nth-child(2) { animation-delay: 2s; }
.pipeline-stage:nth-child(3) { animation-delay: 4s; }

.stage-title {
    font-size: 0.55rem;
    font-weight: 600;
    color: #f3f4f6;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

.attention-heads {
    display: flex;
    justify-content: space-around;
    margin-bottom: 0.2rem;
    gap: 0.1rem;
    flex-wrap: wrap;
}

.attention-head {
    background: rgba(139, 92, 246, 0.8); /* Stronger background for Android compatibility */
    border: 1px solid rgba(139, 92, 246, 0.9);
    border-radius: 8px;
    padding: 0.1rem 0.2rem;
    font-size: 0.4rem;
    /* Android-specific fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    color: #c4b5fd;
    animation: attentionFocus 3s ease-in-out infinite;
    line-height: 1.1;
}

.attention-head:nth-child(1) { animation-delay: 0s; }
.attention-head:nth-child(2) { animation-delay: 0.5s; }
.attention-head:nth-child(3) { animation-delay: 1s; }
.attention-head:nth-child(4) { animation-delay: 1.5s; }

.fusion-matrix {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.1rem;
    margin-bottom: 0.2rem;
    justify-items: center;
}

.fusion-cell {
    width: 12px;
    height: 12px;
    background: rgba(16, 185, 129, 0.8); /* Stronger background for Android compatibility */
    border: 1px solid rgba(16, 185, 129, 0.9);
    border-radius: 2px;
    animation: cellActivate 4s ease-in-out infinite;
    /* Android-specific fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.fusion-cell.active {
    background: rgba(16, 185, 129, 0.95); /* Stronger background for Android compatibility */
    border-color: rgba(16, 185, 129, 1);
    animation: cellActive 3s ease-in-out infinite;
    box-shadow: 0 0 4px rgba(16, 185, 129, 0.6); /* Add glow for visibility */
}

.fusion-cell:nth-child(1) { animation-delay: 0s; }
.fusion-cell:nth-child(2) { animation-delay: 1s; }
.fusion-cell:nth-child(3) { animation-delay: 2s; }
.fusion-cell:nth-child(4) { animation-delay: 3s; }

.reasoning-steps {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-bottom: 0.2rem;
}

.reasoning-step {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 3px;
    padding: 0.1rem 0.2rem;
    font-size: 0.4rem;
    color: #fbbf24;
    animation: stepThink 5s ease-in-out infinite;
    line-height: 1.1;
}

.reasoning-step:nth-child(1) { animation-delay: 0s; }
.reasoning-step:nth-child(2) { animation-delay: 1.5s; }
.reasoning-step:nth-child(3) { animation-delay: 3s; }

.processing-indicator {
    font-size: 0.45rem;
    color: #9ca3af;
    font-style: italic;
    animation: processingBlink 2s ease-in-out infinite;
    line-height: 1.1;
}

/* Output Generation */
.output-generation {
    width: 25%;
    display: flex;
    justify-content: center;
}

.output-stage {
    background: rgba(5, 150, 105, 0.95); /* Simplified solid background for Android compatibility */
    border: 1px solid rgba(16, 185, 129, 0.8);
    border-radius: 6px;
    padding: 0.4rem;
    width: 100%;
    text-align: center;
    backdrop-filter: blur(10px);
    animation: outputGenerate 6s ease-in-out infinite;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Android-specific fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.output-icon {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    animation: outputLaunch 4s ease-in-out infinite;
}

.output-label {
    font-size: 0.5rem;
    font-weight: 600;
    color: #f0fdf4;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

.output-examples {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.output-example {
    background: rgba(240, 253, 244, 0.1);
    border-radius: 3px;
    padding: 0.1rem 0.2rem;
    font-size: 0.4rem;
    color: #bbf7d0;
    animation: exampleShow 5s ease-in-out infinite;
    line-height: 1.1;
}

.output-example:nth-child(1) { animation-delay: 0s; }
.output-example:nth-child(2) { animation-delay: 1s; }
.output-example:nth-child(3) { animation-delay: 2s; }
.output-example:nth-child(4) { animation-delay: 3s; }

/* Performance Metrics */
.performance-metrics {
    position: absolute;
    bottom: 0.3rem;
    right: 0.3rem;
    display: flex;
    gap: 0.2rem;
}

.metric {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 4px;
    padding: 0.2rem;
    min-width: 40px;
    text-align: center;
    backdrop-filter: blur(5px);
}

.metric-label {
    font-size: 0.35rem;
    color: #94a3b8;
    margin-bottom: 0.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1px;
    line-height: 1.1;
}

.metric-value {
    font-size: 0.5rem;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 0.2rem;
    line-height: 1.1;
}

.metric-bar {
    width: 100%;
    height: 2px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 1px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 1px;
    animation: metricFill 4s ease-in-out infinite;
}

/* Keyframe Animations */
@keyframes modalityPulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.8;
        border-color: rgba(148, 163, 184, 0.3);
    }
    50% { 
        transform: scale(1.02); 
        opacity: 1;
        border-color: rgba(59, 130, 246, 0.5);
    }
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(2deg); }
}

@keyframes dataFlow {
    0%, 100% { 
        opacity: 0.6; 
        transform: translateX(0px);
        border-color: rgba(59, 130, 246, 0.3);
    }
    50% { 
        opacity: 1; 
        transform: translateX(3px);
        border-color: rgba(59, 130, 246, 0.6);
    }
}

@keyframes stageProcess {
    0%, 100% { 
        border-color: rgba(156, 163, 175, 0.3);
        transform: scale(1);
    }
    50% { 
        border-color: rgba(59, 130, 246, 0.6); 
        transform: scale(1.02);
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    }
}

@keyframes attentionFocus {
    0%, 100% { 
        opacity: 0.6;
        transform: scale(1);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.1);
        background: rgba(139, 92, 246, 0.4);
    }
}

@keyframes cellActivate {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

@keyframes cellActive {
    0%, 100% { 
        transform: scale(1);
        box-shadow: none;
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
    }
}

@keyframes stepThink {
    0%, 100% { 
        opacity: 0.6;
        transform: translateX(0px);
    }
    25% { 
        opacity: 1; 
        transform: translateX(2px);
        border-color: rgba(245, 158, 11, 0.6);
    }
}

@keyframes processingBlink {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes outputGenerate {
    0%, 100% { 
        transform: scale(1);
        box-shadow: none;
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 0 25px rgba(16, 185, 129, 0.3);
    }
}

@keyframes outputLaunch {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.9;
    }
    50% { 
        transform: translateY(-8px) rotate(5deg);
        opacity: 1;
    }
}

@keyframes exampleShow {
    0%, 100% { 
        opacity: 0.7;
        transform: translateX(0px);
    }
    25% { 
        opacity: 1; 
        transform: translateX(2px);
    }
}

@keyframes metricFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Responsive Design for AI Pipeline */
@media (max-width: 768px) {
    .ai-pipeline-animation {
        padding: 0.8rem;
        height: auto;
        min-height: 180px;
    }
    
    .pipeline-container {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .input-modalities,
    .processing-pipeline,
    .output-generation {
        width: 100%;
        flex-direction: row;
        justify-content: space-around;
    }
    
    .modality-input,
    .pipeline-stage {
        min-width: 80px;
        max-width: 100px;
        min-height: 35px;
    }
    
    .attention-heads {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .fusion-matrix {
        justify-self: center;
    }
    
    .performance-metrics {
        position: relative;
        bottom: auto;
        right: auto;
        justify-content: center;
        margin-top: 0.8rem;
    }
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 3rem;
    text-align: center;
}

/* Services Section */
.services {
    background: #f8fafc;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.service-card.featured {
    border: 2px solid #2563eb;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.service-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(45deg, #2563eb, #7c3aed);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #2563eb, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: white;
    animation: iconSpin 6s linear infinite;
}

@keyframes iconSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* AI Badge Animation */
.service-badge {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Scroll Animation Classes */
.animate-in {
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glowing effect for active elements */
.glow-effect {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3) !important;
    transform: translateY(-3px) !important;
    transition: all 0.3s ease !important;
}

/* Continuous color changing text */
.color-changing-text {
    animation: colorChange 3s ease-in-out infinite;
}

@keyframes colorChange {
    0% { color: #7c3aed; } /* Purple */
    50% { color: #2563eb; } /* Blue */
    100% { color: #7c3aed; } /* Back to Purple */
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.service-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    padding: 0.5rem 0;
    color: #4b5563;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.service-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tag {
    background: #e5e7eb;
    color: #374151;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Industries Section */
.industries-section {
    margin: 4rem 0;
}

.industries-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1f2937;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.industry-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.industry-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.industry-item i {
    font-size: 2rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.industry-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.industry-item p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Process Section */
.process-section {
    margin: 4rem 0;
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.process-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1f2937;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #2563eb, #7c3aed);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.process-step h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.process-step p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Success Stories Section */
.success-stories {
    background: #f8fafc;
    padding: 80px 0;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.story-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.story-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.story-card:hover .story-image img {
    transform: scale(1.05);
}

.story-content {
    padding: 2rem;
}

.story-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.story-content p {
    color: #4b5563;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.story-author {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.story-author strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.story-author span {
    color: #6b7280;
    font-size: 0.9rem;
}

/* About Section */
.about-group {
    padding: 80px 0;
    background: #ffffff;
}

.about-content {
    display: block;
    width: 100%;
    max-width: none;
}

.about-text {
    width: 100%;
    max-width: none;
    margin: 0;
}

.about-text p {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    width: 100%;
    max-width: none;
    text-align: left;
}

.about-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
    text-align: center;
}

.about-image:hover {
    transform: translateY(-5px);
}

.about-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
}

.about-description {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #6b7280;
    font-weight: 500;
}

.expertise-areas h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: linear-gradient(45deg, #2563eb, #7c3aed);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

.team-highlight {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #e5e7eb;
}

.team-highlight h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.team-member {
    text-align: center;
}

.member-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #2563eb, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.member-avatar i {
    font-size: 1.5rem;
    color: white;
}

.team-member h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.team-member p {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Team Section with Picture on Right */
.team {
    background: #ffffff;
    padding: 80px 0;
}

.team h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1f2937;
}

.team-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.team-info {
    max-width: 600px;
}

.team-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.team-info > p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 2rem;
}

.team-content .team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.team-content .team-member {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: left;
}

.team-content .team-member:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.team-content .member-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #2563eb, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0;
}

.team-content .member-avatar i {
    font-size: 1.5rem;
    color: white;
}

.member-info {
    flex: 1;
}

.member-info h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.member-info p {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
}

.team-image {
    text-align: center;
}

.team-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact {
    background: #f8fafc;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #2563eb, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.2rem;
}

.contact-details h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.contact-details p {
    color: #6b7280;
    line-height: 1.6;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2563eb;
}

.footer-logo i {
    margin-right: 10px;
    color: #7c3aed;
}

.footer-section p {
    color: #9ca3af;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #2563eb;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(10px);
        padding: 1rem 0;
        min-height: calc(100vh - 70px);
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        font-weight: 500;
        color: #333;
        text-decoration: none;
        transition: all 0.3s ease;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-link:hover,
    .nav-link:active {
        background: rgba(37, 99, 235, 0.1);
        color: #2563eb;
    }
    
    .language-switcher {
        margin-right: 0;
        margin-top: 1rem;
        padding: 0 2rem;
        display: flex;
        justify-content: center;
        gap: 1rem;
    }
    
    .lang-btn {
        padding: 12px 20px;
        font-size: 1rem;
        min-width: 48px;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        border-radius: 24px;
    }
    
    /* Mobile Navigation Dropdown */
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: #f8fafc;
        margin-top: 0.5rem;
        border-radius: 6px;
    }

    .nav-dropdown-toggle i {
        transform: rotate(90deg);
    }

    .nav-dropdown:hover .nav-dropdown-toggle i {
        transform: rotate(270deg);
    }

    /* Mobile Breadcrumb */
    .breadcrumb .container {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .back-to-home-btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 15px; /* Reduce padding on mobile */
        max-width: 100%; /* Ensure no overflow */
        overflow: hidden; /* Prevent content overflow */
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2; /* Ensure proper line height */
        margin-bottom: 1rem; /* Add proper spacing */
        max-width: 100%; /* Prevent text overflow */
        word-wrap: break-word; /* Handle long words */
    }
    
    .hero-content {
        max-width: 100%; /* Prevent content overflow */
        padding: 0; /* Remove extra padding */
    }
    
    .hero-description {
        max-width: 100%; /* Prevent text overflow */
        font-size: 1rem; /* Smaller on mobile */
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .hero-visual {
        flex-direction: column;
        width: 100%; /* Full width */
        max-width: 100%; /* Prevent overflow */
    }
    
    .hero-image-container {
        order: -1;
        margin-bottom: 1rem;
        width: 100%; /* Full width */
        max-width: 350px; /* Smaller max width for mobile */
        padding: 0; /* Remove extra padding */
    }
    
    .hero-image {
        max-width: 100%; /* Fill container but don't overflow */
        width: 100%;
        margin: 0 auto; /* Center the image */
    }
    
    .ai-animation {
        width: 300px;
        height: 300px;
    }
    
    .about-content,
    .contact-content,
    .team-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
        text-align: left;
    }

    /* Team section mobile optimizations */
    .team-content {
        gap: 3rem;
        text-align: center;
    }

    .team-image {
        order: -1; /* Show image first on mobile */
        margin-bottom: 1rem;
    }

    .team-image img {
        max-width: 100%;
        width: 100%;
        min-width: 300px;
        height: auto;
        border-radius: 12px;
        object-fit: cover;
    }

    .team-info {
        max-width: 100%;
        text-align: center;
    }
    
    .ai-dropping-item.emoji {
        font-size: 18px;
    }
    
    .ai-dropping-item.text {
        font-size: 12px;
    }
    
    .ai-dropping-item.code {
        font-size: 10px;
    }
    
    .ai-dropping-item.symbol {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .about-text p {
        font-size: 0.95rem;
        color: #6b7280;
        line-height: 1.6;
        margin-bottom: 1.2rem;
        text-align: left;
    }

    /* Team section small mobile optimizations */
    .team-image img {
        min-width: 250px;
        margin: 0 auto;
        display: block;
    }

    .team-info {
        padding: 0 10px;
    }
    
    .ai-dropping-item.emoji {
        font-size: 18px;
    }
    
    .ai-dropping-item.text {
        font-size: 12px;
    }
    
    .ai-dropping-item.code {
        font-size: 10px;
    }
    
    .ai-dropping-item.symbol {
        font-size: 14px;
    }
}

/* iOS Safari Image Fixes */
@supports (-webkit-touch-callout: none) {
    .hero-image img {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000px;
        perspective: 1000px;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: optimize-contrast;
        -webkit-image-rendering: -webkit-optimize-contrast;
    }
}

/* iOS Image Optimization */
.hero-image img,
.story-image img,
.about-image img,
.team-image img {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
    -webkit-image-rendering: -webkit-optimize-contrast;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* iOS Safari Hover Fix - Disable transforms on touch devices */
@media (hover: none) and (pointer: coarse) {
    .hero-image:hover {
        transform: none;
    }
    
    .story-card:hover .story-image img {
        transform: none;
    }
    
    .about-image:hover {
        transform: none;
    }
}

/* iOS Memory Optimization */
@media screen and (-webkit-min-device-pixel-ratio: 2) {
    .hero-image {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: transform;
    }
}

/* Force Hardware Acceleration on iOS */
.hero-image-container,
.hero-image {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* iOS Specific Image Container Fixes */
@media only screen and (max-device-width: 812px) and (-webkit-device-pixel-ratio: 3) {
    .hero-image {
        max-width: 100%;
        width: 100%;
        height: auto;
        object-fit: contain;
        image-rendering: auto;
        -webkit-image-rendering: auto;
    }
    
    .hero-image img {
        max-width: 100%;
        width: 100%;
        height: auto;
        object-fit: contain;
        image-rendering: auto;
        -webkit-image-rendering: auto;
    }
}

/* Fix for iOS Safari Image Loading */
.hero-image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* iOS Performance Optimization */
@media screen and (max-width: 768px) {
    .hero-image {
        -webkit-transform: none;
        transform: none;
        transition: none;
    }
    
    .hero-image:hover {
        -webkit-transform: none;
        transform: none;
    }
}

/* Mobile Animation Optimizations & Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .ai-pipeline-animation,
    .ai-particles,
    .data-streams,
    .ai-dropping-items {
        display: none !important;
    }
}

/* Performance optimizations for mobile devices */
@media (max-width: 768px) {
    /* Make animations brighter and more visible on mobile */
    .ai-pipeline-animation {
        opacity: 0.9; /* Much brighter - was 0.3 */
        transform: scale(0.95); /* Slightly smaller but still visible */
        background: #1a202c; /* Simplified solid background for Android compatibility */
        border: 2px solid rgba(59, 130, 246, 0.6); /* More visible border */
        margin: 1rem 0; /* Add proper spacing */
        max-width: calc(100vw - 30px); /* Ensure it stays within viewport */
        box-sizing: border-box; /* Include padding/border in width */
    }
    
    /* Brighter pipeline elements - simplified for Android */
    .modality-input {
        background: rgba(45, 55, 72, 0.95); /* Solid background for Android compatibility */
        border: 1px solid rgba(148, 163, 184, 0.8); /* More visible borders */
        opacity: 1;
        max-width: 100%; /* Prevent overflow */
    }
    
    .pipeline-stage {
        background: rgba(74, 85, 104, 0.95); /* Solid background for Android compatibility */
        border: 1px solid rgba(156, 163, 175, 0.8);
        opacity: 1;
        max-width: 100%; /* Prevent overflow */
    }
    
    .output-stage {
        background: rgba(5, 150, 105, 0.95); /* Solid background for Android compatibility */
        border: 2px solid rgba(16, 185, 129, 0.8); /* Brighter border */
        opacity: 1;
        max-width: 100%; /* Prevent overflow */
    }
    
    /* Enhanced text colors for mobile visibility */
    .input-label, .stage-title, .output-label {
        color: #f1f5f9; /* Brighter text */
        font-weight: 700; /* Bolder text */
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* Text shadow for better readability */
    }
    
    .processing-indicator {
        color: #cbd5e1; /* Brighter processing text */
        font-weight: 600;
    }
    
    /* Brighter attention heads and fusion cells */
    .attention-head {
        background: rgba(139, 92, 246, 0.8); /* More visible for Android */
        border: 1px solid rgba(139, 92, 246, 0.9);
        max-width: 100%; /* Prevent overflow */
        color: #e9d5ff; /* Brighter text */
    }
    
    .fusion-cell.active {
        background: rgba(16, 185, 129, 0.7); /* More visible - was 0.3 */
        border-color: rgba(16, 185, 129, 0.9);
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.5); /* Glow effect */
    }
    
    .reasoning-step {
        background: rgba(245, 158, 11, 0.4); /* More visible - was 0.1 */
        border: 1px solid rgba(245, 158, 11, 0.7);
        color: #fef3c7; /* Brighter text */
    }
    
    /* Enhanced performance metrics visibility */
    .metric-fill {
        background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
        box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
    }
    
    .metric-value {
        color: #f0f9ff;
        font-weight: 700;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }
    
    /* Keep particles visible but optimized */
    .ai-particles .particle {
        animation-duration: 3s; /* Faster animation */
        animation-iteration-count: infinite; /* Keep running */
        font-size: 14px; /* Slightly larger */
        opacity: 0.8; /* More visible */
    }
    
    /* Make ai-dropping-items more visible */
    .ai-dropping-items {
        opacity: 0.8; /* More visible - was 0.5 */
    }
    
    .ai-dropping-item {
        opacity: 0.9;
        font-size: 14px; /* Larger for better visibility */
    }
    
    /* Enhance color changing text visibility */
    .color-changing-text {
        animation-duration: 2.5s; /* Faster color changes */
        font-weight: 700; /* Bolder text */
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Better contrast */
    }
    
    /* Reduce particle count but keep them visible */
    .particle:nth-child(n+16) { /* Reduced from n+21 to n+16 */
        display: none;
    }
}

/* Enhanced mobile-specific keyframes for brighter animations */
@media (max-width: 768px) {
    @keyframes modalityPulseMobile {
        0%, 100% { 
            transform: scale(1); 
            opacity: 0.9; /* Brighter base opacity */
            border-color: rgba(59, 130, 246, 0.6);
            box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
        }
        50% { 
            transform: scale(1.05); 
            opacity: 1;
            border-color: rgba(59, 130, 246, 0.9);
            box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
        }
    }
    
    @keyframes stageProcessMobile {
        0%, 100% { 
            border-color: rgba(156, 163, 175, 0.6);
            transform: scale(1);
            box-shadow: 0 0 5px rgba(59, 130, 246, 0.2);
        }
        50% { 
            border-color: rgba(59, 130, 246, 0.9); 
            transform: scale(1.05);
            box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
        }
    }
    
    @keyframes outputGenerateMobile {
        0%, 100% { 
            transform: scale(1);
            box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
        }
        50% { 
            transform: scale(1.08); 
            box-shadow: 0 0 25px rgba(16, 185, 129, 0.6);
        }
    }
    
    /* Apply mobile-specific animations */
    .modality-input {
        animation: modalityPulseMobile 4s ease-in-out infinite;
    }
    
    .pipeline-stage {
        animation: stageProcessMobile 5s ease-in-out infinite;
    }
    
    .output-stage {
        animation: outputGenerateMobile 4s ease-in-out infinite;
    }
}

/* Enhanced image rendering for main2.png across all platforms */
.hero-image img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    -webkit-image-smoothing: optimizeQuality;
    -moz-image-rendering: optimizeQuality;
    -ms-interpolation-mode: bicubic;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* Mobile-specific image optimizations */
@media (max-width: 768px) {
    .hero-image {
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
        transform: none; /* Remove transform to prevent rendering issues */
    }
    
    .hero-image img {
        width: 100%;
        height: auto;
        min-height: 200px;
        max-height: 400px;
        object-fit: cover;
        object-position: center top;
        image-rendering: auto; /* Let mobile browsers optimize */
        -webkit-transform: translateZ(0); /* Force GPU acceleration */
        transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    
    .hero-image-container {
        position: relative;
        z-index: 1;
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
        border-radius: 15px;
        padding: 4px;
    }
}

/* High-DPI display optimizations for main2.png */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: optimize-contrast;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* iOS Safari specific optimizations */
@media only screen and (max-device-width: 812px) and (-webkit-device-pixel-ratio: 3) {
    .hero-image {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .hero-image img {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: transform;
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Android Chrome optimizations */
@media screen and (max-width: 768px) and (-webkit-min-device-pixel-ratio: 1.5) {
    .hero-image img {
        image-rendering: optimizeQuality;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Firefox mobile optimizations */
@-moz-document url-prefix() {
    @media (max-width: 768px) {
        .hero-image img {
            image-rendering: optimizeQuality;
            -moz-transform: translateZ(0);
            transform: translateZ(0);
        }
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover effects on touch devices */
    .service-card:hover,
    .story-card:hover .story-image img,
    .about-image:hover,
    .hero-image:hover {
        transform: none !important;
    }
    
    /* Optimize for touch interactions */
    .btn,
    .nav-link,
    .lang-btn {
        transform: none;
        transition: background-color 0.2s ease, color 0.2s ease;
    }
    
    .btn:active,
    .nav-link:active,
    .lang-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}

/* GPU acceleration for better performance */
.hero-image,
.service-card,
.story-card,
.nav-menu,
.btn,
.hamburger {
    will-change: transform;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

/* Optimize animations for performance */
.particle,
.data-stream,
.ai-dropping-item {
    will-change: transform, opacity;
    transform: translateZ(0);
}

/* Remove will-change after animations complete */
.particle.complete,
.data-stream.complete,
.ai-dropping-item.complete {
    will-change: auto;
}

/* Content visibility for better rendering performance */
.services,
.about,
.contact,
.footer {
    content-visibility: auto;
    contain-intrinsic-size: 500px;
}

/* Optimize images for performance */
img {
    content-visibility: auto;
    contain-intrinsic-size: 300px 200px;
}

/* Reduce repaints and reflows */
.nav-menu {
    contain: layout style paint;
}

.service-card,
.story-card {
    contain: layout paint;
}

/* Optimize scrolling performance */
.hero,
.services,
.about,
.contact {
    scroll-behavior: auto; /* Override smooth scrolling on mobile for performance */
}

@media (max-width: 768px) {
    .hero,
    .services,
    .about,
    .contact {
        scroll-behavior: auto;
    }
    
    /* Simplify box shadows for better performance while keeping visibility */
    .service-card,
    .story-card {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }
    
    .navbar {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    /* Maintain backdrop blur but optimize */
    .navbar,
    .nav-menu {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        background: rgba(255, 255, 255, 0.95);
    }
    
    /* Keep gradients but optimize */
    .btn-primary {
        background: linear-gradient(45deg, #2563eb, #3b82f6);
    }
    
    .hero {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    
    /* Simplify hover effects for touch devices */
    .service-card:hover,
    .story-card:hover,
    .about-image:hover,
    .hero-image:hover {
        transform: none;
    }
}

/* Optimize for low-end devices */
@media (max-width: 480px) {
    /* Further reduce particle count but keep animations bright */
    .particle:nth-child(n+11) {
        display: none;
    }
    
    /* Simplify transitions */
    .btn,
    .nav-link,
    .service-card {
        transition: background-color 0.2s ease, transform 0.2s ease;
    }
    
    /* Maintain visual quality but optimize complexity */
    .service-card,
    .story-card {
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    }
}

/* Battery and data saving optimizations */
@media (prefers-reduced-data: reduce) {
    .ai-pipeline-animation,
    .ai-particles,
    .data-streams,
    .ai-dropping-items {
        opacity: 0.5; /* Reduce opacity instead of hiding completely */
    }
    
    .hero-image img {
        filter: none;
    }
    
    /* Reduce image quality for data saving */
    img {
        image-rendering: auto;
    }
}

/* Optimize for devices with limited processing power */
@media (prefers-reduced-motion: reduce) {
    .ai-pipeline-animation,
    .ai-particles,
    .data-streams,
    .ai-dropping-items {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        opacity: 0.7; /* Keep visible but static */
    }
    
    .color-changing-text {
        animation: none;
        color: #2563eb;
    }
    
    * {
        transition-duration: 0.01ms !important;
    }
}

/* Intersection Observer optimization */
@supports (content-visibility: auto) {
    .service-card,
    .story-card,
    .about-section,
    .contact-section {
        content-visibility: auto;
        contain-intrinsic-size: 400px;
    }
}

/* Font loading optimization */
@media (max-width: 768px) {
    body {
        font-display: swap;
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
}

/* Final Mobile Layout Optimizations */

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Fix potential overflow issues */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

/* Ensure proper viewport handling */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Fix flexbox and grid issues on older mobile browsers */
.services-grid,
.companies-grid {
    width: 100%;
    margin: 0 auto;
}

/* Ensure proper spacing on all screen sizes */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }

    /* Team section tablet optimizations */
    .team-content {
        gap: 2.5rem;
    }

    .team-image img {
        max-width: 90%;
        min-width: 350px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
        max-width: 100%; /* Prevent overflow */
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    
    /* Additional overflow protection for mobile */
    .hero, .hero-container, .hero-visual, .hero-image-container, .ai-pipeline-animation {
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    /* Android Chrome specific fixes for black box issues */
    .modality-input, .pipeline-stage, .output-stage, .attention-head, .fusion-cell {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: transform; /* Improve Android rendering */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0 12px;
    }
}

/* Orientation change handling */
@media (orientation: landscape) and (max-width: 768px) {
    .hero {
        min-height: 50vh;
        padding: 1rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .nav-container {
        height: 50px;
        padding: 0 16px;
    }
    
    .nav-menu {
        top: 50px;
    }
}

/* Print styles for mobile devices */
@media print {
    .hamburger,
    .nav-menu,
    .ai-pipeline-animation,
    .ai-particles,
    .data-streams,
    .ai-dropping-items {
        display: none !important;
    }
    
    .hero,
    .services,
    .about,
    .contact {
        page-break-inside: avoid;
    }
}

/* Accessibility improvements */
@media (prefers-contrast: high) {
    .btn,
    .nav-link,
    .service-card {
        border: 2px solid currentColor;
    }
    
    .hero {
        background: #000;
        color: #fff;
    }
    
    /* Enhanced contrast for animations */
    .ai-pipeline-animation {
        background: #000;
        border: 3px solid #fff;
    }
    
    .modality-input,
    .pipeline-stage,
    .output-stage {
        background: #333;
        border: 2px solid #fff;
        color: #fff;
    }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
    .smooth-scroll {
        scroll-behavior: auto;
    }
}

/* Dark mode support for mobile devices */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #ffffff;
        --nav-bg: rgba(26, 26, 26, 0.95);
    }
    
    body {
        background-color: var(--bg-color);
        color: var(--text-color);
    }
    
    .navbar {
        background: var(--nav-bg);
    }
    
    .service-card,
    .story-card {
        background: #2a2a2a;
        color: #ffffff;
    }
    
    /* Enhanced dark mode for animations */
    .ai-pipeline-animation {
        background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0f0f0f 100%);
        border: 2px solid rgba(59, 130, 246, 0.6);
    }
}
 
 
 