/* Custom Styles for The Beauty Parlor Salon and Boutique */

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

/* Navigation scroll effect */
.nav-fixed {
    transition: all 0.3s ease;
}

.nav-scrolled {
    background: rgba(250, 250, 248, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Hero animations */
.hero {
    position: relative;
}

/* Card hover effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

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

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

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

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

/* Input focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #4f8a3a !important;
    box-shadow: 0 0 0 3px rgba(79, 138, 58, 0.1);
}

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

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

/* Apply floating animations */
.absolute.top-0.right-0.w-80 {
    animation: float 6s ease-in-out infinite;
}

.absolute.top-24.left-0.w-56 {
    animation: float-reverse 5s ease-in-out infinite;
}

.absolute.bottom-32.right-8.w-52 {
    animation: float 7s ease-in-out infinite;
}

.absolute.bottom-0.left-8.w-48 {
    animation: float-reverse 4s ease-in-out infinite;
}

/* Reduced motion preference */
@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;
    }
}

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

#mobileMenu.open {
    max-height: 400px;
}

/* Gallery hover effects */
.group:hover .group-hover\:scale-110 {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button transitions */
button,
a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image loading optimization */
img {
    loading: lazy;
}

/* Print styles */
@media print {
    .hero {
        min-height: auto;
        page-break-inside: avoid;
    }
    
    nav {
        display: none;
    }
}
