:root {
    --primary: #0d6efd;
    --primary-dark: #0b5ed7;
    --secondary: #0dcaf0;
    --muted: #6c757d;
    --bg-soft: #f5f7fb;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    background: #fff;
    color: #0f172a;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

.navbar {
    transition: all 0.3s ease;
}
.navbar-brand {
    font-weight: 800;
    letter-spacing: 0.2px;
    color: var(--primary) !important;
    transition: transform 0.3s ease;
}
.navbar-brand:hover {
    transform: scale(1.05);
}
.navbar-brand i {
    color: var(--primary);
    animation: pulse 2s ease-in-out infinite;
}
.nav-link {
    font-weight: 600;
    color: #0f172a !important;
    position: relative;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}
.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}
.btn-appointment {
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.25);
    transition: all 0.3s ease;
    animation: pulse 3s ease-in-out infinite;
}
.btn-appointment:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(13, 110, 253, 0.35);
}

.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #1c8dff 60%, #1272d8 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08), transparent 35%),
                radial-gradient(circle at 80% 0%, rgba(255,255,255,0.08), transparent 25%);
    pointer-events: none;
}
.hero-blob {
    position: absolute;
    right: -120px;
    bottom: -160px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), rgba(255,255,255,0));
    filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}
.hero-img {
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    animation: float 4s ease-in-out infinite;
    transition: transform 0.3s ease;
}
.hero-img:hover {
    transform: scale(1.02);
}

.section-title {
    font-weight: 800;
    letter-spacing: -0.5px;
}
.section-subtitle {
    color: var(--muted);
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}
.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    transition: color 0.3s ease;
}
.stat-card:hover .stat-number {
    transform: scale(1.1);
    display: inline-block;
}
.stat-label {
    color: var(--muted);
    transition: color 0.3s ease;
}
.stat-card:hover .stat-label {
    color: var(--primary);
}

.service-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 55px rgba(13, 110, 253, 0.18);
    border-color: var(--primary);
}
.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: rgba(13,110,253,0.08);
    color: var(--primary);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}
.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}
.icon-blue { background: rgba(77, 171, 247, 0.12); color: #0d6efd; }
.icon-purple { background: rgba(151, 117, 250, 0.12); color: #7c3aed; }
.icon-green { background: rgba(81, 207, 102, 0.12); color: #198754; }
.gradient-primary { background: linear-gradient(135deg, #0d6efd 0%, #1c8dff 100%); }

.doctor-card {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 18px 35px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}
.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}
.doctor-card img {
    height: 260px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.doctor-card:hover img {
    transform: scale(1.08);
}
.filter-pill {
    border-radius: 999px;
    font-weight: 700;
    padding: 0.45rem 1.2rem;
}

.testimonial-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    padding: 1.75rem;
    height: 100%;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-left-color: var(--primary);
}

.contact-card {
    border: 0;
    border-radius: 18px;
    box-shadow: var(--card-shadow);
}

.footer {
    background: #0b1b33;
    color: #e2e8f0;
}
.footer a { color: #cbd5e1; text-decoration: none; }
.footer a:hover { color: #fff; }

@media (max-width: 991px) {
    .hero-img { margin-top: 2rem; }
}

.is-hidden {
    display: none !important;
}
