/* Custom Styles for Rosemary's Hair Gallery */

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #be185d, #f59e0b);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #9d174d, #d97706);
}

/* Navigation Scroll Effect */
nav.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

nav.scrolled .nav-text {
    color: #500724 !important;
}

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

/* Hero Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Stagger Animation Delays */
.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }
.fade-in-up:nth-child(5) { animation-delay: 0.5s; }
.fade-in-up:nth-child(6) { animation-delay: 0.6s; }

/* Mobile Menu Animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

#mobileMenu.open {
    max-height: 400px;
    padding: 1rem 0;
}

/* Service Card Hover Glow */
.group:hover .bg-gradient-to-br {
    box-shadow: 0 20px 40px rgba(157, 23, 77, 0.15);
}

/* Button Shine Effect */
button::after, a::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

button:hover::after, a:hover::after {
    left: 100%;
}

/* Image Hover Zoom */
.group img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Input Focus Effect */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.1);
}

/* Loading State for Buttons */
button:active {
    transform: scale(0.98);
}

/* Responsive Typography */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.2;
    }
}

/* Print Styles */
@media print {
    nav, #contactForm, .animate-bounce {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

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