/* Custom styles for Joys Beauty Supply */

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

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

/* Scroll reveal with JS enhancement - only applies when JS is enabled */
@media (prefers-reduced-motion: no-preference) {
    .js-enabled .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .js-enabled .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .js-enabled .scroll-reveal.revealed:nth-child(1) { transition-delay: 0.1s; }
    .js-enabled .scroll-reveal.revealed:nth-child(2) { transition-delay: 0.2s; }
    .js-enabled .scroll-reveal.revealed:nth-child(3) { transition-delay: 0.3s; }
    .js-enabled .scroll-reveal.revealed:nth-child(4) { transition-delay: 0.4s; }
    .js-enabled .scroll-reveal.revealed:nth-child(5) { transition-delay: 0.5s; }
    .js-enabled .scroll-reveal.revealed:nth-child(6) { transition-delay: 0.6s; }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(15, 17, 21, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

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

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

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

/* Selection color */
::selection {
    background: rgba(255, 107, 69, 0.3);
    color: #ffffff;
}

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

/* Focus styles */
*:focus-visible {
    outline: 2px solid #ff6b45;
    outline-offset: 2px;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Back to top button */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

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

.floating-shape-1 {
    animation: float 6s ease-in-out infinite;
}

.floating-shape-2 {
    animation: float-reverse 8s ease-in-out infinite;
}

/* Pulse animation for badge */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 69, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(255, 107, 69, 0); }
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #ff8a6c, #ff6b45, #f45028);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover lift */
.card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
