/* Custom styles for Urban Hair & Nails Boutique */

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

/* Hero animations */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-anim:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-anim:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-anim:nth-child(3) {
    animation-delay: 0.6s;
}

.hero-anim:nth-child(4) {
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Service card hover effects */
.service-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* Navbar scroll effect */
.nav-scrolled {
    background-color: rgba(255, 253, 247, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(6, 78, 59, 0.1);
}

.nav-scrolled .nav-link {
    color: #064e3b !important;
}

.nav-scrolled #nav-logo {
    color: #064e3b !important;
}

/* Mobile menu animations */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

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

/* Focus styles for accessibility */
input:focus,
select:focus,
textarea:focus,
button:focus,
a:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* 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;
    }
    
    .hero-anim {
        opacity: 1;
        transform: none;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid #064e3b;
    }
    
    button,
    .bg-emerald-700 {
        border: 2px solid #064e3b;
    }
}

/* Print styles */
@media print {
    .scroll-reveal,
    .hero-anim {
        opacity: 1 !important;
        transform: none !important;
    }
    
    nav,
    footer {
        display: none;
    }
}
