/* ==========================================================================
   DION SHERIFI - components/hero.css
   Full-bleed hero panel.
   Used by: index.html, 404.html
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 2rem) 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(94, 234, 212, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 234, 212, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
}

.glow-1 {
  width: 500px; height: 500px;
  max-width: 80vw; max-height: 80vw;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: 10%; left: -10%;
  animation: float 18s ease-in-out infinite;
}

.glow-2 {
  width: 400px; height: 400px;
  max-width: 70vw; max-height: 70vw;
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
  bottom: 5%; right: -8%;
  animation: float 22s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, -30px) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-greet {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.95rem;
  margin: 0 0 1rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.1s forwards;
}

.hero-name {
  font-size: clamp(2.25rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #a8b3ca 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.2s forwards;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 4vw, 2.75rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.35s forwards;
  word-break: break-word;
}

.hero-tag .cursor {
  color: var(--accent);
  animation: blink 1.1s steps(2, end) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 0 2.25rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.5s forwards;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.65s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 1s forwards;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 30%;
  background: var(--accent);
  animation: scrollDot 2s var(--ease) infinite;
}

@keyframes scrollDot {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(400%); }
}

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

@media (max-width: 767.98px) {
  .hero-scroll { display: none; }
}

/* Small tablets / large phones */
@media (max-width: 768px) {
  .hero-actions {
    width: 100%;
  }
}

/* Phones */
@media (max-width: 575.98px) {
  .hero-section {
    padding: calc(var(--nav-h) + 1.5rem) 0 3rem;
  }
  .hero-actions {
    width: 100%;
    gap: 10px;
  }
  .hero-actions .btn-primary-glow,
  .hero-actions .btn-ghost {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .hero-name {
    font-size: 2rem;
  }
  .hero-tag {
    font-size: 1.15rem;
  }
}
