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

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: #f8f8f8;
}

/* -----------------------------
 HERO SECTION
------------------------------*/
.hero {
  background: url('./ab1.webp') center/cover no-repeat;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
}

.hero-content {
  text-align: center;
  color: #fff;
  position: relative;
  max-width: 700px;
  animation: fadeIn 1.5s ease-in-out;
}

.hero-content h1 {
  font-size: 2.7rem;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.btn-primary {
  background: #ff6f00;
  color: #fff;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #ff8500;
}

/* -----------------------------
 FEATURES SECTION
------------------------------*/
.features {
  padding: 60px 5%;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #222;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.feature-box {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  transition: 0.4s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.feature-box img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.feature-box:hover {
  transform: scale(1.05);
}

/* -----------------------------
 SERVICES SECTION
------------------------------*/
.services {
  padding: 60px 5%;
  text-align: center;
  background: #e6f2ff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.service-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  transition: .3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.10);
}

.service-card img {
  height: 170px;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.service-card:hover {
  transform: translateY(-10px);
}

/* -----------------------------
 CTA SECTION
------------------------------*/
.cta {
  padding: 70px 5%;
  /* background: #004080; */
  /* background: url('./life.webp') center/cover no-repeat; */
  text-align: center;
  color: black;
}

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

.cta p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

/* -----------------------------
 ANIMATIONS
------------------------------*/
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(40px);}
  to {opacity: 1; transform: translateY(0);}
}

/* -----------------------------
 RESPONSIVE DESIGN
------------------------------*/

/* TABLET VIEW */
@media (max-width: 992px) {
  .feature-grid,
  .services-grid {
      grid-template-columns: repeat(2, 1fr);
  }

  .hero-content h1 {
      font-size: 2.2rem;
  }
}

/* MOBILE VIEW */
@media (max-width: 600px) {
  .feature-grid,
  .services-grid {
      grid-template-columns: 1fr;
  }

  .hero {
      height: 70vh;
  }

  .hero-content h1 {
      font-size: 1.8rem;
  }

  .hero-content p {
      font-size: 1rem;
  }
}


/* ===========================
   TABLET VIEW (600px–1024px)
   =========================== */
@media (max-width: 1024px) and (min-width: 600px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .btn-primary {
        font-size: 1.1rem;
        padding: 12px 28px;
    }
}


/* ===========================
   MOBILE VIEW (Up to 600px)
   =========================== */
@media (max-width: 600px) {
    .hero {
        height: 80vh;  /* smaller for mobile */
        padding: 10px;
    }

    .hero-content h1 {
        font-size: 1.9rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .btn-primary {
        font-size: 1rem;
        padding: 10px 22px;
    }
}
