/* Custom styles for Beauty Unleashed */

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 80px;
}

/* Navbar transitions */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(254, 253, 249, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(10, 22, 40, 0.08);
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

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

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

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }

/* Hamburger animation */
#menu-icon span:nth-child(1) {
    transform-origin: center;
}
#menu-icon span:nth-child(2) {
    transform-origin: center;
}
#menu-icon span:nth-child(3) {
    transform-origin: center;
}

#menu-btn.active #menu-icon span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}
#menu-btn.active #menu-icon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#menu-btn.active #menu-icon span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.5rem;
}

/* Back to top button */
#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

#back-to-top:not(.visible) {
    opacity: 0;
    pointer-events: none;
}

/* Selection color */
::selection {
    background-color: rgba(212, 168, 75, 0.25);
    color: #0A1628;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
    background: #D4A84B;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #B8860B;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Service card hover subtle lift */
.group:hover {
    transform: translateY(-2px);
}

.group {
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
}

/* Gallery image hover */
.group img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
