/* Custom styles for Dannie W Glover MD */

/* ── Scroll Reveal Base ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        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);
    }
    .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; }
}

/* ── Floating Animation ── */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
@keyframes float-medium {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-7px); }
}
@keyframes float-fast {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.animate-float-slow {
    animation: float-slow 5s ease-in-out infinite;
}
.animate-float-medium {
    animation: float-medium 4s ease-in-out infinite;
}
.animate-float-fast {
    animation: float-fast 3.5s ease-in-out infinite;
}

/* ── Navbar Scroll State ── */
#navbar.scrolled {
    background: rgba(253, 248, 240, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.04);
}

/* ── Smooth Scroll Offset ── */
html {
    scroll-padding-top: 88px;
}

/* ── Service Card Hover ── */
.service-card {
    will-change: transform;
}

/* ── Selection Color ── */
::selection {
    background: color-mix(in srgb, #d95a32 25%, transparent);
    color: #1c1917;
}

/* ── Mobile Menu Transition ── */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Focus Visible ── */
:focus-visible {
    outline: 2px solid #d95a32;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Smooth Image Loading ── */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, #d95a32 30%, transparent);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, #d95a32 50%, transparent);
}
