/* Custom styles for Thao Chau Nguyen Beauty Studio */

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(254, 252, 248, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.navbar-transparent .nav-link {
    color: #1a2744 !important;
}

.navbar-scrolled .nav-link {
    color: #1a2744 !important;
}

.navbar-transparent .nav-text-color {
    color: #1a2744 !important;
}

.navbar-scrolled .nav-text-color {
    color: #1a2744 !important;
}

/* Service card hover effects */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(217, 74, 32, 0.15);
}

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

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

/* Mobile menu animations */
.menu-line {
    transition: all 0.3s ease;
}

#mobileMenuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobileMenuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobileMenuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav links */
.mobile-nav-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

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

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .service-card,
    .testimonial-card,
    .scroll-reveal {
        transition: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Selection color */
::selection {
    background: #f8c4b0;
    color: #742714;
}

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

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

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

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

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

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #fdf6ec 0%, #f8c4b0 100%);
}

/* Subtle pattern overlay */
.hero-pattern {
    background-image: radial-gradient(circle at 2px 2px, rgba(217, 74, 32, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}
