/* Custom styles for Edith's Beauty Salon */

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

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(161, 33, 57, 0.08);
}

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

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

/* Gallery hover */
.gallery-item {
    cursor: pointer;
}

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

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(161, 33, 57, 0.12);
}

/* Back to top button */
#backToTop.visible {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

/* Hero floating card animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating-card {
    animation: float 3s ease-in-out infinite;
}

/* Subtle pattern overlay for cream sections */
.bg-cream-pattern {
    background-image: radial-gradient(circle at 25% 25%, rgba(161, 33, 57, 0.02) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(255, 122, 147, 0.03) 0%, transparent 50%);
}

/* Custom selection color */
::selection {
    background: #fce7eb;
    color: #6e1a2c;
}

/* Input focus styles */
input:focus,
select:focus,
textarea:focus {
    border-color: #dc4c68 !important;
    box-shadow: 0 0 0 3px rgba(220, 76, 104, 0.1) !important;
}

/* 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;
        scroll-behavior: auto !important;
    }
    
    .gallery-item img {
        transition: none;
    }
}
