/* Custom styles for Delynn's Barber Shop */

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

/* Base font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Menu button animation */
.menu-line {
    display: block;
}

#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) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.4rem;
    margin-right: 0;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(10, 8, 6, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(222, 181, 88, 0.08);
}

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

::-webkit-scrollbar-track {
    background: #0a0806;
}

::-webkit-scrollbar-thumb {
    background: rgba(222, 181, 88, 0.25);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(222, 181, 88, 0.4);
}

/* Selection color */
::selection {
    background: rgba(222, 181, 88, 0.3);
    color: #fdfbf7;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .group:hover img {
        transform: none;
    }
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #12100c inset !important;
    -webkit-text-fill-color: #faf5e9 !important;
}

/* Select dropdown styling */
select option {
    background: #12100c;
    color: #faf5e9;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #1a1510 0%, #12100c 100%);
}
