/* ============================================================
   HERO SECTION
   ============================================================ */

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 229, 255, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(168, 85, 247, 0.05) 0%, transparent 60%),
    var(--black);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Content */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  width: 100%;
}

/* Layout comfort on big screens */

.hero-layout {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr; /* photo left, text right */
  align-items: center;
  gap: 3.5rem;

}

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

.hero-profile {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.hero-photo-wrap {
  position: relative;
  width: clamp(160px, 22vw, 240px);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.18);
  display: grid;
  place-items: center;
  overflow: hidden;
  z-index: 3;

  /* neon base */
  box-shadow:
    0 0 0 rgba(0, 229, 255, 0),
    0 0 34px rgba(0, 229, 255, 0.12),
    0 0 70px rgba(168, 85, 247, 0.06);

  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.hero-photo-wrap::after {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 30% 30%, rgba(0, 229, 255, 0.55), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(168, 85, 247, 0.35), transparent 50%);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  pointer-events: none;
}

.hero-photo-wrap:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, 0.42);
  box-shadow:
    0 0 0 rgba(0, 229, 255, 0),
    0 0 44px rgba(0, 229, 255, 0.22),
    0 0 90px rgba(168, 85, 247, 0.14);
}

.hero-photo-wrap:hover::after {
  opacity: 1;
  transform: scale(1);
}

.hero-photo-wrap:active {
  transform: translateY(-2px) scale(0.99);
}



.hero-photo {
  width: 92%;
  height: 92%;
  object-fit: cover;
  border-radius: 999px;
  transform: translateY(2px);
  filter: saturate(1.05) contrast(1.05);
}


.hero-photo-glow {

  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 229, 255, 0.35), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(168, 85, 247, 0.25), transparent 58%);
  opacity: 0.9;
  pointer-events: none;
  animation: photoGlow 3.5s infinite alternate;
}

.hero-profile-meta {

  text-align: center;
  max-width: 260px;
}

.hero-profile-name {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--white);
  letter-spacing: .08em;
  font-size: 1.05rem;
}

  .hero-profile-title {
  margin-top: .4rem;
  font-family: var(--font-mono);
  color: var(--grey);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .78rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-stats  { display: none; }
  .hero-btns   { flex-direction: column; align-items: center; }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-profile {
    justify-self: center;
  }

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

@media (max-width: 768px) {
  .hero-layout { gap: 1.5rem; }
  .hero-photo-wrap { width: clamp(140px, 25vw, 200px); }
  .hero-name { font-size: clamp(2.6rem, 10vw, 5rem); }
  .hero-desc { font-size: .96rem; line-height: 1.8; }
  .hero-btns { gap: .9rem; }
}

@media (max-width: 480px) {
  .hero-content { padding: 1.5rem 1rem; }
  .hero-profile-name { font-size: .98rem; }
  .hero-profile-title { font-size: .72rem; }
  .hero-desc { font-size: .92rem; }
  .hero-btns { width: 100%; }
  .hero-btns .btn-primary,
  .hero-btns .btn-secondary { width: 100%; text-align: center; }
}



.hero-label {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .3em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp .8s .3s forwards;
}
.hero-label::before { content: '['; margin-right: .5em; }
.hero-label::after  { content: ']'; margin-left:  .5em; }

/* Name */
.hero-name {
  display: inline-flex;
  align-items: center;
  gap: 1rem;

  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--white);
  opacity: 0;
  animation: fadeUp .8s .5s forwards;
}




.hero-name .glitch {
  display: inline-block;
  position: relative;
  color: var(--white);
}
.hero-name .glitch::before,
.hero-name .glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
}
.hero-name .glitch::before {
  color: var(--cyan);
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  animation: glitch1 3s infinite steps(2);
  opacity: .7;
}
.hero-name .glitch::after {
  color: var(--purple);
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  animation: glitch2 3s infinite steps(2);
  opacity: .7;
}

/* Typewriter */
.hero-roles {
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--grey);
  margin-top: 1.5rem;
  height: 2.5rem;
  opacity: 0;
  animation: fadeUp .8s .7s forwards;
}
.hero-roles .typed { color: var(--cyan); }

/* Cursor blink */
.t-cursor {
  display: inline-block;
  width: 8px; height: 1em;
  background: var(--cyan);
  animation: blink .8s infinite;
  vertical-align: text-bottom;
}

/* Description */
.hero-desc {
  max-width: 760px;
  margin: 2rem auto 0;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--grey);
  opacity: 0;
  animation: fadeUp .8s .9s forwards;
}

/* Buttons */
.hero-btns {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 3rem;
  opacity: 0;
  animation: fadeUp .8s 1.1s forwards;
}

.btn-primary {
  padding: .9rem 2.5rem;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dim));
  color: var(--black);
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all .3s;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 0 50px rgba(0, 229, 255, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  padding: .9rem 2.5rem;
  border: 1px solid var(--border);
  color: var(--white);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all .3s;
  background: transparent;
}
.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  opacity: 0;
  animation: fadeIn 1s 1.5s forwards;
  color: var(--grey);
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--cyan));
  animation: scrollPulse 1.8s infinite;
}

/* Side stats */
.hero-stats {
  position: absolute;
  right: 4rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  opacity: 0;
  animation: fadeIn 1s 1.3s forwards;
  z-index: 2;
}

.stat-item   { text-align: right; }

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.stat-num span { color: var(--cyan); }

.stat-label {
  font-size: .7rem;
  color: var(--grey);
  letter-spacing: .15em;
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-stats  { display: none; }
  .hero-btns   { flex-direction: column; align-items: center; }
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
  }
  .hero-content {
    padding: 2rem 1.5rem;
  }
  .hero-photo-wrap {
    width: clamp(150px, 22vw, 220px);
  }
  .hero-desc {
    margin-top: 1.75rem;
  }
}

@media (max-width: 768px) {
  .hero-layout { gap: 1.6rem; }
  .hero-photo-wrap { width: clamp(140px, 26vw, 180px); }
  .hero-name { font-size: clamp(2.4rem, 12vw, 4.5rem); }
  .hero-desc {
    font-size: .95rem;
    line-height: 1.85;
    max-width: 100%;
  }
  .hero-btns { gap: 1rem; }
  .btn-primary,
  .btn-secondary { padding: .85rem 1.1rem; }
}

@media (max-width: 640px) {
  .hero-content { padding: 1.5rem 1rem; }
  .hero-profile { justify-self: center; }
  .hero-photo-wrap { width: clamp(130px, 28vw, 160px); }
  .hero-desc { font-size: .92rem; }
  .hero-btns { width: 100%; }
  .hero-btns .btn-primary,
  .hero-btns .btn-secondary {
    width: 100%;
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-layout { gap: 1rem; }
  .hero-photo-wrap { width: 140px; }
  .hero-name { font-size: clamp(2.2rem, 15vw, 4rem); }
  .hero-desc { margin-top: 1.25rem; }
  .hero-btns { gap: .75rem; }
  .hero-btns .btn-primary,
  .hero-btns .btn-secondary {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .hero-scroll { bottom: 1.75rem; }
  #hero-canvas { display: none; }
}
