/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f1117;
}
::-webkit-scrollbar-thumb {
    background: #333748;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4a4f62;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(15, 17, 23, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(74, 79, 98, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Service card hover */
.service-card {
    transform: translateY(0);
}
.service-card:hover {
    transform: translateY(-4px);
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* CTA button pulse */
@keyframes subtlePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 74, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(255, 107, 74, 0); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .service-card:hover { transform: none; }
    img:hover { transform: none; }
}
