/* Custom styles for Empire Beauty Supply */

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

/* Navbar transition */
.navbar-scrolled {
    background: rgba(254, 253, 251, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(45, 92, 45, 0.08);
}

.navbar-scrolled .nav-logo-text {
    color: #2d5c2d;
}

.navbar-scrolled .nav-link {
    color: #2d5c2d;
}

/* Animation keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

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

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

@keyframes slide-down {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

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

.animate-slide-down {
    animation: slide-down 0.6s ease-out both;
}

.animate-slide-up {
    animation: slide-up 0.7s ease-out both;
}

.animate-slide-up-delay {
    animation: slide-up 0.7s ease-out 0.15s both;
}

.animate-slide-up-delay-2 {
    animation: slide-up 0.7s ease-out 0.3s both;
}

/* Reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    }

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

/* Fallback: always show content if JS is disabled */
.no-js .reveal,
:not(.js) .reveal {
    opacity: 1;
    transform: none;
}

/* Mobile menu */
.mobile-nav-link {
    border-bottom: 1px solid #e8e0d4;
    padding: 12px 0;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8dc88d;
}

/* Selection color */
::selection {
    background: #d9ecd9;
    color: #1c381c;
}
