/* Stats Counter */
.stats-section {
  background: linear-gradient(to right, #f4f7fb, #eaf1f8);
  padding: 80px 20px;
}
.stats-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  text-align: center;
}
.stat {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 34, 77, 0.1);
  padding: 30px;
  min-width: 180px;
  transition: transform 0.3s ease;
}
.stat:hover {
  transform: translateY(-5px);
}
.stat .count {
  font-size: 3rem;
  font-weight: 800;
  color: #00224d;
  display: block;
}
.stat::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  margin: 10px auto;
  background: #00bfff;
  border-radius: 2px;
}
.stat-text {
  font-size: 1rem;
  color: #444;
  margin-top: 10px;
}

/* Testimonials */
/* ========== TESTIMONIAL SECTION ========== */
.testimonials-section {
  background: linear-gradient(to right, #f9fafc, #edf2f8);
  padding: 120px 20px;
  text-align: center;
  position: relative;
}

.testimonials-section h2.section-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #00224d;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.testimonials-section .section-subtitle {
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 50px;
  max-width: 700px;
  margin-inline: auto;
}

/* Carousel Container */
.testimonials-carousel {
  position: relative;
  max-width: 850px;
  margin: 0 auto;
}

/* Testimonial Cards */
.testimonial {
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.testimonial.active {
  display: block;
  opacity: 1;
}

.testimonial-content {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 50px 40px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: transform 0.4s ease;
}

.testimonial-content:hover {
  transform: scale(1.015);
}

.testimonial-content .quote-icon {
  font-size: 50px;
  color: #005fa3;
  margin-bottom: 15px;
}

.testimonial-content p {
  font-style: italic;
  font-size: 1.1rem;
  color: #333;
  line-height: 1.8;
}

.testimonial-content h4 {
  margin-top: 25px;
  font-style: normal;
  font-weight: 600;
  color: #00224d;
  font-size: 1rem;
}

/* Carousel Controls */
.testimonial-controls {
  margin-top: 40px;
}

.testimonial-controls button {
  padding: 10px 18px;
  background: #00224d;
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1.1rem;
  margin: 0 5px;
  transition: background 0.3s ease;
}

.testimonial-controls button:hover {
  background: #005fa3;
}

/* Dots for Carousel */
.testimonial-dots {
  margin-top: 20px;
}

.testimonial-dots span {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background: #ccc;
  border-radius: 50%;
  transition: background 0.3s ease;
  cursor: pointer;
}

.testimonial-dots span.active {
  background: #00224d;
}


/* === Service Grid Section === */
.services-grid {
  padding: 5rem 2rem;
  background: transparent;
}

.services-grid .container {
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* === Card === */
.service-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* === Image === */
.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover img {
  transform: scale(1.05);
}

/* === Card Content === */
.card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #0c1c2b;
  font-weight: 600;
  text-transform: capitalize;
}

/* === Buttons === */
.card-content button {
  margin-top: auto;
  padding: 0.8rem 1.5rem;
  border: none;
  background: #003366;
  color: #fff;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.3s ease;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  margin-right: 10px;
}

.card-content button:hover {
  background: #0054a6;
}

.card-content .cta-button {
  background: #00bcd4;
}

.card-content .cta-button:hover {
  background: #019cb3;
}

/* === Optional: Add subtle reveal animation === */
.service-card {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.7s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 600px) {
  .card-content h3 {
    font-size: 1.2rem;
  }

  .card-content button {
    width: 100%;
    margin: 0.5rem 0 0;
  }

  .card-content {
    padding: 1.5rem;
  }

  .service-card img {
    height: 180px;
  }
}


/* Video Button */
.video-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background: #00bfff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.hero-section {
  position: relative;
  padding: 7rem 1.5rem 6rem;
  background: transparent; /* Leave background for flexibility */
  color: #fff;
  text-align: center;
  overflow: hidden;
}

/* ✨ Particles Layer */
.particles-bg,
#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ✨ Light overlay effect (optional) */
.hero-overlay {
  position: absolute;
  top: -30px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 70%);
  transform: rotate(45deg);
  z-index: 0;
}

/* ✨ Content above particles and overlay */
.hero-section .container,
.hero-content {
  position: relative;
  z-index: 2;
}

/* ✨ Hero Title Gradient Text */
.hero-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ✨ Subtitle: lighter color by default, auto-adjust in dark/light */
.hero-subtitle {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  color: #111827;
  line-height: 1.6;
}

/* ✨ Particles Layer */
.particles-bg,
#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ✨ Optional: Dark mode support */
body.dark-mode .hero-subtitle {
  color: #d1d5db; /* Light gray in dark mode */
}

body.light-mode{
  color: black;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 768px) {
  .hero-wrapper {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero-text {
    padding: 0;
  }
}
