/* ============================================================
   HERO.CSS — Full-Screen Hero Section
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--grad-hero);
  padding-top: var(--nav-h);
}

/* Three.js Canvas */
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

/* Particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  will-change: transform;
}
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--clr-accent);
  opacity: 0;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0%   { opacity: 0; transform: translateY(0) scale(0); }
  10%  { opacity: 0.6; transform: translateY(-20px) scale(1); }
  90%  { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-100vh) scale(0.5); }
}

/* ---------- Floating Elements ---------- */
.hero-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.float-el {
  position: absolute;
  font-size: clamp(1.5rem, 4vw, 3rem);
  opacity: 0.06;
  color: var(--clr-accent);
  animation: floatAnim ease-in-out infinite alternate;
  user-select: none;
  will-change: transform;
}
.float-1  { top: 15%; left: 5%;  font-size: 4rem; animation-duration: 6s; animation-delay: 0s; }
.float-2  { top: 25%; right: 8%; font-size: 2.5rem; animation-duration: 7s; animation-delay: 1s; }
.float-3  { bottom: 30%; left: 10%; font-size: 3rem; animation-duration: 8s; animation-delay: 2s; }
.float-4  { top: 60%; right: 5%; font-size: 2rem; animation-duration: 5s; animation-delay: 0.5s; }
.float-5  { bottom: 20%; right: 15%; font-size: 3.5rem; animation-duration: 9s; animation-delay: 1.5s; }
.float-6  { top: 40%; left: 3%; font-size: 2rem; animation-duration: 6.5s; animation-delay: 3s; }

@keyframes floatAnim {
  from { transform: translateY(0) rotate(0deg); }
  to   { transform: translateY(-30px) rotate(15deg); }
}

/* ---------- Hero Content ---------- */
.hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-inline: clamp(1rem, 5vw, 2rem);
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 1.8rem);
  will-change: transform, opacity;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--clr-glass);
  border: 1px solid var(--clr-glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.45rem 1.2rem;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--clr-text-2);
  opacity: 0;
  transform: translateY(20px);
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clr-accent-3);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.25);
  animation: pulseDot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16,185,129,0.25); }
  50%       { box-shadow: 0 0 0 6px rgba(16,185,129,0.10); }
}

/* Headline */
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 8vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-headline .line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
}

/* Subheading / Typing */
.hero-sub {
  font-size: clamp(var(--fs-sm), 2.5vw, var(--fs-lg));
  color: var(--clr-text-3);
  letter-spacing: 0.04em;
  min-height: 1.8em;
  opacity: 0;
  transform: translateY(20px);
}
.typing-text { color: var(--clr-accent); font-weight: 500; }
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--clr-accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 1s ease-in-out infinite;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* CTA Buttons */
.hero-btns {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
}
.btn-hero {
  padding: 0.9rem 2rem;
  font-size: clamp(var(--fs-sm), 1.5vw, var(--fs-base));
}

/* Glass stats card */
.hero-glass-card {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  background: var(--clr-glass);
  border: 1px solid var(--clr-glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--r-xl);
  padding: clamp(1rem, 3vw, 1.5rem) clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(20px);
}
.glass-stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.glass-num {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--clr-accent);
  letter-spacing: -0.03em;
}
.glass-label {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--clr-text-3);
  letter-spacing: 0.04em;
}
.glass-divider {
  width: 1px;
  height: 40px;
  background: var(--clr-border);
}

/* ---------- Scroll Indicator ---------- */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 3;
  opacity: 0;
  animation: scrollFadeIn 1s ease 2.5s forwards;
}
@keyframes scrollFadeIn {
  to { opacity: 1; }
}
.scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-3);
}
.scroll-wheel {
  width: 22px;
  height: 36px;
  border: 2px solid var(--clr-border);
  border-radius: 12px;
  position: relative;
}
.scroll-wheel::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  background: var(--clr-accent);
  border-radius: var(--r-full);
  animation: scrollDown 1.5s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* ============================================================
   RESPONSIVE HERO
   ============================================================ */
@media (max-width: 480px) {
  .hero-glass-card {
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
  }
  .glass-divider {
    width: 60px;
    height: 1px;
  }
  .float-el { display: none; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn-hero { width: 100%; max-width: 260px; justify-content: center; }
}

@media (max-width: 767px) {
  .scroll-indicator { display: none; }
  .hero-headline { font-size: clamp(2.2rem, 10vw, 3.5rem); }
}

/* ---------- Hero Social Buttons ---------- */
.hero-socials {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}
.hero-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--clr-glass);
  border: 1px solid var(--clr-glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.55rem 1.35rem;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--clr-text-2);
  transition: all var(--dur-base) var(--ease-spring);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.hero-social-link svg {
  color: var(--clr-text-3);
  transition: color var(--dur-base) var(--ease);
}
.hero-social-link:hover {
  transform: translateY(-3px) scale(1.02);
  color: var(--clr-accent);
  border-color: var(--clr-accent);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}
.hero-social-link:hover svg {
  color: var(--clr-accent);
}
