/* Custom styles for Mike's Quality Locksmith Service */

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

/* Navbar scroll effect */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(254, 252, 251, 0.97);
    box-shadow: 0 4px 20px rgba(123, 45, 59, 0.08);
}

#navbar.scrolled .nav-link {
    color: #7B2D3B;
}

#navbar.scrolled .text-burgundy-900 {
    color: #7B2D3B;
}

/* Service card hover */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Mobile nav links */
.mobile-nav-link {
    display: block;
    padding: 8px 12px;
    border-radius: 12px;
}

.mobile-nav-link:hover {
    background: rgba(123, 45, 59, 0.06);
}

/* Gallery hover */
.rounded-2xl.overflow-hidden {
    transition: transform 0.3s ease;
}

.rounded-2xl.overflow-hidden:hover {
    transform: scale(1.02);
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fefcfb;
}

::-webkit-scrollbar-thumb {
    background: #fad0d9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f5a5b8;
}

/* Selection color */
::selection {
    background: #fad0d9;
    color: #5c1f2b;
}
