/* ============================================================
   PTECH MEDIA — HERO SECTION
   hero.css: Hero, Particle Background, Animated Elements
   ============================================================ */

/* ─── Hero Wrapper ──────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--navbar-h);
  overflow: hidden;
}

/* ─── Hero Gradient Background ──────────────────────────── */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99,102,241,0.32) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 85% 35%, rgba(139,92,246,0.2) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 10% 75%, rgba(6,182,212,0.12) 0%, transparent 50%);
}

/* Grid lines overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 100%);
}

/* ─── Floating Orbs ─────────────────────────────────────── */
.hero-orb {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
}

.hero-orb-1 {
  width: 480px;
  height: 480px;
  top: -100px;
  left: -100px;
  background: radial-gradient(circle, #6366f1, transparent 70%);
  animation: float 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 360px;
  height: 360px;
  top: 20%;
  right: -80px;
  background: radial-gradient(circle, #8b5cf6, transparent 70%);
  animation: float 10s ease-in-out infinite reverse;
}

.hero-orb-3 {
  width: 280px;
  height: 280px;
  bottom: 10%;
  left: 20%;
  background: radial-gradient(circle, #06b6d4, transparent 70%);
  animation: float 7s ease-in-out infinite;
  animation-delay: 2s;
}

/* ─── Hero Content ──────────────────────────────────────── */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 0;
  width: 100%;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: var(--color-accent-2);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  animation: fadeInUp 0.6s ease forwards;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: pulse-glow 2s ease-in-out infinite;
  box-shadow: 0 0 6px var(--color-primary);
}

/* Headline */
.hero-headline {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  animation: fadeInUp 0.7s ease 0.1s both;
}

.hero-headline .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

/* Subtitle */
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
  animation: fadeInUp 0.7s ease 0.2s both;
}

/* CTA Buttons */
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeInUp 0.7s ease 0.3s both;
}

/* Stats Bar */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding: 1.75rem 2.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  animation: fadeInUp 0.7s ease 0.4s both;
}

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

.hero-stat .stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-stat .stat-label {
  font-size: 0.8rem;
  color: var(--color-text-subtle);
  font-weight: 500;
  margin-top: 0.2rem;
}

.hero-stats-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border-soft);
}

/* ─── Platform Ticker ───────────────────────────────────── */
.hero-platforms {
  position: relative;
  z-index: 2;
  margin-top: 3rem;
  text-align: center;
  padding-bottom: 3rem;
}

.hero-platforms p {
  font-size: 0.82rem;
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 1rem;
}

.platform-ticker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: var(--transition-base);
}

.platform-pill:hover {
  background: rgba(99,102,241,0.1);
  border-color: var(--color-primary);
  color: var(--color-text);
  transform: translateY(-2px);
}

.platform-pill img {
  height: 18px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(0.7);
  transition: var(--transition-base);
}

.platform-pill:hover img {
  filter: brightness(0) invert(1);
}

/* ─── Responsive ────────────────────────────────────────── */

/* Tablet */
@media (max-width: 900px) {
  .hero-content {
    padding: 2.5rem 1rem;
  }

  .hero-stats {
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
  }

  .hero-stats-divider {
    display: none;
  }
}

/* Mobile ≤ 768px */
@media (max-width: 768px) {
  #hero {
    min-height: auto;
    padding-bottom: 1rem;
  }

  .hero-content {
    padding: 2rem 0 1.5rem;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 0.35rem 0.85rem;
    margin-bottom: 1.25rem;
  }

  .hero-headline {
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.5rem;
  }

  .hero-stats {
    gap: 1.25rem;
    padding: 1.1rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .hero-stat .stat-value {
    font-size: 1.35rem;
  }

  .hero-stat .stat-label {
    font-size: 0.72rem;
  }

  .hero-platforms {
    margin-top: 2rem;
    padding-bottom: 0;
  }

  .platform-ticker {
    gap: 0.5rem;
  }

  .platform-pill {
    font-size: 0.78rem;
    padding: 0.4rem 0.75rem;
  }

  .hero-orb-1,
  .hero-orb-2,
  .hero-orb-3 {
    opacity: 0.15;
  }
}

/* Small phones ≤ 480px */
@media (max-width: 480px) {
  .hero-headline {
    line-height: 1.15;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }

  .hero-stat .stat-value {
    font-size: 1.2rem;
  }

  .platform-pill {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
  }
}

/* Extra small ≤ 375px */
@media (max-width: 375px) {
  .hero-headline {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.85rem;
  }
}
