/* ========================================
   Driscoll Maternal & Fetal Medicine
   Custom Styles
======================================== */

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

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

body {
    overflow-x: hidden;
}

/* --- Navbar --- */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(254, 253, 248, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(20, 83, 45, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #14532d, #66bb6a);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 100%;
}

/* --- Mobile Menu --- */
.mobile-nav-link {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover {
    padding-left: 12px;
    color: #14532d;
}

#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

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

/* --- Hero Geometric Shapes --- */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    animation: float 8s ease-in-out infinite;
}

.geo-circle {
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
}

.geo-circle--1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.geo-circle--2 {
    width: 180px;
    height: 180px;
    top: 60%;
    right: 5%;
    animation-delay: -3s;
}

.geo-circle--3 {
    width: 100px;
    height: 100px;
    top: 25%;
    right: 20%;
    animation-delay: -5s;
}

.geo-square {
    border: 2px solid white;
    background: transparent;
}

.geo-square--1 {
    width: 80px;
    height: 80px;
    top: 15%;
    right: 10%;
    transform: rotate(45deg);
    animation-delay: -2s;
}

.geo-square--2 {
    width: 50px;
    height: 50px;
    bottom: 25%;
    left: 8%;
    transform: rotate(20deg);
    animation-delay: -4s;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid white;
    opacity: 0.06;
    top: 40%;
    left: 5%;
    animation-delay: -1s;
}

.geo-ring {
    border-radius: 50%;
    border: 3px solid white;
    background: transparent;
}

.geo-ring--1 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    right: 15%;
    animation-delay: -6s;
}

.geo-circle--4 {
    width: 500px;
    height: 500px;
    border-color: rgba(255,255,255,0.1);
    bottom: -200px;
    left: -100px;
}

.geo-square--3 {
    border-color: rgba(255,255,255,0.08);
    width: 150px;
    height: 150px;
    top: 10%;
    right: 5%;
    transform: rotate(30deg);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(5deg);
    }
    66% {
        transform: translateY(10px) rotate(-3deg);
    }
}

/* --- Background Decorative Circles --- */
.deco-circle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.deco-circle--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(102, 187, 106, 0.06) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.deco-circle--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(20, 83, 45, 0.05) 0%, transparent 70%);
    bottom: 20%;
    left: -100px;
}

.deco-circle--3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.05) 0%, transparent 70%);
    bottom: -100px;
    right: 10%;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #14532d, #66bb6a);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

/* --- Condition Tags --- */
.condition-tag {
    display: inline-block;
    background: linear-gradient(135deg, #f0f7f0 0%, #dcedce 100%);
    color: #14532d;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    border: 1px solid #c5e1b9;
    transition: all 0.3s ease;
    cursor: default;
}

.condition-tag:hover {
    background: linear-gradient(135deg, #14532d 0%, #0d3d1f 100%);
    color: #ffffff;
    border-color: #14532d;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(20, 83, 45, 0.25);
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
    }

    .reveal-left.revealed {
        opacity: 1;
        transform: translateX(0);
    }

    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
    }

    .reveal-right.revealed {
        opacity: 1;
        transform: translateX(0);
    }

    .reveal-scale {
        opacity: 0;
        transform: scale(0.95);
    }

    .reveal-scale.revealed {
        opacity: 1;
        transform: scale(1);
    }
}

/* Staggered delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }

/* --- Input Focus States --- */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(20, 83, 45, 0.1);
}

/* --- Selection --- */
::selection {
    background-color: #a5d6a7;
    color: #0d3d1f;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #66bb6a;
}

/* --- Print Styles --- */
@media print {
    #navbar,
    .geo-shape,
    .deco-circle,
    .animate-bounce {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
