/* Custom styles for Nina African Hair Braiding */

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

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

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

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

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

/* Selection color */
::selection {
    background: #f9d0d9;
    color: #6e1c28;
}

/* Reduce 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;
    }
}

/* Fade-in animation for scroll reveal */
.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.hidden {
    opacity: 0;
    transform: translateY(20px);
}

/* Pulse animation for hero badge */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

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

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(161, 37, 54, 0.1);
}

/* Service card hover effect */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Gallery image hover */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #d94f68;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Input focus states */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(217, 79, 104, 0.1);
}
