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

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

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

/* ===== Navbar ===== */
.nav-text {
    color: #1a3a5c;
}

.nav-text-muted {
    color: #5078ac;
}

.nav-link {
    color: #1a3a5c;
}

/* Transparent navbar (default) */
#navbar {
    background: transparent;
}

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

#navbar.scrolled .nav-text {
    color: #1a3a5c;
}

#navbar.scrolled .nav-text-muted {
    color: #5078ac;
}

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

/* ===== Hero ===== */
.hero-badge {
    opacity: 0;
    animation: fadeInDown 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-title {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-subtitle {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero-ctas {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

.hero-info {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1s;
}

.hero-orb {
    animation: float 8s ease-in-out infinite;
}

.orb-2 {
    animation-delay: -3s;
    animation-duration: 10s;
}

.orb-3 {
    animation-delay: -5s;
    animation-duration: 12s;
}

.cta-primary {
    padding-top: 1.125rem;
    padding-bottom: 1.125rem;
}

.cta-secondary {
    padding-top: 1.125rem;
    padding-bottom: 1.125rem;
}

.scroll-indicator {
    opacity: 0.7;
}

/* ===== Section Styles ===== */
.section-label {
    letter-spacing: 0.15em;
}

.section-title {
    line-height: 1.15;
}

.section-subtitle {
    line-height: 1.7;
}

.section-label-light {
    letter-spacing: 0.15em;
}

.section-title-light {
    line-height: 1.15;
}

/* ===== Services ===== */
.services-grid {
    perspective: 1000px;
}

.service-card {
    transform: translateY(0);
}

/* ===== About ===== */
.about-image-container {
    opacity: 1;
}

/* ===== Patients ===== */
.patients-grid {
    perspective: 1000px;
}

/* ===== Contact ===== */
.contact-card {
    transition: transform 0.3s ease;
}

.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    box-shadow: 0 0 0 4px rgba(54, 168, 120, 0.15);
}

.form-submit {
    transition: all 0.3s ease;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(6, 18, 32, 0.3) !important;
}

.form-submit:active {
    transform: translateY(0);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* ===== Scroll Reveal (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
        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; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ===== 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 !important;
        transform: none !important;
    }
}

/* ===== Mobile Menu ===== */
.mobile-nav-link {
    transition: color 0.2s ease;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 640px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 1.875rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
}
