/* --- GENERAL STYLES & VARIABLES --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 300;
  color: #333;
  font-weight: 1000;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.section-title.text-center {
  display: block;
  text-align: center;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60px;
  height: 4px;
  background-color: #91c63c;
  border-radius: 2px;
}

.section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* --- HERO SLIDER --- */
.hero-slider {
  position: relative;
  width: 100%;
  height: 90vh;
  min-height: 600px;
  overflow: hidden;
  margin-top: -95px; /* Pulls it up behind the floating header */
}

.slider-container {
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}

/* REPLACE this rule in your home.css */
.slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Changed from a gradient to a solid overlay for better centered text readability */
  background: rgba(26, 29, 36, 0.6);
}

/* REPLACE this rule in your home.css */
.slide-content {
  position: relative;
  z-index: 2;
  color: white;
  /* This combination centers the content block */
  margin: 0 auto;
  text-align: center;
  /* Increased max-width for a better look when centered */
  max-width: 800px;
}

.slide-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  color: white;
  margin-bottom: 20px;
}

/* Animated Title Text */
.slide-title span {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.slide.active .slide-title span:nth-child(1) {
  transition-delay: 0.3s;
}
.slide.active .slide-title span:nth-child(2) {
  transition-delay: 0.5s;
}
.slide.active .slide-title span {
  opacity: 1;
  transform: translateY(0);
}

.slide-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 500px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.7s, transform 0.6s ease 0.7s;
}
.slide.active .slide-description {
  opacity: 1;
  color: white;
  transform: translateY(0);
}

.btn-primary {
  background: #91c63c;
  color: #1a1d24;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.4s ease;
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.9s;
}
.slide.active .btn-primary {
  opacity: 1;
  transform: translateY(0);
}

.btn-primary:hover {
  background: #a4e04b;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(145, 198, 60, 0.3);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.4s ease;
}
.slider-arrow:hover {
  background: #91c63c;
  color: #1a1d24;
}
.prev-arrow {
  left: 30px;
}
.next-arrow {
  right: 30px;
}

.slider-dots {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 12px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.4s ease;
}
.dot.active {
  background: #91c63c;
  transform: scale(1.2);
}

/* --- INTRODUCTION SECTION --- */
.introduction-section {
  padding: 80px 0;
}
.intro-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: center;
}
.intro-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}
.signature-card {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  text-align: center;
}
.doctor-photo {
  width: 60%;
  height: 60%;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 4px solid #91c63c;
}
.signature-text {
  font-style: italic;
  color: #333;
  margin-bottom: 20px;
  font-size: 1.1rem;
}
.signature-name {
  font-weight: 700;
  color: #1a1d24;
  margin-bottom: 5px;
}
.signature-title {
  font-size: 0.9rem;
  color: #777;
}

/* --- WHY CHOOSE US SECTION --- */
.why-choose-us-section {
  padding: 80px 0;
  background-color: #f0f2f5;
  overflow: hidden;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  color: #91c63c;
  margin-bottom: 20px;
  display: inline-block;
  background: linear-gradient(135deg, #91c63c, #a4e04b);
  color: white;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 10px 20px rgba(145, 198, 60, 0.3);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #333;
}

.feature-card p {
  line-height: 1.7;
  color: #555;
}

/* --- CORE SERVICES SECTION --- */
.core-services-section {
  padding: 80px 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}
.service-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  transition: all 0.4s ease;
  border: 1px solid transparent;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(145, 198, 60, 0.15);
  border-color: #91c63c;
}
.service-icon {
  font-size: 2.5rem;
  color: #91c63c;
  margin-bottom: 20px;
}
.service-title {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 10px;
}
.service-description {
  color: #666;
  line-height: 1.6;
}

/* --- REVEAL ON SCROLL ANIMATION --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
  .section-title {
    font-size: 2rem;
  }
  .slide-title {
    font-size: 2.8rem;
  }
  .intro-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-slider {
    height: 80vh;
  }
  .slide-title {
    font-size: 2.2rem;
  }
  .slide-description {
    font-size: 1rem;
  }
  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .prev-arrow {
    left: 15px;
  }
  .next-arrow {
    right: 15px;
  }
}
