/* ============================================
   DR. MICHAEL L. O'NEAL — CUSTOM STYLES
   ============================================ */

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

/* Base body reset */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

#navbar.scrolled {
    background: rgba(253, 252, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(10, 46, 24, 0.08);
}

.nav-link {
    position: relative;
}

/* ============================================
   DECORATIVE BACKGROUND SHAPES
   ============================================ */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.deco-circle.deco-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(136, 196, 147, 0.25) 0%, transparent 70%);
    top: -100px;
    right: -150px;
}

.deco-circle.deco-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(86, 167, 104, 0.2) 0%, transparent 70%);
    bottom: 20%;
    left: -100px;
}

.deco-circle.deco-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(183, 219, 190, 0.3) 0%, transparent 70%);
    top: 50%;
    right: 10%;
}

.deco-rect.deco-4 {
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(45, 134, 65, 0.08);
    border-radius: 24px;
    top: 30%;
    left: 5%;
    transform: rotate(30deg);
    pointer-events: none;
}

.deco-triangle.deco-5 {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(136, 196, 147, 0.12);
    bottom: 15%;
    right: 8%;
    transform: rotate(-15deg);
    pointer-events: none;
}

/* ============================================
   FLOATING STAT CARDS
   ============================================ */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card.card-1 {
    animation-delay: 0s;
}

.floating-card.card-2 {
    animation-delay: -1.5s;
    animation-duration: 5s;
}

.floating-card.card-3 {
    animation-delay: -3s;
    animation-duration: 7s;
}

.floating-card.card-4 {
    animation-delay: -4.5s;
    animation-duration: 5.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* ============================================
   REVEAL ANIMATIONS (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        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);
    }

    .service-card {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .service-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Always visible fallback if JS is disabled */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal,
    .service-card {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   MOBILE MENU
   ============================================ */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-link {
    display: block;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .floating-card {
        animation: none;
    }
}

/* ============================================
   FOCUS STYLES
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #2d8641;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

::-webkit-scrollbar-thumb {
    background: #b7dbbe;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #88c493;
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
    background: #d9ece0;
    color: #0a2e18;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    #navbar,
    .floating-card,
    .deco-circle,
    .deco-rect,
    .deco-triangle {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    a {
        color: black;
    }
}
