/* ============================================
   Dr. Mel Garrovillo MD — Custom Styles
   Charcoal + Coral | Vibrant Modern Medical
   ============================================ */

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

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #121212;
    color: #ffffff;
    line-height: 1.6;
}

/* --- Geometric Background Decorations --- */
.geo-circle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 74, 0.06) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 74, 0.04) 0%, transparent 70%);
    bottom: 10%;
    left: -100px;
}

.geo-triangle {
    position: fixed;
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(255, 107, 74, 0.04);
    pointer-events: none;
    z-index: 0;
    top: 35%;
    right: 5%;
    transform: rotate(15deg);
}

.geo-dots {
    position: fixed;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(255, 107, 74, 0.15) 1px, transparent 1px);
    background-size: 16px 16px;
    pointer-events: none;
    z-index: 0;
    top: 60%;
    left: 3%;
}

.geo-line {
    position: fixed;
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 74, 0.1), transparent);
    pointer-events: none;
    z-index: 0;
    top: 80%;
    right: 10%;
    transform: rotate(-30deg);
}

/* --- Scroll Reveal Animations --- */
/* Default state: visible (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger delays for grid items */
.reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.15s; }
.reveal:nth-child(4) { transition-delay: 0.2s; }
.reveal:nth-child(5) { transition-delay: 0.25s; }
.reveal:nth-child(6) { transition-delay: 0.3s; }

/* --- Mobile Menu --- */
.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.2s ease;
}

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

.mobile-nav-link:hover {
    color: #FF6B4A;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #3A3A45;
}

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

/* --- Selection --- */
::selection {
    background-color: rgba(255, 107, 74, 0.3);
    color: #ffffff;
}

/* --- Utility: Hide visually but keep accessible --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
