/* ═══════════════════════════════════════════════
   HERO SECTION – Midnight Blue & Yellow Accents
   ═══════════════════════════════════════════════ */

.hero {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--hero-bg, #050d1a);
  z-index: 1;
}

/* ── Canvas particle layer (disabled) ── */
.hero__particles {
  display: none;
}

/* ── Cinematic vignette overlay (disabled) ── */
.hero__vignette {
  display: none;
}

/* ── Content wrapper ── */
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 60px 24px 80px;
  text-align: center;
  max-width: 720px;
}

/* ── Logo ── */
.hero__logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  animation: hero-logo-enter 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__logo {
  width: clamp(120px, 22vw, 220px);
  height: auto;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
  position: relative;
  z-index: 1;
}

.hero__logo-glow {
  display: none;
}

/* ── Text ── */
.hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero__greeting {
  margin: 0;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: clamp(13px, 1.6vw, 16px);
  font-weight: 400;
  color: var(--yellow-400, #ffd600);
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0;
  animation: hero-text-up 0.8s 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__name {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  background: linear-gradient(
    135deg,
    #ffd600 0%,
    #ffe566 30%,
    #ffffff 60%,
    #b0c4de 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation:
    hero-text-up 0.8s 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    hero-name-shimmer 6s ease-in-out infinite;
  opacity: 0;
}

.hero__tagline {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.70);
  opacity: 0;
  animation: hero-text-up 0.8s 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__divider {
  color: var(--yellow-400, #ffd600);
  font-weight: 700;
  opacity: 0.6;
}

.hero__desc {
  margin: 8px 0 0;
  max-width: 460px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(176, 196, 222, 0.65);
  opacity: 0;
  animation: hero-text-up 0.8s 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ── Action buttons ── */
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: hero-text-up 0.8s 1.0s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-drag: none;
}

.hero__btn--primary {
  background: linear-gradient(135deg, #ffd600, #e6c200);
  color: #050d1a;
  border: none;
  box-shadow:
    0 4px 20px rgba(255, 214, 0, 0.25),
    0 0 0 1px rgba(255, 214, 0, 0.10) inset;
}
.hero__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 32px rgba(255, 214, 0, 0.35),
    0 0 0 1px rgba(255, 214, 0, 0.20) inset;
  background: linear-gradient(135deg, #ffe033, #ffd600);
}
.hero__btn--primary:active {
  transform: translateY(0);
}

.hero__btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 214, 0, 0.15);
}
.hero__btn--ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 214, 0, 0.06);
  border-color: rgba(255, 214, 0, 0.30);
  color: #ffd600;
}
.hero__btn--ghost:active {
  transform: translateY(0);
}

.hero__btn i {
  font-size: 14px;
}

/* ── Social links ── */
.hero__socials {
  display: flex;
  gap: 8px;
  opacity: 0;
  animation: hero-text-up 0.8s 1.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.50);
  border: 1px solid rgba(255, 214, 0, 0.10);
  background: #0b1526;
  text-decoration: none;
  transition: all 0.25s ease;
}
.hero__social:hover {
  color: #ffd600;
  border-color: rgba(255, 214, 0, 0.25);
  background: #0f1d34;
  transform: translateY(-2px);
}
.hero__social i {
  font-size: 16px;
}

/* ── Scroll cue (bouncing chevrons) ── */
.hero__scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  translate: -50% 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  opacity: 0;
  animation: hero-text-up 0.8s 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__scroll-cue span {
  display: block;
  width: 12px;
  height: 12px;
  border-right: 2px solid rgba(255, 214, 0, 0.35);
  border-bottom: 2px solid rgba(255, 214, 0, 0.35);
  rotate: 45deg;
  animation: hero-scroll-bounce 2s ease-in-out infinite;
}
.hero__scroll-cue span:nth-child(2) { animation-delay: 0.15s; }
.hero__scroll-cue span:nth-child(3) { animation-delay: 0.30s; }

/* ═══════════ ANIMATIONS ═══════════ */

@keyframes hero-logo-enter {
  0%   { opacity: 0; transform: scale(0.8) translateY(20px); }
  100% { opacity: 1; transform: scale(1)   translateY(0);    }
}

@keyframes hero-glow-pulse {
  0%   { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 1;   transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes hero-text-up {
  0%   { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0);    }
}

@keyframes hero-name-shimmer {
  0%,  100% { background-position:  0%  50%; }
  50%       { background-position: 100% 50%; }
}

@keyframes hero-scroll-bounce {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50%      { opacity: 0.8; transform: translateY(6px); }
}

/* ═══════════════════════════════════════════════
   FLOATING ABOUT-ME FRAGMENTS
   Ambient elements drifting through the hero bg
   ═══════════════════════════════════════════════ */

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

/* ── Shared floater base ── */
.hero-floater {
  position: absolute;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  contain: layout style;

  /* Each floater has unique CSS custom-property values set via JS */
  animation:
    floater-drift var(--float-dur, 30s) var(--float-delay, 0s) ease-in-out infinite alternate,
    floater-fade-in 2s var(--float-delay, 0s) ease forwards;
}

/* ── Icon floaters (tech logos) ── */
.floater--icon {
  width: 32px;
  height: 32px;
}
.floater--icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255, 214, 0, 0.10));
  opacity: 0.18;
}

/* ── Text-tag floaters ── */
.floater--tag {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255, 214, 0, 0.14);
  white-space: nowrap;
  text-transform: uppercase;
  border: 1px solid rgba(255, 214, 0, 0.06);
  border-radius: 6px;
  padding: 4px 10px;
  background: rgba(255, 214, 0, 0.02);
}

/* ── Keyword floaters (no border, just text) ── */
.floater--keyword {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(176, 196, 222, 0.10);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* ── Code-snippet floaters ── */
.floater--code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 11px;
  font-weight: 400;
  color: rgba(176, 196, 222, 0.12);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  padding: 3px 8px;
}

.floater-prompt {
  color: rgba(255, 214, 0, 0.20);
  margin-right: 4px;
}

/* ── Drift keyframes ──
   Each floater drifts along a unique path defined by
   --drift-x / --drift-y / --rot-start custom properties */
@keyframes floater-drift {
  0% {
    transform:
      translate(0, 0)
      rotate(var(--rot-start, 0deg))
      scale(1);
  }
  25% {
    transform:
      translate(
        calc(var(--drift-x, 20px) * 0.6),
        calc(var(--drift-y, 15px) * -1)
      )
      rotate(calc(var(--rot-start, 0deg) * -0.5))
      scale(1.04);
  }
  50% {
    transform:
      translate(var(--drift-x, 20px), var(--drift-y, 15px))
      rotate(calc(var(--rot-start, 0deg) * 0.3))
      scale(0.97);
  }
  75% {
    transform:
      translate(
        calc(var(--drift-x, 20px) * -0.4),
        calc(var(--drift-y, 15px) * 0.7)
      )
      rotate(calc(var(--rot-start, 0deg) * -0.8))
      scale(1.02);
  }
  100% {
    transform:
      translate(
        calc(var(--drift-x, 20px) * -1),
        calc(var(--drift-y, 15px) * -0.5)
      )
      rotate(var(--rot-start, 0deg))
      scale(1);
  }
}

@keyframes floater-fade-in {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

/* ═══════════ RESPONSIVE ═══════════ */

@media (max-width: 600px) {
  .hero__content {
    padding: 40px 20px 60px;
    gap: 22px;
  }
  .hero__name {
    letter-spacing: -1px;
  }
  .hero__tagline {
    flex-direction: column;
    gap: 4px;
  }
  .hero__divider { display: none; }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__btn {
    justify-content: center;
  }

  /* Reduce floaters on mobile for perf / less clutter */
  .hero-floater:nth-child(n+16) {
    display: none;
  }
  .floater--icon img { opacity: 0.12; }
  .floater--tag      { font-size: 10px; color: rgba(255, 214, 0, 0.10); }
  .floater--code     { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__logo-wrap,
  .hero__greeting,
  .hero__name,
  .hero__tagline,
  .hero__desc,
  .hero__actions,
  .hero__socials,
  .hero__scroll-cue {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hero__logo-glow {
    animation: none !important;
  }
  .hero__scroll-cue span {
    animation: none !important;
  }
  .hero-floater {
    animation: none !important;
    opacity: 1 !important;
  }
}
