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

body {
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a2540;
}
::-webkit-scrollbar-thumb {
    background: #204c78;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2fb56a;
}

/* Selection */
::selection {
    background: rgba(47, 181, 106, 0.3);
    color: #f0f4f8;
}

/* Service card tilt effect */
.service-card {
    transform: translateY(0);
    will-change: transform;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(3, 10, 20, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(32, 76, 120, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Gallery hover overlay */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

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

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

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