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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: #1e293b;
  background: #f8fafc;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(1200px, 90%);
  margin: auto;
}

/* =========================
   PRELOADER
========================= 
.preloader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
}*/

/* =========================
   HEADER
========================= */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  color: #0ea5e9;
}

.navbar ul {
  display: flex;
  gap: 30px;
}

.navbar a {
  color: #334155;
  font-weight: 600;
  transition: 0.3s;
}

.navbar a:hover {
  color: #0ea5e9;
}

.menu-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 30px;
  cursor: pointer;
}

/* =========================
   BUTTONS
========================= */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-primary {
  background: #0ea5e9;
  color: #fff;
}

.btn-primary:hover {
  background: #0284c7;
  transform: translateY(-2px);
}

.btn-secondary {
  border: 2px solid #0ea5e9;
  color: #0ea5e9;
}

.btn-secondary:hover {
  background: #0ea5e9;
  color: #fff;
}

/* =========================
   HERO
========================= */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: #dbeafe;
  color: #2563eb;
  padding: 10px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
  font-weight: 600;
}

.hero h1 {
  font-size: 64px;
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero h1 span {
  display: block;
  color: #0ea5e9;
}

.hero p {
  color: #64748b;
  margin-bottom: 30px;
  font-size: 18px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.stat h3 {
  color: #0ea5e9;
  font-size: 30px;
}

.stat p {
  margin: 0;
}

.hero-image img {
  max-width: 500px;
  margin-left: auto;
}

/* =========================
   SECTIONS
========================= */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header span {
  color: #0ea5e9;
  font-weight: 700;
  text-transform: uppercase;
}

.section-header h2 {
  font-size: 42px;
  margin-top: 10px;
}

/* =========================
   TRUST
========================= */
.trust {
  background: white;
  padding: 50px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-card {
  background: #fff;
  padding: 25px;
  text-align: center;
  border-radius: 16px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* =========================
   ABOUT
========================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image img {
  border-radius: 24px;
}

.about-content p {
  margin-bottom: 20px;
}

.about-content ul {
  margin-bottom: 30px;
}

.about-content li {
  margin-bottom: 10px;
}

/* =========================
   FEATURES
========================= */
.features-grid,
.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.feature-card,
.department-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.feature-card:hover,
.department-card:hover {
  transform: translateY(-8px);
}

/* =========================
   DOCTORS
========================= */
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.doctor-card {
  overflow: hidden;
  border-radius: 24px;
  background: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.doctor-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.doctor-content {
  padding: 25px;
  text-align: center;
}

.doctor-content span {
  color: #0ea5e9;
}

/* =========================
   APPOINTMENT
========================= */
.appointment-box {
  background: white;
  padding: 50px;
  border-radius: 24px;
  max-width: 900px;
  margin: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.appointment-box h2 {
  text-align: center;
  margin-bottom: 30px;
}

.appointment form {
  display: grid;
  gap: 20px;
}

.appointment input,
.appointment select,
.appointment textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  font-family: inherit;
}

.appointment textarea {
  min-height: 140px;
  resize: vertical;
}

/* =========================
   TESTIMONIALS
========================= */
.testimonial-card {
  max-width: 700px;
  margin: auto;
  text-align: center;
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.testimonial-card p {
  margin: 20px 0;
}

/* =========================
   GALLERY
========================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-grid img {
  border-radius: 16px;
  height: 250px;
  width: 100%;
  object-fit: cover;
}

/* =========================
   FAQ
========================= */
.faq details {
  background: white;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

/* =========================
   CTA
========================= */
.cta {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: white;
  text-align: center;
}

.cta h2 {
  font-size: 42px;
  margin-bottom: 15px;
}

.cta p {
  margin-bottom: 25px;
}

.cta .btn-primary {
  background: white;
  color: #0ea5e9;
}

/* =========================
   FOOTER
========================= */
.footer {
  background: #0f172a;
  color: white;
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer h3,
.footer h4 {
  margin-bottom: 15px;
}

.footer li {
  margin-bottom: 10px;
  color: #cbd5e1;
}

.copyright {
  text-align: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

/* =========================
   SCROLL TOP
========================= */
#scrollTop {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 50px;
  height: 50px;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: #0ea5e9;
  color: white;
  font-size: 25px;

  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
  .hero-grid,
  .about-grid,
  .doctor-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    text-align: center;
  }

  .hero-image img {
    margin: auto;
  }

  .hero-buttons,
  .hero-stats {
    justify-content: center;
  }

  .trust-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 44px;
  }

  .section-header h2 {
    font-size: 32px;
  }

  .trust-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .appointment-box {
    padding: 30px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .navbar {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  }

  .navbar.active {
    display: block;
  }

  .navbar ul {
    flex-direction: column;
    padding: 20px;
  }

  .navbar li {
    margin: 10px 0;
  }
}
