/* ===== HERO CAROUSEL ===== */
.hero-carousel {
  position: relative;
  height: 80vh;
  overflow: hidden;
}

.slides {
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

/* Overlay */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 31, 68, 0.75);
}

/* Content */
.slide-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  color: #ffffff;
  padding: 0 20px;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
}

.slide-content h1 {
  font-size: 52px;
  margin-bottom: 20px;
}

.slide-content p {
  font-size: 17px;
  margin-bottom: 30px;
  color: #dddddd;
}

/* Buttons */
.btn-primary {
  background: #e0a730;
  color: #1f3c88;
  padding: 12px 26px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}

/* Arrows */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #ffffff;
  border: none;
  font-size: 28px;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 5;
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 25px;
  width: 100%;
  text-align: center;
  z-index: 5;
}

.dot {
  height: 10px;
  width: 10px;
  background: #ffffff;
  border-radius: 50%;
  display: inline-block;
  margin: 0 6px;
  opacity: 0.5;
  cursor: pointer;
}

.dot.active {
  background: #e0a730;
  opacity: 1;
}


/* ===== HERO CAROUSEL RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-carousel {
    height: 50vh;
  }

  .slide-content {
    text-align: center;
    left: 0;
    right: 0;
    margin: auto;
  }

  .slide-content h1 {
    font-size: 34px;
  }
  .carousel-btn {
    top:45%;
    font-size: 20px;
  }
.carousel-btn.prev {
    left: 0px;
}
  .carousel-btn.next {
    right: 0px;
}
}

@media (max-width: 480px) {
  .slide-content h1 {
    font-size: 28px;
  }

  .slide-content p {
    font-size: 15px;
  }
}



/* ================================services section ======================= */

.services {
  background: #f5f5f5;
  padding: 40px 20px;
}

.container {
  max-width: 1200px;
  margin: auto;
}

/* Title */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 34px;
  color: #1f3c88;
  margin-bottom: 10px;
}

.section-title p {
  font-size: 16px;
  color: #666666;
}

/* Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Card */
.service-card {
  background: #ffffff;
  padding: 30px;
  text-align: center;
  border-radius: 6px;
  transition: 0.3s;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-card .icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #1f3c88;
}

.service-card p {
  font-size: 14px;
  color: #555555;
  line-height: 1.6;
}



/* ===== SERVICES RESPONSIVE ===== */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .section-title h2 {
    font-size: 28px;
  }
}




/* ================================= WHY CHOOSE US ========================== */
.why-us {
  padding: 60px 20px;
  background: #ffffff;
}

.why-us-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Content */
.why-content h2 {
  font-size: 34px;
  color: #1f3c88;
  margin-bottom: 15px;
}

.why-content p {
  font-size: 16px;
  color: #666666;
  margin-bottom: 25px;
}

.why-list {
  list-style: none;
  margin-bottom: 30px;
}

.why-list li {
  font-size: 15px;
  margin-bottom: 12px;
  color: #333333;
}

/* Image */
.why-image img {
  width: 100%;
  border-radius: 6px;
  animation: floatImage 4s ease-in-out infinite;
  box-shadow: 0 20px 40px rgba(31, 60, 136,0.35);
}
/* Keyframes */
@keyframes floatImage {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0);
  }
}


/* ===== WHY US RESPONSIVE ===== */
@media (max-width: 992px) {
  .why-us-grid {
    grid-template-columns: 1fr;
    text-align: center;
    
  }

  .why-image {
    order: 1;
  }

  .why-content {
    order: 2;
    text-align: center;
  }

  .why-list {
    padding-left: 0;
  }
}






/* ============================= FEATURED PROJECTS ==================== */
.projects {
  background: #f5f5f5;
  padding: 80px 20px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

/* Card */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.project-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* Hover zoom */
.project-card:hover img {
  transform: scale(1.1);
}

/* Overlay */
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 31, 68, 0.75);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: 0.4s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.project-overlay p {
  font-size: 14px;
  color: #e0a730;
}

/* Button */
.projects-btn {
  text-align: center;
  margin-top: 40px;
}




/* ===== PROJECTS RESPONSIVE ===== */
@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card img {
    height: 220px;
  }
}




/* ============================= CTA BANNER ============================== */
.cta {
  position: relative;
  background: url("../images/cta-bg.jpeg") center/cover no-repeat;
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(31, 60, 136, 0.85);
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.cta-content h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.cta-content p {
  font-size: 16px;
  margin-bottom: 30px;
  color: #dddddd;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* Buttons */
.btn-outline {
  padding: 10px 26px;
  border: 2px solid #ffffff;
  color: #ffffff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}

/* ===== CTA RESPONSIVE ===== */
@media (max-width: 768px) {
  .cta-content h2 {
    font-size: 30px;
  }

  .cta-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .cta-content h2 {
    font-size: 26px;
  }

  .cta-content p {
    font-size: 15px;
  }
}



/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 60px 20px;
  background: #f9f9f9;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.testimonial-card {
  background: #fff;
  padding: 25px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.testimonial-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 3px solid #e0a730;
}

.testimonial-card h4 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #0f1f44;
}

.testimonial-card p {
  font-size: 14px;
  color: #555;
}

.testimonial-cta {
  margin-top: 40px;
  text-align: center;
}


@media (max-width: 992px) {
  .testimonial-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}
