/* =====================================================
   StelloLabs - Premium Silicon Valley Inspired Design
   AI Designed Around People
   ===================================================== */

/* =====================================================
   CSS Variables / Design Tokens
   ===================================================== */
:root {
    /* Colors - Premium Blue Palette */
    --primary-blue: #1a3a5c;
    --primary-dark: #0f2439;
    --primary-light: #2c5282;
    --accent-blue: #4299e1;
    --accent-light: #63b3ed;
    --accent-cyan: #0ea5e9;

    /* Gradient Colors */
    --gradient-start: #1a3a5c;
    --gradient-end: #4299e1;
    --gradient-primary: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    --gradient-text: linear-gradient(135deg, #4299e1, #63b3ed, #0ea5e9);
    --gradient-mesh: radial-gradient(at 40% 20%, rgba(66, 153, 225, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(14, 165, 233, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(99, 179, 237, 0.1) 0px, transparent 50%);

    --white: #ffffff;
    --off-white: #f8fafc;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --text-dark: #0f172a;
    --text-gray: #475569;
    --text-light: #64748b;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;
    --container-padding: 24px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 60px rgba(66, 153, 225, 0.3);
    --shadow-card: 0 4px 24px rgba(15, 23, 42, 0.08);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================================
   Reset & Base Styles
   ===================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-gray);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea {
    font-family: inherit;
    font-size: inherit;
}

/* =====================================================
   Utility Classes
   ===================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    padding: 8px 16px;
    background: rgba(66, 153, 225, 0.1);
    border-radius: var(--radius-full);
}

.section-title {
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(26, 58, 92, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(66, 153, 225, 0.4);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--accent-blue);
    background: var(--gray-50);
    transform: translateY(-2px);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* =====================================================
   Header / Navigation
   ===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: var(--gray-200);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 20px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-gray);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary-blue);
    background: var(--gray-100);
}

.nav-link.active {
    color: var(--accent-blue);
}

.nav-link-cta {
    background: var(--primary-blue);
    color: var(--white) !important;
    margin-left: 8px;
}

.nav-link-cta:hover {
    background: var(--primary-light) !important;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
}

.hamburger {
    width: 24px;
    height: 2px;
    background: var(--primary-blue);
    position: relative;
    transition: all var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--primary-blue);
    transition: all var(--transition-fast);
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* =====================================================
   Hero Section - Premium Design
   ===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    background: var(--white);
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-image: url('images/hero-bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    pointer-events: none;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(248, 250, 252, 1) 0%,
            rgba(241, 245, 249, 1) 50%,
            rgba(226, 232, 240, 0.5) 100%);
}

.hero-mesh {
    position: absolute;
    inset: 0;
    background: var(--gradient-mesh);
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    pointer-events: none;
}

.hero-glow-1 {
    width: 600px;
    height: 600px;
    background: rgba(66, 153, 225, 0.2);
    top: -200px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.hero-glow-2 {
    width: 400px;
    height: 400px;
    background: rgba(14, 165, 233, 0.15);
    bottom: -100px;
    left: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

.hero-glow-3 {
    width: 300px;
    height: 300px;
    background: rgba(99, 179, 237, 0.15);
    top: 40%;
    left: 30%;
    animation: float 12s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 80px 0;
}

.hero-content {
    max-width: 580px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(66, 153, 225, 0.1);
    border: 1px solid rgba(66, 153, 225, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-blue);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero-title {
    font-size: clamp(2.75rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-clients {
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}

.clients-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.clients-logos {
    display: flex;
    gap: 24px;
}

.client-logo {
    padding: 8px 16px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-500);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    position: relative;
    width: 380px;
    height: 380px;
    background: linear-gradient(135deg, var(--white), var(--gray-50));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-card-glow {
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(20px);
}

.hero-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.hero-card-orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(66, 153, 225, 0.3);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.orbit-dot {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(66, 153, 225, 0.5);
}

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

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

/* =====================================================
   Services Section
   ===================================================== */
.services {
    padding: var(--section-padding) 0;
    background: var(--white);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-slow);
    border: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(66, 153, 225, 0.2);
}

.service-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 36, 57, 0.1) 100%);
}

.service-content {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.service-description {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 14px;
    background: var(--gray-100);
    color: var(--text-gray);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.service-card:hover .tag {
    background: rgba(66, 153, 225, 0.1);
    color: var(--accent-blue);
}

/* =====================================================
   Stats Section
   ===================================================== */
.stats {
    padding: 80px 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* =====================================================
   Trusted Partners Section
   ===================================================== */
.partners {
    padding: 80px 0;
    background: var(--white);
    overflow: hidden;
}

.partners .section-header {
    margin-bottom: 60px;
}

.partners-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partners-track {
    display: flex;
    gap: 48px;
    width: max-content;
    /* Animation controlled by JavaScript for mouse-direction following */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 32px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 160px;
    height: 80px;
}

.partner-logo img {
    max-height: 40px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0%);
    opacity: 0.75;
    transition: all var(--transition-base);
}

.partner-logo:hover {
    background: var(--white);
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Dark background for logos with white text */
.partner-logo.nust-bg {
    background: linear-gradient(135deg, #1a365d, #2c5282);
    border-color: #2c5282;
}

.partner-logo.nust-bg:hover {
    background: linear-gradient(135deg, #2c5282, #3182ce);
    border-color: var(--accent-blue);
}

.partner-logo.importio-bg {
    background: linear-gradient(135deg, #553c9a, #805ad5);
    border-color: #805ad5;
}

.partner-logo.importio-bg:hover {
    background: linear-gradient(135deg, #6b46c1, #9f7aea);
    border-color: #9f7aea;
}

.partner-logo.nust-bg img,
.partner-logo.importio-bg img {
    opacity: 1;
}

/* Text-based logos for Pakistani companies */
.partner-logo.text-logo {
    background: var(--gray-50);
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: all var(--transition-base);
}

.logo-text.systems {
    color: #0066b3;
}

.logo-text.netsol {
    color: #003366;
}

.logo-text.jazz {
    color: #e60012;
    font-weight: 800;
}

.logo-text.telenor {
    color: #0099ff;
}

.logo-text.hbl {
    color: #006747;
    font-weight: 800;
}

.logo-text.careem {
    color: #4dcc49;
}

.logo-text.daraz {
    color: #f85606;
    font-weight: 800;
}

.logo-text.easypaisa {
    color: #00a651;
}

.partner-logo.text-logo:hover {
    background: var(--white);
}

.partner-logo.jazz-bg {
    background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
}

/* =====================================================
   About Section - Carousel Design
   ===================================================== */
.about {
    padding: var(--section-padding) 0;
    background: var(--off-white);
    position: relative;
    overflow: hidden;
}

/* About Section Animated Background */
.about-bg-animation {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.about-bg-icon {
    position: absolute;
    color: var(--accent-blue);
}

.about-bg-icon.brain-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 5%;
    animation: floatBrain 8s ease-in-out infinite;
}

.about-bg-icon.brain-2 {
    width: 80px;
    height: 80px;
    bottom: 15%;
    right: 8%;
    animation: floatBrain 10s ease-in-out infinite reverse;
}

.about-bg-icon.lightbulb-1 {
    width: 60px;
    height: 60px;
    top: 30%;
    right: 12%;
    animation: floatBrain 7s ease-in-out infinite;
}

.about-bg-icon.gear-1 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 10%;
    animation: rotateSlow 15s linear infinite;
}

.about-bg-icon.gear-2 {
    width: 70px;
    height: 70px;
    top: 20%;
    right: 5%;
    animation: rotateSlow 20s linear infinite reverse;
}

.about-bg-icon.circuit-1 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 2%;
    transform: translateY(-50%);
    animation: floatBrain 12s ease-in-out infinite;
}

@keyframes floatBrain {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.08;
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.15;
    }
}

@keyframes rotateSlow {
    from {
        transform: rotate(0deg);
    }

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

/* Gradient mesh overlay */
.about-gradient-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(66, 153, 225, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(14, 165, 233, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(99, 179, 237, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

/* Animated particles */
.about-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.about-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-blue);
    border-radius: 50%;
    opacity: 0.2;
}

.about-particle:nth-child(1) {
    top: 20%;
    left: 15%;
    animation: particleFloat 6s ease-in-out infinite;
}

.about-particle:nth-child(2) {
    top: 60%;
    left: 85%;
    animation: particleFloat 8s ease-in-out infinite 1s;
}

.about-particle:nth-child(3) {
    top: 80%;
    left: 25%;
    animation: particleFloat 7s ease-in-out infinite 2s;
}

.about-particle:nth-child(4) {
    top: 40%;
    left: 90%;
    animation: particleFloat 9s ease-in-out infinite 0.5s;
}

.about-particle:nth-child(5) {
    top: 10%;
    left: 70%;
    animation: particleFloat 5s ease-in-out infinite 1.5s;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.2;
    }

    50% {
        transform: translateY(-30px) scale(1.5);
        opacity: 0.4;
    }
}

.about .section-header {
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

/* Carousel */
.about-carousel {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.carousel-track {
    position: relative;
    min-height: 380px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.carousel-slide.prev {
    opacity: 0;
    transform: translateX(-50px);
}

/* Slide Image */
.slide-image {
    width: 100%;
    height: 280px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.slide-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.05) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.carousel-slide:hover .slide-image img {
    transform: scale(1.05);
}

/* Slide Content */
.slide-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.slide-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(26, 58, 92, 0.2);
}

.slide-icon svg {
    width: 26px;
    height: 26px;
    color: var(--white);
}

.slide-content h3,
.carousel-slide h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.slide-text {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.7;
    max-width: 400px;
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    cursor: pointer;
}

.carousel-btn:hover {
    border-color: var(--accent-blue);
    background: var(--gray-50);
    transform: scale(1.05);
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
    color: var(--primary-blue);
}

.carousel-dots {
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    background: var(--gray-300);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-base);
}

.dot:hover {
    background: var(--gray-400);
}

.dot.active {
    background: var(--accent-blue);
    transform: scale(1.2);
}

/* =====================================================
   Products Section - Enhanced Design
   ===================================================== */
.products {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 50%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

/* Background Animation */
.products-bg-animation {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.products-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.products-gradient-orb.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(66, 153, 225, 0.15) 0%, transparent 70%);
    top: -10%;
    right: -10%;
    animation: floatOrb 20s ease-in-out infinite;
}

.products-gradient-orb.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, transparent 70%);
    bottom: 10%;
    left: -5%;
    animation: floatOrb 25s ease-in-out infinite reverse;
}

.products-gradient-orb.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 179, 237, 0.1) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: floatOrb 18s ease-in-out infinite 2s;
}

@keyframes floatOrb {

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

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

.products-bg-icon {
    position: absolute;
    color: var(--primary-blue);
}

.products-bg-icon.icon-app {
    width: 120px;
    height: 120px;
    top: 15%;
    left: 5%;
    animation: floatBrain 12s ease-in-out infinite;
}

.products-bg-icon.icon-code {
    width: 100px;
    height: 100px;
    bottom: 20%;
    right: 8%;
    animation: floatBrain 15s ease-in-out infinite reverse;
}

/* Product Showcase Grid */
.product-showcase-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
    position: relative;
    z-index: 1;
}

/* Featured Product Card */
.product-card.product-featured {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    background: linear-gradient(135deg, var(--white) 0%, rgba(66, 153, 225, 0.03) 100%);
    border-radius: var(--radius-xl);
    padding: 48px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    max-width: none;
    text-align: left;
    transition: all var(--transition-base);
}

.product-card.product-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 60px rgba(26, 58, 92, 0.15);
    border-color: var(--accent-blue);
}

/* Phone Mockup */
.product-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: 45px;
    padding: 12px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.25),
        0 0 0 2px rgba(255, 255, 255, 0.1) inset,
        0 -2px 20px rgba(66, 153, 225, 0.2);
    position: relative;
    overflow: hidden;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 26px;
    background: #000;
    border-radius: 15px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 35px;
    overflow: hidden;
}

/* AI Doctor Preview */
.ai-doctor-preview {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 50px 16px 16px;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.ai-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-avatar svg {
    width: 22px;
    height: 22px;
    color: var(--white);
}

.preview-header span {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.preview-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.chat-bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.85rem;
    line-height: 1.5;
    animation: fadeInUp 0.5s ease-out forwards;
}

.chat-bubble.ai {
    background: var(--white);
    color: var(--text-dark);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.chat-bubble.user {
    background: var(--gradient-primary);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-bubble.typing {
    display: flex;
    gap: 4px;
    padding: 16px 20px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--gray-400);
    border-radius: 50%;
    animation: typingPulse 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingPulse {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Product Content */
.product-card .product-content {
    display: flex;
    flex-direction: column;
}

.product-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.product-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.product-icon svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

.product-icon.blue-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.product-icon.purple-icon {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-badge.featured-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: var(--white);
    position: static;
}

.product-badge.live-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.product-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.product-description {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 24px;
}

.product-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.product-features .feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-100);
    font-size: 0.875rem;
    color: var(--text-gray);
    transition: all var(--transition-fast);
}

.product-features .feature:hover {
    border-color: var(--accent-blue);
    background: rgba(66, 153, 225, 0.02);
}

.product-features .feature svg {
    width: 18px;
    height: 18px;
    color: var(--accent-blue);
    flex-shrink: 0;
}

/* Product CTA */
.product-cta {
    margin-top: auto;
}

.coming-soon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-50));
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: var(--radius-full);
    border: 1px solid var(--gray-200);
}

.coming-soon svg {
    color: var(--accent-blue);
}

/* Secondary Products Row */
.product-secondary-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.product-card.product-secondary {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all var(--transition-base);
    max-width: none;
    text-align: left;
    padding: 0;
}

.product-card.product-secondary:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(26, 58, 92, 0.12);
    border-color: var(--accent-blue);
}

.product-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card.product-secondary:hover .product-screenshot {
    transform: scale(1.05);
}

.product-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.05) 100%);
    pointer-events: none;
}

.product-card.product-secondary .product-content {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card.product-secondary .product-title {
    font-size: 1.35rem;
}

.product-card.product-secondary .product-description {
    font-size: 0.9375rem;
    margin-bottom: 20px;
}

/* Product Stats */
.product-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

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

.product-stats .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: -0.02em;
}

.product-stats .stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* App Store Buttons */
.product-cta.app-stores {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--primary-dark);
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.store-btn:hover {
    background: var(--accent-blue);
    transform: translateY(-2px);
    color: var(--white);
}

.store-btn svg {
    width: 18px;
    height: 18px;
}

/* Product Glow Effect */
.product-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(66, 153, 225, 0.03) 0%, transparent 50%);
    pointer-events: none;
    transition: all var(--transition-slow);
}

.product-card:hover .product-glow {
    background: radial-gradient(circle, rgba(66, 153, 225, 0.06) 0%, transparent 50%);
}

/* Responsive */
@media (max-width: 1024px) {
    .product-card.product-featured {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .product-visual {
        order: -1;
    }

    .phone-frame {
        width: 240px;
        height: 480px;
    }

    .product-features {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .product-secondary-row {
        grid-template-columns: 1fr;
    }

    .product-features {
        grid-template-columns: 1fr;
    }

    .phone-frame {
        width: 220px;
        height: 440px;
    }

    .product-card.product-featured {
        padding: 32px 24px;
    }

    .product-cta.app-stores {
        justify-content: center;
    }
}


/* =====================================================
   CTA Section
   ===================================================== */
.cta-section {
    padding: 100px 0;
    background: var(--off-white);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

/* =====================================================
   Contact Section
   ===================================================== */
.contact {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info .section-title {
    margin-bottom: 16px;
}

.contact-text {
    font-size: 1.0625rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    transition: all var(--transition-base);
}

.contact-item:hover {
    border-color: var(--accent-blue);
    background: var(--white);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent-blue);
}

.contact-item-content h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.contact-item-content a,
.contact-item-content span {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.contact-item-content a:hover {
    color: var(--accent-blue);
}

.contact-form-wrapper {
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    padding: 48px;
    border: 1px solid var(--gray-200);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-gray);
}

.form-group input,
.form-group textarea {
    padding: 16px 20px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--white);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(66, 153, 225, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

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

/* =====================================================
   Footer
   ===================================================== */
.footer {
    background: var(--primary-dark);
    color: var(--gray-300);
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo .logo-img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-logo .logo-text {
    color: var(--white);
    font-size: 1.25rem;
}

.footer-tagline {
    font-size: 1rem;
    color: var(--accent-light);
    margin-bottom: 16px;
}

.footer-description {
    font-size: 0.9375rem;
    color: var(--gray-400);
    line-height: 1.7;
    max-width: 300px;
}

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

.footer-column h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 24px;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-column a {
    font-size: 0.9375rem;
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

.footer-column a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--accent-blue);
    color: var(--white);
}

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .hero-container {
        gap: 40px;
    }

    .hero-card {
        width: 300px;
        height: 300px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --container-padding: 20px;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 40px 20px;
        gap: 8px;
        transform: translateX(100%);
        transition: transform var(--transition-base);
    }

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

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 16px;
        font-size: 1.125rem;
    }

    .nav-link-cta {
        margin-left: 0;
        margin-top: 16px;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

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

    .clients-logos {
        justify-content: center;
    }

    .hero-card {
        width: 260px;
        height: 260px;
    }

    .hero-logo {
        width: 80px;
        height: 80px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    /* About Carousel Responsive */
    .about-carousel {
        max-width: 100%;
    }

    .carousel-track {
        min-height: 520px;
    }

    .carousel-slide {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }

    .slide-image {
        height: 180px;
        order: 1;
    }

    .slide-content {
        order: 2;
        align-items: center;
        text-align: center;
    }

    .slide-text {
        max-width: 100%;
    }

    .carousel-nav {
        margin-top: 24px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    /* Hide some background icons on mobile */
    .about-bg-icon.circuit-1,
    .about-bg-icon.gear-2 {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-features {
        grid-template-columns: 1fr;
    }

    .product-card {
        padding: 32px 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .about-image-container {
        width: 300px;
        height: 300px;
    }

    .about-image {
        width: 100px;
        height: 100px;
        padding: 20px;
    }

    .floating-card {
        font-size: 0.75rem;
        padding: 10px 14px;
    }

    .floating-card-1 {
        right: 0;
    }

    .floating-card-2 {
        left: 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .section-header {
        margin-bottom: 48px;
    }
}

/* =====================================================
   Testimonials Section
   ===================================================== */
.testimonials {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: all var(--transition-slow);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(66, 153, 225, 0.2);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.testimonial-quote-icon {
    color: var(--accent-blue);
    opacity: 0.2;
    transition: all var(--transition-slow);
}

.testimonial-card:hover .testimonial-quote-icon {
    opacity: 1;
    color: var(--gradient-end);
    transform: scale(1.1);
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 1.125rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.7;
    font-style: italic;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-100);
}

.author-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--white);
    box-shadow: 0 0 0 2px var(--gray-200);
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.author-role {
    font-size: 0.875rem;
    color: var(--accent-blue);
    font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .testimonial-card {
        padding: 24px;
    }
}

/* =====================================================
   Tech Backgrounds & Interactive Elements
   ===================================================== */
.tech-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* Ensure content sits above background */
.services .container,
.products .container,
.testimonials .container,
.contact .container {
    position: relative;
    z-index: 2;
}

/* Grid Pattern */
.tech-grid {
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(26, 58, 92, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 58, 92, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: top center;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

/* Glow Effects */
.tech-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(66, 153, 225, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    filter: blur(60px);
}

.tech-glow-small {
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
    filter: blur(60px);
}

/* Floating Orbs */
.tech-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.8;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: rgba(66, 153, 225, 0.15);
    top: 10%;
    right: 10%;
    animation: float 15s ease-in-out infinite;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: rgba(14, 165, 233, 0.1);
    bottom: 20%;
    left: 10%;
    animation: float 20s ease-in-out infinite reverse;
}

/* Circuit Pattern */
.tech-circuit {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1h98v98H1V1zm1 1v96h96V2H2z' fill='%231a3a5c' fill-rule='evenodd'/%3E%3C/svg%3E");
    mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
}

/* Dot Pattern */
.tech-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(26, 58, 92, 0.2) 2px, transparent 2px);
    background-size: 32px 32px;
    opacity: 0.6;
}

.tech-mesh {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(45deg, rgba(66, 153, 225, 0.03) 0px, rgba(66, 153, 225, 0.03) 1px, transparent 1px, transparent 10px),
        repeating-linear-gradient(-45deg, rgba(66, 153, 225, 0.03) 0px, rgba(66, 153, 225, 0.03) 1px, transparent 1px, transparent 10px);
}

/* =====================================================
   High-Tech Minimalist Backgrounds (Version 2.0)
   ===================================================== */

/* Canvas Network (Services) */
#network-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    /* Subtle but visible */
}

/* Geometric Wireframe (Products) */
.geometric-shape {
    position: absolute;
    top: 50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background:
        linear-gradient(135deg, transparent 48%, rgba(66, 153, 225, 0.3) 50%, transparent 52%),
        linear-gradient(45deg, transparent 48%, rgba(66, 153, 225, 0.3) 50%, transparent 52%);
    background-size: 60px 60px;
    border: 1px solid rgba(66, 153, 225, 0.1);
    border-radius: 50%;
    transform: translateY(-50%) rotate(0deg);
    animation: rotateWireframe 60s linear infinite;
    mask-image: radial-gradient(circle, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle, black 40%, transparent 80%);
    opacity: 0.6;
}

@keyframes rotateWireframe {
    from {
        transform: translateY(-50%) rotate(0deg);
    }

    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Scanlines (Testimonials) */
.scanlines {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.02) 50%,
            rgba(0, 0, 0, 0.02));
    background-size: 100% 4px;
    mask-image: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), black 0%, transparent 70%);
    opacity: 1;
    /* Revealed by mask */
}

/* Hex Grid (Contact) */
.hex-grid {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='40' viewBox='0 0 24 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40c5.523 0 10-4.477 10-10V10c0-5.523 4.477-10 10-10H0v40z' fill='%231a3a5c' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    mask-image: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), black 20%, transparent 60%);
    -webkit-mask-image: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), black 20%, transparent 60%);
    opacity: 0.4;
}

/* Global Cursor Glow (Applied via JS to body) */
.cursor-torch {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(66, 153, 225, 0.08) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    transition: transform 0.1s ease-out;
    /* Smooth lag */
    will-change: transform;
}

/* =====================================================
   Hero Starfield
   ===================================================== */
#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Ensure hero content is readable */
.hero-content,
.hero-visual {
    position: relative;
    z-index: 2;
}

/* =====================================================
   Cute Robot Decorations
   ===================================================== */
.robot-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.robot {
    position: absolute;
    color: var(--accent-blue);
    opacity: 0.06;
    /* Very subtle */
    transition: opacity 0.3s ease;
}

.robot-1 {
    width: 80px;
    height: auto;
    top: 15%;
    left: 8%;
    transform: rotate(-10deg);
}

.robot-2 {
    width: 60px;
    height: auto;
    bottom: 20%;
    left: 5%;
    transform: rotate(5deg);
}

.robot-3 {
    width: 70px;
    height: auto;
    top: 25%;
    right: 8%;
    transform: rotate(8deg);
}

/* Slight hover effect for discoverability */
.hero:hover .robot {
    opacity: 0.1;
}

/* =====================================================
   Services Background Decorations
   ===================================================== */
.services-bg-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.service-icon {
    position: absolute;
    color: var(--accent-blue);
    opacity: 0.05;
    transition: opacity 0.3s ease;
}

.icon-gear {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 5%;
    transform: rotate(15deg);
}

.icon-brain {
    width: 120px;
    height: 120px;
    top: 5%;
    right: 8%;
    transform: rotate(-10deg);
}

.icon-code {
    width: 80px;
    height: 80px;
    bottom: 15%;
    left: 3%;
    transform: rotate(5deg);
}

.icon-chart {
    width: 90px;
    height: 90px;
    bottom: 20%;
    right: 5%;
    transform: rotate(-5deg);
}

.icon-cloud {
    width: 110px;
    height: 110px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 0.03;
}

.icon-network {
    width: 70px;
    height: 70px;
    top: 60%;
    right: 15%;
    transform: rotate(10deg);
}

/* Subtle hover enhancement */
.services:hover .service-icon {
    opacity: 0.08;
}

/* =====================================================
   Interactive Stats Section
   ===================================================== */
.stats {
    perspective: 1000px;
}

.stat-item {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.stat-item:hover {
    z-index: 10;
}

/* Stats Parallax Background */
.stats-parallax-bg {
    position: absolute;
    inset: -50px;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(66, 153, 225, 0.1) 0%, transparent 60%);
    transition: transform 0.15s ease-out;
    pointer-events: none;
    z-index: 0;
}

.stats .container {
    position: relative;
    z-index: 1;
}

.stat-item {
    transform: none !important;
    /* Remove previous tilt */
}

/* =====================================================
   Trust Animation Background (Stats)
   ===================================================== */
.trust-bg-animation {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.trust-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.15);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.trust-shield {
    width: 80px;
    height: 80px;
    top: 15%;
    left: 10%;
    animation: floatTrust 6s ease-in-out infinite;
}

.trust-check {
    width: 60px;
    height: 60px;
    top: 20%;
    right: 15%;
    animation: floatTrust 7s ease-in-out infinite reverse;
}

.trust-lock {
    width: 50px;
    height: 50px;
    bottom: 25%;
    left: 8%;
    animation: floatTrust 5s ease-in-out infinite 1s;
}

.trust-handshake {
    width: 70px;
    height: 70px;
    bottom: 20%;
    right: 12%;
    animation: floatTrust 8s ease-in-out infinite 0.5s;
}

.trust-star {
    width: 40px;
    height: 40px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseStar 2s ease-in-out infinite;
}

@keyframes floatTrust {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

@keyframes pulseStar {

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

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

/* Pulsing Rings */
.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: pulseRing 4s ease-out infinite;
}

.ring-1 {
    width: 150px;
    height: 150px;
}

.ring-2 {
    width: 250px;
    height: 250px;
    animation-delay: 1s;
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }

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

/* =====================================================
   Partners Background Animation
   ===================================================== */
.partners-bg-animation {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.partner-bg-icon {
    position: absolute;
    color: var(--accent-blue);
    opacity: 0.08;
    filter: drop-shadow(0 0 8px rgba(66, 153, 225, 0.3));
}

.icon-connect {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 5%;
    animation: floatPartner 7s ease-in-out infinite;
}

.icon-globe {
    width: 100px;
    height: 100px;
    top: 8%;
    right: 8%;
    animation: floatPartner 8s ease-in-out infinite reverse;
}

.icon-partnership {
    width: 90px;
    height: 90px;
    bottom: 15%;
    left: 10%;
    animation: floatPartner 6s ease-in-out infinite 0.5s;
}

.icon-link {
    width: 70px;
    height: 70px;
    bottom: 20%;
    right: 15%;
    animation: floatPartner 5s ease-in-out infinite 1s;
}

.icon-growth {
    width: 80px;
    height: 80px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulsePartner 3s ease-in-out infinite;
}

@keyframes floatPartner {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-12px) scale(1.05);
    }
}

@keyframes pulsePartner {

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

    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.15;
    }
}

.partners {
    position: relative;
}

.partners .container {
    position: relative;
    z-index: 1;
}

/* =====================================================
   Refined Testimonials - Premium Enhancement
   ===================================================== */

/* Enhanced Card Design */
.testimonial-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(66, 153, 225, 0.1);
    box-shadow:
        0 4px 24px rgba(15, 23, 42, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.testimonial-card:hover {
    transform: translateY(-12px);
    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.15),
        0 8px 16px rgba(66, 153, 225, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Animated Quote Icon */
.testimonial-quote-icon {
    position: relative;
}

.testimonial-quote-icon::after {
    content: '';
    position: absolute;
    inset: -5px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0;
    z-index: -1;
    transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-quote-icon::after {
    opacity: 0.1;
    transform: scale(1.5);
}

/* Star Rating Enhancement */
.testimonial-stars {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.25rem;
    letter-spacing: 3px;
    text-shadow: none;
}

/* Improved Text Styling */
.testimonial-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-gray);
    position: relative;
    padding-left: 0;
}

/* Author Section Enhancement */
.testimonial-author {
    background: linear-gradient(90deg, transparent, rgba(66, 153, 225, 0.03), transparent);
    margin: 0 -32px -32px;
    padding: 20px 32px;
    border-top: none;
}

.author-avatar img {
    width: 56px;
    height: 56px;
    border: 3px solid var(--white);
    box-shadow:
        0 0 0 2px var(--accent-blue),
        0 4px 12px rgba(66, 153, 225, 0.2);
    transition: transform 0.3s ease;
}

.testimonial-card:hover .author-avatar img {
    transform: scale(1.1);
}

.author-name {
    font-size: 1.0625rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.author-role {
    font-size: 0.8125rem;
    color: var(--text-light);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Company Badge */
.author-role::before {
    content: '•';
    color: var(--accent-blue);
}

/* Testimonials Background Animation */
.testimonials {
    position: relative;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.testimonials-bg-animation {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.testimonial-bg-icon {
    position: absolute;
    color: var(--accent-blue);
    opacity: 0.06;
}

.quote-1 {
    width: 150px;
    height: 150px;
    top: 5%;
    left: 5%;
    transform: rotate(-15deg);
    animation: floatTestimonial 8s ease-in-out infinite;
}

.quote-2 {
    width: 120px;
    height: 120px;
    bottom: 10%;
    right: 8%;
    transform: rotate(15deg);
    animation: floatTestimonial 10s ease-in-out infinite reverse;
}

.heart-1 {
    width: 60px;
    height: 60px;
    top: 50%;
    right: 3%;
    animation: pulseHeart 4s ease-in-out infinite;
}

.star-bg {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 8%;
    animation: floatTestimonial 6s ease-in-out infinite 1s;
}

@keyframes floatTestimonial {

    0%,
    100% {
        transform: translateY(0) rotate(var(--rotation, 0deg));
    }

    50% {
        transform: translateY(-20px) rotate(calc(var(--rotation, 0deg) + 5deg));
    }
}

@keyframes pulseHeart {

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

    50% {
        transform: scale(1.15);
    }
}

.testimonials .container {
    position: relative;
    z-index: 1;
}

/* =====================================================
   Dark Mode Theme
   ===================================================== */

/* Dark mode CSS variables */
[data-theme="dark"] {
    --white: #0f172a;
    --off-white: #1e293b;
    --gray-50: #1e293b;
    --gray-100: #334155;
    --gray-200: #475569;
    --gray-300: #64748b;
    --gray-400: #94a3b8;
    --gray-500: #cbd5e1;
    --gray-600: #e2e8f0;
    --gray-700: #f1f5f9;
    --gray-800: #f8fafc;
    --gray-900: #ffffff;

    --text-dark: #f8fafc;
    --text-gray: #cbd5e1;
    --text-light: #94a3b8;

    --primary-blue: #4299e1;
    --primary-dark: #1e40af;
    --accent-blue: #63b3ed;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);

    --gradient-mesh: radial-gradient(at 40% 20%, rgba(66, 153, 225, 0.2) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(14, 165, 233, 0.15) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(99, 179, 237, 0.15) 0px, transparent 50%);
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    cursor: pointer;
    transition: all var(--transition-base);
    margin-right: 12px;
}

.theme-toggle:hover {
    background: var(--gray-200);
    transform: rotate(15deg);
}

.theme-toggle svg {
    width: 22px;
    height: 22px;
    stroke: var(--text-gray);
    transition: all var(--transition-base);
}

.theme-toggle:hover svg {
    stroke: var(--accent-blue);
}

/* Show/hide icons based on theme */
.sun-icon {
    display: block;
}

.moon-icon {
    display: none;
}

[data-theme="dark"] .sun-icon {
    display: none;
}

[data-theme="dark"] .moon-icon {
    display: block;
}

/* Dark mode specific overrides */
[data-theme="dark"] body {
    background: var(--white);
}

[data-theme="dark"] .header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .hero {
    background: var(--white);
}

[data-theme="dark"] .service-card,
[data-theme="dark"] .product-card,
[data-theme="dark"] .testimonial-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .stats {
    background: var(--primary-dark);
}

[data-theme="dark"] .footer {
    background: #0a1628;
    border-top-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .nav-link {
    color: var(--gray-300);
}

[data-theme="dark"] .nav-link:hover {
    color: var(--accent-light);
}

[data-theme="dark"] .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-dark);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] input,
[data-theme="dark"] textarea {
    background: var(--gray-100);
    border-color: var(--gray-200);
    color: var(--text-dark);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: var(--text-light);
}

/* Smooth theme transition */
body,
.header,
.hero,
.service-card,
.product-card,
.testimonial-card,
.stats,
.footer,
input,
textarea {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Logo adjustments for Dark Mode */
[data-theme="dark"] .logo-img,
[data-theme="dark"] .hero-logo,
[data-theme="dark"] .footer .logo-img {
    filter: brightness(0) invert(1);
    /* This inverts dark logos to white */
}

/* Alternative: If logo has colors you want to preserve, use this instead */
/* [data-theme="dark"] .logo-img {
    filter: brightness(1.5) contrast(1.1);
} */

/* =====================================================
   Services Section - Immersive Design
   ===================================================== */
.services-immersive {
    position: relative;
    padding: var(--section-padding) 0;
    background: #0a0a0a;
    overflow: hidden;
}

/* Dark Section Header */
.section-header-dark .section-tag {
    background: rgba(66, 153, 225, 0.15);
    color: var(--accent-light);
}

.section-header-dark .section-title {
    color: #ffffff;
}

.section-header-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

/* Spotlight Glow */
.spotlight-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 100, 100, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(60px);
}

.services-immersive:hover .spotlight-glow {
    opacity: 1;
}

/* Services Showcase Grid */
.services-showcase {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    position: relative;
    z-index: 2;
}

/* Showcase Card */
.showcase-card {
    position: relative;
    flex: 1;
    max-width: 280px;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-card:hover {
    flex: 2;
    max-width: 500px;
}

/* Card Background Video/Image */
.card-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.card-bg video,
.card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.showcase-card:hover .card-bg video,
.showcase-card:hover .card-bg img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Card Overlay */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.6) 100%);
    transition: background 0.4s ease;
}

.showcase-card:hover .card-overlay {
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.5) 100%);
}

/* Card Content */
.card-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    z-index: 2;
}

.card-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: font-size 0.4s ease;
}

.showcase-card:hover .card-title {
    font-size: 1.75rem;
}

/* Card Glow Effect */
.card-glow {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.4s ease;
    box-shadow:
        inset 0 0 30px rgba(255, 100, 100, 0.3),
        0 0 20px rgba(255, 100, 100, 0.2);
    pointer-events: none;
}

.showcase-card:hover .card-glow {
    opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
    .services-showcase {
        flex-wrap: wrap;
    }

    .showcase-card {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }

    .showcase-card:hover {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 576px) {
    .showcase-card {
        flex: 1 1 100%;
        max-width: 100%;
        height: 250px;
    }

    .showcase-card:hover {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Services Section - Light Mode Adaptation */
/* Only apply dark background in dark mode */
:root .services-immersive {
    background: var(--gray-50);
}

:root .section-header-dark .section-title {
    color: var(--text-dark);
}

:root .section-header-dark .section-subtitle {
    color: var(--text-gray);
}

:root .card-title {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

:root .spotlight-glow {
    background: radial-gradient(circle, rgba(66, 153, 225, 0.3) 0%, transparent 70%);
}

:root .card-glow {
    box-shadow:
        inset 0 0 30px rgba(66, 153, 225, 0.3),
        0 0 20px rgba(66, 153, 225, 0.2);
}

/* Dark mode gets the full dark treatment */
[data-theme="dark"] .services-immersive {
    background: #0a0a0a;
}

[data-theme="dark"] .section-header-dark .section-title {
    color: #ffffff;
}

[data-theme="dark"] .section-header-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .spotlight-glow {
    background: radial-gradient(circle, rgba(255, 100, 100, 0.4) 0%, transparent 70%);
}

[data-theme="dark"] .card-glow {
    box-shadow:
        inset 0 0 30px rgba(255, 100, 100, 0.3),
        0 0 20px rgba(255, 100, 100, 0.2);
}