/* ============================================
   ADVENNO - Premium Software House
   Design System & Global Styles
   ============================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================
   CSS Custom Properties (Theme Variables)
   ============================================ */
:root {
    /* Dark Theme (Default) */
    --bg-primary: #0B0F1A;
    --bg-secondary: #11162A;
    --bg-card: rgba(17, 22, 42, 0.8);
    --bg-glass: rgba(11, 15, 26, 0.7);

    --text-primary: #E5E7EB;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;

    --accent-blue: #3B82F6;
    --accent-cyan: #22D3EE;
    --accent-violet: #8B5CF6;

    --glow-blue: rgba(59, 130, 246, 0.4);
    --glow-cyan: rgba(34, 211, 238, 0.4);
    --glow-violet: rgba(139, 92, 246, 0.4);

    --border-color: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);

    --gradient-primary: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
    --gradient-accent: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    --gradient-dark: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--glow-blue);

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

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

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-theme: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F7FB;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.8);

    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;

    --accent-blue: #2563EB;
    --accent-cyan: #06B6D4;
    --accent-violet: #7C3AED;

    --glow-blue: rgba(37, 99, 235, 0.2);
    --glow-cyan: rgba(6, 182, 212, 0.2);
    --glow-violet: rgba(124, 58, 237, 0.2);

    --border-color: #E2E8F0;
    --border-hover: #CBD5E1;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.15);
}

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

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

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background var(--transition-theme), color var(--transition-theme);
}

/* Removed cursor: none to fix cursor visibility bug */


/* Selection */
::selection {
    background: var(--accent-blue);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: var(--radius-full);
}

/* ============================================
   Typography
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    transition: color var(--transition-theme);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    transition: color var(--transition-theme);
}

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

a:hover {
    color: var(--accent-cyan);
}

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

.text-glow {
    text-shadow: 0 0 30px var(--glow-blue);
}

.mono {
    font-family: var(--font-mono);
}

/* ============================================
   Layout Components
   ============================================ */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.section {
    padding: var(--space-4xl) 0;
    position: relative;
}

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

.grid {
    display: grid;
    gap: var(--space-xl);
}

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

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

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

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-lg) 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-theme);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    gap: var(--space-lg);
    flex-wrap: nowrap;
}

.nav-links {
    flex: 1;
    min-width: 0;
}

.nav-actions {
    flex-shrink: 0;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

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

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

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: var(--space-sm) 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover {
    color: var(--text-primary);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-actions .auth-guest,
.nav-actions .auth-user {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-actions .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    padding: 3px;
}

.theme-toggle:hover {
    border-color: var(--accent-blue);
}

.theme-toggle-circle {
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    transition: transform var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-circle svg {
    width: 12px;
    height: 12px;
    color: white;
}

[data-theme="light"] .theme-toggle-circle {
    transform: translateX(24px);
}

.theme-toggle .icon-moon,
[data-theme="light"] .theme-toggle .icon-sun {
    display: none;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: var(--space-sm);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-normal);
}

/* Dropdown Menu */
.nav-item {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 1rem;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    margin-top: 0.5rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    transform: translateX(4px);
}

.dropdown-icon {
    font-size: 1.5rem;
    min-width: 24px;
}

.dropdown-content h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.dropdown-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}


/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md), 0 0 20px var(--glow-blue);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 30px var(--glow-blue);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.1rem;
}

.btn-icon {
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: var(--radius-md);
}

/* Button Shine Effect */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.card:hover::before {
    opacity: 1;
}

.card-glass {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    font-size: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    margin-bottom: var(--space-xl);
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: var(--space-2xl);
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

/* Hero 3D Background */
.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60%;
    pointer-events: none;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 8s ease-in-out infinite;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-blue);
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-violet);
    top: 40%;
    right: 30%;
    animation-delay: -2s;
}

.hero-orb-3 {
    width: 250px;
    height: 250px;
    background: var(--accent-cyan);
    top: 60%;
    right: 5%;
    animation-delay: -4s;
}

[data-theme="light"] .hero-orb {
    opacity: 0.3;
    filter: blur(100px);
}

/* Floating 3D Shapes */
.floating-shape {
    position: absolute;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.shape-cube {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-blue), transparent);
    border: 1px solid var(--accent-cyan);
    transform: rotate(45deg);
    animation: rotate-float 10s linear infinite;
}

.shape-ring {
    width: 120px;
    height: 120px;
    border: 2px solid var(--accent-violet);
    border-radius: 50%;
    animation: rotate-reverse 15s linear infinite;
}

.shape-dots {
    display: grid;
    grid-template-columns: repeat(3, 8px);
    gap: 12px;
}

.shape-dots span {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.shape-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.shape-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

.shape-dots span:nth-child(4) {
    animation-delay: 0.6s;
}

.shape-dots span:nth-child(5) {
    animation-delay: 0.8s;
}

.shape-dots span:nth-child(6) {
    animation-delay: 1s;
}

.shape-dots span:nth-child(7) {
    animation-delay: 1.2s;
}

.shape-dots span:nth-child(8) {
    animation-delay: 1.4s;
}

/* ============================================
   Custom Cursor
   ============================================ */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-circle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-blue);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
}

.cursor-hover .cursor-dot {
    width: 0;
    height: 0;
    opacity: 0;
}

.cursor-hover .cursor-circle {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-color: transparent;
    backdrop-filter: blur(2px);
}

.cursor-text .cursor-dot {
    display: none;
}

.cursor-text .cursor-circle {
    width: 4px;
    height: 24px;
    border-radius: 4px;
    background: var(--accent-cyan);
    border: none;
}

/* ============================================
   Interactive Canvas Background
   ============================================ */
.neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ============================================
   Card Glare Effect
   ============================================ */
.card-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.1) 0%,
            transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* ============================================
   Cinematic Page Transitions
   ============================================ */
body {
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 1;
    transform: scale(1);
}

body.page-exit {
    opacity: 0;
    transform: scale(0.98);
}

body.page-enter {
    animation: pageEnter 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

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

/* ============================================
   Persona Selector
   ============================================ */
.persona-selector {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: var(--space-lg);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.persona-selector:hover {
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.1);
}

.persona-select {
    background: transparent;
    border: none;
    color: var(--accent-cyan);
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    appearance: none;
    /* Hide default arrow */
    padding-right: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2322D3EE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
}

.persona-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* ============================================
   Conversational Contact UI
   ============================================ */
.conversation-ui {
    max-width: 600px;
    margin: 0 auto;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 20px;
}

.chat-bubble {
    max-width: 80%;
    padding: 16px 24px;
    border-radius: 20px;
    font-size: 1rem;
    line-height: 1.5;
    position: relative;
    opacity: 0;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.bot-bubble {
    align-self: flex-start;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-color);
}

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

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: 20px;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
    width: fit-content;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

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

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

@keyframes typing {

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

    50% {
        transform: translateY(-4px);
    }
}

.chat-input-area {
    margin-top: auto;
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.chat-input {
    flex: 1;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 30px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.1);
}

.chat-send {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.chat-send:hover {
    transform: scale(1.1);
}

.chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.chat-option-btn {
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.chat-option-btn:hover {
    background: var(--accent-blue);
    color: white;
}

.shape-dots span:nth-child(9) {
    animation-delay: 1.6s;
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-md);
}

.section-title {
    margin-bottom: var(--space-lg);
}

.section-description {
    color: var(--text-secondary);
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    padding: var(--space-2xl);
    height: 100%;
}

.service-card:hover .card-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.service-card .card-icon {
    transition: all var(--transition-normal);
}

.service-number {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-cyan);
    margin-bottom: var(--space-md);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    color: var(--accent-blue);
    font-weight: 500;
}

.service-link svg {
    transition: transform var(--transition-fast);
}

.service-link:hover svg {
    transform: translateX(5px);
}

/* ============================================
   Portfolio Grid
   ============================================ */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.portfolio-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
}

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

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 15, 26, 0.95), transparent);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.portfolio-card:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-tags {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.portfolio-tag {
    padding: var(--space-xs) var(--space-sm);
    background: var(--accent-blue);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
}

.portfolio-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: white;
}

.portfolio-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============================================
   Tech Stack Grid
   ============================================ */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-lg);
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.tech-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-glow);
}

.tech-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.tech-name {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

/* ============================================
   Stats Section
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.stat-item {
    text-align: center;
    padding: var(--space-xl);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonial-card {
    padding: var(--space-2xl);
    text-align: center;
}

.testimonial-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    position: relative;
}

.testimonial-quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent-blue);
    opacity: 0.3;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
}

.testimonial-name {
    font-weight: 600;
    color: var(--text-primary);
}

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

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    text-align: center;
    padding: var(--space-4xl) 0;
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0.1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    margin-bottom: var(--space-lg);
}

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

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-secondary);
    padding: var(--space-4xl) 0 var(--space-xl);
    border-top: 1px solid var(--border-color);
}

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

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

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

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

.footer-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--space-lg);
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: translateY(-2px);
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   Form Elements
   ============================================ */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--text-primary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--glow-blue);
}

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

/* ============================================
   Animations
   ============================================ */
@keyframes float {

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

    50% {
        transform: translateY(-20px);
    }
}

@keyframes rotate-float {
    0% {
        transform: rotate(45deg) translateY(0);
    }

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

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

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

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

@keyframes pulse {

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

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

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 20px var(--glow-blue);
    }

    50% {
        box-shadow: 0 0 40px var(--glow-blue), 0 0 60px var(--glow-cyan);
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger-children>* {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-children.active>*:nth-child(1) {
    animation: slide-up 0.6s 0.1s forwards;
}

.stagger-children.active>*:nth-child(2) {
    animation: slide-up 0.6s 0.2s forwards;
}

.stagger-children.active>*:nth-child(3) {
    animation: slide-up 0.6s 0.3s forwards;
}

.stagger-children.active>*:nth-child(4) {
    animation: slide-up 0.6s 0.4s forwards;
}

.stagger-children.active>*:nth-child(5) {
    animation: slide-up 0.6s 0.5s forwards;
}

.stagger-children.active>*:nth-child(6) {
    animation: slide-up 0.6s 0.6s forwards;
}

/* ============================================
   Process/Timeline
   ============================================ */
.process-timeline {
    position: relative;
    padding-left: var(--space-3xl);
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
}

.process-step {
    position: relative;
    padding-bottom: var(--space-2xl);
}

.process-step::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--space-3xl) + 8px);
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--bg-primary), var(--shadow-glow);
}

.process-number {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-cyan);
    margin-bottom: var(--space-sm);
}

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

.process-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ============================================
   Page Header (Inner Pages)
   ============================================ */
.page-header {
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-dark);
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header .section-label {
    margin-bottom: var(--space-lg);
}

.page-header-title {
    margin-bottom: var(--space-lg);
}

.page-header-description {
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1200px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

    .hero-bg {
        width: 100%;
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-glass);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--space-xl);
        gap: var(--space-lg);
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

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

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

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }

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

    .hero-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-lg);
    }

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

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

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   🪐 ANTI-GRAVITY / FLOATING ANIMATIONS
   ============================================ */

/* Anti-Gravity Float */
@keyframes anti-gravity-float {

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

    25% {
        transform: translateY(-15px) rotate(1deg);
    }

    50% {
        transform: translateY(-25px) rotate(-1deg);
    }

    75% {
        transform: translateY(-10px) rotate(0.5deg);
    }
}

.anti-gravity {
    animation: anti-gravity-float 8s ease-in-out infinite;
}

/* Zero-G Drift - Side-to-side ambient motion */
@keyframes zero-g-drift {

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

    25% {
        transform: translate(15px, -10px) rotate(2deg);
    }

    50% {
        transform: translate(-10px, -20px) rotate(-1deg);
    }

    75% {
        transform: translate(5px, -8px) rotate(1deg);
    }
}

.zero-g-drift {
    animation: zero-g-drift 12s ease-in-out infinite;
}

/* Orbital Hover - Gentle rotation around invisible axis */
@keyframes orbital-hover {
    0% {
        transform: rotateY(0deg) rotateX(10deg) translateZ(0);
    }

    50% {
        transform: rotateY(180deg) rotateX(-10deg) translateZ(20px);
    }

    100% {
        transform: rotateY(360deg) rotateX(10deg) translateZ(0);
    }
}

.orbital-hover {
    animation: orbital-hover 20s linear infinite;
    transform-style: preserve-3d;
}

/* Magnetic Levitation - Lift on hover, snap back */
.magnetic-levitate {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s ease;
}

.magnetic-levitate:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 40px var(--glow-blue);
}

/* Suspended Depth Motion - Multi-layer parallax */
.depth-layer-1 {
    animation: anti-gravity-float 6s ease-in-out infinite;
}

.depth-layer-2 {
    animation: anti-gravity-float 8s ease-in-out infinite 0.5s;
}

.depth-layer-3 {
    animation: anti-gravity-float 10s ease-in-out infinite 1s;
}

/* Neural Flow Animation */
@keyframes neural-pulse {

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

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

@keyframes neural-flow {
    0% {
        stroke-dashoffset: 100;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

/* Ambient Space Loop */
@keyframes space-drift {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

.ambient-space {
    background: radial-gradient(ellipse at 20% 50%, var(--glow-blue), transparent 50%),
        radial-gradient(ellipse at 80% 20%, var(--glow-violet), transparent 50%),
        radial-gradient(ellipse at 60% 80%, var(--glow-cyan), transparent 50%);
    background-size: 200% 200%;
    animation: space-drift 20s ease-in-out infinite;
}

/* ============================================
   ✨ ENTRANCE & SCROLL ANIMATIONS
   ============================================ */

/* Fade-Up Reveal */
@keyframes fade-up-reveal {
    from {
        opacity: 0;
        transform: translateY(60px);
        filter: blur(10px);
    }

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

.fade-up-reveal {
    opacity: 0;
    animation: fade-up-reveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Depth Rise In */
@keyframes depth-rise {
    from {
        opacity: 0;
        transform: translateY(80px) translateZ(-100px) scale(0.9);
    }

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

.depth-rise {
    opacity: 0;
    animation: depth-rise 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transform-style: preserve-3d;
}

/* Soft Slide + Blur In */
@keyframes slide-blur-in {
    from {
        opacity: 0;
        transform: translateX(-50px);
        filter: blur(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

.slide-blur-in {
    animation: slide-blur-in 0.8s ease-out forwards;
}

/* Scale-In with Ease */
@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scale-in {
    animation: scale-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ============================================
   🧠 ENHANCED HERO COMPONENTS
   ============================================ */

/* Animated Gradient Background */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient-bg {
    background: linear-gradient(-45deg,
            var(--bg-primary),
            #1a1f3a,
            #0d1a2d,
            var(--bg-secondary));
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

[data-theme="light"] .animated-gradient-bg {
    background: linear-gradient(-45deg,
            #ffffff,
            #f0f4ff,
            #e8f4fc,
            #f5f7fb);
    background-size: 400% 400%;
}

/* Glowing Text Animation */
@keyframes text-glow-pulse {

    0%,
    100% {
        text-shadow: 0 0 20px var(--glow-blue),
            0 0 40px var(--glow-blue),
            0 0 60px var(--glow-violet);
    }

    50% {
        text-shadow: 0 0 40px var(--glow-cyan),
            0 0 80px var(--glow-blue),
            0 0 100px var(--glow-violet);
    }
}

.text-glow-animated {
    animation: text-glow-pulse 3s ease-in-out infinite;
}

/* Animated Underline */
.animated-underline {
    position: relative;
    display: inline-block;
}

.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    animation: underline-grow 1.5s ease forwards 0.5s;
}

@keyframes underline-grow {
    to {
        transform: scaleX(1);
        transform-origin: left;
    }
}

/* ============================================
   🧩 ENHANCED UI COMPONENTS
   ============================================ */

/* Hover-Lift Feature Cards */
.hover-lift-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.hover-lift-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.hover-lift-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.hover-lift-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--accent-blue);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px var(--glow-blue);
}

.hover-lift-card:hover::before {
    opacity: 0.05;
}

.hover-lift-card:hover::after {
    left: 100%;
}

/* Glassmorphism Panels */
.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .glass-panel {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Neural Network Background */
.neural-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
    overflow: hidden;
}

.neural-node {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: neural-pulse 3s ease-in-out infinite;
    box-shadow: 0 0 15px var(--glow-cyan);
}

.neural-node:nth-child(odd) {
    animation-delay: -1.5s;
}

/* Ambient Grid Overlay */
.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(60px, 60px);
    }
}

/* ============================================
   🚀 ENHANCED CTA COMPONENTS
   ============================================ */

/* Pulsing CTA Button */
.btn-pulse {
    position: relative;
    animation: cta-pulse 2s ease-in-out infinite;
}

@keyframes cta-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 var(--glow-blue),
            var(--shadow-md);
    }

    50% {
        box-shadow: 0 0 0 15px transparent,
            var(--shadow-lg),
            0 0 40px var(--glow-blue);
    }
}

/* Glowing Border CTA */
.btn-glow-border {
    background: var(--bg-primary);
    border: 2px solid transparent;
    background-image: linear-gradient(var(--bg-primary), var(--bg-primary)),
        var(--gradient-primary);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: all 0.4s ease;
}

.btn-glow-border:hover {
    box-shadow: 0 0 30px var(--glow-blue),
        0 0 60px var(--glow-violet);
    transform: translateY(-3px);
}

/* Floating CTA with Particles */
.cta-floating {
    position: relative;
}

.cta-floating::before,
.cta-floating::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent-cyan);
    border-radius: 50%;
    opacity: 0;
    animation: particle-float 3s ease-in-out infinite;
}

.cta-floating::before {
    top: -20px;
    left: 20%;
    animation-delay: 0s;
}

.cta-floating::after {
    top: -15px;
    right: 25%;
    animation-delay: 1.5s;
    background: var(--accent-violet);
}

@keyframes particle-float {

    0%,
    100% {
        opacity: 0;
        transform: translateY(20px) scale(0);
    }

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

/* ============================================
   📊 ENHANCED STATS & COUNTERS
   ============================================ */

.stat-item-enhanced {
    text-align: center;
    padding: var(--space-2xl);
    position: relative;
}

.stat-item-enhanced::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.1;
    animation: stat-pulse 3s ease-in-out infinite;
}

@keyframes stat-pulse {

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

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.05;
    }
}

.stat-number-glow {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-glow-pulse 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

/* ============================================
   🎨 CURSOR REACTIVE LAYER
   ============================================ */

.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-blue), transparent 70%);
    pointer-events: none;
    z-index: 9999;
    opacity: 0.15;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    mix-blend-mode: screen;
}

[data-theme="light"] .cursor-glow {
    opacity: 0.08;
    mix-blend-mode: multiply;
}

/* ============================================
   🌟 TESTIMONIAL CAROUSEL ENHANCEMENTS
   ============================================ */

.testimonial-card-enhanced {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.testimonial-card-enhanced::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 8rem;
    font-family: serif;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.2;
    line-height: 1;
}

.testimonial-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 30px var(--glow-violet);
    border-color: var(--accent-violet);
}

/* ============================================
   🔄 LOADING & TRANSITION EFFECTS
   ============================================ */

/* Page Transition Overlay */
.page-transition {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.page-transition.active {
    opacity: 1;
    pointer-events: all;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg,
            var(--bg-secondary) 25%,
            var(--bg-card) 50%,
            var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   📱 ENHANCED MOBILE INTERACTIONS  
   ============================================ */

@media (max-width: 768px) {
    .anti-gravity {
        animation-duration: 12s;
    }

    .zero-g-drift {
        animation-duration: 16s;
    }

    .cursor-glow {
        display: none;
    }

    .hover-lift-card:hover {
        transform: translateY(-5px);
    }

    .magnetic-levitate:hover {
        transform: translateY(-8px) scale(1.01);
    }
}

/* ============================================
   ✨ EXTRA VISUAL POLISH
   ============================================ */

/* Rainbow Gradient Border */
@keyframes rainbow-border {
    0% {
        border-color: #3B82F6;
    }

    25% {
        border-color: #22D3EE;
    }

    50% {
        border-color: #8B5CF6;
    }

    75% {
        border-color: #EC4899;
    }

    100% {
        border-color: #3B82F6;
    }
}

.rainbow-border {
    border: 2px solid;
    animation: rainbow-border 4s linear infinite;
}

/* Shimmer Text Effect */
@keyframes shimmer-text {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.shimmer-text {
    background: linear-gradient(90deg,
            var(--text-primary) 0%,
            var(--accent-cyan) 25%,
            var(--accent-violet) 50%,
            var(--accent-cyan) 75%,
            var(--text-primary) 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer-text 3s linear infinite;
}

/* Ripple Effect on Click */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, var(--accent-blue) 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

.ripple:active::after {
    transform: scale(0);
    opacity: 0.3;
    transition: 0s;
}

/* ============================================
   🎯 CURSOR FIXES (Alignment & Visibility)
   ============================================ */
/* Hide native cursor ONLY when custom cursor is active */
body.has-custom-cursor,
body.has-custom-cursor * {
    cursor: none !important;
}

/* Restore cursor on mobile devices */
/* Mobile/Tablet Responsive */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 var(--space-md);
    }
    
    .nav-links {
        gap: var(--space-lg);
    }
    
    .nav-actions {
        gap: var(--space-md);
    }
    
    .nav-actions .auth-guest {
        gap: 6px;
    }
    
    .nav-actions .btn-sm {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .nav-actions .auth-guest {
        display: none;
    }
}

@media (pointer: coarse) {
    html,
    body,
    * {
        cursor: auto !important;
    }
    
    .cursor-dot,
    .cursor-circle {
        display: none !important;
    }
}

.cursor-dot,
.cursor-circle {
    position: fixed !important;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 99999 !important;
    border-radius: 50%;
    will-change: transform;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
    /* blend modes can make the cursor "disappear" depending on background */
    mix-blend-mode: normal;
}

.cursor-circle {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-blue);
    opacity: 0.5;
    transition: transform 0.2s, opacity 0.2s, border-color 0.2s;
}

/* Hover States */
body.cursor-hover .cursor-circle {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.8;
    border-color: var(--accent-cyan);
}

body.cursor-text .cursor-circle {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0.3;
}

/* Legacy hover support */
body.hovering .cursor-circle {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.8;
    border-color: var(--accent-cyan);
}