/* Custom styles for Hard Rock Hair Studio */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0f0a;
}
::-webkit-scrollbar-thumb {
    background: #2a4a2a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #365c36;
}

/* Selection color */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #faf8f4;
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service card hover glow */
.service-card .group:hover .absolute {
    opacity: 1;
}

/* Gold shimmer effect on hover */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

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

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

/* Navbar transition */
#navbar.scrolled {
    background: rgba(10, 15, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 67, 0.1);
}

/* Floating card animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-12px) rotate(var(--rotation, 0deg)); }
}

@media (prefers-reduced-motion: no-preference) {
    .float-1 { animation: float 6s ease-in-out infinite; --rotation: 2deg; }
    .float-2 { animation: float 7s ease-in-out infinite 1s; --rotation: -1deg; }
    .float-3 { animation: float 5.5s ease-in-out infinite 0.5s; --rotation: 1deg; }
}

/* Image hover zoom */
.group img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Button focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d4a843;
    outline-offset: 2px;
}

/* Select dropdown styling */
select option {
    background: #1a261a;
    color: #faf8f4;
}
