/* ==========================================================================
   Piyush Upreti — Portfolio Placeholder
   Futuristic, minimal, personal-branding-forward
   ========================================================================== */

:root {
  --bg: #05070f;
  --bg-2: #0a0f1e;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e8ecfb;
  --muted: #8992ab;
  --accent: #38bdf8;
  --accent-2: #818cf8;
  --accent-3: #34d399;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

/* ---------- Background canvas (animated gradient orbs) ---------- */
#fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: radial-gradient(circle at 20% 20%, #0d1a33 0%, transparent 45%),
              radial-gradient(circle at 80% 15%, #1a1140 0%, transparent 40%),
              radial-gradient(circle at 50% 90%, #062621 0%, transparent 45%),
              var(--bg);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 40%, black 0%, transparent 75%);
  pointer-events: none;
}

.glow-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 480px; height: 480px;
  margin-left: -240px;
  margin-top: -240px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.14), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transition: transform 0.12s ease-out, opacity 0.4s ease;
  opacity: 0;
}
.glow-cursor.active { opacity: 1; }

/* ---------- Layout ---------- */
.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px clamp(20px, 6vw, 72px) 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--text);
}
.brand .dot { color: var(--accent); }

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(10px);
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ---------- Hero card ---------- */
.hero-card {
  margin: auto 0;
  max-width: 640px;
  padding: clamp(32px, 5vw, 52px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin: 0 0 20px;
}
.kicker .bracket { color: var(--accent-2); }

.name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 8vw, 76px);
  line-height: 1.02;
  margin: 0 0 18px;
  background: linear-gradient(120deg, #f8fafc 20%, var(--accent) 55%, var(--accent-2) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.01em;
}

.role {
  font-family: var(--font-mono);
  font-size: clamp(15px, 2.2vw, 19px);
  color: var(--text);
  margin: 0 0 22px;
}
.role .cursor {
  color: var(--accent);
  animation: blink 1s step-start infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.bio {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 48ch;
  margin: 0 0 32px;
}

.contact-row {
  margin-bottom: 22px;
}
.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(56,189,248,0.10), rgba(129,140,248,0.06));
  color: var(--text);
  font-weight: 600;
  font-size: 14.5px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-pill svg { width: 18px; height: 18px; color: var(--accent); }
.contact-pill:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.18);
}

.social-row {
  display: flex;
  gap: 12px;
}
.social-row a {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: all 0.2s ease;
}
.social-row a svg { width: 18px; height: 18px; }
.social-row a:hover {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* ---------- Footer ---------- */
.footline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
}
.footline .mono { font-family: var(--font-mono); }
.footline .sep { opacity: 0.5; }

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .stage { padding: 20px 18px; }
  .hero-card { padding: 28px 22px; border-radius: 18px; }
  .status-text { display: none; }
}
