/* Custom styles for True Barber */

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

/* Scroll reveal base - always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only animate when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

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

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

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

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

/* Selection color */
::selection {
    background: #c9956b;
    color: #0f172a;
}

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

/* Form focus transitions */
input:focus,
textarea:focus,
select:focus {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Image loading placeholder */
img {
    background-color: #ebe8e0;
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease forwards;
}

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

/* Hero gradient animation */
#hero {
    background-size: 400% 400%;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

#hero {
    animation: gradientShift 15s ease infinite;
}

/* Card hover glow */
.group:hover .group-hover\\:scale-110 {
    box-shadow: 0 0 30px rgba(212, 165, 116, 0.3);
}

/* Gold accent underline for headings */
.font-serif::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #c9956b, #d4a574);
    border-radius: 2px;
    margin-top: 12px;
}
