* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* GLOBAL SMOOTH */
* {
  scroll-behavior: smooth;
}

/* SECTION SPACING CONSISTENCY */
section {
  scroll-margin-top: 80px;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f8f9fa;
  color: #333;
}

html {
  scroll-behavior: smooth;
}

.container {
  width: 90%;
  margin: auto;
}

/* NAVBAR */
.navbar {
  background: #fff;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: #e63946;
}

.navbar ul {
  display: flex;
  list-style: none;
}

.navbar ul li {
  margin: 0 15px;
}

.navbar ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

/* NAV LINKS HOVER */
.navbar ul li a {
  position: relative;
  transition: 0.3s;
}

.navbar ul li a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background: #e63946;
  left: 0;
  bottom: -5px;
  transition: 0.3s;
}

.navbar ul li a:hover::after {
  width: 100%;
}

/* NAV CONTAINER */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* HAMBURGER */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* NAV MENU */
.nav-menu {
  display: flex;
}

/* BUTTON */
.btn {
  background: #e63946;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s;
}

.btn-outline {
  border: 2px solid #e63946;
  color: #e63946;
  padding: 10px 20px;
  border-radius: 6px;
  margin-left: 10px;
  text-decoration: none;
}

/* BUTTON HOVER */
.btn:hover {
  background: #c92f3c;
  transform: translateY(-2px);
}

.btn-outline {
  transition: 0.3s;
}

.btn-outline:hover {
  background: #e63946;
  color: #fff;
}

/* HERO */
.hero {
  padding: 80px 0;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  /* IMPORTANT */
}

.hero-text {
  max-width: 500px;
  flex: 1;
}

.hero-text h1 {
  font-size: 42px;
  margin-bottom: 20px;
}

.hero-text p {
  margin-bottom: 20px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  /* CENTER ALIGN */
}

.hero-image img {
  width: 100%;
  max-width: 450px;
  /* Bigger image */
  height: auto;
  transition: transform 0.5s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}


.hero-image img:hover {
  transform: rotateY(10deg) rotateX(5deg) scale(1.05);
}

/* DOCTOR SECTION */
.doctor {
  padding: 80px 0;
  background: #fff;
}

.doctor-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.doctor-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.doctor-image img {
  width: 100%;
  max-width: 350px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: 0.4s;
}

.doctor-image img:hover {
  transform: scale(1.05);
}

.doctor-text {
  flex: 1;
}

.doctor-text h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.designation {
  color: #e63946;
  font-weight: 600;
  margin-bottom: 15px;
}

.description {
  margin-bottom: 20px;
  line-height: 1.6;
}

/* STATS */
.doctor-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.stat {
  background: #f8f9fa;
  padding: 15px 20px;
  border-radius: 10px;
  text-align: center;
  flex: 1;
  transition: 0.3s;
}

.stat h3 {
  color: #e63946;
  font-size: 22px;
}

.stat:hover {
  transform: translateY(-5px);
}

/* SERVICES */
.services {
  padding: 80px 0;
  background: #f8f9fa;
  text-align: center;
}

.section-title h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.section-title p {
  margin-bottom: 40px;
  color: #666;
}

/* GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

/* CARD */
.service-card {
  background: #fff;
  padding: 30px 20px;
  border-radius: 12px;
  transition: 0.3s;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.service-card .icon {
  font-size: 30px;
  margin-bottom: 15px;
}

.service-card h3 {
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: #555;
}

/* HOVER EFFECT */
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* APPOINTMENT */
.appointment {
  padding: 80px 0;
  background: #fff;
}

.appointment-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

/* LEFT SIDE */
.appointment-text {
  flex: 1;
}

.appointment-text h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.appointment-text p {
  margin-bottom: 20px;
}

.appointment-text ul li {
  margin-bottom: 10px;
}

/* FORM */
.appointment-form {
  flex: 1;
  background: #f8f9fa;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.appointment-form form {
  display: flex;
  flex-direction: column;
}

.appointment-form input {
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  outline: none;
}

.appointment-form input:focus {
  border-color: #e63946;
}

/* BUTTON FULL WIDTH */
.appointment-form .btn {
  width: 100%;
}

/* TESTIMONIALS */
.testimonials {
  padding: 80px 0;
  background: #f8f9fa;
  text-align: center;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.testimonial-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 15px;
  color: #555;
}

.testimonial-card h4 {
  color: #e63946;
}

/* HOVER */
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* FOOTER */
.footer {
  background: #111;
  color: #fff;
  padding-top: 50px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-info {
  flex: 1;
}

.footer-info h3 {
  margin-bottom: 15px;
  color: #e63946;
}

.footer-map {
  flex: 1;
}

.footer-bottom {
  text-align: center;
  padding: 15px;
  margin-top: 20px;
  background: #000;
}

.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  background: #25D366;
  color: #fff;
  font-size: 28px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  text-decoration: none;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
  z-index: 999;
}

/* HOVER */
.whatsapp:hover {
  transform: scale(1.1);
}

/* PULSE ANIMATION 🔥 */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp {
  animation: pulse 2s infinite;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {

  .navbar .container {
    flex-direction: column;
    gap: 10px;
  }

  .navbar ul {
    flex-direction: column;
    text-align: center;
  }

  .navbar ul li {
    margin: 10px 0;
  }

  /* MOBILE */
  @media (max-width: 768px) {

    .nav-menu {
      position: absolute;
      top: 70px;
      left: 0;
      width: 100%;
      background: #fff;
      flex-direction: column;
      align-items: center;

      max-height: 0;
      overflow: hidden;
      transition: 0.4s ease;
    }

    .nav-menu.active {
      max-height: 300px;
      padding: 20px 0;
    }

    .nav-menu ul {
      flex-direction: column;
    }

    .nav-menu ul li {
      margin: 10px 0;
    }

    .nav-btn {
      display: none;
    }

    .hamburger {
      display: block;
    }
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero-image img {
    width: 100%;
    margin-top: 20px;
    max-width: 300px;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 768px) {

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  /* 👇 ORDER CHANGE */
  .hero-image {
    order: -1;
    /* image sabse upar */
    margin-bottom: 20px;
  }

  .hero-text {
    order: 1;
  }

  .hero-text h1 {
    font-size: 26px;
  }

  .hero-image img {
    width: 100%;
    max-width: 280px;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

/*ABOUT DOCTOR*/
@media (max-width: 768px) {

  .doctor-content {
    flex-direction: column;
    text-align: center;
  }

  .doctor-stats {
    flex-direction: column;
  }

}

/*SERVICES*/
@media (max-width: 768px) {

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 480px) {

  .services-grid {
    grid-template-columns: 1fr;
  }

}

/*APPOINTMENT SECTION*/
@media (max-width: 768px) {

  .appointment-content {
    flex-direction: column;
    text-align: center;
  }

  .appointment-text ul {
    padding-left: 0;
  }

}

/*TESTIMONIALS*/
@media (max-width: 768px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

/*FOOTER*/
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}