/* Custom styles and overrides */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
    background: #e5d5c5;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C05A43;
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(253, 248, 240, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Service card animations */
.service-card {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Fade-in animations for below-fold content */
.fade-in-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Button hover effects */
button, a {
    transition: all 0.3s ease;
}

/* Input focus styles */
input:focus, textarea:focus {
    outline: none;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent layout shift */
img {
    object-fit: cover;
}

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