/* Custom styles for Ama Belle Salon */

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

/* Hero animations - only for below-fold content, hero is always visible */
.hero-anim {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

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

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

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

/* Selection color */
::selection {
    background: #ff6f61;
    color: white;
}

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

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Form focus styles */
input:focus,
textarea:focus {
    outline: none;
}

/* Gallery hover effect */
.rounded-2xl overflow-hidden {
    position: relative;
}

.rounded-2xl overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: inherit;
}

.rounded-2xl.overflow-hidden:hover::after {
    opacity: 1;
}
