/* ============================================
   Pediatric Cardiology Specialists
   Custom Styles — Midnight Blue + Mint
   ============================================ */

/* Base */
html {
    scroll-behavior: smooth;
}

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

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(14, 37, 68, 0.08);
}

#navbar.scrolled .font-heading {
    color: #0e2544;
}

/* Hero decorative circles */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
}

.c1 {
    width: 600px;
    height: 600px;
    background: #4ade80;
    top: -200px;
    right: -150px;
    animation: float-slow 20s ease-in-out infinite;
}

.c2 {
    width: 400px;
    height: 400px;
    background: #86efac;
    bottom: -100px;
    left: -100px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.c3 {
    width: 200px;
    height: 200px;
    background: #4ade80;
    top: 40%;
    left: 60%;
    animation: float-slow 12s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Floating hearts */
.floating-heart {
    position: absolute;
    animation: float-heart 6s ease-in-out infinite;
}

.floating-heart.h2 { animation-delay: -1.5s; animation-duration: 7s; }
.floating-heart.h3 { animation-delay: -3s; animation-duration: 8s; }
.floating-heart.h4 { animation-delay: -4.5s; animation-duration: 5s; }

@keyframes float-heart {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-20px) rotate(5deg); opacity: 0.6; }
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #22c55e, #4ade80);
    border-radius: 3xl 3xl 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* Condition cards */
.condition-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.condition-card:hover {
    transform: translateY(-4px);
}

/* FAQ */
.faq-btn {
    cursor: pointer;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-content.open {
    max-height: 300px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* Scroll reveal — below the fold only */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

/* Pulse line animation for ECG feel */
@keyframes pulse-line {
    0%, 100% { stroke-dashoffset: 0; }
    50% { stroke-dashoffset: 20; }
}

/* Smooth focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Selection color */
::selection {
    background: #bbf7d0;
    color: #0e2544;
}
