/* 🌐 Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f4f6f9;
  color: #000000;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

section {
  padding: 80px 20px;
}

h1, h2, h3 {
  font-weight: 700;
}

h2.section-title {
  text-align: center;
  font-size: 2.4rem;
  color: #102542;
  margin-bottom: 40px;
  position: relative;
}

h2.section-title::after {
  content: "";
  width: 60px;
  height: 4px;
  background: #ff3e3e;
  display: block;
  margin: 14px auto 0;
  border-radius: 4px;
}

/* 🎯 Hero Section */
.hero-overlay {
  position: relative;
  width: 100%;
  height: 75vh;
  overflow: hidden;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) saturate(1.1);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.hero-overlay-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 50px 30px;
  text-align: center;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  color: #fff;
  z-index: 2;
  max-width: 90%;
  width: 800px;
  animation: heroBounce 1.5s ease;
}

.hero-overlay-content h1 {
  font-size: 3rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  margin-bottom: 20px;
}

.hero-overlay-content p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.btn-primary {
  background-color: #ff3e3e;
  color: white;
  padding: 12px 30px;
  font-size: 16px;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background-color: #c70039;
}

/* 🔧 Services Section */
.services-section {
  background: #d8d3c7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.service-card {
  background: #fff;
  border-radius: 18px;
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(to bottom right, #ff3e3e, #ff9f43);
  color: #fff;
  font-size: 30px;
  box-shadow: 0 4px 12px rgba(255, 62, 62, 0.3);
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
  color: #102542;
}

.service-card p {
  font-size: 0.95rem;
  color: #555;
}

.service-card:nth-child(4n+1) .service-icon {
  background: linear-gradient(to right, #3f51b5, #5c6bc0);
}
.service-card:nth-child(4n+2) .service-icon {
  background: linear-gradient(to right, #009688, #26a69a);
}
.service-card:nth-child(4n+3) .service-icon {
  background: linear-gradient(to right, #ff9800, #ffb74d);
}
.service-card:nth-child(4n+4) .service-icon {
  background: linear-gradient(to right, #e91e63, #f06292);
}

/* ⭐ Why Choose Us */
.why-choose {
  background: #f1f3f5;
}

.why-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: auto;
}

.why-text {
  flex: 1 1 50%;
}

.why-text ul {
  margin-top: 20px;
}

.why-text li {
  font-size: 1rem;
  margin-bottom: 14px;
  list-style: none;
}

.why-text i {
  color: #ff3e3e;
  margin-right: 10px;
}

.why-image {
  flex: 1 1 40%;
  text-align: center;
}

.why-image img {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}

.image-credit {
  display: block;
  font-size: 12px;
  color: #999;
}

.image-credit a {
  color: #c70039;
  text-decoration: underline;
  font-weight: 500;
}

/* 📝 Testimonials */
.testimonials-section {
  background: #fff;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: auto;
}

.testimonial-card {
  background: #fcfcfc;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(158, 153, 153, 0.05);
}

.testimonial-card p {
  font-style: italic;
  color: white;
}

.testimonial-card strong {
  display: white;
  margin-top: 16px;
  font-size: 14px;
}

/* 📞 CTA Section */
.cta-section {
  background: linear-gradient(to right, #ff3e3e, #ff6464);
  color: white;
  text-align: center;
  padding: 60px 20px;
  border-radius: 12px;
}

.cta-section h2 {
  font-size: 2rem;
  color: white;
}

.cta-section p {
  font-size: 1.1rem;
  margin: 10px 0 20px;
}

.btn-outline {
  padding: 12px 28px;
  border: 2px solid #fff;
  border-radius: 8px;
  font-weight: 600;
  background: transparent;
  color: white;
  transition: 0.3s;
}

.btn-outline:hover {
  background: white;
  color: #ff3e3e;
}

/* 🎬 Animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroBounce {
  0% {
    opacity: 0;
    transform: translate(-50%, -70%);
  }
  60% {
    opacity: 1;
    transform: translate(-50%, -48%);
  }
  100% {
    transform: translate(-50%, -50%);
  }
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .hero-overlay-content h1 {
    font-size: 2rem;
  }

  .hero-overlay-content p {
    font-size: 1rem;
  }

  .why-container {
    flex-direction: column;
    text-align: center;
  }

  .btn-primary,
  .btn-outline {
    width: 90%;
    max-width: 300px;
  }

  .hero-overlay {
    height: 60vh;
  }

  .service-card {
    padding: 30px 15px;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 26px;
  }

  .service-card h3 {
    font-size: 1.1rem;
  }
}
.testimonials-section {
  background: #f9fafc;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
}

.carousel-container {
  max-width: 1000px;
  margin: auto;
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  justify-content: center;
  transition: transform 0.5s ease-in-out;
  gap: 20px;
}

.testimonial-card {
  width: 300px;
  padding: 30px;
  background: #6181c7;
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  transform: scale(0.9);
  opacity: 0.4;
  filter: blur(2px);
}

/* ✅ Middle (focused) card only */
.testimonial-card.active {
  transform: scale(1.05);
  opacity: 1;
  filter: none;
  z-index: 2;
}

/* Navigation Dots */
.carousel-dots {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.carousel-dots .dot {
  width: 12px;
  height: 12px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-dots .dot.active {
  background: #ff3e3e;
}

/* ✅ Mobile View: only 1 card visible, no blur */
@media (max-width: 768px) {
  .carousel-track {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
  }

  .testimonial-card {
    flex: 0 0 100%;
    width: 90%;
    margin: 0 auto;
    opacity: 1;
    filter: none;
    transform: scale(1);
    scroll-snap-align: center;
  }

  .carousel-dots {
    display: none;
  }
}
.testimonial-card {
  background: #4f83e4; /* Optional: dark background for contrast */
  color: #ffffff;       /* Make all text inside white */
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
 .reviews-section {
  padding: 80px 20px;
  background: #ffffff;
  text-align: center;
}

.reviews-section h2 {
  font-size: 2.5rem;
  color: #102542;
  margin-bottom: 10px;
}

.reviews-section p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 40px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .reviews-section h2 {
    font-size: 1.8rem;
  }

  .reviews-section p {
    font-size: 1rem;
  }
}

/* 🔘 Popup Styles */
.popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.5s ease forwards;
}

.popup-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  max-width: 90%;
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: slideDown 0.5s ease;
}

/* ❌ Close Button */
.popup-close {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 20px;
  color: #333;
  cursor: pointer;
  line-height: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 🔴 Image Styling */
.popup-content img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 15px;
}

.popup-content h2 {
  color: #ff3e3e;
  margin: 10px 0 5px;
}

.popup-content p {
  color: #444;
  margin: 0;
}

/* 🎬 Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* 📱 Mobile View */
@media (max-width: 600px) {
  .popup-content {
    padding: 15px;
  }

  .popup-close {
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    font-size: 18px;
    line-height: 28px;
  }

  .popup-content img {
    max-width: 100%;
    max-height: 60vh;
  }
}

/* 💻 Desktop View */
@media (min-width: 768px) {
  .popup-content {
    max-width: 720px;
  }

  .popup-content img {
    max-width: 100%;
    max-height: 80vh;
  }
}
