/* ============================================
   Nexa AI Solution — Global Design System v2
   Professional Colors • Premium Buttons • Smooth Performance
   ============================================ */

/* --- Google Fonts (Modern Technical Pairing) --- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- Professional Color Palette --- */
:root {
    /* Base Tokens (Premium Dark Theme) */
    --bg-main: #020617;
    /* Deeper midnight blue-black */
    --bg-surface: rgba(30, 41, 59, 0.4);
    --bg-surface-elevated: rgba(15, 23, 42, 0.6);

    --text-main: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;

    --border-main: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.03);

    /* Primary: Electric Cyan */
    --color-primary: #06b6d4;
    --color-primary-dark: #0891b2;
    --color-primary-light: rgba(6, 182, 212, 0.1);
    --color-primary-hover: #22d3ee;

    /* Accent: Deep Violet */
    --color-accent: #8b5cf6;
    --color-accent-light: rgba(139, 92, 246, 0.15);
    --color-accent-hover: #a855f7;

    /* Status Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-main: 'Inter', sans-serif;

    /* Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-4xl: 3rem;

    /* Shadows — Premium Depth */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    --shadow-blue: 0 10px 40px -10px rgba(56, 189, 248, 0.4);
    --shadow-indigo: 0 10px 40px -10px rgba(129, 140, 248, 0.4);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.5);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
}

@media (min-width: 768px) {
    :root {
        --radius-3xl: 2rem;
        --radius-4xl: 3rem;
    }
}

/* Theme classes removed since base is dark */

/* ===================== PREMIUM UTILITIES ===================== */

.glass-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

.glass-card-agency {
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s var(--ease-out);
}

.glass-card-agency:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.6), 0 0 30px -5px var(--color-accent-light);
}

/* Glow Mesh & Hero Decor */
.glow-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(129, 140, 248, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.5) 0%, transparent 100%);
    filter: blur(80px);
    z-index: 0;
}

/* ============ PREMIUM HERO SYSTEM ============ */

/* Hero orb — place absolutely within the hero section */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.hero-orb-blue {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, transparent 70%);
}

.hero-orb-indigo {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 70%);
}

.hero-orb-violet {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, transparent 70%);
}

.hero-orb-cyan {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, transparent 70%);
}

.hero-orb-amber {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.14) 0%, transparent 70%);
}

.hero-orb-green {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.14) 0%, transparent 70%);
}

.hero-orb-rose {
    background: radial-gradient(circle, rgba(244, 63, 94, 0.14) 0%, transparent 70%);
}

/* Hero section badge pill */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
}

/* Hero stat strip — narrow section below the headline */
.hero-stat-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    padding-top: 2.5rem;
    margin-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    opacity: 0.7;
    transition: opacity 0.4s ease;
}

.hero-stat-strip:hover {
    opacity: 1;
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.125rem;
}

.hero-stat-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

.hero-stat-divider {
    width: 1px;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.08);
}

/* Hero keyword tags (floating code-like chips) */
.hero-tag {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    pointer-events: none;
    z-index: 5;
    white-space: nowrap;
}

/* Animated vertical accent line */
.hero-accent-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 520px;
    background: linear-gradient(to bottom, rgba(99, 102, 241, 0.6), rgba(56, 189, 248, 0.2), transparent);
    z-index: 0;
    pointer-events: none;
}

/* Dot grid background */
.hero-dot-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* Subtle line grid background */
.hero-line-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* Trust badge / highlight chip inside hero */
.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero-chip-blue {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #7dd3fc;
}

.hero-chip-violet {
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #c4b5fd;
}

.hero-chip-green {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
}

.hero-chip-amber {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #fcd34d;
}


.hero-code-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
    padding: 8px 16px;
    border-radius: 99px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    position: absolute;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.glass-card-dark {
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.border-beam {
    position: relative;
}

.border-beam::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(var(--beam-angle, 0deg), transparent, var(--color-primary), transparent);
    background-size: 200% 200%;
    border-radius: inherit;
    z-index: -1;
    animation: beam-rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.border-beam:hover::after {
    opacity: 1;
}

@keyframes beam-rotate {
    from {
        --beam-angle: 0deg;
    }

    to {
        --beam-angle: 360deg;
    }
}

@property --beam-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}



body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Grain Effect Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
}

.gradient-text-hero {
    background: linear-gradient(to right, #0ea5e9, #8b5cf6, #06b6d4, #0ea5e9);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    letter-spacing: -0.04em;
    animation: gradient-scroll 6s linear infinite;
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.3));
}

@keyframes gradient-scroll {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 300% center;
    }
}

/* Professional Sticky Navigation */
.nav-container-main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.nav-container-main.scrolled {
    background: rgba(3, 3, 3, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    padding-block: 0.5rem;
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@keyframes float-robot {

    0%,
    100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.02);
    }
}

.nav-link-professional {
    font-size: 0.825rem;
    font-weight: 700;
    color: var(--text-main);
    transition: all 0.3s var(--ease-out);
    padding: 0.5rem 0.875rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-family: var(--font-heading);
    position: relative;
}

.nav-link-professional:hover {
    color: var(--color-primary);
    transform: translateY(-1px);
}

.nav-link-professional.active {
    color: var(--color-primary);
}

/* Typing Stability Fixes */
.hero-typing-container {
    min-height: 1.25em;
    display: flex;
    align-items: center;
    justify-content: center;
}

#typing-text {
    display: inline-block;
    white-space: nowrap;
}

.cursor-blink-hero {
    display: inline-block;
    width: 4px;
    height: 1em;
    background-color: #3B82F6;
    margin-left: 4px;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.text-glow {
    text-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
}

.aurora-bg {
    filter: blur(100px);
    opacity: 0.3;
    pointer-events: none;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.04em;
    font-weight: 800;
}

.btn-shimmer {
    position: relative;
    overflow: hidden;
}

.btn-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: rotate(45deg);
    transition: 0.5s;
}

.btn-shimmer:hover::after {
    left: 120%;
}

.text-glow {
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

/* ===================== BASE ===================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
}


html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background: var(--bg-main);
    margin: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #CBD5E1;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #94A3B8;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ===================== SCROLL PROGRESS ===================== */
#scroll-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    will-change: width;
    transition: width 80ms linear;
    width: 0%;
}

/* ===================== REVEAL ANIMATIONS (GPU-accelerated) ===================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal.left {
    transform: translateX(-24px);
}

.reveal.right {
    transform: translateX(24px);
}

.reveal.active.left,
.reveal.active.right {
    transform: translate(0);
}

.delay-100 {
    transition-delay: 80ms;
}

.delay-200 {
    transition-delay: 160ms;
}

.delay-300 {
    transition-delay: 240ms;
}

.delay-400 {
    transition-delay: 320ms;
}

/* ===================== PRELOADER ===================== */
.preloader-bg {
    background: #020617;
}

#page-preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out;
}

/* ===================== HERO GRADIENT TEXT (Dark BG) ===================== */
/* Consolidated above on line 200 */

.cursor-blink-hero {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: #60A5FA;
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

/* ===================== PROFESSIONAL BUTTON SYSTEM ===================== */

/* Primary Button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1rem 2.25rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 50%, var(--color-accent-hover) 100%);
    background-size: 200% 200%;
    background-position: 0% 50%;
    color: #020617;
    /* Darker text on light blue looks more premium */
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 0.9375rem;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    box-shadow: var(--shadow-blue), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity var(--duration-fast);
    border-radius: inherit;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-2xl), 0 15px 40px -8px rgba(29, 78, 216, 0.35);
    background-position: 100% 50%;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-sm);
}

/* Secondary / Outline Button */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.9375rem;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-normal) var(--ease-out);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: var(--shadow-md), 0 0 0 3px var(--color-primary-light);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0) scale(0.98);
}

/* Ghost Button (for dark backgrounds) */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.9375rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all var(--duration-normal) var(--ease-out);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-ghost:active {
    transform: translateY(0) scale(0.98);
}

/* Card Action Button */
.btn-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.8125rem 1.5rem;
    background: var(--color-surface-alt);
    color: var(--color-text-secondary);
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.875rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    text-decoration: none;
}

.btn-card:hover {
    background: var(--color-surface-dark);
    color: #FFFFFF;
    border-color: var(--color-surface-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.btn-card:active {
    transform: translateY(0) scale(0.98);
}

/* Highlight Card Button */
.btn-card-highlight {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.8125rem 1.5rem;
    background: var(--color-primary);
    color: #FFFFFF;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.875rem;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    box-shadow: var(--shadow-blue);
    transition: all var(--duration-normal) var(--ease-out);
    text-decoration: none;
}

.btn-card-highlight:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 12px 28px -6px rgba(29, 78, 216, 0.35);
    transform: translateY(-1px);
}

.btn-card-highlight:active {
    transform: translateY(0) scale(0.98);
}

/* White Button (for colored backgrounds) */
.btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: #FFFFFF;
    color: var(--color-primary-dark);
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.9375rem;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all var(--duration-normal) var(--ease-out);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.btn-white:hover {
    background: #F0F5FF;
    box-shadow: var(--shadow-xl), 0 0 0 3px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-white:active {
    transform: translateY(0) scale(0.98);
}

/* ===================== CHAT WIDGET ===================== */
.chat-content strong {
    font-weight: 700;
    color: var(--color-primary);
}

.chat-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.chat-content li {
    margin-bottom: 0.25rem;
}

/* ===================== LEGAL TEXT ===================== */
.legal-text h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.legal-text h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-text p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.legal-text ul {
    list-style-type: disc;
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.legal-text li {
    margin-bottom: 0.25rem;
}

/* ===================== CURSOR BLINK ===================== */
.cursor-blink {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: var(--color-primary);
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

/* ===================== KEYFRAMES ===================== */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -30px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-16px);
    }
}

@keyframes scan {
    from {
        top: 0%;
    }

    to {
        top: 100%;
    }
}

@keyframes shimmer {
    from {
        background-position: -200% 0;
    }

    to {
        background-position: 200% 0;
    }
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(29, 78, 216, 0.4);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(29, 78, 216, 0);
    }
}

/* ===================== UTILITY ANIMATIONS ===================== */
.animate-fade-in-up {
    animation: fadeInUp 0.6s var(--ease-out) forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s var(--ease-out) forwards;
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

.animate-scan {
    animation: scan 2s linear infinite;
}

.animate-shimmer {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

.animate-pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}


@keyframes pulse-slow {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.05);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 6s ease-in-out infinite;
}

/* ===================== HERO SECTION ENHANCEMENTS ===================== */
.hero-visual-card {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.gradient-text-hero {
    background: linear-gradient(135deg, #60A5FA 0%, #818CF8 40%, #22D3EE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cursor-blink-hero {
    display: inline-block;
    width: 4px;
    height: 1.1em;
    background-color: #60A5FA;
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

/* ===================== SECTION DIVIDER ===================== */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

/* ===================== GRADIENT TEXT ===================== */
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-hover) 40%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================== HERO PATTERN ===================== */
.hero-pattern {
    background-image: radial-gradient(var(--color-primary) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.03;
}

/* ===================== GLASS CARD ===================== */
.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ===================== SERVICE CARD ===================== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.02) 0%, rgba(91, 33, 182, 0.04) 100%);
    opacity: 0;
    transition: opacity var(--duration-slow);
    border-radius: inherit;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

/* ===================== FORM INPUTS ===================== */
input,
select,
textarea {
    font-family: var(--font-main);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ===================== ACTIVE NAV ===================== */
.nav-active {
    color: var(--color-primary) !important;
    background: var(--color-primary-light) !important;
    font-weight: 700 !important;
}

/* ===================== PERFORMANCE ===================== */
/* Use GPU for heavy animations */
.animate-float,
.animate-scan,
#scroll-progress,
#page-preloader,
.reveal {
    will-change: transform, opacity;
}

/* ===================== CHAT WIDGET ===================== */
#chat-messages::-webkit-scrollbar {
    width: 4px;
}

#chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

#chat-messages::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 100px;
}

#chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

.chat-msg-enter {
    animation: chatMsgSlide 0.35s ease-out forwards;
}

@keyframes chatMsgSlide {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.typing-dots span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #3B82F6;
    border-radius: 50%;
    animation: typingBounce 1.2s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes typingBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

.chat-copy-btn {
    opacity: 0;
    transition: opacity 0.2s;
}

.chat-bubble-wrap:hover .chat-copy-btn {
    opacity: 1;
}

/* ===================== STEP WIZARD ===================== */
.wizard-step {
    animation: wizardSlideIn 0.35s ease-out forwards;
}

@keyframes wizardSlideIn {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.wizard-field-error {
    border-color: #EF4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* ===================== PREMIUM UTILITIES ===================== */
.bg-mesh-glow {
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
}

.bg-grid-white {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

.hover-glow {
    position: relative;
    transition: all 0.4s var(--ease-out);
}

.hover-glow::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(139, 92, 246, 0.5));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.4s var(--ease-out);
}

.hover-glow:hover::after {
    opacity: 1;
}

.glass-morphism {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Advanced Reveal Animations --- */
.reveal-up {
    transform: translateY(40px);
    opacity: 0;
    transition: all 0.8s var(--ease-out);
}

.reveal-down {
    transform: translateY(-40px);
    opacity: 0;
    transition: all 0.8s var(--ease-out);
}

.reveal-left {
    transform: translateX(40px);
    opacity: 0;
    transition: all 0.8s var(--ease-out);
}

.reveal-right {
    transform: translateX(-40px);
    opacity: 0;
    transition: all 0.8s var(--ease-out);
}

.reveal-up.active,
.reveal-down.active,
.reveal-left.active,
.reveal-right.active {
    transform: translate(0, 0);
    opacity: 1;
}

@keyframes float-extra {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-15px) rotate(1deg);
    }

    66% {
        transform: translateY(-5px) rotate(-1deg);
    }
}

.animate-float-extra {
    animation: float-extra 6s ease-in-out infinite;
}

/* ===================== PRELOADER ENHANCED — HOLOGRAPHIC SCAN ===================== */
.preloader-bg {
    background: radial-gradient(circle at 50% 50%, #0f172a 0%, #020617 100%);
    position: relative;
}

.preloader-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 1;
    pointer-events: none;
}

.preloader-scan-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, transparent, #3b82f6, #60a5fa, #3b82f6, transparent);
    box-shadow: 0 0 25px 3px rgba(59, 130, 246, 0.6);
    z-index: 20;
    animation: scanSweep 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    opacity: 0.6;
}

@keyframes scanSweep {
    0% {
        top: -10%;
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        top: 110%;
        opacity: 0;
    }
}

.logo-hologram {
    position: relative;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
}

.logo-hologram.glitch {
    animation: holoGlitch 4s step-end infinite;
}

@keyframes holoGlitch {

    0%,
    95%,
    100% {
        transform: translate(0);
        opacity: 1;
        filter: none;
    }

    96% {
        transform: translate(-2px, 1px);
        opacity: 0.8;
        filter: hue-rotate(90deg);
    }

    97% {
        transform: translate(2px, -1px);
        opacity: 0.9;
    }

    98% {
        transform: translate(-1px, -2px);
        filter: saturate(2);
    }

    99% {
        transform: translate(1px, 2px);
        opacity: 0.7;
    }
}

.preloader-percent {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.preloader-tip {
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.05em;
    animation: tipFade 0.5s ease-out;
}

@keyframes tipFade {
    from {
        opacity: 0;
        transform: translateX(-5px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Chatbot Blinking Indicator --- */
.bot-indicator {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 10px;
    height: 10px;
    background-color: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
    z-index: 10;
    animation: blink-red 1.5s infinite;
}

@keyframes blink-red {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    50% {
        opacity: 0.7;
        transform: scale(0.9);
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===================== LIGHT THEME OVERRIDES ===================== */
html[data-theme="light"] {
    --bg-main: #F8FAFC;
    --text-main: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --border-main: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] body {
    background-color: var(--bg-main) !important;
}

html[data-theme="light"] .bg-\[\#020617\],
html[data-theme="light"] .bg-slate-900,
html[data-theme="light"] .bg-\[\#020617\] {
    background-color: #F8FAFC !important;
}

html[data-theme="light"] .text-white,
html[data-theme="light"] .text-gray-300,
html[data-theme="light"] .text-slate-200 {
    color: #0F172A !important;
}

html[data-theme="light"] .text-gray-400,
html[data-theme="light"] .text-gray-500,
html[data-theme="light"] .text-slate-300,
html[data-theme="light"] .text-slate-400 {
    color: #475569 !important;
}

html[data-theme="light"] .text-blue-400,
html[data-theme="light"] .text-purple-400 {
    color: #2563EB !important;
}

html[data-theme="light"] .glass-card-agency,
html[data-theme="light"] .glass-card-dark {
    background: #FFFFFF !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    color: #0F172A !important;
}

html[data-theme="light"] .glass-morphism {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
}

html[data-theme="light"] .nav-container-main.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom-color: rgba(15, 23, 42, 0.08) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

html[data-theme="light"] .nav-link-professional {
    color: #475569 !important;
}

html[data-theme="light"] .nav-link-professional.active {
    color: #2563EB !important;
    background: rgba(37, 99, 235, 0.05);
}

html[data-theme="light"] .nav-link-professional:hover {
    color: #2563EB !important;
    background: rgba(37, 99, 235, 0.03);
}

html[data-theme="light"] .btn-primary {
    background: #2563EB !important;
    color: white !important;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.3);
}

html[data-theme="light"] .btn-secondary {
    background: white !important;
    color: #1e293b !important;
    border-color: #e2e8f0 !important;
}

html[data-theme="light"] #mobile-menu {
    background: rgba(255, 255, 255, 0.98) !important;
}

html[data-theme="light"] #mobile-menu .text-white {
    color: #0f172a !important;
}

html[data-theme="light"] .glass-card-agency {
    background: #FFFFFF !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .text-slate-200,
html[data-theme="light"] .text-slate-300 {
    color: #475569 !important;
}

/* ============================================
   Strategic AI Component Additions
   ============================================ */

@keyframes orb-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
        filter: blur(80px);
    }

    50% {
        transform: scale(1.1);
        opacity: 0.5;
        filter: blur(100px);
    }
}

@keyframes orbit-rotate {
    0% {
        transform: rotate(0deg) translateX(80px) rotate(0deg);
    }

    100% {
        transform: rotate(360deg) translateX(80px) rotate(-360deg);
    }
}

@keyframes neural-pulse {

    0%,
    100% {
        stroke-dashoffset: 100;
        opacity: 0.2;
    }

    50% {
        stroke-dashoffset: 0;
        opacity: 0.8;
    }
}

.cognitive-core-glow {
    animation: orb-pulse 4s ease-in-out infinite;
}

.neural-link {
    stroke-dasharray: 100;
    animation: neural-pulse 3s linear infinite;
}

.orbit-node {
    animation: orbit-rotate 10s linear infinite;
}

.blueprint-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}