/* ============================================================
   Nail Bliss By Faith — Custom Stylesheet
   Handles: page base, button effects, nav animations,
   scroll reveal, and utility helpers.
   All layout/colors are managed by Tailwind CSS classes.
   ============================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Jost', sans-serif;
    background-color: #FCFAF7; /* soft cream/blush background */
    position: relative; /* allows ambient blob divs to render correctly */
    min-height: 100vh;
}

/* 2. Shimmer Sweep Animation on hover for CTA buttons */
.btn-shimmer {
    position: relative;
    overflow: hidden;
}

.btn-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    transition: all 0.75s ease;
    pointer-events: none;
}

.btn-shimmer:hover::after {
    left: 120%;
}

/* 3. Animated Nav Link — Gold underline expanding from center */
.nav-link {
    position: relative;
    padding-bottom: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: #D4AF37; /* brand gold */
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* 4. Scroll Reveal Fade-in / Slide-up Framework */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* 5. Staggered transition delay helpers */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* 6. Service card image zoom container — prevents overflow on rounded corners */
.service-img-wrap {
    overflow: hidden;
    border-radius: 0; /* card itself handles rounding via rounded-3xl */
}

.service-img-wrap img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 7. Gallery item hover overlay */
.gallery-item .overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* 8. Floating WhatsApp button pulse ring */
@keyframes wa-ping {
    0%   { box-shadow: 0 0 0 0 rgba(251, 113, 133, 0.5); }
    70%  { box-shadow: 0 0 0 14px rgba(251, 113, 133, 0); }
    100% { box-shadow: 0 0 0 0 rgba(251, 113, 133, 0); }
}

.wa-float {
    animation: wa-ping 2s infinite;
}

/* 9. Custom scrollbar styling (WebKit) */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 9999px;
}

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