/* ===================================
   Finally My Salon Hair Studio
   Premium Dark Luxury Styles
   =================================== */

/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background-color: rgba(212, 165, 116, 0.3);
    color: #e8d5c4;
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(212, 165, 116, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 165, 116, 0.5);
}

/* ===================================
   Reveal Animations (Progressive Enhancement)
   Only applied when JS is enabled and reduced motion is not preferred
   =================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal:not(.revealed) {
        opacity: 1;
        transform: translateY(30px);
    }
    
    /* Staggered delays for grid items */
    .service-card:nth-child(1) { transition-delay: 0.05s; }
    .service-card:nth-child(2) { transition-delay: 0.1s; }
    .service-card:nth-child(3) { transition-delay: 0.15s; }
    .service-card:nth-child(4) { transition-delay: 0.2s; }
    .service-card:nth-child(5) { transition-delay: 0.25s; }
    .service-card:nth-child(6) { transition-delay: 0.3s; }
}

/* When JS is disabled, all reveals are visible by default */
.no-js .reveal {
    opacity: 1 !important;
    transform: none !important;
}

/* ===================================
   Navbar
   =================================== */
#navbar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(15, 15, 15, 0.6);
    border-bottom: 1px solid rgba(232, 213, 196, 0.05);
}

#navbar.scrolled {
    background: rgba(15, 15, 15, 0.95);
    border-bottom: 1px solid rgba(212, 165, 116, 0.15);
}

/* ===================================
   Mobile Menu
   =================================== */
#mobile-menu {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* ===================================
   Service Cards
   =================================== */
.service-card {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.9), rgba(15, 15, 15, 0.95));
    border: 1px solid rgba(232, 213, 196, 0.05);
}

.service-card:hover {
    border-color: rgba(212, 165, 116, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                0 0 40px rgba(212, 165, 116, 0.05);
    transform: translateY(-4px);
}

/* ===================================
   Buttons
   =================================== */
button[type="submit"]:hover {
    box-shadow: 0 20px 60px rgba(196, 112, 79, 0.25) !important;
}

/* ===================================
   Form Inputs
   =================================== */
select option {
    background: #1a1a1a;
    color: #e8d5c4;
}

/* ===================================
   Image Hover Effects
   =================================== */
.group:hover img {
    filter: brightness(1.05);
}

/* ===================================
   Gold Accent Line Animation
   =================================== */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* ===================================
   Responsive Adjustments
   =================================== */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.2;
    }
}
