/* =====================================================================
   RISHAV RAJ — Plexus Landing Page
   landing.css
   ===================================================================== */

:root {
  /* Background gradient — exact match to Ovotron reference image */
  --bg-deep:   #000d18;
  --bg-mid:    #01121f;
  --bg-accent: #012030;

  /* Node / line colors — cyan-teal exactly like the reference dots */
  --node:      #00e8cc;
  --node-glow: rgba(0, 232, 204, 0.6);
  --line:      rgba(0, 200, 180, 0.28);

  /* Center radial glow (the teal haze behind text) */
  --center-glow: rgba(0, 160, 130, 0.18);

  /* Text */
  --txt-brand:  #d0dde8;       /* same silver-grey as "OVOTRON" text */
  --txt-dim:    rgba(180,200,215,0.45);
  --txt-accent: #00e8cc;

  /* Fonts */
  --f-display: 'Space Grotesk', sans-serif;
  --f-mono:    'JetBrains Mono', monospace;
}

/* ── RESET ──────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%; height: 100%; overflow: hidden;
  background: var(--bg-deep);
}
body {
  font-family: var(--f-display);
  cursor: crosshair;
  /* Subtle radial gradient to match reference — darker edges, slight teal center */
  background: radial-gradient(
    ellipse 70% 55% at 50% 50%,
    #011e30 0%,
    #010f1c 45%,
    #000913 100%
  );
}

/* ── CANVAS ─────────────────────────────────────────────────────────── */
#plexus {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  display: block; z-index: 0;
}

/* ── CENTER RADIAL GLOW (behind text, like the reference) ───────────── */
.center-glow {
  position: fixed; z-index: 1; pointer-events: none;
  width: 700px; height: 320px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse 100% 100% at 50% 50%,
    rgba(0,160,130,0.22) 0%,
    rgba(0,100,90,0.10) 45%,
    transparent 75%
  );
  filter: blur(18px);
  animation: glow-breathe 5s ease-in-out infinite alternate;
}
@keyframes glow-breathe {
  from { opacity: 0.7; transform: translate(-50%, -50%) scale(1);   }
  to   { opacity: 1.0; transform: translate(-50%, -50%) scale(1.08); }
}

/* ── VIGNETTE (darkens corners — KEY to matching reference image) ────── */
.vignette {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(
    ellipse 90% 75% at 50% 50%,
    transparent 35%,
    rgba(0,5,12,0.55) 70%,
    rgba(0,3,8,0.88)  100%
  );
}

/* ── STAGE (center layout) ──────────────────────────────────────────── */
.stage {
  position: fixed; inset: 0; z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-align: center;
  pointer-events: none;   /* children selectively re-enable */
}

/* ── EYEBROW ────────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--f-mono);
  font-size: clamp(.58rem, 1.1vw, .78rem);
  letter-spacing: .22em;
  color: var(--txt-dim);
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  opacity: 0;
  transform: translateY(-12px);
  animation: fade-up .9s .3s cubic-bezier(.4,0,.2,1) forwards;
}

/* ── BRAND LINK — the main "RISHAV · Portfolio" element ─────────────── */
.brand-link {
  pointer-events: all;   /* re-enable clicks on this element */
  display: inline-flex;
  align-items: baseline;
  gap: .25em;
  cursor: pointer;
  text-decoration: none;
  position: relative;

  /* Entrance animation */
  opacity: 0;
  transform: translateY(10px);
  animation: fade-up .8s .55s cubic-bezier(.4,0,.2,1) forwards;
}

/* Hover glow effect on the whole link */
.brand-link::before {
  content: '';
  position: absolute;
  inset: -24px -48px;
  background: radial-gradient(
    ellipse 80% 60% at 50% 50%,
    rgba(0,232,204,0.07) 0%,
    transparent 70%
  );
  border-radius: 50%;
  opacity: 0;
  transition: opacity .4s ease;
}
.brand-link:hover::before { opacity: 1; }

/* The slash prefix — gives the "code path" feel */
.brand-slash {
  font-family: var(--f-mono);
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  font-weight: 300;
  color: var(--node);
  opacity: .6;
  letter-spacing: -.02em;
  line-height: 1;
  transition: opacity .3s;
}
.brand-link:hover .brand-slash { opacity: 1; }

/* "RISHAV" — silver grey, same as OVOTRON text in reference */
.brand-name {
  font-family: var(--f-display);
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  font-weight: 700;
  color: var(--txt-brand);
  letter-spacing: .12em;
  line-height: 1;
  /* Subtle text shadow to match the slightly raised look in reference */
  text-shadow:
    0 0 60px rgba(0,232,204,0.12),
    0 0 120px rgba(0,232,204,0.06);
  transition: color .35s, text-shadow .35s, letter-spacing .35s;
}
.brand-link:hover .brand-name {
  color: #e8f0f8;
  letter-spacing: .15em;
  text-shadow:
    0 0 40px rgba(0,232,204,0.30),
    0 0 90px rgba(0,232,204,0.14),
    0 2px 4px rgba(0,0,0,0.6);
}

/* Divider dot */
.brand-divider {
  font-size: clamp(1.5rem, 3vw, 3rem);
  color: var(--node);
  opacity: .5;
  font-weight: 300;
  align-self: center;
}

/* "Portfolio" — smaller, accent teal */
.brand-sub {
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 2.8vw, 2.6rem);
  font-weight: 300;
  color: var(--node);
  letter-spacing: .06em;
  opacity: .75;
  line-height: 1;
  transition: opacity .3s, letter-spacing .3s;
}
.brand-link:hover .brand-sub {
  opacity: 1;
  letter-spacing: .1em;
}

/* ── TAGLINE ────────────────────────────────────────────────────────── */
.tagline {
  font-family: var(--f-mono);
  font-size: clamp(.6rem, 1vw, .8rem);
  letter-spacing: .18em;
  color: var(--txt-dim);
  margin-top: 1.4rem;
  opacity: 0;
  animation: fade-up .7s .85s ease forwards;
  transition: color .3s;
  pointer-events: none;
}
.brand-link:hover ~ .tagline {
  color: rgba(0,232,204,0.55);
}

/* ── STATUS ROW ─────────────────────────────────────────────────────── */
.status-row {
  display: flex; align-items: center; gap: .8rem;
  margin-top: 2.8rem;
  opacity: 0;
  animation: fade-up .6s 1.1s ease forwards;
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--node);
  box-shadow: 0 0 6px var(--node-glow);
  animation: dot-pulse 2.2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%,100% { box-shadow: 0 0 4px var(--node-glow); }
  50%      { box-shadow: 0 0 12px var(--node-glow), 0 0 20px rgba(0,232,204,.3); }
}
.status-text {
  font-family: var(--f-mono);
  font-size: clamp(.56rem, .9vw, .7rem);
  letter-spacing: .15em;
  color: var(--txt-dim);
  text-transform: uppercase;
}
.status-sep { color: rgba(0,232,204,.25); font-size: .6rem; }

/* ── CORNERS ────────────────────────────────────────────────────────── */
.corner-bl, .corner-br {
  position: fixed; bottom: 24px; z-index: 20;
  display: flex; flex-direction: column; gap: 3px;
  font-family: var(--f-mono);
  font-size: .6rem;
  letter-spacing: .12em;
  color: rgba(0,232,204,.3);
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  animation: fade-up .5s 1.4s ease forwards;
}
.corner-bl { left: 28px; align-items: flex-start; }
.corner-br { right: 28px; align-items: flex-end; }

/* ── ENTRANCE ANIMATION ─────────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── NODE FLARE (CSS class toggled by JS on canvas nodes) ───────────── */
/* Used for the bright white-hot flare nodes in the reference image */
/* Actual rendering done in canvas; this is just for reference */

/* ── RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .eyebrow    { font-size: .58rem; letter-spacing: .1em; }
  .brand-name { letter-spacing: .08em; }
  .status-row { flex-wrap: wrap; justify-content: center; }
  .corner-bl, .corner-br { font-size: .52rem; bottom: 16px; }
  .corner-bl  { left: 16px; }
  .corner-br  { right: 16px; }
}

/* ── REDUCED MOTION ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}