/* ===================================
   CSS Variables & Theme Configuration
   =================================== */
:root {
    /* Dark Theme (Default) */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a24;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --accent-primary: #00d4ff;
    --accent-secondary: #7c3aed;
    --accent-tertiary: #ec4899;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(26, 26, 36, 0.6);
    --glow-shadow: rgba(0, 212, 255, 0.4);
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: rgba(15, 23, 42, 0.7);
    --text-muted: rgba(15, 23, 42, 0.5);
    --accent-primary: #0891b2;
    --accent-secondary: #7c3aed;
    --accent-tertiary: #db2777;
    --border-color: rgba(15, 23, 42, 0.1);
    --card-bg: rgba(255, 255, 255, 0.8);
    --glow-shadow: rgba(8, 145, 178, 0.3);
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

svg {
    transition: transform 0.3s ease;
}

/* ===================================
   Theme Toggle Button
   =================================== */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--glow-shadow);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px var(--glow-shadow);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.theme-toggle .sun-icon {
    display: none;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: none;
}

[data-theme="light"] .theme-toggle .sun-icon {
    display: block;
}

/* ===================================
   Background Canvas
   =================================== */
.background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
}

/* ===================================
   Main Container
   =================================== */
.main-container {
    position: relative;
    z-index: 1;
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 120px 8% 80px;
    gap: 60px;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.float-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 20s infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-primary);
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: var(--accent-secondary);
    bottom: 20%;
    right: -5%;
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-tertiary);
    bottom: 10%;
    left: 20%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(90deg); }
    50% { transform: translate(-20px, 20px) rotate(180deg); }
    75% { transform: translate(20px, 30px) rotate(270deg); }
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.title-line {
    display: block;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-line.ai-text {
    margin-left: 20px;
}

.ai-text {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 50%, var(--accent-tertiary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.ai-text::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: blur(20px);
    z-index: -1;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 40px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.hero-cta {
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 8px 25px var(--glow-shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px var(--glow-shadow);
}

.pulse-effect {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 8px 25px var(--glow-shadow); }
    50% { box-shadow: 0 8px 40px var(--glow-shadow); }
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-muted);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.5; transform: translateX(-50%) translateY(10px); }
}

/* Hero Visualization */
.hero-viz {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brain-network {
    position: relative;
    width: 400px;
    height: 400px;
}

.neuron-group {
    position: relative;
    width: 100%;
    height: 100%;
}

.neuron {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 0 30px var(--glow-shadow);
    animation: neuron-pulse 3s infinite;
}

.core-neuron {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.neuron.n1 { width: 30px; height: 30px; top: 20%; left: 30%; animation-delay: 0s; }
.neuron.n2 { width: 35px; height: 35px; top: 20%; left: 70%; animation-delay: 0.3s; }
.neuron.n3 { width: 25px; height: 25px; top: 60%; left: 20%; animation-delay: 0.6s; }
.neuron.n4 { width: 35px; height: 35px; top: 60%; left: 80%; animation-delay: 0.9s; }
.neuron.n5 { width: 28px; height: 28px; top: 75%; left: 45%; animation-delay: 1.2s; }
.neuron.n6 { width: 32px; height: 32px; top: 40%; left: 50%; animation-delay: 1.5s; }

@keyframes neuron-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ===================================
   Services Section
   =================================== */
.services-section {
    padding: 120px 8%;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-text {
    position: relative;
}

.glow-text::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: inherit;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(30px);
    z-index: -1;
}

.section-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    padding: 40px 30px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px var(--glow-shadow);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px var(--glow-shadow);
}

.card-icon svg {
    width: 36px;
    height: 36px;
    stroke: white;
    stroke-width: 2;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.card-desc {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.card-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-features li {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.check {
    color: var(--accent-primary);
    font-weight: 700;
}

/* Glass Card Effect */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
}

/* ===================================
   Stats Section
   =================================== */
.stats-section {
    padding: 80px 8%;
    background: var(--bg-secondary);
    position: relative;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    padding: 120px 8%;
    position: relative;
    overflow: hidden;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Contact Section
   =================================== */
.contact-section {
    padding: 120px 8%;
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 25px var(--glow-shadow);
}

.info-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2;
}

.info-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.info-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-primary);
    stroke-width: 2;
    fill: none;
}

.social-icon:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

.social-icon:hover svg {
    stroke: white;
}

/* Form Styles */
.contact-form {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 50px;
    border-radius: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 0;
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-bottom-color: var(--accent-primary);
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group select:focus ~ label,
.form-group select:not([value=""]) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    font-size: 0.85rem;
    color: var(--accent-primary);
}

.select-select {
    appearance: none;
    cursor: pointer;
}

.textarea-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    width: 100%;
    justify-content: center;
}

.submit-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.btn-submit:hover .submit-icon {
    transform: translateX(5px);
}

/* Spinner Loading Animation */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===================================
   Footer
   =================================== */
.footer {
    padding: 40px 8%;
    border-top: 1px solid var(--border-color);
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-content p a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content p a:hover {
    color: var(--accent-primary);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

/* ===================================
   Partners Section
   =================================== */
.partners-section {
    padding: 120px 8%;
    background: var(--bg-secondary);
    position: relative;
}

.partners-slider {
    margin: 60px auto 40px;
    max-width: 1400px;
    overflow: hidden;
    position: relative;
}

.partners-track {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    width: fit-content;
    animation: slide 30s linear infinite;
}

.partners-track:hover {
    animation-play-state: paused;
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 150px;
    transition: all 0.3s ease;
}

.partner-item img {
    width: 120px;
    height: 60px;
    object-fit: contain;
    filter: grayscale(1) brightness(1);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.partner-item:hover img {
    filter: grayscale(0) brightness(1);
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 8px 25px var(--glow-shadow);
}

.partner-item:hover span {
    color: var(--accent-primary);
}

/* Partners Text List */
.partners-text-list {
    margin-top: 60px;
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.partners-text-list h4 {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-weight: 500;
}

.partners-text-list ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    list-style: none;
}

.partners-text-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.partners-text-list li:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--glow-shadow);
}

.partners-text-list li span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.partners-text-list li small {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ===================================
   Responsive Design
   =================================== */

/* Tablet: <= 1024px */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 100px 5% 60px;
        gap: 40px;
    }

    .hero-viz {
        height: 350px;
    }

    .brain-network {
        width: 300px;
        height: 300px;
    }

    .hero-cta {
        margin-bottom: 30px;
    }

    .services-section {
        padding: 80px 5%;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .stats-section {
        padding: 60px 5%;
    }

    .cta-section {
        padding: 80px 5%;
    }

    .contact-section {
        padding: 80px 5%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .partners-section {
        padding: 80px 5%;
    }

    .footer {
        padding: 30px 5%;
    }
}

/* Large phone / small tablet: <= 768px */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .theme-toggle {
        width: 42px;
        height: 42px;
        top: 12px;
        right: 12px;
    }

    .hero-section {
        min-height: auto;
        padding: 80px 5% 50px;
    }

    .hero-title {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
        letter-spacing: 2px;
        margin-bottom: 30px;
    }

    .hero-viz {
        height: 260px;
    }

    .brain-network {
        width: 240px;
        height: 240px;
    }

    .scroll-indicator {
        display: none;
    }

    .floating-elements .float-shape {
        opacity: 0.3;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 28px 24px;
    }

    .service-card:hover {
        transform: translateY(-5px) scale(1.01);
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stat-number {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .stat-label {
        font-size: 0.95rem;
    }

    .cta-title {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .contact-form {
        padding: 30px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .partners-text-list ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .partners-text-list li {
        padding: 12px 14px;
    }
}

/* Phone: <= 480px */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .theme-toggle {
        width: 38px;
        height: 38px;
        top: 10px;
        right: 10px;
    }

    .hero-section {
        padding: 70px 4% 40px;
    }

    .hero-title {
        font-size: clamp(2rem, 11vw, 2.8rem);
        letter-spacing: 1px;
    }

    .title-line.ai-text {
        margin-left: 10px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 1px;
        margin-bottom: 24px;
    }

    .hero-cta .btn {
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .hero-viz {
        height: 200px;
    }

    .brain-network {
        width: 180px;
        height: 180px;
    }

    .neuron.core-neuron {
        width: 40px;
        height: 40px;
    }

    .neuron.n1, .neuron.n2, .neuron.n3,
    .neuron.n4, .neuron.n5, .neuron.n6 {
        width: 20px;
        height: 20px;
    }

    .services-section {
        padding: 50px 4%;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .section-description {
        font-size: 0.9rem;
    }

    .services-grid {
        gap: 16px;
    }

    .service-card {
        padding: 24px 18px;
    }

    .card-icon {
        width: 52px;
        height: 52px;
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .card-icon svg {
        width: 28px;
        height: 28px;
    }

    .card-title {
        font-size: 1.15rem;
        margin-bottom: 8px;
    }

    .card-desc {
        font-size: 0.85rem;
        margin-bottom: 14px;
    }

    .card-features {
        gap: 6px;
    }

    .card-features li {
        font-size: 0.82rem;
    }

    .stats-section {
        padding: 40px 4%;
    }

    .stats-container {
        gap: 16px;
    }

    .stat-number {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .cta-section {
        padding: 50px 4%;
    }

    .cta-title {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
    }

    .cta-description {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    .contact-section {
        padding: 50px 4%;
    }

    .contact-grid {
        gap: 30px;
    }

    .info-item {
        gap: 14px;
    }

    .info-icon {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .info-icon svg {
        width: 20px;
        height: 20px;
    }

    .info-item h4 {
        font-size: 1rem;
    }

    .info-item p {
        font-size: 0.88rem;
    }

    .contact-form {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 0;
        font-size: 0.95rem;
    }

    .partners-section {
        padding: 50px 4%;
    }

    .partners-text-list {
        margin-top: 30px;
    }

    .partners-text-list ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .partners-text-list li {
        padding: 10px 12px;
        gap: 4px;
    }

    .partners-text-list li span {
        font-size: 0.88rem;
    }

    .partners-text-list li small {
        font-size: 0.7rem;
    }

    .footer {
        padding: 24px 4%;
        margin-top: 40px;
    }

    .footer-content {
        gap: 8px;
    }

    .footer-content p {
        font-size: 0.8rem;
    }

    .footer-links {
        gap: 12px;
    }

    .footer-links a {
        font-size: 0.8rem;
    }
}

/* Very small phone: <= 360px */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .partners-text-list ul {
        grid-template-columns: 1fr;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover {
        transform: none;
    }

    .service-card:active {
        transform: scale(0.98);
    }

    .btn-primary:hover {
        transform: none;
    }

    .btn-primary:active {
        transform: scale(0.96);
    }

    .social-icon:hover {
        transform: none;
    }

    .social-icon:active {
        transform: scale(0.92);
    }

    .partners-text-list li:hover {
        transform: none;
    }

    .partners-text-list li:active {
        transform: scale(0.97);
    }

    .theme-toggle:hover {
        transform: none;
    }

    .theme-toggle:active {
        transform: scale(0.92);
    }

    /* Increase touch target sizes */
    .btn {
        min-height: 44px;
    }

    .social-icon {
        min-width: 44px;
        min-height: 44px;
    }

    .footer-links a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}
