/* ============================================
   Dr. Dean A. Kocay M.D. — Custom Styles
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    min-height: 100vh;
}

/* ============================================
   Geometric Background Shapes
   ============================================ */
.geo-shape {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 95, 42, 0.06) 0%, transparent 70%);
    top: 10%;
    right: -100px;
}

.circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
    bottom: 20%;
    left: -50px;
}

.square-1 {
    width: 120px;
    height: 120px;
    background: rgba(26, 95, 42, 0.04);
    border-radius: 24px;
    top: 45%;
    left: 5%;
    transform: rotate(15deg);
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(251, 191, 36, 0.06);
    top: 60%;
    right: 8%;
    transform: rotate(-20deg);
}

/* ============================================
   Floating Stat Cards
   ============================================ */
.floating-card {
    animation: float 4s ease-in-out infinite;
}

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

.stat-card-2 {
    animation-delay: 1.3s;
}

.stat-card-3 {
    animation-delay: 2.6s;
}

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

/* ============================================
   Scroll Reveal Animations
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Staggered delays */
    .scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
    .scroll-reveal:nth-child(2) { transition-delay: 0.12s; }
    .scroll-reveal:nth-child(3) { transition-delay: 0.19s; }
    .scroll-reveal:nth-child(4) { transition-delay: 0.26s; }
    .scroll-reveal:nth-child(5) { transition-delay: 0.33s; }
    .scroll-reveal:nth-child(6) { transition-delay: 0.40s; }
}

/* Default state: always visible (progressive enhancement) */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

#navbar.scrolled {
    background: rgba(253, 251, 247, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ============================================
   Focus Styles
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #1A5F2A;
    outline-offset: 2px;
    border-radius: 8px;
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background: rgba(26, 95, 42, 0.15);
    color: #1A5F2A;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 640px) {
    .floating-card {
        display: none;
    }
    
    .floating-card.stat-card-3 {
        display: none;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .floating-card.stat-card-3 {
        display: block;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .geo-shape,
    .floating-card,
    .back-to-top,
    #mobile-toggle {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    #navbar {
        position: static;
        background: #fff;
        box-shadow: none;
    }
}
