/* Custom styles for The Nail Den */

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

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

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

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

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

/* Scroll reveal base - content is always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply hidden state when JS is enabled and animation is appropriate */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal[data-revealed="false"] {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Navbar glass effect when scrolled */
.navbar-scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(27, 94, 32, 0.08);
}

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

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

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

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

/* Selection color */
::selection {
    background: #c5e1a5;
    color: #0d3311;
}

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

/* Mobile menu transition */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

#mobileMenu.open {
    max-height: 400px;
    padding-top: 0;
    padding-bottom: 0;
}

/* Mobile link transition */
.mobile-link {
    transition: color 0.2s ease;
}

.mobile-link:hover {
    color: #2e7d32;
}

/* Prevent flash of unstyled content */
.no-js .scroll-reveal {
    opacity: 1;
    transform: translateY(0);
}
