/* ===================================================
   HERO.CSS — Styles specific to the Hero section
   =================================================== */

/* --- Hero Wrapper --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--navbar-height);
  background: var(--gradient-hero);
}

/* --- Gradient overlay for depth --- */
.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(0, 212, 200, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse 60% 80% at 80% 80%, rgba(0, 100, 255, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(240, 192, 64, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

/* --- Decorative animated particles --- */
.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle 8s ease-in-out infinite;
}

.particle--1 {
  width: 4px;
  height: 4px;
  background: var(--color-accent);
  top: 15%;
  left: 12%;
  animation-delay: 0s;
  animation-duration: 9s;
}

.particle--2 {
  width: 6px;
  height: 6px;
  background: rgba(0, 212, 200, 0.5);
  top: 70%;
  left: 78%;
  animation-delay: 1.5s;
  animation-duration: 11s;
}

.particle--3 {
  width: 3px;
  height: 3px;
  background: var(--color-accent-gold);
  top: 40%;
  left: 92%;
  animation-delay: 3s;
  animation-duration: 8.5s;
}

.particle--4 {
  width: 5px;
  height: 5px;
  background: rgba(0, 150, 255, 0.6);
  top: 80%;
  left: 8%;
  animation-delay: 0.8s;
  animation-duration: 10s;
}

.particle--5 {
  width: 4px;
  height: 4px;
  background: rgba(0, 212, 200, 0.7);
  top: 25%;
  left: 55%;
  animation-delay: 2.2s;
  animation-duration: 7.5s;
}

@keyframes floatParticle {
  0%   { opacity: 0; transform: translateY(0px) scale(0.8); }
  20%  { opacity: 1; }
  50%  { opacity: 0.8; transform: translateY(-30px) scale(1.2); }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-60px) scale(0.8); }
}

/* --- Hero Content --- */
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  padding-block: var(--space-4xl) var(--space-3xl);
  max-width: 880px;
  padding-inline: var(--space-xl);
}

/* --- Certification badge --- */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.4rem 1rem;
  background: var(--color-accent-dim);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  animation: fadeSlideIn 0.6s ease both;
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 6px var(--color-accent); }
  50%       { box-shadow: 0 0 14px var(--color-accent), 0 0 28px var(--color-accent-glow); }
}

/* --- Hero Headline --- */
.hero__headline {
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  font-weight: 900;
  color: var(--color-text-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
  animation: fadeSlideIn 0.7s ease 0.1s both;
}

.hero__headline-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Subheadline --- */
.hero__subheadline {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--color-accent-gold);
  letter-spacing: -0.01em;
  animation: fadeSlideIn 0.7s ease 0.2s both;
}

/* --- Description --- */
.hero__description {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 560px;
  line-height: 1.8;
  animation: fadeSlideIn 0.7s ease 0.3s both;
}

/* --- CTA Group --- */
.hero__cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeSlideIn 0.7s ease 0.4s both;
}

/* --- Hero Statistics --- */
.hero__stats {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  padding: var(--space-lg) var(--space-xl);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
  animation: fadeSlideIn 0.7s ease 0.55s both;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__stat-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
  text-align: center;
  max-width: 100px;
  line-height: 1.4;
}

.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* --- Scroll indicator --- */
.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: fadeSlideIn 1s ease 1s both;
}

.hero__scroll-line {
  width: 1.5px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

/* --- Global entry animation --- */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Responsive Hero --- */
@media (max-width: 768px) {
  .hero__stats {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .hero__stat-divider {
    width: 60px;
    height: 1px;
  }

  .hero__cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero__cta-group .btn {
    width: 100%;
    justify-content: center;
  }
}
