/* ========================================
   DR. THOMAS WAYNE E MD — Custom Styles
   ======================================== */

/* --- Base & Utilities --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    min-height: 100vh;
}

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

.shape-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: 20%;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 30%;
    left: -50px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(13, 148, 136, 0.05);
    border: 2px solid rgba(13, 148, 136, 0.1);
    border-radius: 20px;
    top: 50%;
    left: 10%;
    transform: rotate(45deg);
    animation: float-slow 18s ease-in-out infinite;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(13, 148, 136, 0.04);
    top: 70%;
    right: 15%;
    animation: float-slow 22s ease-in-out infinite reverse;
}

.shape-dots {
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, rgba(13, 148, 136, 0.15) 1px, transparent 1px);
    background-size: 12px 12px;
    top: 40%;
    left: 5%;
    animation: float-slow 16s ease-in-out infinite;
}

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

/* --- Hero Overlay --- */
.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(8, 14, 26, 0.88) 0%,
        rgba(15, 31, 50, 0.82) 40%,
        rgba(13, 148, 136, 0.45) 100%
    );
}

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

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .nav-link {
    color: #475569;
}

#navbar.scrolled .nav-link:hover {
    color: #0d9488;
    background: #f0fdfa;
}

#navbar.scrolled .font-display {
    color: #0f172a;
}

/* --- Service Cards --- */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d9488, #14b8a6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::after {
    transform: scaleX(1);
}

/* --- Scroll Reveal Animations (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .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; }
}

/* --- Mobile Menu --- */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

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

/* --- Hamburger Animation --- */
.menu-btn-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-btn-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 100%;
}

/* --- Button Hover Effects --- */
a[href^="tel"] {
    text-decoration: none;
}

/* --- Custom Selection --- */
::selection {
    background: rgba(13, 148, 136, 0.2);
    color: #0f172a;
}

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

/* --- Form Inputs --- */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* --- Smooth image loading --- */
img {
    display: block;
    max-width: 100%;
}

/* --- Print Styles --- */
@media print {
    .geo-shape,
    .hero-overlay,
    #navbar {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }
}
