/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #050810;
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 3rem;
  height: 64px;
  background: rgba(5, 8, 16, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 229, 255, 0.08);
}

.nav__logo svg { display: block; }

.nav__cta {
  margin-left: auto;
  text-decoration: none;
  color: #f5c518;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55rem 1.4rem;
  border: 1px solid #f5c518;
  transition: background .2s, color .2s;
}
.nav__cta:hover { background: #f5c518; color: #050810; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  height: 100vh;
  padding-top: 64px;
  overflow: hidden;
}

/* Background glitch text */
.hero__bg-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.hero__bg-text span {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 900;
  color: rgba(255,255,255,0.025);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  animation: bgDrift 20s ease-in-out infinite alternate;
}
.hero__bg-text span:nth-child(2) { animation-delay: -7s; font-size: clamp(2rem, 5vw, 4rem); }
.hero__bg-text span:nth-child(3) { animation-delay: -14s; font-size: clamp(1.5rem, 3vw, 3rem); }

@keyframes bgDrift {
  from { transform: translateX(-2%); }
  to   { transform: translateX(2%); }
}

/* ---- LEFT: portrait + selectors ---- */
.hero__left {
  position: relative;
  z-index: 1;
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  padding-bottom: 3.5rem;
}

.hero__portrait-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero__portrait-glow {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 60px;
  background: radial-gradient(ellipse, rgba(0,229,255,0.35) 0%, transparent 70%);
  filter: blur(18px);
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: .6; transform: translateX(-50%) scaleX(1); }
  50%       { opacity: 1;  transform: translateX(-50%) scaleX(1.15); }
}

.hero__portrait {
  position: relative;
  z-index: 2;
  max-height: calc(100vh - 64px - 140px);
  max-width: 420px;
  width: auto;
  object-fit: contain;
  animation: floatChar 5s ease-in-out infinite;
  opacity: 0;
}

.hero__portrait-fallback {
  position: relative;
  z-index: 2;
  height: calc(100vh - 64px - 160px);
  max-height: 480px;
  width: auto;
  opacity: .55;
  animation: floatChar 5s ease-in-out infinite;
}

@keyframes floatChar {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}

/* Selectors row */
.hero__selectors {
  display: flex;
  gap: 1rem;
  margin-top: 1.6rem;
}

.selector {
  width: 62px; height: 62px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, transform .2s;
  position: relative;
  overflow: hidden;
  padding: 3px;
}
.selector::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,229,255,0.06);
  opacity: 0;
  transition: opacity .2s;
  border-radius: 50%;
}
.selector:hover::before { opacity: 1; }
.selector:hover { border-color: rgba(0,229,255,0.5); transform: scale(1.08); }

.selector.active {
  border-color: #f5c518;
  box-shadow: 0 0 0 3px rgba(245,197,24,0.25), 0 0 18px rgba(245,197,24,0.3);
}

.selector__inner {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,229,255,0.4), rgba(100,80,200,0.4));
  display: block;
}

/* ---- RIGHT: info panel ---- */
.hero__right {
  position: relative;
  z-index: 1;
  flex: 0 0 42%;
  padding: 0 3rem 3.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
}

.hero__role {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #00e5ff;
}

.hero__name {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 40px rgba(0,229,255,0.25);
  transition: opacity .35s, transform .35s;
}

.hero__desc {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  max-width: 420px;
  transition: opacity .35s;
}

/* ---- STATS ---- */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  margin-top: 0.4rem;
}

.stat__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.45rem;
}

.stat__bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.stat__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #f5c518, #ffdc5e);
  border-radius: 2px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Animate fills in */
.stats.animate .stat__fill {
  width: var(--pct);
}

/* ---- CTA BUTTON ---- */
.hero__btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: linear-gradient(135deg, #f5c518 0%, #e0a800 100%);
  color: #0a0c14;
  padding: 1rem 2.6rem;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  width: fit-content;
  margin-top: 0.6rem;
  transition: filter .2s, transform .15s;
  position: relative;
  overflow: hidden;
}

.hero__btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background .2s;
}
.hero__btn:hover::after { background: rgba(255,255,255,0.12); }
.hero__btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.hero__btn:active { transform: translateY(0); }

.hero__btn-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__btn-sub {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-top: 0.15rem;
}

/* ---- SCANLINES ---- */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.07) 3px,
    rgba(0,0,0,0.07) 4px
  );
}

/* ---- TRANSITION helpers ---- */
.hero__name.fade, .hero__desc.fade { opacity: 0; transform: translateY(8px); }

/* ============================================
   VERTICAL DIVIDER LINE
   ============================================ */
.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(0,229,255,0.2) 30%, rgba(0,229,255,0.2) 70%, transparent);
  z-index: 0;
}
