/* ===== Custom Styles for Wellspace Health ===== */

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

/* ===== Scroll Reveal Animations ===== */
.scroll-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);
}

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Navbar Transition ===== */
.navbar-scrolled {
    background: rgba(15, 18, 22, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.navbar-scrolled .nav-logo-text {
    color: #ffffff !important;
}

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

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

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

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f6f7;
}
::-webkit-scrollbar-thumb {
    background: #c8cdd2;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a3adb7;
}

/* ===== Selection Color ===== */
::selection {
    background: #ffcdd4;
    color: #1e2329;
}

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #ff6b8a;
    outline-offset: 2px;
}

/* ===== Button hover glow effect ===== */
button:hover,
a:hover {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== Card hover image parallax ===== */
.group:hover .rounded-2xl {
    transform: scale(1.02);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== Subtle gradient for text ===== */
.text-gradient-coral {
    background: linear-gradient(135deg, #ff6b8a 0%, #ff4f7b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Service card icon container fix ===== */
.group .rounded-2xl {
    position: relative;
    z-index: 1;
}

/* ===== Form input autofill style ===== */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}
