/* css/hero.css — Cyberpunk Hero */

#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 7rem 2rem 4rem;
  z-index: 1;
  text-align: center;
}

/* Animated corner brackets */
#hero::before, #hero::after {
  content: '';
  position: absolute;
  width: 120px; height: 120px;
  border: 1px solid var(--cyan-15);
  pointer-events: none;
  opacity: 0;
  animation: cornerFade 1s ease forwards;
}

#hero::before {
  top: 15%; left: 8%;
  border-right: none; border-bottom: none;
  animation-delay: 1.2s;
}

#hero::after {
  bottom: 15%; right: 8%;
  border-left: none; border-top: none;
  animation-delay: 1.4s;
}

@keyframes cornerFade {
  to { opacity: 1; }
}

/* Hero badge */
.hero-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--magenta);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  border: 1px solid var(--magenta-40);
  padding: 0.45rem 1.8rem;
  margin-bottom: 2rem;
  position: relative;
  opacity: 0;
  animation: revealUp 0.7s ease 0.3s forwards;
}

/* Hero title */
.hero-content h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: 0.92;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: revealUp 0.7s ease 0.5s forwards;
}

/* Glitch text effect */
.glitch {
  position: relative;
  display: inline-block;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.glitch::before {
  animation: g1 4s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  color: var(--magenta);
  text-shadow: var(--glow-magenta);
}

.glitch::after {
  animation: g2 4s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  color: var(--yellow);
  text-shadow: 0 0 15px var(--yellow-20);
}

@keyframes g1 {
  0%, 92%, 100% { transform: translate(0); }
  93% { transform: translate(-5px, -2px); }
  95% { transform: translate(5px, 1px); }
  97% { transform: translate(-3px, 2px); }
}

@keyframes g2 {
  0%, 90%, 100% { transform: translate(0); }
  91% { transform: translate(4px, 2px); }
  94% { transform: translate(-4px, -1px); }
  96% { transform: translate(2px, -2px); }
}

/* Hero subtitle */
.hero-sub {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(0.8rem, 2vw, 1.2rem);
  color: var(--text-muted);
  letter-spacing: 0.5em;
  margin-bottom: 2rem;
  opacity: 0;
  animation: revealUp 0.7s ease 0.7s forwards;
}

/* Hero description */
.hero-desc {
  max-width: 500px;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 3rem;
  opacity: 0;
  animation: revealUp 0.7s ease 0.85s forwards;
}

/* Hero buttons */
.hero-btns {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: revealUp 0.7s ease 1s forwards;
}

.hero-btns .btn {
  min-width: 180px;
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  margin-top: 5rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: revealUp 0.7s ease 1.2s forwards;
}

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

.hero-stat .stat-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  display: block;
  line-height: 1;
}

.hero-stat .stat-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: revealUp 0.7s ease 1.4s forwards, bob 2.5s ease-in-out infinite 2s;
}

.scroll-hint span {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-muted);
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.scroll-hint .line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

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

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--cyan);
  border-radius: 50%;
  opacity: 0;
  animation: particleDrift linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-duration: 12s; animation-delay: 0s; }
.particle:nth-child(2) { left: 25%; animation-duration: 18s; animation-delay: 2s; }
.particle:nth-child(3) { left: 40%; animation-duration: 14s; animation-delay: 4s; }
.particle:nth-child(4) { left: 55%; animation-duration: 20s; animation-delay: 1s; }
.particle:nth-child(5) { left: 70%; animation-duration: 16s; animation-delay: 3s; }
.particle:nth-child(6) { left: 85%; animation-duration: 13s; animation-delay: 5s; }
.particle:nth-child(7) { left: 15%; animation-duration: 17s; animation-delay: 6s; }
.particle:nth-child(8) { left: 50%; animation-duration: 11s; animation-delay: 7s; }
.particle:nth-child(9) { left: 75%; animation-duration: 19s; animation-delay: 2.5s; }
.particle:nth-child(10) { left: 35%; animation-duration: 15s; animation-delay: 4.5s; }

.particle:nth-child(odd) { background: var(--magenta); }

@keyframes particleDrift {
  0%   { transform: translateY(110vh) scale(0); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.8; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-stats {
    gap: 1.5rem;
  }
  .hero-stat .stat-num {
    font-size: 1.8rem;
  }
  .hero-btns {
    flex-direction: column;
    align-items: center;
  }
  .hero-btns .btn {
    width: 100%;
    max-width: 280px;
  }
  #hero::before, #hero::after {
    display: none;
  }
}
