
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

.grid-bg {
    background-image: 
        linear-gradient(rgba(64, 64, 64, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(64, 64, 64, 0.2) 1px, transparent 1px);
    background-size: 32px 32px;
    background-position: 0 0, 0 0;
}

.feature-square {
    position: absolute;
    width: 64px;
    height: 64px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    border-radius: 4px;
}

.accent-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: rgba(52, 211, 153, 0.6);
    border-radius: 50%;
}

.connect-line-h {
    position: absolute;
    width: 32px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.4), transparent);
}

.connect-line-v {
    position: absolute;
    width: 1px;
    height: 32px;
    background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.4), transparent);
}

.letter-spacing-2 {
    letter-spacing: 0.2em;
}

.nav-item:hover .nav-dot {
    background-color: rgba(255, 255, 255, 0.5);
}

.nav-item[data-active="true"] .nav-dot {
    background-color: white;
}

.stat-item {
    transition: transform 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.tech-item {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(64, 64, 64, 0.5);
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    text-align: center;
    background: rgba(22, 22, 22, 0.5);
    backdrop-filter: blur(10px);
}

.tech-item:hover {
    border-color: rgba(139, 92, 246, 0.5);
    color: rgba(139, 92, 246, 1);
    transform: translateY(-2px);
    background: rgba(139, 92, 246, 0.1);
}

.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.case-study {
    transition: all 0.3s ease;
}

.case-study:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.3);
}

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

.secondary-btn:active {
    transform: scale(0.98);
}

/* Focus states for accessibility */
.nav-item:focus,
.primary-btn:focus,
.secondary-btn:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid rgba(139, 92, 246, 0.5);
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

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

::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #525252;
}

/* Form enhancements */
input, textarea, select {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .feature-square {
        width: 32px;
        height: 32px;
    }
    
    .connect-line-h {
        width: 16px;
    }
    
    .connect-line-v {
        height: 16px;
    }
    
    .grid-bg {
        background-size: 16px 16px;
    }
    
    .nav-item {
        font-size: 0.75rem;
    }
    
    .tech-item {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
}

/* Field error glow effect */
.field-error-glow {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3), 0 0 20px rgba(239, 68, 68, 0.4) !important;
    animation: errorPulse 0.5s ease-in-out;
}

@keyframes errorPulse {
    0% {
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3), 0 0 20px rgba(239, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.4), 0 0 30px rgba(239, 68, 68, 0.6);
    }
    100% {
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3), 0 0 20px rgba(239, 68, 68, 0.4);
    }
}

/* Field success glow effect */
.field-success-glow {
    background-color: rgba(31, 41, 55, 0.5) !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3), 0 0 15px rgba(16, 185, 129, 0.2) !important;
    transition: all 0.3s ease;
}

/* Force dark background for all form fields */
input.bg-gray-800\/50,
select.bg-gray-800\/50,
textarea.bg-gray-800\/50,
input[class*="bg-gray-800"],
select[class*="bg-gray-800"],
textarea[class*="bg-gray-800"] {
    background-color: rgba(38, 38, 38, 0.5) !important;
    color: white !important;
}

/* Force dark background on focus */
input.bg-gray-800\/50:focus,
select.bg-gray-800\/50:focus,
textarea.bg-gray-800\/50:focus,
input[class*="bg-gray-800"]:focus,
select[class*="bg-gray-800"]:focus,
textarea[class*="bg-gray-800"]:focus {
    background-color: rgba(38, 38, 38, 0.5) !important;
    color: white !important;
}

/* Override browser autofill completely */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgba(38, 38, 38, 0.5) inset !important;
    -webkit-text-fill-color: white !important;
    background-color: transparent !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

/* Animation for loading state */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Gradient text animation */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient {
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
}
