/* =====================
   DR. AJIT KUMAR MISHRA
   Medical Website CSS
   ===================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --primary: #1a5fa8;
  --primary-dark: #0d3d73;
  --primary-light: #e8f1fb;
  --accent: #2196f3;
  --accent-light: #64b5f6;
  --white: #ffffff;
  --text-dark: #1a1a2e;
  --text-gray: #555e6e;
  --text-light: #8892a4;
  --border: #dce8f5;
  --bg-light: #f4f8ff;
  --success: #27ae60;
  --shadow-sm: 0 2px 10px rgba(26,95,168,0.08);
  --shadow-md: 0 6px 30px rgba(26,95,168,0.14);
  --shadow-lg: 0 16px 60px rgba(26,95,168,0.18);
  --radius: 12px;
  --radius-lg: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ========== TOPBAR ========== */
.topbar {
  background: var(--primary-dark);
  color: #b8d4f5;
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #b8d4f5; }
.topbar a:hover { color: #fff; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar span { display: flex; align-items: center; gap: 6px; }

/* ========== NAVBAR ========== */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(26,95,168,0.10);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo .logo-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: white; font-weight: 700;
}
.nav-logo .logo-text { line-height: 1.2; }
.nav-logo .logo-text strong { display: block; font-size: 15px; color: var(--primary-dark); font-weight: 700; }
.nav-logo .logo-text span { font-size: 11.5px; color: var(--text-gray); }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: 8px;
  transition: all 0.25s;
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--primary);
  background: var(--primary-light);
}
.nav-cta {
  background: var(--primary) !important;
  color: white !important;
  padding: 9px 20px !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: 0.3s; }

/* ========== CONTAINER ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ========== SECTION STYLES ========== */
section { padding: 80px 0; }
.section-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 16px;
}
.section-title span { color: var(--primary); }
.section-desc { color: var(--text-gray); font-size: 15.5px; max-width: 600px; margin-bottom: 40px; }
.text-center { text-align: center; }
.text-center .section-desc { margin: 0 auto 40px; }

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, #0d3d73 0%, #1a5fa8 50%, #1976d2 100%);
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}
.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.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #b8d4f5;
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 30px;
  margin-bottom: 24px;
}
.hero-badge::before { content: '⭐'; }
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 4.5vw, 56px);
  color: white;
  line-height: 1.15;
  margin-bottom: 10px;
}
.hero h1 em { color: var(--accent-light); font-style: normal; }
.hero-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 28px;
}
.hero-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 36px;
}
.hero-stat strong { display: block; font-size: 26px; font-weight: 700; color: white; }
.hero-stat span { font-size: 12.5px; color: rgba(255,255,255,0.65); }
.hero-stat + .hero-stat { border-left: 1px solid rgba(255,255,255,0.2); padding-left: 30px; }

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: white;
  color: var(--primary);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14.5px;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.btn-outline {
  background: transparent;
  color: white;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14.5px;
  border: 2px solid rgba(255,255,255,0.4);
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }

.hero-img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-img-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
  max-width: 440px;
}
.hero-img-card img { width: 100%; height: 340px; object-fit: cover; display: block; }
.hero-img-info {
  padding: 20px;
  color: white;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-img-info .avatar {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, #64b5f6, #1565c0);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: white;
  flex-shrink: 0;
}
.hero-img-info strong { display: block; font-size: 15px; }
.hero-img-info span { font-size: 12.5px; color: rgba(255,255,255,0.7); }
.rating-badge {
  position: absolute;
  top: 20px; right: -10px;
  background: white;
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.rating-badge .stars { color: #f59e0b; font-size: 13px; margin-bottom: 2px; }
.rating-badge strong { display: block; font-size: 22px; color: var(--text-dark); }
.rating-badge span { font-size: 11px; color: var(--text-gray); }

/* ========== SERVICES STRIP ========== */
.services-strip { background: var(--primary); padding: 0; overflow: hidden; }
.strip-scroll { display: flex; animation: stripScroll 25s linear infinite; white-space: nowrap; }
.strip-item {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 13.5px; font-weight: 500;
  padding: 14px 30px;
  border-right: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.strip-item span { color: var(--accent-light); font-size: 16px; }
@keyframes stripScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ========== ABOUT ========== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-img-stack img {
  border-radius: var(--radius);
  height: 200px;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}
.about-img-stack img:first-child { grid-column: span 2; height: 240px; }
.about-exp-badge {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about-exp-badge strong { display: block; font-size: 38px; font-weight: 700; line-height: 1; }
.about-exp-badge span { font-size: 12px; opacity: 0.85; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0; }
.about-feat {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 16px;
  display: flex; align-items: flex-start; gap: 12px;
}
.about-feat .feat-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.about-feat strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-dark); }
.about-feat p { font-size: 12.5px; color: var(--text-gray); margin: 0; }

/* ========== SERVICES ========== */
.services-section { background: var(--bg-light); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.3s;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: 0.3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 60px; height: 60px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
  transition: 0.3s;
}
.service-card:hover .service-icon { background: var(--primary); }
.service-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; color: var(--text-dark); }
.service-card p { font-size: 13.5px; color: var(--text-gray); line-height: 1.65; margin: 0; }

/* ========== GALLERY ========== */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; display: block; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; height: 340px; }

/* ========== WHY US ========== */
.whyus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.whyus-list { display: flex; flex-direction: column; gap: 20px; }
.whyus-item {
  display: flex; align-items: flex-start; gap: 18px;
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 22px 24px;
  border-left: 4px solid var(--primary);
  transition: 0.25s;
}
.whyus-item:hover { background: var(--primary-light); }
.whyus-item .wi-num {
  font-size: 28px; font-weight: 700; color: var(--primary);
  opacity: 0.25; line-height: 1; flex-shrink: 0; font-family: 'Playfair Display', serif;
}
.whyus-item strong { display: block; font-size: 15px; margin-bottom: 4px; }
.whyus-item p { font-size: 13.5px; color: var(--text-gray); margin: 0; }

.whyus-img { position: relative; }
.whyus-img img { width: 100%; border-radius: var(--radius-lg); object-fit: cover; height: 480px; }
.review-card {
  position: absolute;
  bottom: 24px; left: -24px;
  background: white;
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-md);
  min-width: 220px;
}
.review-card .stars { color: #f59e0b; font-size: 14px; margin-bottom: 6px; }
.review-card p { font-size: 13px; color: var(--text-gray); margin: 0 0 8px; font-style: italic; }
.review-card .reviewer { font-size: 12px; color: var(--text-light); font-weight: 500; }

/* ========== CONTACT ========== */
.contact-section { background: var(--bg-light); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; }
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-card {
  background: white;
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex; align-items: flex-start; gap: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.contact-card .cc-icon {
  width: 46px; height: 46px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.contact-card strong { display: block; font-size: 13px; color: var(--text-light); font-weight: 500; margin-bottom: 4px; }
.contact-card p, .contact-card a {
  font-size: 14.5px; color: var(--text-dark); font-weight: 500; margin: 0;
}
.contact-card a:hover { color: var(--primary); }
.map-embed { border-radius: var(--radius); overflow: hidden; margin-top: 4px; box-shadow: var(--shadow-sm); }
.map-embed iframe { width: 100%; height: 220px; border: none; display: block; }

/* ========== APPOINTMENT FORM ========== */
.appt-form {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px 34px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.appt-form h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; color: var(--text-dark); }
.appt-form .sub { font-size: 13.5px; color: var(--text-gray); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text-dark); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--text-dark);
  background: #fafcff;
  transition: 0.25s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(26,95,168,0.08);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 14px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,95,168,0.3); }
.form-success {
  display: none;
  background: #e8f8ef;
  border: 1px solid #a8dfc0;
  border-radius: 10px;
  padding: 16px 20px;
  color: var(--success);
  font-weight: 500;
  text-align: center;
  margin-top: 14px;
}

/* ========== APPOINTMENT PAGE ========== */
.appt-page-hero {
  background: linear-gradient(135deg, #0d3d73, #1a5fa8);
  padding: 70px 0;
  color: white;
  text-align: center;
}
.appt-page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 10px;
}
.appt-page-hero p { color: rgba(255,255,255,0.75); font-size: 16px; }
.appt-full-form {
  max-width: 700px;
  margin: -40px auto 80px;
  background: white;
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-lg);
}
.appt-full-form h2 { font-size: 22px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.appt-full-form .sub { font-size: 13.5px; color: var(--text-gray); margin-bottom: 28px; }

/* ========== PAGE HERO (inner pages) ========== */
.page-hero {
  background: linear-gradient(135deg, #0d3d73, #1a5fa8);
  padding: 80px 0;
  text-align: center;
  color: white;
}
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(32px, 4vw, 50px); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 16px; max-width: 600px; margin: 0 auto; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; font-size: 13px; color: rgba(255,255,255,0.6); }
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: white; }

/* ========== FOOTER ========== */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
}
.footer-main {
  padding: 70px 0 40px;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 50px;
}
.footer-brand .logo-text strong { color: white; font-size: 18px; }
.footer-brand .logo-text span { color: rgba(255,255,255,0.55); }
.footer-brand p { font-size: 13.5px; line-height: 1.8; margin: 16px 0 22px; color: rgba(255,255,255,0.6); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: white;
  transition: 0.25s;
}
.footer-social a:hover { background: var(--accent); }
.footer-col h4 { color: white; font-size: 15px; font-weight: 600; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13.5px; color: rgba(255,255,255,0.65); transition: 0.2s; display: flex; align-items: center; gap: 6px; }
.footer-col ul li a:hover { color: var(--accent-light); padding-left: 4px; }
.footer-col ul li a::before { content: '›'; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.footer-contact-item span:first-child { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.footer-contact-item p { font-size: 13px; color: rgba(255,255,255,0.65); margin: 0; line-height: 1.6; }
.footer-contact-item a { color: rgba(255,255,255,0.65); }
.footer-contact-item a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--accent-light); }
.powered-by { display: flex; align-items: center; gap: 6px; }
.powered-by img { height: 18px; }

/* ========== FLOATING CALL BUTTON ========== */
.float-call {
  position: fixed;
  bottom: 28px; right: 28px;
  background: var(--success);
  color: white;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  box-shadow: 0 6px 20px rgba(39,174,96,0.4);
  z-index: 999;
  animation: pulse 2s infinite;
  text-decoration: none;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(39,174,96,0.4); }
  50% { box-shadow: 0 6px 30px rgba(39,174,96,0.7); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .hero-grid, .about-grid, .whyus-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px; }
  .hero-img-wrap { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:first-child { height: 220px; }
}
@media (max-width: 768px) {
  section { padding: 56px 0; }
  .nav-menu { display: none; position: fixed; top: 72px; left: 0; right: 0; background: white; flex-direction: column; padding: 20px; box-shadow: var(--shadow-md); border-top: 1px solid var(--border); z-index: 999; }
  .nav-menu.open { display: flex; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .appt-full-form { padding: 28px 20px; margin: -20px 16px 60px; }
  .about-features { grid-template-columns: 1fr; }
  .topbar { display: none; }
  .whyus-img { display: none; }
}
