/* Custom styles and overrides */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f9f6ee;
}
::-webkit-scrollbar-thumb {
    background: #d08d75;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b85a40;
}

/* Service card hover effect */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #b85a40, #eadeb8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.5s; }

/* Mobile menu button animation */
.menu-open .line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.menu-open .line:nth-child(2) {
    transform: rotate(-45deg) translate(4px, -4px);
}

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

.nav-scrolled .line {
    background: #1f2937 !important;
}

/* Fade-in animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

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

input:focus + label,
textarea:focus + label {
    color: #b85a40;
}

/* Image hover zoom */
aspect-\[4\/5\] img {
    transition: transform 0.6s ease;
}

aspect-\[4\/5\] img:hover {
    transform: scale(1.02);
}
