/* ============================================
   Amazing Nail Salon Inc. — Custom Styles
   ============================================ */

/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background-color: rgba(190, 24, 93, 0.2);
    color: #500724;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(253, 244, 248, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(157, 23, 77, 0.08);
}

#navbar.scrolled .font-display,
#navbar.scrolled span:first-child {
    color: #500724;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    opacity: 1;
    transform: translateY(0);
}

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

.service-card:hover img {
    transform: scale(1.1);
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(157, 23, 77, 0.0) 0%, rgba(157, 23, 77, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonial-card {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

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

/* ============================================
   Form Inputs
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15);
}

/* ============================================
   Scroll Reveal Animations
   (Progressive Enhancement — only active
    when JS runs and prefers-reduced-motion
    is not set to reduce)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), 
                    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    /* Staggered delays */
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* For browsers that don't support JS: 
   ensure all content is visible by default */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Decorative Divider
   ============================================ */
.section-divider {
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(190, 24, 93, 0.3) 50%, 
        transparent 100%
    );
    border: none;
    margin: 0;
}

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

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

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

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

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.2;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    #navbar,
    #mobileMenu,
    .gallery-item,
    iframe {
        display: none;
    }
    
    body {
        background: white;
        color: #1a1a1a;
    }
    
    a {
        color: #9d174d;
    }
}
