/* Base & Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { min-height: 100vh; }

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0,0,0,0.15);
}

/* Service card image container fix */
.service-card img {
    will-change: transform;
}

/* Gallery item cursor */
.gallery-item {
    cursor: pointer;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.2s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f3f4f6; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #E8655B;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #E8655B;
    color: white;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .service-card, .gallery-item {
        transform: none !important;
    }
    .gallery-item img {
        transition: none !important;
    }
}
