/* =============================================
   Astro City Medical — Custom Styles
   ============================================= */

/* Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(168, 85, 247, 0.15);
    color: #4c1d95;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0f0f12;
}
::-webkit-scrollbar-thumb {
    background: #6b21a8;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7e22ce;
}

/* =============================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ============================================= */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .reveal[data-revealed="false"] {
        opacity: 0;
        transform: translateY(24px);
    }

    .reveal[data-revealed="false"].reveal-delay-1 {
        transition-delay: 0.1s;
    }
    .reveal[data-revealed="false"].reveal-delay-2 {
        transition-delay: 0.2s;
    }
    .reveal[data-revealed="false"].reveal-delay-3 {
        transition-delay: 0.3s;
    }
}

/* =============================================
   Navbar
   ============================================= */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(254, 254, 254, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(107, 33, 168, 0.08);
}

#navbar.scrolled .nav-link {
    color: #4c1d95;
}

#navbar.scrolled .nav-link:hover {
    color: #1a0a2e;
}

#navbar.scrolled a[href="tel:8322451719"] {
    background: #6b21a8;
}

#navbar.scrolled a[href="tel:8322451719"]:hover {
    background: #7e22ce;
}

/* =============================================
   Scroll Indicator
   ============================================= */
@keyframes scrollIndicator {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

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

/* =============================================
   Form Focus States
   ============================================= */
input:focus,
textarea:focus {
    border-bottom-color: #f59e0b !important;
}

/* =============================================
   Button Hover Lift
   ============================================= */
button[type="submit"],
a[href="#contact"],
a[href="tel:8322451719"] {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.3s ease,
                background-color 0.3s ease;
}

/* =============================================
   Service Card Stagger
   ============================================= */
.grid > div:nth-child(1) { transition-delay: 0s; }
.grid > div:nth-child(2) { transition-delay: 0.08s; }
.grid > div:nth-child(3) { transition-delay: 0.16s; }
.grid > div:nth-child(4) { transition-delay: 0.24s; }
.grid > div:nth-child(5) { transition-delay: 0.32s; }
.grid > div:nth-child(6) { transition-delay: 0.4s; }

/* =============================================
   Image Hover Zoom
   ============================================= */
.group img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.group:hover img {
    transform: scale(1.03);
}

/* =============================================
   Utility
   ============================================= */
.no-underline-hover {
    text-decoration: none;
}
