/* Custom styles for Hair Movements Salon & Spa */

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

/* Base font settings */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(253, 244, 246, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(110, 31, 46, 0.08);
}

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

.nav-scrolled .font-serif {
    color: #6e1f2e !important;
}

/* Service card hover lift */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-4px);
}

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

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

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

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

/* Selection color */
::selection {
    background: #fbbf24;
    color: #3d0c13;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Mobile menu transitions */
#mobileMenu {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#mobileMenu.active {
    opacity: 1;
    pointer-events: auto;
}

/* Scroll reveal base - visible by default for progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Scroll reveal hidden state - only applied when JS runs and reduced motion is off */
@media (prefers-reduced-motion: no-preference) {
    .reveal.reveal-hidden {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.reveal-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery hover effect */
.gallery-item:hover img {
    transform: scale(1.05);
}

/* Decorative divider animation */
.divider-line {
    position: relative;
    overflow: hidden;
}

.divider-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Button hover glow */
.btn-glow:hover {
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.3) !important;
}

/* Testimonial card hover */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-2px);
}

/* Ensure all images have proper aspect ratios */
img {
    max-width: 100%;
    height: auto;
}

/* Mobile menu link hover */
.mobile-link {
    font-size: 1.25rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

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

#mobileMenu.active .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.active .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.active .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.active .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.active .mobile-link:nth-child(5) { transition-delay: 0.25s; }
#mobileMenu.active .mobile-link:nth-child(6) { transition-delay: 0.3s; }

/* Navbar link underline effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fbbf24;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero text animation - only when reduced motion is off */
@media (prefers-reduced-motion: no-preference) {
    #hero h1 {
        animation: fadeInUp 0.8s ease forwards;
    }
    
    #hero p {
        animation: fadeInUp 0.8s ease 0.2s forwards;
        opacity: 0;
    }
    
    #hero .flex-col {
        animation: fadeInUp 0.8s ease 0.4s forwards;
        opacity: 0;
    }
    
    #hero .grid {
        animation: fadeInUp 0.8s ease 0.6s forwards;
        opacity: 0;
    }
}

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

/* Print styles */
@media print {
    nav, #contact, footer {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
