/* Custom styles for NY Dominican Salon */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdfbf0;
}
::-webkit-scrollbar-thumb {
    background: #a5d6a7;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #81c784;
}

/* Floating card animations */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: -2s;
}

.floating-card:nth-child(3) {
    animation-delay: -4s;
}

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

/* Floating dots */
.floating-dot {
    animation: floatDot 4s ease-in-out infinite;
}

.floating-dot:nth-child(2) {
    animation-delay: -1s;
    animation-duration: 5s;
}

.floating-dot:nth-child(3) {
    animation-delay: -2s;
    animation-duration: 6s;
}

.floating-dot:nth-child(4) {
    animation-delay: -3s;
    animation-duration: 4.5s;
}

@keyframes floatDot {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 0.3;
    }
}

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar styles */
.nav-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(26, 92, 42, 0.08);
}

.nav-scrolled .font-display {
    color: #1a5c2a !important;
}

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

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

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

/* Button ripple effect */
button, a {
    position: relative;
    overflow: visible;
}

/* Selection color */
::selection {
    background: #a5d6a7;
    color: #1a5c2a;
}

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

/* Custom select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231a5c2a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* Image hover zoom */
.group img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Testimonial card shimmer */
.bg-white\/5 {
    backdrop-filter: blur(10px);
}
