/* Custom styles for Rusted Roots Hair Lounge */

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

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

/* Pulse animation for hero orbs */
@keyframes pulse-slow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

/* Reveal animations - progressive enhancement with prefers-reduced-motion */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Service card hover effect */
.service-card {
    backdrop-filter: blur(8px);
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(13, 10, 7, 0.95) !important;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(201, 149, 106, 0.1);
}

/* Mobile menu transitions */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.menu-open {
    opacity: 1;
    pointer-events: all;
}

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

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

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

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

/* Selection color */
::selection {
    background: rgba(201, 149, 106, 0.3);
    color: #faf5ea;
}

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

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

/* Gold shimmer effect for special elements */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Button ripple effect */
button::after, a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

button:hover::after, a:hover::after {
    opacity: 1;
}
