/* ===== Shri Balaji Clinic - Custom CSS ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

* { scroll-behavior: smooth; }

body { font-family: 'Inter', sans-serif; }
h1, h2, h3, h4, h5, h6, .font-poppins { font-family: 'Poppins', sans-serif; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f0f9ff; }
::-webkit-scrollbar-thumb { background: #0ea5e9; border-radius: 10px; }

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  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 float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
@keyframes pulse-ring {
  0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37,211,102,0.7); }
  70%  { transform: scale(1);    box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes heroText {
  0%   { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes bounceIn {
  0%   { transform: scale(0.3); opacity: 0; }
  50%  { transform: scale(1.05); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== Apply Animations ===== */
.animate-fadeInUp   { animation: fadeInUp 0.7s ease forwards; }
.animate-fadeInLeft { animation: fadeInLeft 0.7s ease forwards; }
.animate-fadeInRight{ animation: fadeInRight 0.7s ease forwards; }
.animate-float      { animation: float 3s ease-in-out infinite; }
.animate-float-slow { animation: float 5s ease-in-out infinite; }
.animate-spin-slow  { animation: spin-slow 20s linear infinite; }
.animate-bounceIn   { animation: bounceIn 0.6s ease forwards; }

.hero-text-1 { animation: heroText 0.8s ease 0.2s both; }
.hero-text-2 { animation: heroText 0.8s ease 0.5s both; }
.hero-text-3 { animation: heroText 0.8s ease 0.8s both; }
.hero-text-4 { animation: heroText 0.8s ease 1.1s both; }

/* ===== Scroll Reveal ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left  { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible  { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ===== Nav ===== */
.navbar { transition: all 0.3s ease; }
.navbar.scrolled { 
  box-shadow: 0 4px 30px rgba(14,165,233,0.15); 
  backdrop-filter: blur(10px);
}
.nav-link { position: relative; transition: color 0.3s ease; }
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: #f97316;
  transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* ===== Hero ===== */
.hero-section {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 40%, #fff7ed 100%);
  position: relative; overflow: hidden;
}
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.3;
  pointer-events: none;
}
.hero-blob-1 { width: 400px; height: 400px; background: #0ea5e9; top: -100px; right: -100px; }
.hero-blob-2 { width: 300px; height: 300px; background: #f97316; bottom: -80px; left: -80px; }
.hero-blob-3 { width: 200px; height: 200px; background: #0ea5e9; top: 40%; left: 30%; }

/* ===== Cards ===== */
.service-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(14,165,233,0.05), transparent);
  transition: left 0.5s ease;
}
.service-card:hover::before { left: 100%; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 25px 60px rgba(14,165,233,0.2); }

.doctor-card {
  transition: all 0.4s ease;
  position: relative; overflow: hidden;
}
.doctor-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(14,165,233,0.25); }
.doctor-card .doctor-overlay {
  position: absolute; bottom: -100%; left: 0; right: 0;
  background: linear-gradient(to top, rgba(14,165,233,0.95), transparent);
  transition: bottom 0.4s ease; padding: 1.5rem;
}
.doctor-card:hover .doctor-overlay { bottom: 0; }

.testimonial-card { transition: all 0.3s ease; }
.testimonial-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(14,165,233,0.15); }

/* ===== WhatsApp Button ===== */
.whatsapp-btn {
  position: fixed; bottom: 30px; right: 30px; z-index: 999;
  width: 60px; height: 60px;
  background: #25d366;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  animation: pulse-ring 2s infinite;
  transition: transform 0.3s ease;
  text-decoration: none;
}
.whatsapp-btn:hover { transform: scale(1.15); }

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed; bottom: 100px; right: 30px; z-index: 999;
  width: 44px; height: 44px;
  background: #0ea5e9; color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 15px rgba(14,165,233,0.4);
  opacity: 0; transform: translateY(20px);
  transition: all 0.3s ease; cursor: pointer; border: none;
}
.back-to-top.show { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: #0284c7; transform: translateY(-3px); }

/* ===== Cookie Banner ===== */
#cookieBanner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  transform: translateY(100%); transition: transform 0.5s ease;
}
#cookieBanner.show { transform: translateY(0); }

/* ===== Gradient Text ===== */
.gradient-text {
  background: linear-gradient(135deg, #0ea5e9, #f97316);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Saffron Gradient Button ===== */
.btn-primary {
  background: linear-gradient(135deg, #f97316, #ea580c);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(249,115,22,0.3);
}
.btn-primary:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 8px 25px rgba(249,115,22,0.45);
  background: linear-gradient(135deg, #ea580c, #f97316);
}
.btn-secondary {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(14,165,233,0.3);
}
.btn-secondary:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 8px 25px rgba(14,165,233,0.45);
}

/* ===== Section dividers ===== */
.wave-divider { line-height: 0; }

/* ===== Stats Counter ===== */
.stat-card {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  transition: all 0.3s ease;
}
.stat-card:hover { transform: scale(1.05); box-shadow: 0 15px 40px rgba(14,165,233,0.3); }

/* ===== Gallery ===== */
.gallery-item { overflow: hidden; position: relative; }
.gallery-item img { transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,165,233,0.8), transparent);
  opacity: 0; transition: opacity 0.4s ease;
  display: flex; align-items: flex-end; padding: 1rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ===== Form Styling ===== */
.form-control {
  transition: all 0.3s ease;
  border: 2px solid #e0f2fe;
}
.form-control:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14,165,233,0.1);
  outline: none;
}

/* ===== Mobile Menu ===== */
#mobileMenu {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease;
}
#mobileMenu.open { max-height: 500px; }

/* ===== Emergency Banner ===== */
.emergency-bar {
  background: linear-gradient(90deg, #ef4444, #dc2626);
  animation: shimmer 3s linear infinite;
  background-size: 200% 100%;
}

/* ===== Tabs ===== */
.tab-btn { transition: all 0.3s ease; }
.tab-btn.active { 
  background: #0ea5e9; color: white;
  box-shadow: 0 4px 15px rgba(14,165,233,0.3);
}
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeInUp 0.4s ease; }

/* ===== Google Rating Stars ===== */
.star { color: #f59e0b; }

/* ===== Breadcrumb ===== */
.page-hero {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='30'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-blob { display: none; }
  .whatsapp-btn { width: 50px; height: 50px; bottom: 20px; right: 20px; }
  .back-to-top { bottom: 80px; right: 20px; }
}

/* ===== Before/After Slider ===== */
.before-after { position: relative; cursor: pointer; }
.ba-label {
  position: absolute; top: 10px;
  background: rgba(0,0,0,0.6); color: white;
  padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.ba-before { left: 10px; }
.ba-after  { right: 10px; }

/* ===== Hours Table ===== */
.hours-row { transition: background 0.2s ease; }
.hours-row:hover { background: #f0f9ff; }
.hours-today { background: #e0f2fe; font-weight: 600; }

/* ===== Floating badge ===== */
.floating-badge {
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 10px 30px rgba(14,165,233,0.3);
}
