/* Custom styles for MV Dominican Beauty Salon */

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

/* Custom selection color */
::selection {
    background-color: #14b8a6;
    color: #0a1628;
}

/* Navbar transitions */
#navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(20, 184, 166, 0.1);
}

#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(10, 22, 40, 0.08);
}

/* Mobile menu transitions */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.4s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.5s; }

/* Mobile menu button animation */
#menuBtn span:nth-child(1) {
    transform-origin: center;
    transition: all 0.3s ease;
}

#menuBtn span:nth-child(2) {
    transform-origin: center;
    transition: all 0.3s ease;
}

#menuBtn.active span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

#menuBtn.active span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
}

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

/* Service card hover */
.group:hover svg {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Button hover effects */
a {
    transition: all 0.3s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .overflow-hidden img {
        transition: none;
    }
    
    a, button {
        transition: none;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Typography adjustments */
.font-serif {
    text-rendering: optimizeLegibility;
}

/* Subtle pattern overlay for sections */
.bg-midnight-900::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 25% 25%, rgba(20, 184, 166, 0.03) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(20, 184, 166, 0.03) 0%, transparent 50%);
    pointer-events: none;
}
