/* Hero Section - Absolutely Stunning */
.hero {
  position: relative;
  text-align: center;
  padding: 120px 20px 80px;
  color: var(--text-light);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 100px;
}

/* Mobile-first approach - ensure hero content is visible at top */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 80px 15px 40px;
    justify-content: flex-start;
  }

  .hero-content {
    margin-top: 0;
    padding-top: 0;
  }
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(0, 122, 77, 0.25) 0%,
      transparent 60%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 184, 28, 0.2) 0%,
      transparent 60%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(255, 184, 28, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 60% 70%,
      rgba(0, 122, 77, 0.12) 0%,
      transparent 50%
    ),
    rgba(0, 0, 0, 0.1);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  width: 100%;
}

/* Ensure content flows properly on mobile */
@media (max-width: 768px) {
  .hero-content {
    max-width: 100%;
    padding: 0 10px;
  }
}

.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  margin-bottom: 24px;
  color: #ffffff !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 2px 10px rgba(0, 0, 0, 0.7), 0 1px 5px rgba(0, 0, 0, 0.5);
  line-height: 1.1;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 10;
  /* Remove gradient background to ensure solid white text */
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-weight: 500;
  opacity: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  color: #ffffff;
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 16px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 10;
}

/* Mobile improvements for subtitle */
@media (max-width: 768px) {
  .hero-subtitle {
    font-size: 1.1rem;
    padding: 15px;
    margin-bottom: 20px;
    max-width: 95%;
  }

  /* Hide floating elements on mobile for better text visibility */
  .floating-elements {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-subtitle {
    font-size: 1rem;
    padding: 12px;
    margin-bottom: 15px;
  }

  /* Ensure floating elements are hidden on small screens */
  .floating-elements {
    display: none;
  }
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Mobile hero stats improvements */
@media (max-width: 768px) {
  .hero-stats {
    gap: 30px;
    margin-top: 30px;
  }

  .hero-stat {
    flex: 1;
    min-width: 120px;
  }

  .hero-stat-number {
    font-size: 2rem;
  }

  .hero-stat-label {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    gap: 20px;
    margin-top: 20px;
    justify-content: space-around;
  }

  .hero-stat {
    min-width: 100px;
  }

  .hero-stat-number {
    font-size: 1.8rem;
  }

  .hero-stat-label {
    font-size: 0.75rem;
  }
}

.hero-stat {
  text-align: center;
  opacity: 0.9;
}

.hero-stat-number {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #ffd700; /* Fallback gold color */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

/* Mobile CTA improvements */
@media (max-width: 768px) {
  .hero-cta {
    gap: 15px;
    margin-bottom: 20px;
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
    padding: 14px 28px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-cta .btn {
    max-width: 260px;
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}

.hero-cta .btn {
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.hero-cta .btn-xl {
  padding: 18px 36px;
  font-size: 1.2rem;
}

.hero-testimonials {
  margin-top: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.testimonial {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  position: relative;
}

.testimonial i {
  font-size: 2rem;
  color: var(--sa-gold);
  margin-bottom: 20px;
  opacity: 0.95;
}

.testimonial p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
  color: #1a1a2e;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 8px 12px;
  border-radius: 6px;
  display: inline-block;
}

.testimonial cite {
  font-size: 0.9rem;
  color: #1a1a2e;
  background-color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
}

.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
  /* Uncomment the line below to completely disable floating elements */
  /* display: none; */
}

.floating-element {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(5px);
  animation: float 6s ease-in-out infinite;
  opacity: 0.4;
}

.floating-element:nth-child(1) {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  top: 15%;
  right: 5%;
  animation-delay: 2s;
}

.floating-element:nth-child(3) {
  bottom: 10%;
  right: 10%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}