/* ========================================
   Dr. Julie Anne Metzger Aubuchon
   Medical Practice — Custom Styles
   ======================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Geometric Hero Shapes --- */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -150px;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.12) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.circle-3 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid rgba(0, 212, 170, 0.15);
    top: 30%;
    right: 15%;
    animation: spin 20s linear infinite;
}

.rect-1 {
    width: 120px;
    height: 120px;
    background: rgba(0, 212, 170, 0.06);
    border: 1px solid rgba(0, 212, 170, 0.12);
    top: 20%;
    left: 8%;
    transform: rotate(45deg);
    animation: float 10s ease-in-out infinite;
}

.rect-2 {
    width: 80px;
    height: 200px;
    background: linear-gradient(180deg, rgba(0, 212, 170, 0.05) 0%, transparent 100%);
    border-radius: 40px;
    bottom: 15%;
    right: 8%;
    animation: float 7s ease-in-out infinite reverse;
}

.dot-grid {
    width: 120px;
    height: 120px;
    top: 60%;
    left: 3%;
    background-image: radial-gradient(circle, rgba(0, 212, 170, 0.2) 1px, transparent 1px);
    background-size: 16px 16px;
    animation: float 9s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes spin {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

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

#navbar.scrolled {
    background: rgba(10, 35, 66, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* --- Mobile Menu --- */
#mobileMenu {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* --- Service Cards --- */
.service-card {
    transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* --- Testimonial Cards --- */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 60px rgba(10, 35, 66, 0.15);
}

/* --- Scroll Reveal (progressive enhancement) --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Stagger children */
.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; }

/* Respect reduced motion */
@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; }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* --- Input Focus Styles --- */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* --- Selection --- */
::selection {
    background: rgba(0, 212, 170, 0.3);
    color: #0A2342;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A2342;
}
::-webkit-scrollbar-thumb {
    background: #00D4AA;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #66F5D0;
}

/* --- Responsive Tweaks --- */
@media (max-width: 768px) {
    .geo-shape { display: none; }
    #hero h1 { font-size: 2.75rem; }
    #hero h1 br { display: none; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #hero h1 { font-size: 4rem; }
}
