/* Custom styles for Sanique Beauty */

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

/* Floating animations for hero decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-delay {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-3deg); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delay {
    animation: float-delay 5s ease-in-out infinite 1s;
}

.animate-float-slow {
    animation: float-slow 7s ease-in-out infinite 0.5s;
}

/* Scroll reveal animations — progressive enhancement, only when JS runs */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .animate-float, .animate-float-delay, .animate-float-slow {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Navbar transition states */
.nav-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(13, 42, 17, 0.08);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #81c784;
}

/* Selection color */
::selection {
    background: #c8e6c9;
    color: #1b5e20;
}

/* Mobile menu transitions */
#mobileMenu {
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

/* Image hover zoom */
.group img {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #2e7d32;
    outline-offset: 2px;
}
