* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

.slider {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
}

.slide.active {
  opacity: 1;
}

.text-box {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 30px 40px;
  max-width: 450px;
  border-left: 5px solid #00bfff;
  animation: fadeIn 1s ease-in-out;
}

.text-box h4 {
  color: #00bfff;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.text-box h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.text-box p {
  font-size: 0.95rem;
  color: #ddd;
  margin-bottom: 20px;
}

.text-box a {
  background-color: #00bfff;
  color: #000;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 3px;
  transition: background 0.3s ease;
}

.text-box a:hover {
  background-color: #0095cc;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-45%);
  }
  to {
    opacity: 1;
    transform: translateY(-50%);
  }
}

/* 2nd */

.stats-section {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
}

/* Heading */
.stats-section h2 {
  font-size: 2.5rem; /* original size */
  font-weight: 700;
  color: #222;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
}

/* Gradient highlight for key words */
.highlight {
  background: linear-gradient(90deg, #0095cc, #00b8e6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* Animated underline */
.stats-section h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #0095cc, #00b8e6);
  border-radius: 10px;
  animation: underlineMove 3s infinite ease-in-out;
}

@keyframes underlineMove {
  0%,
  100% {
    width: 80px;
  }
  50% {
    width: 140px;
  }
}

.stats-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.stat-box {
  background: #fff;
  border: 2px solid #0095cc;
  border-radius: 20px;
  padding: 30px 40px;
  width: 220px;
  box-shadow: 0 6px 20px rgba(0, 149, 204, 0.1);
  transition: all 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 149, 204, 0.2);
}

.stat-number {
  font-size: 2.3rem;
  font-weight: 700;
  background: linear-gradient(90deg, #0095cc, #00b8e6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-text {
  font-size: 1rem;
  color: #333;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .stat-box {
    width: 45%;
  }
  .stats-section h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .stat-box {
    width: 100%;
  }
}

/* 3rd*/
.heading-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}
.custom-heading {
  font-size: 2.5rem;
  font-weight: 700;
  color: #222;
  position: relative;
  display: inline-block;
  margin-bottom: 50px;
}
.custom-heading::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #0095cc, #00b8e6);
  border-radius: 10px;
  animation: underlineMove 3s infinite ease-in-out;
}
@keyframes underlineMove {
  0%,
  100% {
    width: 80px;
  }
  50% {
    width: 140px;
  }
}
.why-us-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}
.features-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-items: center;
}
.feature-box {
  background: #fff;
  border-radius: 15px;
  padding: 25px 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-left: 5px solid #0095cc;
  max-width: 350px;
  width: 100%;
}
.feature-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 149, 204, 0.15);
}
.feature-box .icon {
  font-size: 2.5rem;
  color: #0095cc;
  margin-bottom: 15px;
}
.feature-box h3 {
  font-size: 1.2rem;
  color: #222;
  margin-bottom: 10px;
  font-weight: 600;
}
.feature-box p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}
@media (max-width: 1024px) {
  .features-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .features-container {
    grid-template-columns: 1fr;
  }
  .custom-heading {
    font-size: 2rem;
  }
}

.residential-section {
  padding: 80px 20px;
  background-color: #f5f8fa;
  color: #333;
  font-family: "Poppins", sans-serif;
}

.residential-section .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.residential-content {
  flex: 1;
  min-width: 300px;
}

.residential-content h2 {
  color: #007ba0;
  font-size: 32px;
  margin-bottom: 20px;
}

.residential-content p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.residential-image {
  flex: 1;
  min-width: 300px;
}

.residential-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* Responsive */
@media (max-width: 900px) {
  .residential-section .container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .residential-image img {
    max-width: 80%;
    margin: 0 auto;
  }
}
