/* ========================================
   Rong Beauty Salon — Custom Styles
   ======================================== */

:root {
    --midnight: #0A1628;
    --midnight-light: #1A3A5C;
    --mint: #34D4B5;
    --mint-light: #5EEAD4;
    --off-white: #F8F7F4;
    --cream: #FDFCFA;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--off-white);
    color: var(--midnight);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Navbar */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(248, 247, 244, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.08);
}

.nav-text {
    color: var(--midnight);
}

#navbar:not(.scrolled) .nav-text {
    color: #fff;
}

#navbar:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.7);
}

#navbar:not(.scrolled) .nav-link:hover {
    color: var(--mint);
}

#navbar:not(.scrolled) .menu-line {
    background: #fff;
}

/* Mobile Menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.open .mobile-link {
    animation: slideUp 0.4s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reveal Animations */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Service Cards */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

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

/* Testimonial Slider */
.testimonial-slide {
    transition: opacity 0.6s ease;
}

.testimonial-dot.active {
    background: var(--midnight);
    transform: scale(1.2);
}

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

::-webkit-scrollbar-track {
    background: var(--off-white);
}

::-webkit-scrollbar-thumb {
    background: var(--midnight);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--midnight-light);
}

/* Selection */
::selection {
    background: var(--mint);
    color: var(--midnight);
}

/* Focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--mint);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
