/* ============================================================
   hero.css — aCloudShalla Hero Section
   ============================================================ */


/* ── 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 ────────────────────────────────────── */

/* Layer 1: Dark base overlay — stronger to keep text readable over bg image */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 1;
}

/* Layer 2: Gradient fade to page bg at bottom */
.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(10, 14, 26, 0.90) 100%
  );
  z-index: 1;
}


/* ── 3. GRID PATTERN OVERLAY ──────────────────────────────── */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(79, 142, 247, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 142, 247, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}


/* ── 4. CONTENT (above all overlays) ─────────────────────── */
.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: rgba(79, 142, 247, 0.14);
  color: #6ba3ff;
  border: 1px solid rgba(79, 142, 247, 0.35);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 50px;
  letter-spacing: 0.04em;
}


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

  /* Animate in on load */
  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: #c4b5fd;  /* brighter purple — visible over bg image */
  min-height: 2.2rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);

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

/* Blinking cursor */
.animated-text {
  border-right: 2.5px solid #4f8ef7;
  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: #d1d5e8;  /* much brighter — clearly readable over bg image */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);

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


/* ── 9. CTA BUTTON ────────────────────────────────────────── */
.hero-btn {
  display: inline-block;
  background: #4f8ef7;
  color: #fff !important;
  padding: 13px 34px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;

  opacity: 0;
  transform: translateY(22px);
  animation: heroFadeUp 0.9s ease forwards 1.0s;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-btn:hover {
  background: #6ba3ff;
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 32px rgba(79, 142, 247, 0.4);
  color: #fff !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.08);
  position: relative;
  z-index: 3;
}

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

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

/* Accent color for suffix ( +, ★ ) */
.stat-num span {
  color: #4f8ef7;
}

.stat-label {
  font-size: 0.75rem;
  color: #8a94b0;
  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) {
  /* Disable fixed attachment on mobile (performance) */
  .hero-section {
    background-attachment: scroll;
  }

  .hero-stats {
    gap: 28px;
    flex-wrap: wrap;
  }

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

@media (max-width: 480px) {
  .hero-stats {
    gap: 20px;
  }

  .hero-btn {
    padding: 12px 28px;
    font-size: 0.95rem;
  }
}