/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; overflow-x: hidden; color: #1e293b; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #0f6eb4; border-radius: 10px; }

/* ===== MARQUEE ===== */
.marquee-notice { background: linear-gradient(90deg, #fff8e1, #fff3cd, #fff8e1); border-bottom: 1px solid #f59e0b; }
@keyframes marquee { 0% { transform: translateX(100vw); } 100% { transform: translateX(-100%); } }
.marquee-text { display: inline-block; animation: marquee 35s linear infinite; white-space: nowrap; }

/* ===== NAVBAR ===== */
nav { backdrop-filter: blur(10px); background: rgba(255,255,255,0.97) !important; border-bottom: 1px solid rgba(15,110,180,0.08); }
.nav-link { position: relative; padding-bottom: 2px; }
.nav-link::after { content: ''; position: absolute; bottom: -2px; left: 50%; width: 0; height: 2px; background: linear-gradient(90deg, #0f6eb4, #1a8fd1); transition: all 0.3s ease; transform: translateX(-50%); border-radius: 2px; }
.nav-link:hover::after { width: 100%; }

/* ===== HERO ===== */
.hero-slide { background-size: cover; background-position: center; min-height: 88vh; }
.hero-overlay { background: linear-gradient(135deg, rgba(10,79,130,0.75) 0%, rgba(15,110,180,0.45) 60%, rgba(0,0,0,0.2) 100%); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp    { from { opacity:0; transform:translateY(40px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInDown  { from { opacity:0; transform:translateY(-30px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInLeft  { from { opacity:0; transform:translateX(-40px); } to { opacity:1; transform:translateX(0); } }
@keyframes fadeInRight { from { opacity:0; transform:translateX(40px); } to { opacity:1; transform:translateX(0); } }
@keyframes scaleIn     { from { opacity:0; transform:scale(0.85); } to { opacity:1; transform:scale(1); } }
@keyframes pulse-ring  { 0%,100% { box-shadow:0 0 0 0 rgba(15,110,180,0.4); } 50% { box-shadow:0 0 0 12px rgba(15,110,180,0); } }
@keyframes float       { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-10px); } }
@keyframes shimmer     { 0% { background-position:-200% 0; } 100% { background-position:200% 0; } }
@keyframes countUp     { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes spin-slow   { from { transform:rotate(0deg); } to { transform:rotate(360deg); } }
@keyframes gradient-x  { 0%,100% { background-position:0% 50%; } 50% { background-position:100% 50%; } }

.animate-fadeInUp    { animation: fadeInUp    0.7s ease forwards; }
.animate-fadeInDown  { animation: fadeInDown  0.7s ease forwards; }
.animate-fadeInLeft  { animation: fadeInLeft  0.7s ease forwards; }
.animate-fadeInRight { animation: fadeInRight 0.7s ease forwards; }
.animate-scaleIn     { animation: scaleIn     0.6s ease forwards; }
.animate-float       { animation: float 3s ease-in-out infinite; }
.animate-spin-slow   { animation: spin-slow 8s linear infinite; }

/* Delay helpers */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* Scroll reveal - hidden by default */
.reveal { opacity: 0; transform: translateY(35px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1 !important; transform: translateY(0) !important; }
.reveal-left  { opacity:0; transform:translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right { opacity:0; transform:translateX(40px);  transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible, .reveal-right.visible { opacity:1 !important; transform:translateX(0) !important; }
.reveal-scale { opacity:0; transform:scale(0.9); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-scale.visible { opacity:1 !important; transform:scale(1) !important; }

/* ===== CARDS ===== */
.card-hover { transition: transform 0.35s cubic-bezier(.25,.8,.25,1), box-shadow 0.35s ease; }
.card-hover:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(15,110,180,0.18); }

.doctor-card-inner { transition: transform 0.35s ease, box-shadow 0.35s ease; }
.doctor-card-inner:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(15,110,180,0.2); }
.doctor-card-inner:hover .doctor-img { transform: scale(1.06); }
.doctor-img { transition: transform 0.5s ease; }

/* ===== BUTTONS ===== */
.btn-primary {
    background: linear-gradient(135deg, #0f6eb4, #1a8fd1);
    color: white; border: none; border-radius: 50px;
    padding: 12px 32px; font-weight: 600; font-size: 0.9rem;
    cursor: pointer; position: relative; overflow: hidden;
    transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(15,110,180,0.35);
}
.btn-primary::before {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(15,110,180,0.45); }
.btn-primary:active { transform: translateY(0); }

/* ===== SECTION TITLES ===== */
.section-badge {
    display: inline-block; background: linear-gradient(135deg, #e8f4fd, #c5e3f7);
    color: #0f6eb4; font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 6px 16px; border-radius: 50px; margin-bottom: 12px;
    border: 1px solid rgba(15,110,180,0.2);
}
.section-title { font-size: 2rem; font-weight: 800; color: #0f2942; line-height: 1.2; }
.section-divider {
    width: 60px; height: 4px; border-radius: 2px;
    background: linear-gradient(90deg, #0f6eb4, #1a8fd1);
    margin: 12px auto 0;
}

/* ===== STATS COUNTER ===== */
.stat-card {
    background: linear-gradient(135deg, #0f6eb4, #0a4f82);
    border-radius: 20px; padding: 28px 20px; text-align: center;
    position: relative; overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-card::before {
    content: ''; position: absolute; top: -30px; right: -30px;
    width: 100px; height: 100px; border-radius: 50%;
    background: rgba(255,255,255,0.07);
}
.stat-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(10,79,130,0.4); }
.stat-number { font-size: 2.5rem; font-weight: 800; color: white; line-height: 1; }
.stat-label  { font-size: 0.85rem; color: rgba(255,255,255,0.8); margin-top: 6px; font-weight: 500; }

/* ===== SPECIALTY TABS ===== */
.specialty-tab {
    padding: 10px 20px; border-radius: 50px; font-size: 0.85rem; font-weight: 600;
    border: 2px solid #e2e8f0; color: #64748b; cursor: pointer;
    transition: all 0.3s ease; white-space: nowrap;
}
.specialty-tab:hover, .specialty-tab.active {
    background: linear-gradient(135deg, #0f6eb4, #1a8fd1);
    border-color: #0f6eb4; color: white;
    box-shadow: 0 4px 15px rgba(15,110,180,0.3);
    transform: translateY(-2px);
}

/* ===== FILTER BUTTONS ===== */
.filter-btn { transition: all 0.3s ease; }
.filter-btn.active {
    background: linear-gradient(135deg, #0f6eb4, #1a8fd1) !important;
    color: white !important; border-color: #0f6eb4 !important;
    box-shadow: 0 4px 15px rgba(15,110,180,0.35);
    transform: translateY(-2px);
}

/* ===== TESTIMONIAL ===== */
.testimonial-card {
    background: white; border-radius: 20px; padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(15,110,180,0.08);
    position: relative;
}
.testimonial-card::before {
    content: '\201C'; position: absolute; top: 16px; left: 24px;
    font-size: 5rem; color: rgba(15,110,180,0.1); font-family: Georgia, serif;
    line-height: 1;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(15,110,180,0.15); }

/* ===== GALLERY ===== */
.gallery-item { overflow: hidden; border-radius: 16px; position: relative; }
.gallery-item img { transition: transform 0.5s ease; width: 100%; height: 100%; object-fit: cover; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
    position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,79,130,0.7), transparent);
    opacity: 0; transition: opacity 0.3s ease; border-radius: 16px;
    display: flex; align-items: flex-end; padding: 16px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ===== BLOG CARD ===== */
.blog-card { border-radius: 20px; overflow: hidden; background: white; transition: all 0.35s ease; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.blog-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(15,110,180,0.18); }
.blog-card img { transition: transform 0.5s ease; }
.blog-card:hover img { transform: scale(1.06); }

/* ===== FORM INPUTS ===== */
.form-input {
    width: 100%; border: 2px solid #e2e8f0; border-radius: 12px;
    padding: 12px 16px; font-size: 0.9rem; color: #1e293b;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #f8fafc;
}
.form-input:focus {
    outline: none; border-color: #0f6eb4;
    box-shadow: 0 0 0 4px rgba(15,110,180,0.12);
    background: white;
}

/* ===== FLOATING ELEMENTS ===== */
.float-map { position: fixed; bottom: 90px; right: 22px; z-index: 999; cursor: pointer; }
.float-map img { border-radius: 50%; box-shadow: 0 4px 20px rgba(0,0,0,0.25); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.float-map:hover img { transform: scale(1.12); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }

.whatsapp-float { position: fixed; bottom: 22px; right: 22px; z-index: 999; }
.whatsapp-float > div { animation: pulse-ring 2.5s ease-in-out infinite; }
@keyframes pulse-ring { 0%,100% { box-shadow:0 0 0 0 rgba(37,211,102,0.5); } 50% { box-shadow:0 0 0 14px rgba(37,211,102,0); } }

/* ===== SWIPER ===== */
.swiper-pagination-bullet { background: rgba(255,255,255,0.6) !important; width: 10px !important; height: 10px !important; }
.swiper-pagination-bullet-active { background: white !important; width: 28px !important; border-radius: 5px !important; }
.swiper-button-next, .swiper-button-prev { color: white !important; background: rgba(255,255,255,0.2); border-radius: 50%; width: 44px !important; height: 44px !important; backdrop-filter: blur(4px); }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 16px !important; font-weight: 900; }

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: linear-gradient(135deg, #0f6eb4, #1a8fd1, #0a4f82);
    background-size: 200% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; animation: gradient-x 4s ease infinite;
}

/* ===== SHIMMER LOADING ===== */
.shimmer {
    background: linear-gradient(90deg, #f0f4f8 25%, #e2e8f0 50%, #f0f4f8 75%);
    background-size: 200% 100%; animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, #0a4f82 0%, #0f6eb4 50%, #1a8fd1 100%);
    position: relative; overflow: hidden;
}
.page-header::before {
    content: ''; position: absolute; top: -50%; right: -10%;
    width: 400px; height: 400px; border-radius: 50%;
    background: rgba(255,255,255,0.05);
}
.page-header::after {
    content: ''; position: absolute; bottom: -30%; left: -5%;
    width: 300px; height: 300px; border-radius: 50%;
    background: rgba(255,255,255,0.04);
}

/* ===== APPOINTMENT STEPS ===== */
.step-item { position: relative; }
.step-item:not(:last-child)::after {
    content: '→'; position: absolute; right: -16px; top: 50%;
    transform: translateY(-50%); color: #94a3b8; font-size: 1.2rem;
}

/* ===== DEPARTMENT CARD ===== */
.dept-card {
    border-radius: 20px; overflow: hidden; background: white;
    border: 2px solid transparent; transition: all 0.35s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.dept-card:hover {
    border-color: #0f6eb4; transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15,110,180,0.2);
}
.dept-card img { transition: transform 0.4s ease; }
.dept-card:hover img { transform: scale(1.1) rotate(3deg); }

/* ===== SUCCESS STORY ===== */
.story-card {
    border-radius: 20px; overflow: hidden; background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    transition: all 0.35s ease; border: 1px solid rgba(15,110,180,0.08);
}
.story-card:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(15,110,180,0.18); }

/* ===== INSURANCE CARD ===== */
.insurance-card {
    border-radius: 16px; padding: 20px; background: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06); transition: all 0.3s ease;
    border: 2px solid transparent; display: flex; align-items: center; justify-content: center;
}
.insurance-card:hover { border-color: #0f6eb4; transform: scale(1.05); box-shadow: 0 12px 30px rgba(15,110,180,0.2); }
.insurance-card img { filter: grayscale(30%); transition: filter 0.3s ease; }
.insurance-card:hover img { filter: grayscale(0%); }

/* ===== MODAL ===== */
.modal-backdrop { backdrop-filter: blur(6px); }
.modal-box { animation: scaleIn 0.3s ease forwards; }

/* ===== BACK TO TOP ===== */
#backToTop {
    position: fixed; bottom: 160px; right: 22px; z-index: 998;
    width: 42px; height: 42px; border-radius: 50%;
    background: linear-gradient(135deg, #0f6eb4, #0a4f82);
    color: white; border: none; cursor: pointer;
    display: none; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(15,110,180,0.4);
    transition: all 0.3s ease;
}
#backToTop:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(15,110,180,0.5); }
#backToTop.show { display: flex; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .section-title { font-size: 1.6rem; }
    .stat-number { font-size: 2rem; }
    .hero-slide { min-height: 60vh; }
}
