/* Custom styles for Y & J Hair Salon */

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

/* Custom selection color */
::selection {
    background-color: #c9a84c;
    color: #0a1128;
}

/* Navbar transition */
#navbar.scrolled {
    background-color: rgba(10, 17, 40, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Show nav logo text when scrolled */
#navbar.scrolled #nav-logo-text {
    opacity: 1;
}

/* Mobile menu animations */
#mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

/* Service card hover effect */
.group:hover .group-hover\:rotate-0 {
    transform: rotate(0deg);
}

/* Gold gradient text (if needed) */
.text-gold-gradient {
    background: linear-gradient(135deg, #c9a84c 0%, #e0ca7e 50%, #c9a84c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle entrance animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* Floating card animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(2deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

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

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(1deg); }
    50% { transform: translateY(-6px) rotate(1deg); }
}

.floating-card-1 { animation: float 6s ease-in-out infinite; }
.floating-card-2 { animation: float-reverse 5s ease-in-out infinite; }
.floating-card-3 { animation: float-slow 7s ease-in-out infinite; }

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

::-webkit-scrollbar-track {
    background: #0a1128;
}

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

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

/* Image hover zoom container */
img {
    transition: transform 0.7s ease;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}
