/* Variables CSS */
:root {
    --bg-primary: #030712;
    --text-primary: #f9fafb;
    --card-bg: rgba(17, 24, 39, 0.8);
    --accent-light: #60a5fa;
    --accent-medium: #a78bfa;
    --accent-dark: #f472b6;
}

/* Base Styles */
body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-display: swap;
    min-height: max(884px, 100dvh);
}

/* Grid Background */
.grid-bg {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.08) 0%, transparent 40%),
        linear-gradient(to right, rgba(59, 130, 246, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
    background-size: 80px 80px, 80px 80px, 100px 100px, 50px 50px, 50px 50px;
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
}

/* Glass Header */
.glass-header {
    background: linear-gradient(135deg, rgba(3, 7, 18, 0.95), rgba(15, 23, 42, 0.9));
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 60px rgba(99, 102, 241, 0.05);
}

/* Service Cards */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.service-card::before {
    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;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Stat Cards */
.stat-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::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.7s;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

/* Tech Badges */
.tech-badge {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    margin: 0.3rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: rgba(99, 102, 241, 0.15);
    color: #e0e7ff;
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.1);
}

.tech-badge::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: all 0.4s;
}

.tech-badge:hover::before {
    width: 100%;
    height: 100%;
}

.tech-badge:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
}

/* Process Steps */
.process-step {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3), 0 0 40px rgba(99, 102, 241, 0.05);
}

.process-step::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.5s;
}

.process-step:hover::after {
    opacity: 1;
}

.process-step:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

/* Neon Effects */
.neon-glow {
    box-shadow: 
        0 0 20px rgba(59, 130, 246, 0.5),
        0 0 40px rgba(139, 92, 246, 0.3),
        0 0 60px rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.neon-glow:hover {
    box-shadow: 
        0 0 30px rgba(59, 130, 246, 0.7),
        0 0 60px rgba(139, 92, 246, 0.4),
        0 0 90px rgba(59, 130, 246, 0.2);
}

.neon-border {
    border: 1px solid rgba(37, 106, 244, 0.3);
}

/* Carousel */
.carousel-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.carousel-dot.active {
    width: 24px;
}

/* Navigation */
.nav-link {
    color: #9ca3af;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #60a5fa;
}

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

.nav-menu-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #256af4, #a855f7);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu-item:hover::after {
    width: 60%;
}

/* Mobile Menu Animation */
#mobile-menu {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#mobile-menu > div:last-child {
    animation: slideIn 0.3s ease;
}

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

/* Form Elements */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
