/* ========================================
   EYENAK AI - Ultra Modern AI-Themed Home Page
   Premium Design with Glassmorphism & Neon Effects
   ======================================== */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --accent: #06b6d4;
    --accent-light: #22d3ee;
    --neon-blue: #00d4ff;
    --neon-purple: #b94fff;
    --neon-pink: #ff006e;
    --ai-gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --ai-gradient-2: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    --ai-gradient-3: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    --success: #10b981;
    --glow-primary: 0 0 40px rgba(99, 102, 241, 0.4);
    --glow-accent: 0 0 40px rgba(6, 182, 212, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #0a0a1a;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
    background-color: #0a0a1a;
    min-height: 100vh;
    position: relative;
}

[data-theme="light"] body,
.light-theme body {
    background-color: #f8fafc;
}

[data-theme="light"] html,
.light-theme html {
    background-color: #f8fafc;
}

/* ========== HERO SECTION - DARK IMMERSIVE DESIGN ========== */
.hero {
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    height: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px 40px;
    overflow: hidden;
    background-color: #0a0a1a;
    background-image: linear-gradient(180deg, 
        #0a0a1a 0%, 
        #0f0f2e 30%,
        #1a1a3e 60%,
        #0f0f2e 100%);
    z-index: 1;
    isolation: isolate;
    /* Ensure hero section stays visible and doesn't get removed from render tree */
    visibility: visible !important;
    opacity: 1 !important;
    transition: none !important;
    will-change: auto;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Light Theme Hero Override */
[data-theme="light"] .hero,
.light-theme .hero {
    background-color: #f8fafc;
    background-image: linear-gradient(180deg, 
        #f8fafc 0%, 
        #e2e8f0 30%,
        #cbd5e1 60%,
        #f1f5f9 100%);
}

[data-theme="light"] .hero-content,
.light-theme .hero-content {
    color: #1e293b;
}

[data-theme="light"] .text-gradient,
.light-theme .text-gradient {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .subtitle-text,
.light-theme .subtitle-text {
    color: rgba(30, 41, 59, 0.7);
}

[data-theme="light"] .capability,
.light-theme .capability {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(30, 41, 59, 0.6);
}

[data-theme="light"] .capability.active,
.light-theme .capability.active {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.5);
    color: #1e293b;
}

[data-theme="light"] .btn-outline,
.light-theme .btn-outline {
    background: rgba(0, 0, 0, 0.03);
    color: #1e293b;
    border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .stat-item,
.light-theme .stat-item {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .stat-number,
.light-theme .stat-number {
    color: #1e293b;
}

[data-theme="light"] .stat-label,
.light-theme .stat-label {
    color: rgba(30, 41, 59, 0.6);
}

[data-theme="light"] .card,
.light-theme .card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .card p,
.light-theme .card p {
    color: rgba(30, 41, 59, 0.7);
}

[data-theme="light"] .chat-window,
.light-theme .chat-window {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .chat-status,
.light-theme .chat-status {
    color: #1e293b;
}

[data-theme="light"] .ai-message .message-content,
.light-theme .ai-message .message-content {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(30, 41, 59, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .ai-status-indicator,
.light-theme .ai-status-indicator {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .ai-status-text,
.light-theme .ai-status-text {
    color: #1e293b;
}

[data-theme="light"] .chat-header,
.light-theme .chat-header {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .animated-badge,
.light-theme .animated-badge {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    color: #1e293b;
}

[data-theme="light"] .orb,
.light-theme .orb {
    opacity: 0.5;
}

[data-theme="light"] .matrix-canvas,
[data-theme="light"] .neural-canvas,
[data-theme="light"] .data-streams-canvas,
.light-theme .matrix-canvas,
.light-theme .neural-canvas,
.light-theme .data-streams-canvas {
    opacity: 0.1;
}

/* Animated Gradient Mesh Background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    animation: meshGradient 15s ease-in-out infinite;
    z-index: 1;
}

@keyframes meshGradient {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: inherit;
    will-change: transform;
    transform: translateZ(0);
    /* Ensure hero background stays visible */
    visibility: visible !important;
    opacity: 1 !important;
    transition: none !important;
}

/* Ensure all hero child elements stay visible */
.hero > *,
.hero-background > *,
.hero-content > * {
    visibility: visible;
}

/* Enhanced Canvas Layers */
.canvas-animation,
.neural-canvas,
.matrix-canvas,
.data-streams-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    will-change: contents;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.matrix-canvas { z-index: 1; opacity: 0.15; }
.canvas-animation { z-index: 2; opacity: 0.4; }
.neural-canvas { z-index: 3; opacity: 0.35; }
.data-streams-canvas { z-index: 4; opacity: 0.25; }

/* Cyberpunk Grid */
.holographic-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 5;
    perspective: 1000px;
    transform: rotateX(60deg) translateY(-50%);
    transform-origin: center top;
    opacity: 0.4;
}

/* Circuit Lines Container */
.circuit-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    pointer-events: none;
    overflow: hidden;
}

.circuit-svg { width: 100%; height: 100%; }

.circuit-path {
    fill: none;
    stroke: url(#circuitGrad);
    stroke-width: 1.5;
    opacity: 0.3;
    filter: drop-shadow(0 0 4px rgba(99, 102, 241, 0.5));
}

@keyframes circuitDraw {
    0% { stroke-dashoffset: 600; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -600; }
}

.node-pulse {
    fill: var(--primary);
    opacity: 0.8;
    filter: drop-shadow(0 0 8px var(--primary));
}

@keyframes nodePulse {
    0%, 100% { r: 4; opacity: 0.6; }
    50% { r: 8; opacity: 1; }
}

/* Gradient Overlay - Subtle */
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(10, 10, 26, 0.3) 100%);
    z-index: 7;
}

/* Floating Orbs - Premium Glass Effect */
.orb {
    position: absolute;
    border-radius: 50%;
    z-index: 4;
    pointer-events: none;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 60%);
    top: -10%;
    left: -10%;
    filter: blur(80px);
    animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 60%);
    top: 40%;
    right: -10%;
    filter: blur(80px);
    animation: orbFloat2 25s ease-in-out infinite;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 60%);
    bottom: -5%;
    left: 30%;
    filter: blur(60px);
    animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, 30px) scale(1.1); }
    66% { transform: translate(-30px, 50px) scale(0.95); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, -30px) scale(1.05); }
    66% { transform: translate(30px, -50px) scale(0.9); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -40px) scale(1.15); }
}

/* Scan Overlay - CRT Effect */
.scan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.015) 2px,
        rgba(0, 0, 0, 0.015) 4px
    );
    z-index: 8;
    pointer-events: none;
}

/* Animated Shapes */
.animated-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    filter: blur(40px);
}

.shape-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -150px;
    animation: morphShape 20s ease-in-out infinite;
}

.shape-2 {
    width: 500px;
    height: 500px;
    bottom: -100px;
    right: -100px;
    animation: morphShape 25s ease-in-out infinite 5s;
}

.shape-3 {
    width: 400px;
    height: 400px;
    top: 50%;
    right: 10%;
    animation: morphShape 22s ease-in-out infinite 10s;
}

@keyframes morphShape {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    25% { transform: translate(30px, 50px) scale(1.1) rotate(90deg); }
    50% { transform: translate(-20px, 30px) scale(0.9) rotate(180deg); }
    75% { transform: translate(40px, -20px) scale(1.05) rotate(270deg); }
}

/* ========== HERO CONTENT ========== */
.hero-content {
    max-width: 1100px;
    color: #ffffff;
    z-index: 10;
    text-align: center;
    position: relative;
    /* Ensure hero content stays visible */
    visibility: visible !important;
    opacity: 1 !important;
    transition: none !important;
}

/* Premium Animated Badge */
.animated-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 20px;
    border-radius: 100px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    margin-bottom: 10px;
    animation: slideDown 0.8s ease-out, badgeGlow 3s ease-in-out infinite;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 30px rgba(99, 102, 241, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
    50% { box-shadow: 0 0 50px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15); }
}

.badge-pulse {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 15px var(--success);
}

.ai-icon {
    display: flex;
    align-items: center;
    animation: iconRotate 4s ease-in-out infinite;
    color: var(--primary-light);
}

@keyframes iconRotate {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 15px var(--success); }
    50% { opacity: 0.7; transform: scale(1.2); box-shadow: 0 0 25px var(--success); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Title - Dramatic Typography */
.hero-title {
    font-size: clamp(48px, 7vw, 80px);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
    animation: fadeInUp 1s ease-out;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 50%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    filter: drop-shadow(0 0 30px rgba(165, 180, 252, 0.3));
    font-size: 0.8em;
}

.text-animate {
    display: block;
    position: relative;
    min-height: 1.2em;
}

.typing-text {
    display: inline-block;
    background: var(--ai-gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-right: 4px solid var(--primary-light);
    animation: blink 1s step-end infinite;
    padding-right: 8px;
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.4));
    font-size: .7em;
    font-weight: 700;
    min-width: 50px;
    letter-spacing: -0.5px;
}

@keyframes blink {
    50% { border-color: transparent; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.3s backwards;
    color: rgba(255, 255, 255, 0.75);
}

.subtitle-text {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    font-weight: 400;
}

/* AI Capabilities - Pill Tags */
.ai-capabilities {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.capability {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.capability.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

/* Hero Buttons - Premium Glass Design */
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 25px;
    animation: fadeInUp 1s ease-out 0.5s backwards;
}

.btn {
    padding: 14px 32px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    outline: none;
}

.btn:focus-visible {
    outline: 2px solid rgba(99, 102, 241, 0.8);
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
    position: relative;
}

.btn::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.6s ease;
    z-index: 1;
}

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

.btn-primary {
    background: var(--ai-gradient-2);
    color: #ffffff;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-primary:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 25px 60px rgba(99, 102, 241, 0.6),
                0 0 80px rgba(139, 92, 246, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

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

.btn-glow {
    animation: buttonGlow 3s ease-in-out infinite;
}

@keyframes buttonGlow {
    0%, 100% { box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 10px 60px rgba(99, 102, 241, 0.6), 0 0 40px rgba(139, 92, 246, 0.4); }
}

.btn-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.3) 50%, transparent 60%);
    transform: translateX(-100%);
    animation: shine 4s infinite;
}

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

.btn-outline {
    background: rgba(99, 102, 241, 0.05);
    color: #ffffff;
    border: 2px solid transparent;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.05), rgba(99, 102, 241, 0.05)),
        var(--ai-gradient-2);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: transparent;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.15)),
        var(--ai-gradient-2);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.25),
                0 0 40px rgba(99, 102, 241, 0.2);
    color: #ffffff;
}

.btn-outline:active {
    transform: translateY(-2px);
}

/* Hero Stats - Glass Cards */
.hero-stats {
    display: flex;
    gap: 24px;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.7s backwards;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 140px;
    padding: 20px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 40px rgba(99, 102, 241, 0.15);
}

.stat-icon {
    font-size: 24px;
    margin-bottom: 6px;
    background: var(--ai-gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
}

.stat-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -1px;
}

.stat-number.counter {
    min-width: 60px;
    display: inline-block;
}

.stat-prefix {
    font-size: 32px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
}

.stat-suffix {
    font-size: 24px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
}

.stat-plus {
    font-size: 24px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

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

/* Floating Cards - 3D Glass Effect */
.floating-cards {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 9;
    pointer-events: none;
}

.card {
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent);
    border-radius: 24px 24px 0 0;
}

.card-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 60%);
    animation: cardGlow 4s ease-in-out infinite;
    opacity: 0;
}

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

.card i {
    font-size: 32px;
    background: var(--ai-gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.5));
    position: relative;
    z-index: 1;
}

.card p {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1;
}

.card-1 {
    top: 12%;
    left: 5%;
    animation: floatCard1 10s ease-in-out infinite;
}

.card-2 {
    top: 40%;
    right: -10%;
    animation: floatCard2 12s ease-in-out infinite;
}

.card-3 {
    bottom: 0%;
    left: 83%;
    animation: floatCard3 11s ease-in-out infinite;
}

@keyframes floatCard1 {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

@keyframes floatCard2 {
    0%, 100% { transform: translateY(0) rotate(5deg); }
    50% { transform: translateY(-25px) rotate(-5deg); }
}

@keyframes floatCard3 {
    0%, 100% { transform: translateY(0) rotate(3deg); }
    50% { transform: translateY(-35px) rotate(-3deg); }
}

/* AI Chat Demo - Premium Design */
.ai-chat-demo {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 15;
    animation: slideInRight 1.2s ease-out 1s backwards;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

.chat-window {
    width: 300px;
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 15px var(--success);
}

.chat-model {
    padding: 8px 16px;
    background: var(--ai-gradient-2);
    border: none;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.chat-messages {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 90px;
}

.message {
    display: flex;
    gap: 12px;
    animation: messageSlide 0.4s ease-out;
}

@keyframes messageSlide {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-message {
    justify-content: flex-end;
}

.user-message .message-content {
    background: var(--ai-gradient-2);
    color: #ffffff;
    padding: 14px 18px;
    border-radius: 20px 20px 6px 20px;
    font-size: 14px;
    max-width: 75%;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.ai-message {
    align-items: flex-start;
}

.ai-avatar {
    width: 38px;
    height: 38px;
    background: var(--ai-gradient-3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
}

.ai-message .message-content {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    padding: 14px 18px;
    border-radius: 6px 20px 20px 20px;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 85%;
}

.typing {
    display: flex;
    gap: 6px;
    padding: 18px !important;
}

.typing-dot {
    width: 10px;
    height: 10px;
    background: var(--primary-light);
    border-radius: 50%;
    animation: typingDot 1.4s infinite;
}

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

@keyframes typingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-12px); opacity: 1; }
}

/* AI Brain Visualization */
.ai-brain-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0.15;
    pointer-events: none;
}

.brain-pulse {
    width: 300px;
    height: 300px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    animation: brainPulse 3s ease-out infinite;
}

@keyframes brainPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(2); opacity: 0; }
}

.brain-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.brain-circle {
    fill: none;
    stroke: rgba(99, 102, 241, 0.3);
    stroke-width: 1;
    animation: drawCircle 3s ease-out infinite;
}

@keyframes drawCircle {
    0% { stroke-dasharray: 0 251; }
    100% { stroke-dasharray: 251 0; }
}

.brain-dot {
    fill: var(--primary-light);
    animation: brainDotPulse 2s ease-in-out infinite;
}

.brain-dot-1 { animation-delay: 0s; }
.brain-dot-2 { animation-delay: 0.2s; }
.brain-dot-3 { animation-delay: 0.4s; }
.brain-dot-4 { animation-delay: 0.6s; }
.brain-dot-5 { animation-delay: 0.8s; }

@keyframes brainDotPulse {
    0%, 100% { opacity: 0.3; r: 3; }
    50% { opacity: 1; r: 5; }
}

/* Data Particles */
.data-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 6;
    pointer-events: none;
}

.data-particle {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    color: rgba(99, 102, 241, 0.4);
    left: var(--x);
    top: var(--y);
    animation: floatParticle 8s ease-in-out infinite;
    animation-delay: var(--delay);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

@keyframes floatParticle {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-30px) rotate(180deg); opacity: 0.7; }
}

/* Scan Line Effect */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(99, 102, 241, 0.5), 
        rgba(139, 92, 246, 0.8),
        rgba(99, 102, 241, 0.5),
        transparent);
    z-index: 20;
    animation: scanLine 4s linear infinite;
    filter: blur(1px);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    opacity: 0.1;
}

@keyframes scanLine {
    0% { top: -10px; }
    100% { top: 100%; }
}

/* AI Status Indicator */
.ai-status-indicator {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 24px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    animation: slideInLeft 1s ease-out 2s backwards;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 20;
    animation: fadeInUp 1s ease-out 1.5s backwards;
    cursor: pointer;
}

.scroll-text {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scrollBounce 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.scroll-arrow i {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.scroll-indicator:hover .scroll-arrow {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.scroll-indicator:hover .scroll-arrow i {
    color: var(--primary-light);
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(8px);
    }
    60% {
        transform: translateY(4px);
    }
}

[data-theme="light"] .scroll-text,
.light-theme .scroll-text {
    color: rgba(30, 41, 59, 0.5);
}

[data-theme="light"] .scroll-arrow,
.light-theme .scroll-arrow {
    border-color: rgba(30, 41, 59, 0.2);
}

[data-theme="light"] .scroll-arrow i,
.light-theme .scroll-arrow i {
    color: rgba(30, 41, 59, 0.6);
}

@keyframes slideInLeft {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.ai-status-dot {
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 20px var(--success);
}

.ai-status-text {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

/* ========== FEATURES SECTION ========== */
.features {
    padding: 120px 40px;
    background: #0d1117;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.08), transparent);
    pointer-events: none;
    z-index: 0;
}

[data-theme="light"] .features,
.light-theme .features {
    background: #f8fafc;
}

[data-theme="light"] .features::before,
.light-theme .features::before {
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.8), transparent);
}

.features-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 100px;
    animation: fadeInUp 1s ease-out;
}

.section-header h2 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    background: linear-gradient(135deg, var(--text-primary, #f0f6fc) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary, #8b949e);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    max-width: 1440px;
    margin: 0 auto;
}

.feature-card {
    background-color: #161b22;
    border-radius: 24px;
    padding: 40px;
    border: 1px solid #30363d;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-height: 320px;
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ai-gradient-2);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-12px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4),
                0 0 80px rgba(99, 102, 241, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: rgba(99, 102, 241, 0.03);
}

.feature-card:hover::before { opacity: 1; }
.feature-card:hover::after { opacity: 1; }

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(99, 102, 241, 0.12);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    font-size: 32px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1.5px solid rgba(99, 102, 241, 0.25);
}

.feature-icon i {
    background: var(--ai-gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card:hover .feature-icon {
    background: rgba(99, 102, 241, 0.25);
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
    border-color: rgba(99, 102, 241, 0.5);
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary, #f0f6fc);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-secondary, #8b949e);
    line-height: 1.8;
    margin-bottom: 24px;
    flex-grow: 1;
}

.feature-card-footer {
    padding-top: 24px;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    margin-top: auto;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(99, 102, 241, 0.9);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 6px;
    padding: 2px 4px;
    outline: none;
}

.feature-link:focus-visible {
    outline: 2px solid rgba(99, 102, 241, 0.8);
    outline-offset: 2px;
}

.feature-link i {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-link:hover {
    color: #ffffff;
    gap: 14px;
}

.feature-link:hover i {
    transform: translateX(6px);
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(99, 102, 241, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
    mix-blend-mode: difference;
}

.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--ai-gradient-2);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.8);
}

.custom-cursor.cursor-hover {
    width: 60px;
    height: 60px;
    border-color: var(--primary-light);
    background: rgba(99, 102, 241, 0.1);
}

/* Button Ripple */
.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

/* Floating AI Texts */
.ai-float-text {
    position: absolute;
    bottom: 0;
    font-size: 14px;
    font-weight: 700;
    color: rgba(99, 102, 241, 0.2);
    pointer-events: none;
    animation: floatTextUp 10s linear forwards;
    z-index: 5;
    text-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

@keyframes floatTextUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.2; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* Hidden Card for Scroll Reveal */
.hidden-card {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hidden-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .card-2 { right: -5%; }
    .features { padding: 100px 32px; }
}

@media (max-width: 1024px) {
    .hero { padding: 80px 24px 50px; }
    .floating-cards { display: none; }
    .ai-chat-demo { 
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 80px;
    }
    .chat-window { width: 100%; max-width: 450px; margin: 0 auto; }
    .custom-cursor, .cursor-dot { display: none; }
    .feature-grid { gap: 28px; }
}

@media (max-width: 768px) {
    .hero { padding: 90px 20px 50px; }
    .hero-title { letter-spacing: -1px; word-spacing: -4px; }
    .hero-subtitle { font-size: 16px; margin-bottom: 32px; }
    .hero-stats { gap: 14px; flex-direction: column; }
    .stat-item { min-width: 100%; padding: 20px 18px; }
    .stat-number { font-size: 28px; }
    .hero-buttons { flex-direction: column; align-items: center; gap: 12px; }
    .btn { width: 100%; max-width: 280px; justify-content: center; padding: 12px 28px; }
    .ai-capabilities { gap: 8px; flex-direction: column; align-items: center; }
    .capability { padding: 8px 14px; font-size: 12px; width: fit-content; }
    .features { padding: 80px 20px; }
    .section-header { margin-bottom: 60px; }
    .section-header h2 { font-size: clamp(28px, 4vw, 42px); }
    .feature-grid { grid-template-columns: 1fr; gap: 20px; }
    .feature-card { padding: 32px 24px; min-height: auto; }
    .feature-icon { width: 70px; height: 70px; font-size: 28px; margin-bottom: 20px; }
    .ai-brain-container { display: none; }
    .data-particles { display: none; }
    .scan-line { display: none; }
    .ai-status-indicator { 
        bottom: 20px; 
        left: 50%; 
        transform: translateX(-50%);
        padding: 10px 18px;
    }
}

@media (max-width: 480px) {
    .hero { padding: 80px 16px 40px; }
    .animated-badge { padding: 8px 16px; font-size: 11px; }
    .hero-title { font-size: clamp(36px, 8vw, 52px); }
    .subtitle-text { display: block; }
    .stat-item { min-width: 100%; }
    .hero-stats { flex-direction: column; align-items: center; }
    .btn { font-size: 14px; padding: 12px 24px; }
    .feature-card { padding: 24px 18px; }
    .feature-grid { gap: 16px; }
    .section-header h2 { font-size: clamp(24px, 5vw, 36px); margin-bottom: 12px; }
    .section-header p { font-size: 14px; }
    .feature-icon { width: 60px; height: 60px; font-size: 24px; }
    .feature-card h3 { font-size: 20px; }
    .feature-card p { font-size: 14px; }
    .chat-window { max-width: 100%; width: 95%; }
}

/* ========== ADDITIONAL PREMIUM EFFECTS ========== */


@keyframes neonFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 
            0 0 10px rgba(99, 102, 241, 0.8),
            0 0 20px rgba(99, 102, 241, 0.6),
            0 0 30px rgba(99, 102, 241, 0.4),
            0 0 40px rgba(99, 102, 241, 0.2);
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* Holographic Border Effect */
.holographic-border {
    position: relative;
    overflow: hidden;
}

.holographic-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #ff0000, #ff7300, #fffb00, 
        #48ff00, #00ffd5, #002bff, 
        #7a00ff, #ff00c8, #ff0000);
    background-size: 400%;
    z-index: -1;
    animation: holoBorder 20s linear infinite;
    filter: blur(5px);
    opacity: 0.4;
    border-radius: inherit;
}

@keyframes holoBorder {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

/* Floating Emoji Animation */
@keyframes emojiFloat {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

.emoji-float {
    display: inline-block;
    animation: emojiFloat 3s ease-in-out infinite;
}

/* Gradient Border Cards */
.gradient-border-card {
    position: relative;
}

.gradient-border-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: var(--ai-gradient-2);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.gradient-border-card:hover::after {
    opacity: 1;
}

/* Particle Burst Effect */
.particle-burst {
    position: absolute;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: particleBurst 1s ease-out forwards;
}

@keyframes particleBurst {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0) translate(var(--tx, 0), var(--ty, 0)); opacity: 0; }
}

/* Shimmer Loading Effect */
.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

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

/* Magnetic Hover Effect */
.magnetic-element {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glow On Scroll */
.glow-on-scroll {
    transition: box-shadow 0.5s ease;
}

.glow-on-scroll.in-view {
    box-shadow: 0 0 100px rgba(99, 102, 241, 0.3);
}

/* Text Reveal Animation */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    animation: textReveal 0.8s ease forwards;
}

@keyframes textReveal {
    to { transform: translateY(0); }
}

/* Staggered Animation Delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Morphing Shapes */
.morph-shape {
    animation: morphing 8s ease-in-out infinite;
}

@keyframes morphing {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

/* Cyber Grid Background */
.cyber-grid {
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* Glitch Text Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c8;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch1 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch2 5s infinite linear alternate-reverse;
}

@keyframes glitch1 {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    25% { clip: rect(62px, 9999px, 42px, 0); }
    50% { clip: rect(16px, 9999px, 91px, 0); }
    75% { clip: rect(53px, 9999px, 72px, 0); }
    100% { clip: rect(39px, 9999px, 81px, 0); }
}

@keyframes glitch2 {
    0% { clip: rect(65px, 9999px, 26px, 0); }
    25% { clip: rect(35px, 9999px, 89px, 0); }
    50% { clip: rect(78px, 9999px, 48px, 0); }
    75% { clip: rect(22px, 9999px, 67px, 0); }
    100% { clip: rect(51px, 9999px, 94px, 0); }
}

/* Spotlight Effect */
.spotlight {
    position: relative;
    overflow: hidden;
}

.spotlight::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    opacity: 0;
    transform: translate(-100%, -100%);
    transition: opacity 0.3s;
}

.spotlight:hover::after {
    opacity: 1;
    animation: spotlightMove 2s ease infinite;
}

@keyframes spotlightMove {
    0% { transform: translate(-100%, -100%); }
    100% { transform: translate(100%, 100%); }
}

/* Feature Card Light Theme */
[data-theme="light"] .feature-card,
.light-theme .feature-card {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .feature-card h3,
.light-theme .feature-card h3 {
    color: #1e293b;
}

[data-theme="light"] .feature-card p,
.light-theme .feature-card p {
    color: #64748b;
}

[data-theme="light"] .feature-icon,
.light-theme .feature-icon {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .section-header h2,
.light-theme .section-header h2 {
    background: linear-gradient(135deg, #1e293b 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .section-header p,
.light-theme .section-header p {
    color: #64748b;
}