/* Main Styles */
:root {
    --neural-50: #f0f9ff;
    --neural-100: #e0f2fe;
    --neural-200: #bae6fd;
    --neural-300: #7dd3fc;
    --neural-400: #38bdf8;
    --neural-500: #0ea5e9;
    --neural-600: #0284c7;
    --neural-700: #0369a1;
    --neural-800: #075985;
    --neural-900: #0c4a6e;

    --cyber-50: #f0fdf4;
    --cyber-100: #dcfce7;
    --cyber-200: #bbf7d0;
    --cyber-300: #86efac;
    --cyber-400: #4ade80;
    --cyber-500: #22c55e;
    --cyber-600: #16a34a;
    --cyber-700: #15803d;
    --cyber-800: #166534;
    --cyber-900: #14532d;
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #000000;
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neural-400), var(--cyber-400));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--neural-500), var(--cyber-500));
}

/* Typography */
.font-display {
    font-family: 'Space Grotesk', system-ui, sans-serif;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Grid background */
.bg-grid-pattern {
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Form inputs */
.form-input {
    width: 100%;
    padding: 1rem;
    background-color: rgba(17, 24, 39, 0.8);
    border: 1px solid #374151;
    border-radius: 0.5rem;
    color: #ffffff;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--neural-400);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
    background-color: rgba(17, 24, 39, 1);
}

.form-input::placeholder {
    color: #9ca3af;
}

/* Tech cards */
.tech-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid #374151;
    border-radius: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: var(--neural-400);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.2);
    background: rgba(17, 24, 39, 0.8);
}

/* Gradients and effects */
.gradient-text {
    background: linear-gradient(135deg, var(--neural-400), var(--cyber-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.neural-glow {
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.3);
}

.cyber-glow {
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.3);
}

/* Button effects */
.btn-primary {
    background: linear-gradient(135deg, var(--neural-500), var(--cyber-500));
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(56, 189, 248, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid #6b7280;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-secondary:hover {
    border-color: var(--neural-400);
    background: rgba(56, 189, 248, 0.1);
    transform: translateY(-2px);
}

/* Cards and containers */
.card {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid #374151;
    border-radius: 1rem;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--neural-400);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Navigation styles */
.nav-blur {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Service card specific styles */
.service-card {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(31, 41, 55, 0.7));
    border: 1px solid #374151;
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.1), transparent);
    transition: left 0.8s ease;
}

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

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--neural-400);
    box-shadow: 0 25px 50px rgba(56, 189, 248, 0.2);
}

/* Stats animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-count {
    animation: countUp 0.6s ease-out forwards;
}

/* Floating elements */
.floating-element {
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
        line-height: 1.1;
    }

    .service-card {
        padding: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .tech-card {
        padding: 1rem;
    }
}

/* Focus states for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--neural-400);
    outline-offset: 2px;
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Custom utilities */
.blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.blur-lg {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.blur-xl {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* Glassmorphism effect */
.glass {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-light {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
