/* =================================
   AISphereX Design System
   Modern, Neon-Accented, Conversion-Focused
   ================================= */

/* ============ Design Tokens ============ */
:root {
    /* Brand Color Palette (From Logo) */
    --color-primary: #00D4FF;           /* Cyan from logo */
    --color-secondary: #9D4EDD;         /* Purple from logo */
    --color-navy: #1A365D;              /* Navy from logo */
    --color-primary-dark: #00A8CC;      /* Darker cyan hover state */
    --color-primary-glow: rgba(0, 212, 255, 0.3);

    /* Rich Dark Theme Backgrounds */
    --color-bg-primary: #0A0E27;        /* Deep navy background */
    --color-bg-secondary: #121829;      /* Slightly lighter navy for cards */
    --color-bg-tertiary: #1A2235;       /* Even lighter for contrast */
    --color-bg-light: #FFFFFF;          /* White for light sections */
    --color-bg-card: rgba(255, 255, 255, 0.03); /* Subtle card background */

    /* Text Colors for Dark Theme */
    --color-text-primary: #FFFFFF;      /* White headings */
    --color-text-secondary: #E1E4ED;    /* Light gray body text */
    --color-text-tertiary: #B8BFD1;     /* Muted text */
    --color-text-muted: #8B92A8;        /* Very muted text */

    /* Border Colors for Dark Theme */
    --color-border-light: rgba(255, 255, 255, 0.1);  /* Subtle borders */
    --color-border-medium: rgba(255, 255, 255, 0.15); /* Medium borders */
    --color-border-glow: rgba(0, 212, 255, 0.3);     /* Glowing borders */

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

    --font-size-h1: clamp(2.25rem, 5vw, 4.5rem);      /* 36-72px responsive */
    --font-size-h2: clamp(2rem, 4vw, 3rem);           /* 32-48px responsive */
    --font-size-h3: clamp(1.5rem, 3vw, 2rem);         /* 24-32px responsive */
    --font-size-body: clamp(1rem, 2vw, 1.125rem);     /* 16-18px responsive */
    --font-size-small: clamp(0.875rem, 1.5vw, 1rem); /* 14-16px responsive */

    --font-weight-light: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    --line-height-tight: 1.2;
    --line-height-normal: 1.6;
    --line-height-relaxed: 1.7;

    /* Spacing System (8px base) */
    --space-xs: 0.5rem;      /* 8px */
    --space-sm: 1rem;        /* 16px */
    --space-md: 1.5rem;      /* 24px */
    --space-lg: 2rem;        /* 32px */
    --space-xl: 2.5rem;      /* 40px */
    --space-2xl: 3rem;       /* 48px */
    --space-3xl: 4rem;       /* 64px */
    --space-4xl: 5rem;       /* 80px */
    --space-5xl: 7.5rem;     /* 120px */
    --space-6xl: 10rem;      /* 160px */

    /* Layout */
    --container-width: 1140px;
    --container-padding: clamp(1.25rem, 5vw, 2rem);
    --section-spacing: clamp(4rem, 10vw, 7.5rem);
    --grid-gap: clamp(1.5rem, 3vw, 2rem);

    /* Border Radius */
    --radius-sm: 0.375rem;   /* 6px */
    --radius-md: 0.75rem;    /* 12px */
    --radius-lg: 1rem;       /* 16px */
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 6px 12px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 16px var(--color-primary-glow);
    --shadow-glow-strong: 0 0 24px rgba(0, 212, 255, 0.5);

    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-base: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;

    /* Z-index Scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-popover: 500;
    --z-tooltip: 600;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Account for fixed header */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-size-adjust: 100%; /* Prevent font scaling in landscape */
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-light);
    line-height: var(--line-height-normal);
    color: var(--color-text-secondary);
    background: linear-gradient(180deg, #0A0E27 0%, #121829 50%, #0A0E27 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    /* Better touch handling */
    -webkit-tap-highlight-color: rgba(0, 212, 255, 0.2);
    /* Prevent pull-to-refresh on mobile */
    overscroll-behavior-y: contain;
    position: relative;
}

/* Animated background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(157, 78, 221, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* iOS Safari bottom bar compensation */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
}

/* ============ Typography ============ */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
}

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

h2 {
    font-size: var(--font-size-h2);
}

h3 {
    font-size: var(--font-size-h3);
}

p {
    margin-bottom: var(--space-md);
    line-height: var(--line-height-relaxed);
}

.lead {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    color: var(--color-text-tertiary);
    line-height: var(--line-height-relaxed);
    font-weight: var(--font-weight-light);
}

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

a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Content links (not buttons or navigation) */
p a,
.faq-answer a,
.service-description a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

p a:hover,
.faq-answer a:hover,
.service-description a:hover {
    color: var(--color-primary-dark);
    text-decoration-thickness: 2px;
}

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

/* ============ Layout Utilities ============ */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 1;
}

.section {
    padding: var(--section-spacing) 0;
    position: relative;
    z-index: 1;
}

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

/* ============ Grid System ============ */
.grid {
    display: grid;
    gap: var(--grid-gap);
}

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

@media (max-width: 1024px) {
    .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .value-prop-card {
        padding: var(--space-2xl) var(--space-lg);
        margin: 0 var(--space-xs);
    }

    .value-prop-number {
        font-size: clamp(1.5rem, 5vw, 1.875rem);
    }

    .value-prop-label {
        font-size: clamp(0.875rem, 3.5vw, 1rem);
    }

    .about-card {
        padding: var(--space-xl) var(--space-lg);
    }

    .about-card-icon {
        width: 56px;
        height: 56px;
    }

    .about-card h3 {
        font-size: clamp(1.125rem, 4.5vw, 1.375rem);
    }

    .about-header h2 {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
    }
}

/* ============ Header & Navigation ============ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
    border-bottom: 1px solid var(--color-border-light);
}

.site-header.scrolled {
    background: rgba(10, 14, 39, 0.95);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.1);
    border-bottom-color: var(--color-border-glow);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    gap: var(--space-lg);
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    transition: opacity var(--transition-base);
}

.logo a:hover {
    opacity: 0.8;
}

.logo-img {
    height: 46px;
    width: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .logo {
        flex-shrink: 0;
        max-width: 65%;
    }

    .logo-img {
        height: 36px;
        max-width: 100%;
    }
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-icon::before,
.logo-icon::after {
    content: '';
    position: absolute;
    background: #FFFFFF;
    border-radius: 2px;
}

.logo-icon::before {
    width: 16px;
    height: 3px;
}

.logo-icon::after {
    width: 3px;
    height: 16px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
    align-items: center;
}

.nav-menu a {
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    padding: var(--space-xs) 0;
    position: relative;
    transition: color var(--transition-base);
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-base);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a.active::after {
    width: 0;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-shrink: 0;
    list-style: none;
}

.nav-cta-desktop {
    display: flex;
}

.nav-menu .nav-cta {
    display: none;
}

.cart-icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--transition-base);
}

.cart-icon:hover {
    transform: scale(1.05);
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--color-primary);
    color: #FFFFFF;
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    z-index: var(--z-fixed);
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: all var(--transition-base);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============ Buttons ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.875rem 2.25rem;
    min-height: 44px; /* WCAG minimum touch target */
    font-size: 1rem;
    font-weight: var(--font-weight-bold);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    white-space: nowrap;
    line-height: 1;
    -webkit-tap-highlight-color: rgba(0, 212, 255, 0.2);
    touch-action: manipulation;
}

.btn-primary {
    background: var(--color-primary);
    color: #FFFFFF;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    box-shadow: var(--shadow-glow-strong);
    transform: scale(1.02);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
}

/* Focus states for accessibility */
.btn:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

.btn-secondary {
    background: var(--color-bg-secondary);
    color: var(--color-text-primary);
    border: 2px solid var(--color-border-light);
}

.btn-secondary:hover {
    background: var(--color-bg-primary);
    border-color: var(--color-primary);
    transform: scale(1.02);
}

.btn-secondary:active {
    transform: scale(0.98);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-primary);
    border: 2px solid var(--color-border-light);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
    transform: scale(1.02);
}

/* ============ CTA Section ============ */
.cta-section {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(157, 78, 221, 0.1) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
    animation: pulse 6s ease-in-out infinite;
}

.cta-subtitle {
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============ Hero Section ============ */
.hero-section {
    padding: clamp(8rem, 15vh, 12rem) 0 clamp(6rem, 12vh, 10rem);
    position: relative;
    overflow: hidden;
    margin-top: 80px; /* Account for fixed header */
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.05) 0%, transparent 50%, rgba(157, 78, 221, 0.05) 100%);
    min-height: auto;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(600px, 80vw, 1200px);
    height: clamp(600px, 80vw, 1200px);
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, rgba(157, 78, 221, 0.15) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: heroGlowPulse 8s ease-in-out infinite;
}

@keyframes heroGlowPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: var(--z-base);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-lg);
    line-height: 1.15;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-2xl);
    line-height: var(--line-height-relaxed);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    min-height: 3.5em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
}

.typing-text {
    display: inline;
}

.typing-cursor {
    display: inline-block;
    margin-left: 2px;
    animation: blink 1s infinite;
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Floating Icon Elements */
.floating-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    width: 64px;
    height: 64px;
    background: var(--color-bg-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    animation: float 6s ease-in-out infinite;
}

.floating-icon svg,
.floating-icon img {
    width: 32px;
    height: 32px;
}

/* Floating Product Logos Styling */
.floating-product-logo {
    padding: var(--space-sm);
}

.floating-product-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.floating-product-logo svg {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
}

.floating-vtx {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.floating-vtx .vtx-text {
    font-size: 1.5rem;
    font-weight: var(--font-weight-extrabold);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.05em;
}

.floating-icon:nth-child(1) {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.floating-icon:nth-child(3) {
    bottom: 25%;
    left: 15%;
    animation-delay: 2s;
}

.floating-icon:nth-child(4) {
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ============ About Section ============ */
/* About Section */
.about-section {
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.08) 0%, transparent 50%, rgba(157, 78, 221, 0.08) 100%);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.about-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.about-lead {
    margin-top: var(--space-md);
}

.about-content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
}

.about-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

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

.about-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
    border-color: var(--color-primary);
}

.about-card--featured {
    grid-column: span 3;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.03) 0%, rgba(157, 78, 221, 0.03) 100%);
}

.about-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: #FFFFFF;
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.25);
    transition: all var(--transition-base);
}

.about-card:hover .about-card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(0, 212, 255, 0.4);
}

.about-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--color-text-primary);
    line-height: 1.3;
}

.about-card p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 0.9375rem;
}

/* Value Prop Cards */
.value-prop-card {
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    color: #FFFFFF;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.value-prop-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.value-prop-card:hover::before {
    opacity: 1;
}

.value-prop-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.value-prop-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-md);
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.value-prop-card:hover .value-prop-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.value-prop-number {
    font-size: clamp(1.75rem, 3.5vw, 2rem);
    font-weight: var(--font-weight-extrabold);
    margin-bottom: var(--space-xs);
    line-height: 1;
}

.value-prop-label {
    font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
    line-height: 1.4;
    font-weight: var(--font-weight-medium);
    opacity: 0.95;
}

.value-prop-card--ai {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.value-prop-card--pricing {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #7B2CBF 100%);
}

.value-prop-card--products {
    background: linear-gradient(135deg, var(--color-primary) 0%, #00A8CC 100%);
}

.value-prop-card--global {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
}

.section-icon {
    width: 56px;
    height: 56px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.section-icon::before,
.section-icon::after {
    content: '';
    position: absolute;
    background: #FFFFFF;
    border-radius: 2px;
}

.section-icon::before {
    width: 24px;
    height: 4px;
}

.section-icon::after {
    width: 4px;
    height: 24px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

/* Story Layout */
.about-story {
    max-width: 1000px;
    margin: 0 auto var(--space-4xl);
}

.story-intro {
    text-align: center;
    margin-bottom: var(--space-4xl);
}

.story-text--large {
    font-size: clamp(1.375rem, 3vw, 1.75rem);
    line-height: 1.5;
    color: var(--color-text-primary);
    font-weight: var(--font-weight-medium);
}

.story-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
}

.story-block {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 4px solid transparent;
    padding: var(--space-2xl);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    border: 1px solid var(--color-border-light);
}

.story-block:hover {
    background: rgba(255, 255, 255, 0.06);
    border-left-color: var(--color-primary);
    border-color: var(--color-border-glow);
    transform: translateX(8px);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
}

.story-block--highlight {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(157, 78, 221, 0.1) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-left: 4px solid var(--color-primary);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
}

.story-heading {
    font-size: clamp(1.375rem, 2.5vw, 1.625rem);
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
    line-height: 1.3;
}

.story-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.story-text:last-child {
    margin-bottom: 0;
}

.story-list {
    list-style: none;
    margin: var(--space-md) 0;
    padding: 0;
}

.story-list li {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
    position: relative;
}

.story-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
}

@media (max-width: 768px) {
    .story-text--large {
        font-size: 1.25rem;
    }

    .story-heading {
        font-size: 1.25rem;
    }

    .story-block {
        padding: var(--space-xl);
    }

    .story-list li {
        font-size: 1rem;
    }
}

.value-props-grid {
    margin-top: var(--space-4xl);
}

.client-logos {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2xl);
    align-items: center;
    justify-content: center;
    margin-top: var(--space-3xl);
    padding: var(--space-2xl) 0;
}

.client-logo {
    height: 40px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all var(--transition-base);
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* ============ Services Section ============ */
.services-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(157, 78, 221, 0.05) 0%, transparent 50%, rgba(0, 212, 255, 0.05) 100%);
}

.services-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
    animation: float 10s ease-in-out infinite;
}

.services-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.15) 0%, transparent 60%);
    pointer-events: none;
    animation: float 12s ease-in-out infinite reverse;
}

.services-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    position: relative;
    z-index: 1;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(157, 78, 221, 0.1) 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-md);
}

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

.service-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-2xl);
    transition: all var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

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

.service-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.25);
    border-color: var(--color-primary);
}

.service-features {
    margin-top: var(--space-md);
    font-size: var(--font-size-small);
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
}

.ecosystem-message {
    margin-top: var(--space-5xl);
    position: relative;
    text-align: center;
}

.ecosystem-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.ecosystem-content {
    position: relative;
    z-index: 1;
    padding: var(--space-4xl) var(--space-2xl);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.03) 0%, rgba(157, 78, 221, 0.03) 100%);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    background-clip: padding-box;
    max-width: 900px;
    margin: 0 auto;
    transition: all var(--transition-base);
}

.ecosystem-content::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(157, 78, 221, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.ecosystem-message:hover .ecosystem-content {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.15);
}

.ecosystem-icon {
    color: var(--color-primary);
    margin: 0 auto var(--space-lg);
    animation: rotate 20s linear infinite;
}

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

.ecosystem-content h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ecosystem-content p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    font-size: 1.0625rem;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    padding: var(--space-sm);
    transition: all var(--transition-base);
    position: relative;
}

.service-card:hover .service-icon {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.2);
}

.service-icon svg,
.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ViveTradeX VTX Logo */
.vivetradex-icon {
    width: 80px;
    height: 80px;
}

.vtx-logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vtx-text {
    font-size: 1.75rem;
    font-weight: var(--font-weight-extrabold);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.05em;
    line-height: 1;
}

/* Vivelead CRM Logo */
.vivelead-logo {
    overflow: visible;
}

.vivelead-inner {
    position: relative;
    width: 32px;
    height: 32px;
}

.vivelead-circle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    animation: vivelead-pulse 2s ease-in-out infinite;
}

.vivelead-circle-1 {
    top: 0;
    left: 12px;
    animation-delay: 0s;
}

.vivelead-circle-2 {
    bottom: 0;
    left: 0;
    animation-delay: 0.3s;
}

.vivelead-circle-3 {
    bottom: 0;
    right: 0;
    animation-delay: 0.6s;
}

.vivelead-connector {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    transform-origin: center;
}

.vivelead-connector-1 {
    width: 18px;
    height: 2px;
    top: 6px;
    left: 12px;
    transform: rotate(-50deg);
    animation: vivelead-flow 2s ease-in-out infinite;
}

.vivelead-connector-2 {
    width: 18px;
    height: 2px;
    top: 6px;
    right: 4px;
    transform: rotate(50deg);
    animation: vivelead-flow 2s ease-in-out infinite;
    animation-delay: 0.3s;
}

@keyframes vivelead-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

@keyframes vivelead-flow {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.3;
    }
}

.service-card:hover .vivelead-circle {
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
}

.service-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
    position: relative;
    display: inline-block;
    line-height: 1.3;
}

.service-card:hover .service-title {
    color: var(--color-primary);
}

.service-description {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    flex-grow: 1;
}

.service-meta {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-top: var(--space-sm);
    margin-bottom: var(--space-md);
}

.service-cta {
    margin-top: auto;
    width: 100%;
}

/* ============ Testimonials Section ============ */
.testimonials-section {
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.05) 0%, rgba(157, 78, 221, 0.08) 100%);
    position: relative;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.testimonials-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 8rem;
    color: rgba(0, 212, 255, 0.05);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(157, 78, 221, 0.3);
    transform: translateY(-4px);
    border-color: var(--color-secondary);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    color: #FFB800;
}

.testimonial-quote {
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    flex-grow: 1;
    position: relative;
    z-index: 1;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border-light);
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.125rem;
    font-weight: var(--font-weight-bold);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.testimonial-avatar span {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.testimonial-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-name {
    font-size: 1rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ============ FAQ Section ============ */
.faq-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.faq-item.active {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.faq-question {
    width: 100%;
    min-height: 60px;
    padding: var(--space-lg) var(--space-xl);
    background: none;
    border: none;
    text-align: left;
    font-size: 1.0625rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
    transition: all var(--transition-base);
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-question:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
}

.faq-icon {
    width: 28px;
    height: 28px;
    position: relative;
    flex-shrink: 0;
    transition: all var(--transition-base);
    background: rgba(0, 212, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-item:hover .faq-icon,
.faq-item.active .faq-icon {
    background: var(--color-primary);
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.faq-item:hover .faq-icon::before,
.faq-item:hover .faq-icon::after,
.faq-item.active .faq-icon::before,
.faq-item.active .faq-icon::after {
    background: #FFFFFF;
}

.faq-icon::before {
    width: 14px;
    height: 2px;
    transform: translate(-50%, -50%);
}

.faq-icon::after {
    width: 2px;
    height: 14px;
    transform: translate(-50%, -50%);
    transition: opacity var(--transition-base), transform var(--transition-base);
}

.faq-item.active .faq-icon::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-item.active .faq-answer {
    max-height: 600px;
    padding: 0 var(--space-xl) var(--space-lg);
}

.faq-answer p {
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    margin: 0;
    font-size: 1rem;
}

/* ============ Footer ============ */
.site-footer {
    background: linear-gradient(180deg, #121829 0%, #0A0E27 100%);
    color: var(--color-text-secondary);
    padding: var(--space-4xl) 0 var(--space-xl);
    margin-top: var(--section-spacing);
    border-top: 1px solid var(--color-border-light);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--color-primary) 50%, transparent 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--space-4xl);
    margin-bottom: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    margin-bottom: var(--space-md);
}

.footer-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: none;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    line-height: var(--line-height-relaxed);
    margin: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2xl);
}

.footer-column h4 {
    color: #FFFFFF;
    margin-bottom: var(--space-md);
    font-size: 0.9375rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    transition: color var(--transition-base);
    display: inline-block;
}

.footer-column a:hover {
    color: var(--color-primary);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xs);
}

.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: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-base);
}

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

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-bottom p {
    margin: 0;
}

/* ============ Animations ============ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ Accessibility ============ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .floating-icon {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-border-light: #000000;
        --color-text-secondary: #000000;
    }
}

/* ============ Responsive Design ============ */

/* Large Tablets & Small Desktops (1024px - 1280px) */
@media (max-width: 1280px) {
    .container {
        max-width: 960px;
    }

    .hero-section {
        padding: clamp(6rem, 12vh, 9rem) 0 clamp(5rem, 10vh, 8rem);
    }
}

/* Tablets & iPad (768px - 1024px) */
@media (max-width: 1024px) {
    .about-content-grid {
        grid-template-columns: 1fr;
    }

    .about-card--featured {
        grid-column: span 1;
    }

    .floating-icon {
        width: 48px;
        height: 48px;
    }

    .services-header h2,
    .testimonials-header h2,
    .about-header h2 {
        font-size: 2rem;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }

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

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

/* Mobile Devices & Small Tablets (481px - 768px) */
@media (max-width: 768px) {
    :root {
        --container-padding: clamp(1.25rem, 5vw, 1.5rem);
        --section-spacing: clamp(3rem, 8vw, 4rem);
    }

    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
        width: 100%;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding-left: var(--container-padding);
        padding-right: var(--container-padding);
    }

    .site-header .container {
        padding-left: clamp(1rem, 4vw, 1.25rem);
        padding-right: clamp(1rem, 4vw, 1.25rem);
    }

    .navbar {
        position: relative;
        padding: var(--space-xs) 0;
        gap: var(--space-sm);
    }

    /* Hide desktop CTA button on mobile */
    .nav-cta-desktop {
        display: none !important;
    }

    .menu-toggle {
        display: flex;
        z-index: calc(var(--z-fixed) + 1);
        margin-left: auto;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-bg-primary);
        flex-direction: column;
        padding: 5rem var(--space-xl) var(--space-xl);
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
        transition: right var(--transition-base);
        align-items: flex-start;
        z-index: var(--z-fixed);
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        width: 100%;
        padding: var(--space-md) 0;
        font-size: 1.125rem;
        border-bottom: 1px solid var(--color-border-light);
    }

    .nav-menu a:last-child {
        border-bottom: none;
    }

    /* CTA inside mobile menu */
    .nav-menu .nav-cta {
        display: flex !important;
        width: 100%;
        margin-top: var(--space-lg);
        padding: var(--space-lg) 0 0 0;
        border-top: 2px solid var(--color-border-light);
        list-style: none;
    }

    .nav-menu .nav-cta .btn {
        width: 100%;
    }

    .hero-section {
        padding: 5rem 0 4rem;
        margin-top: 60px;
        min-height: auto;
    }

    .hero-content {
        padding: 0 var(--space-sm);
    }

    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
        line-height: 1.25;
        margin-bottom: var(--space-md);
    }

    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.125rem);
        min-height: auto !important;
        padding: 0 var(--space-md);
        line-height: 1.6;
        margin-bottom: var(--space-xl);
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere;
        display: block;
        width: 100%;
    }

    .typing-text {
        display: inline;
        white-space: normal;
        word-wrap: break-word;
    }

    .typing-cursor {
        display: inline-block;
        white-space: nowrap;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: var(--space-md);
        padding: 0 var(--space-sm);
    }

    .hero-cta .btn {
        width: 100%;
        min-width: unset;
        max-width: 100%;
    }

    .floating-icons {
        display: none !important;
        visibility: hidden;
    }

    /* Service Cards Mobile */
    .service-card {
        padding: var(--space-xl);
    }

    .service-icon {
        width: 56px;
        height: 56px;
    }

    .service-title {
        font-size: 1.25rem;
    }

    /* Section Headers Mobile */
    .services-header h2,
    .testimonials-header h2,
    .about-header h2,
    .faq-header h2 {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
        line-height: 1.25;
        padding: 0 var(--space-xs);
    }

    .section-badge {
        font-size: clamp(0.75rem, 3vw, 0.875rem);
        padding: 0.5rem 1.125rem;
    }

    /* About Section Mobile */
    .about-header {
        margin-bottom: var(--space-2xl);
        padding: 0 var(--space-xs);
    }

    .about-content-grid {
        gap: var(--space-lg);
        padding: 0 var(--space-xs);
    }

    .story-intro,
    .story-content {
        padding: 0 var(--space-xs);
    }

    /* Testimonials Mobile */
    .testimonial-card {
        padding: var(--space-xl);
    }

    .testimonial-quote {
        font-size: 1rem;
    }

    /* FAQ Mobile */
    .faq-question {
        padding: var(--space-md) var(--space-lg);
        font-size: 1rem;
        min-height: 50px;
    }

    .faq-item.active .faq-answer {
        padding: 0 var(--space-lg) var(--space-md);
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }

    .footer-brand {
        max-width: 100%;
        text-align: center;
    }

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

    .footer-column {
        text-align: left;
    }

    /* Contact Page Mobile */
    .contact-hero {
        padding: var(--space-4xl) 0 var(--space-3xl);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .contact-form-wrapper {
        padding: var(--space-2xl);
    }

    .contact-form-header h2 {
        font-size: 1.75rem;
    }

    /* CTA Section Mobile */
    .cta-section h2 {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
        padding: 0 var(--space-xs);
    }

    .cta-subtitle {
        font-size: clamp(1rem, 4vw, 1.125rem);
        padding: 0 var(--space-md);
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: var(--space-md);
        padding: 0 var(--space-sm);
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 100%;
    }
}

/* Small Mobile Devices (320px - 480px) */
@media (max-width: 480px) {
    :root {
        --container-padding: clamp(1rem, 4vw, 1.25rem);
        --section-spacing: clamp(2.5rem, 7vw, 3.5rem);
    }

    .hero-section {
        padding: 4rem 0 3rem;
    }

    .hero-title {
        font-size: clamp(1.5rem, 7vw, 1.875rem);
        line-height: 1.2;
        padding: 0 var(--space-xs);
    }

    .hero-subtitle {
        font-size: clamp(0.9375rem, 4.5vw, 1.0625rem);
        min-height: auto !important;
        padding: 0 var(--space-md);
        line-height: 1.6;
        white-space: normal !important;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .hero-cta {
        padding: 0;
    }

    .hero-cta .btn {
        padding: 0.875rem 1.75rem;
        font-size: clamp(0.9375rem, 4vw, 1rem);
    }

    .section-badge {
        font-size: 0.75rem;
        padding: 0.375rem 1rem;
    }

    .about-card,
    .service-card,
    .testimonial-card {
        padding: var(--space-lg);
    }

    .about-card-icon,
    .service-icon {
        width: 48px;
        height: 48px;
    }

    .value-prop-card {
        padding: var(--space-xl);
    }

    .value-prop-icon {
        width: 48px;
        height: 48px;
    }

    .value-prop-number {
        font-size: 1.5rem;
    }

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

    .footer-social a {
        width: 36px;
        height: 36px;
    }

    .btn {
        padding: 0.875rem 1.75rem;
        font-size: clamp(0.9375rem, 4vw, 1rem);
        min-height: 48px;
        width: auto;
    }

    .btn-lg {
        padding: 1rem 2rem;
        font-size: clamp(1rem, 4.5vw, 1.125rem);
        min-height: 52px;
    }

    .contact-form-wrapper {
        padding: var(--space-xl);
    }

    .contact-form-header h2 {
        font-size: 1.5rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.9375rem;
    }
}

/* Ensure no horizontal scroll */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    * {
        max-width: 100%;
    }

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

/* iOS Specific Optimizations */
@supports (-webkit-touch-callout: none) {
    .nav-menu {
        /* iOS Safari safe area */
        padding-bottom: calc(var(--space-xl) + env(safe-area-inset-bottom));
    }

    .btn,
    .form-group input,
    .form-group select,
    .form-group textarea {
        /* Prevent iOS zoom on focus */
        font-size: max(16px, 1rem);
    }

    /* Smooth scrolling for iOS */
    .nav-menu {
        -webkit-overflow-scrolling: touch;
    }

    /* Fix for iOS Safari viewport height */
    .hero-section {
        min-height: -webkit-fill-available;
    }
}

/* Android Specific Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Touch-friendly spacing for Android */
    .btn,
    .nav-menu a,
    .faq-question {
        min-height: 48px;
    }

    /* Prevent text selection on buttons (Android) */
    .btn,
    .menu-toggle,
    .faq-question {
        -webkit-tap-highlight-color: transparent;
        -webkit-user-select: none;
        user-select: none;
    }
}

/* Landscape Orientation Optimization (Mobile/Tablet) */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        padding: 3rem 0 2rem;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: var(--space-sm);
    }

    .hero-subtitle {
        font-size: 1rem;
        min-height: 2.5em;
    }

    .section {
        padding: var(--space-3xl) 0;
    }

    .nav-menu {
        padding: 3rem var(--space-lg) var(--space-lg);
    }

    .contact-hero {
        padding: var(--space-3xl) 0 var(--space-2xl);
    }
}

/* High Resolution Displays (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper borders and shadows */
    .service-card,
    .about-card,
    .testimonial-card,
    .contact-info-card {
        border-width: 0.5px;
    }
}


/* ============ Contact Page ============ */
.contact-hero {
    padding: var(--space-6xl) 0 var(--space-4xl);
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.1) 0%, transparent 100%);
    margin-top: 80px;
    position: relative;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.contact-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: var(--space-lg);
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-4xl);
    margin-bottom: var(--space-4xl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
}

.contact-form-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.contact-form-header h2 {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.contact-form-header p {
    color: var(--color-text-tertiary);
    font-size: 1.0625rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group label {
    font-size: 0.9375rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
}

.required {
    color: var(--color-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: var(--font-family);
    color: var(--color-text-primary);
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 3rem;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    cursor: pointer;
}

.form-group select:hover {
    border-color: var(--color-primary);
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%2300D4FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.form-group select option {
    padding: 0.75rem;
    font-size: 1rem;
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
}

.form-group select option:hover,
.form-group select option:focus,
.form-group select option:checked {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(157, 78, 221, 0.1) 100%);
    color: var(--color-text-primary);
}

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

.form-group select:focus {
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%2300D4FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

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

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    max-width: 100%;
}

.contact-info-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: all var(--transition-base);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary);
}

.contact-info-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: #FFFFFF;
}

.contact-info-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-xs);
}

.contact-info-card p {
    color: var(--color-text-tertiary);
    font-size: 0.9375rem;
    margin-bottom: var(--space-md);
}

.contact-link {
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
    font-size: 1.0625rem;
    transition: color var(--transition-base);
}

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

.contact-address {
    font-style: normal;
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

.contact-form .btn-primary {
    width: 100%;
    margin-top: var(--space-md);
}

.contact-form .btn-primary svg {
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .contact-form-wrapper {
        padding: var(--space-2xl);
    }

    .contact-hero {
        padding: var(--space-4xl) 0 var(--space-3xl);
    }
}

/* ============ Print Styles ============ */
@media print {
    .site-header,
    .menu-toggle,
    .floating-icons,
    .hero-cta,
    .site-footer {
        display: none;
    }

    .section {
        page-break-inside: avoid;
    }
}
