/* Custom styles for Jacqueline's Beauty Salon */

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

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

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

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

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

/* Selection color */
::selection {
    background: #d49a2a;
    color: #0f1730;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.5s ease, pointer-events 0.5s ease;
}

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

/* Navbar transition */
#navbar.scrolled {
    background: rgba(8, 14, 28, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 154, 42, 0.1);
}

/* Image hover effects */
.group img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

/* Mobile menu line animation */
#menu-btn.active #menu-line-1 {
    transform: rotate(45deg) translate(4px, 4px);
}

#menu-btn.active #menu-line-2 {
    opacity: 0;
}

#menu-btn.active #menu-line-3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 24px;
}

/* Prevent layout shift for images */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Ensure text is always visible */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Custom gold gradient for special elements */
.gold-gradient {
    background: linear-gradient(135deg, #d49a2a 0%, #f5e0a8 50%, #d49a2a 100%);
}

/* Subtle pattern overlay */
.pattern-overlay {
    background-image: radial-gradient(circle at 1px 1px, rgba(212, 154, 42, 0.03) 1px, transparent 0);
    background-size: 40px 40px;
}
