/* Custom styles for Wafaa Beauty */

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

/* Prevent scroll on mobile menu open */
body.menu-open {
    overflow: hidden;
}

/* Navbar styles */
#navbar {
    background: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(254, 252, 248, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-logo {
    transition: color 0.4s ease;
}

#navbar.scrolled .nav-logo {
    color: #d4451f;
}

/* Navigation links */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #d4451f;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

#navbar.scrolled .nav-link {
    color: #1c1517;
}

#navbar.scrolled .nav-link:hover {
    color: #d4451f;
}

/* Mobile menu */
.mobile-link {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

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

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Default state for reduced motion - always visible */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom select styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Focus visible for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #d4451f;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: #f9d0bc;
    color: #6e2514;
}

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

::-webkit-scrollbar-track {
    background: #fdf6ea;
}

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

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

/* Image loading placeholder */
img {
    background-color: #faeac8;
}

/* Smooth image transitions */
img {
    transition: opacity 0.3s ease;
}

img[data-loaded="true"] {
    opacity: 1;
}
