/* Ford's Barbershop — Custom Styles */

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

/* Custom selection color */
::selection {
    background-color: rgba(212, 128, 10, 0.3);
    color: #F7F0F5;
}

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

/* Service card hover effect */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.5s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(74, 25, 66, 0.3);
}

/* Navbar transition */
#navbar.scrolled {
    background-color: rgba(26, 10, 23, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(74, 25, 66, 0.5);
}

/* Mobile menu active state */
#mobileMenu.active {
    opacity: 1;
    pointer-events: all;
}

/* Menu button animation */
#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 6rem;
    transform: rotate(-45deg) translate(4px, -4px);
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

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

/* Print styles */
@media print {
    nav, #backToTop, #contactForm, .service-card {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}

/* Mobile specific adjustments */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.1;
    }
}

/* Image loading placeholder */
img {
    background-color: rgba(74, 25, 66, 0.2);
}

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

::-webkit-scrollbar-track {
    background: #1A0A17;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #6B3A61;
}
