/* ============================================================
   hero.css — aCloudShalla Hero Section (Theme Consistent)
   ============================================================ */


/* ── 1. HERO WRAPPER ──────────────────────────────────────── */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  /* Background image */
  background-image: url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  overflow: hidden;
}


/* ── 2. OVERLAY LAYERS ────────────────────────────────────── */

/* Base image overlay — uses dynamic lightened theme overlay */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay, rgba(0, 0, 0, 0.45));
  z-index: 1;
}

/* Bottom gradient fade to page background */
.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    var(--clr-bg, #0a0e1a) 100%
  );
  z-index: 1;
}


/* ── 3. GRID OVERLAY (DISABLED GLOBALLY) ────────────────── */
.hero-grid {
  display: none !important;
}


/* ── 4. CONTENT AREA ─────────────────────────────────────── */
.hero-section .container {
  position: relative;
  z-index: 3;
  padding-top: 40px;
  padding-bottom: 40px;
}


/* ── 5. PILL BADGE ────────────────────────────────────────── */
.headline-btn-wrapper {
  margin-bottom: 28px;
}

.headline-btn {
  display: inline-block;
  background: var(--glow-accent, rgba(56, 189, 248, 0.15));
  color: var(--clr-accent, #38bdf8);
  border: 1px solid var(--clr-border-blue, rgba(56, 189, 248, 0.35));
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 50px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
}


/* ── 6. MAIN TITLE ────────────────────────────────────────── */
.hero-subtitle {
  font-size: clamp(2.5rem, 7vw, 4.8rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);

  opacity: 0;
  transform: translateY(22px);
  animation: heroFadeUp 0.9s ease forwards 0.35s;
}


/* ── 7. TYPEWRITER LINE ───────────────────────────────────── */
.hero-animated-text {
  font-size: clamp(1.1rem, 2.5vw, 1.65rem);
  font-weight: 600;
  color: #ffffff;
  min-height: 2.2rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);

  opacity: 0;
  transform: translateY(22px);
  animation: heroFadeUp 0.9s ease forwards 0.6s;
}

.animated-text {
  color: var(--clr-accent, #38bdf8);
  border-right: 2.5px solid var(--clr-accent, #38bdf8);
  padding-right: 5px;
  white-space: nowrap;
  overflow: hidden;
}


/* ── 8. DESCRIPTION PARAGRAPH ────────────────────────────── */
.hero-description {
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: 1rem;
  line-height: 1.8;
  color: #e2e8f0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);

  opacity: 0;
  transform: translateY(22px);
  animation: heroFadeUp 0.9s ease forwards 0.80s;
}


/* ── 9. CTA BUTTON (THEME ACCENT INTEGRATED) ─────────────── */
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--clr-accent, #38bdf8) !important;
  color: #000000 !important;
  padding: 13px 34px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none !important;

  opacity: 0;
  transform: translateY(22px);
  animation: heroFadeUp 0.9s ease forwards 1.0s;
  box-shadow: 0 0 20px var(--glow-accent, rgba(56, 189, 248, 0.25)), 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
}

.hero-btn:hover {
  background: var(--clr-accent-light, #7dd3fc) !important;
  transform: translateY(-3px) !important;
  box-shadow: var(--glow-strong, 0 0 25px rgba(56, 189, 248, 0.45)), 0 8px 25px rgba(0, 0, 0, 0.4);
  color: #000000 !important;
}


/* ── 10. STATS ROW ────────────────────────────────────────── */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 52px;
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 3;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1;
}

.stat-num span {
  color: var(--clr-accent, #38bdf8);
}

.stat-label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-top: 5px;
}


/* ── 11. KEYFRAME ANIMATION ───────────────────────────────── */
@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ── 12. RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-section {
    background-attachment: scroll;
    min-height: auto;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero-subtitle {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .hero-animated-text {
    font-size: clamp(1.1rem, 4vw, 1.35rem);
    min-height: 1.8rem;
  }

  .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px 24px !important;
    margin-top: 36px;
    padding-top: 24px;
  }

  .stat-num {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .hero-description {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .hero-btn {
    padding: 12px 28px;
    font-size: 0.95rem;
    width: 100%;
    max-width: 280px;
  }
}