/* ============================================================
   Neeraj Mishra — portfolio homepage
   Standalone stylesheet: nothing here depends on the course CSS.
   ============================================================ */

:root {
  --ink: #08090C;
  --ink-soft: #10131A;
  --panel: #12161F;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --paper: #F4F1EA;
  --muted: #9AA3B2;
  --amber: #F5A524;
  --amber-soft: rgba(245, 165, 36, 0.14);
  --mint: #45D6A8;
  --radius: 16px;
  --shell: 1160px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--ink);
  color: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- ambient background ---------- */
.aura {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(720px 420px at 12% -8%, rgba(245, 165, 36, 0.14), transparent 62%),
    radial-gradient(640px 420px at 92% 4%, rgba(69, 214, 168, 0.10), transparent 60%),
    radial-gradient(900px 600px at 50% 110%, rgba(80, 110, 200, 0.10), transparent 65%);
}

/* ---------- nav ---------- */
.pnav {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(14px);
  background: rgba(8, 9, 12, 0.78);
  border-bottom: 1px solid var(--line);
}

.pnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  border: 2px solid rgba(245, 165, 36, 0.65);
  box-shadow: 0 0 0 4px rgba(245, 165, 36, 0.1), 0 6px 18px rgba(245, 165, 36, 0.25);
}

/* ---------- portrait ---------- */
.portrait-card { position: relative; margin: 0; }

.portrait-card::before {
  content: "";
  position: absolute;
  inset: 8% -6% 18% -6%;
  border-radius: 40px;
  background: radial-gradient(closest-side, rgba(245, 165, 36, 0.22), transparent 72%);
  filter: blur(26px);
  z-index: -1;
}

.portrait-frame {
  position: relative;
  padding: 10px;
  border-radius: 26px;
  background: linear-gradient(155deg, rgba(245, 165, 36, 0.55), rgba(255, 255, 255, 0.06) 48%, rgba(69, 214, 168, 0.3));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 18px;
  display: block;
}

.portrait-ring {
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.portrait-caption {
  margin-top: 16px;
  display: grid;
  gap: 3px;
  text-align: center;
}

.portrait-caption strong { font-size: 1.02rem; letter-spacing: -0.01em; color: #fff; }
.portrait-caption span { font-size: 0.82rem; color: var(--muted); }
.portrait-caption em {
  font-style: normal;
  font-size: 0.74rem;
  color: #C7CDD8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 5px;
}
.portrait-caption .live-dot { margin-right: 0; }

/* ---------- stat band ---------- */
.stat-band { position: relative; z-index: 1; padding: 8px 0 0; }

.stat-band-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  overflow: hidden;
}

.stat-band .stat { padding: 20px 24px; border-right: 1px solid var(--line); }
.stat-band .stat:last-child { border-right: 0; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 0.98rem; }
.brand-text span { font-family: var(--mono); font-size: 0.66rem; color: var(--muted); letter-spacing: 0.06em; }

.pnav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.9rem;
  color: #C7CDD8;
}

.pnav-links a:hover { color: #fff; }

.pnav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--amber);
  background: var(--amber-soft);
  color: var(--amber) !important;
  font-weight: 650;
  font-size: 0.88rem;
  transition: background 0.18s, transform 0.18s;
}

.pnav-cta:hover { background: rgba(245, 165, 36, 0.24); transform: translateY(-1px); }

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}

.psection { position: relative; z-index: 1; padding: 84px 0; }
.psection + .psection { border-top: 1px solid var(--line); }

.section-head { max-width: 660px; margin-bottom: 40px; }
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 12px 0 10px;
}
.section-head p { color: var(--muted); font-size: 1.02rem; }

/* ---------- hero ---------- */
.phero {
  position: relative;
  z-index: 1;
  padding: 76px 0 64px;
}

.phero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.phero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 760;
  margin: 18px 0 20px;
}

.phero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #FFC46B, var(--amber) 55%, #FFE2AE);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.phero-lede {
  color: #B7BECB;
  font-size: 1.06rem;
  max-width: 560px;
}

.phero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 650;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.16s, background 0.16s, border-color 0.16s;
}

.btn-solid { background: var(--amber); color: #17110A; }
.btn-solid:hover { background: #FFB53D; transform: translateY(-2px); }

.btn-ghost { border-color: var(--line-strong); color: var(--paper); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }

.hero-card {
  background: linear-gradient(165deg, rgba(24, 28, 38, 0.95), rgba(12, 15, 21, 0.95));
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
}

.hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(69, 214, 168, 0.16);
  display: inline-block;
  margin-right: 8px;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-top: 20px;
}

.stat b {
  display: block;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
}

.stat span {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
  display: block;
  margin-top: 4px;
}

.hero-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.chip {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: #C7CDD8;
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.about-copy p { color: #B7BECB; margin-bottom: 16px; font-size: 1rem; }
.about-copy strong { color: #fff; font-weight: 650; }

.pullquote {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--amber);
  background: rgba(245, 165, 36, 0.06);
  border-radius: 0 12px 12px 0;
  font-size: 1.12rem;
  letter-spacing: -0.015em;
  color: #F6E7CB;
}

.fact-list { display: grid; gap: 16px; }

.fact {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.fact dt {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 6px;
}

.fact dd { font-size: 0.9rem; color: #CBD2DD; line-height: 1.5; }

/* ---------- pillars ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.pillar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: border-color 0.18s, transform 0.18s;
}

.pillar:hover { border-color: rgba(245, 165, 36, 0.45); transform: translateY(-3px); }

.pillar-icon { font-size: 1.3rem; margin-bottom: 12px; }
.pillar h3 { font-size: 1rem; letter-spacing: -0.01em; margin-bottom: 7px; }
.pillar p { font-size: 0.88rem; color: var(--muted); }

/* ---------- projects ---------- */
.project {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 70%);
  transition: border-color 0.18s, transform 0.18s;
}

.project:hover { border-color: rgba(69, 214, 168, 0.4); transform: translateY(-3px); }

.project-icon { font-size: 1.5rem; }
.project h3 { font-size: 1.02rem; letter-spacing: -0.01em; }
.project p { font-size: 0.88rem; color: var(--muted); flex: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

.note-strip {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid rgba(69, 214, 168, 0.28);
  background: rgba(69, 214, 168, 0.06);
  font-size: 0.92rem;
  color: #CBE9DD;
}

/* ---------- squad ---------- */
.squad { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }

.agent {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.18s, background 0.18s;
}

.agent:hover { border-color: rgba(245, 165, 36, 0.4); background: rgba(245, 165, 36, 0.05); }

.agent-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--amber);
  letter-spacing: 0.12em;
}

.agent h3 { font-size: 0.98rem; margin: 8px 0 8px; }
.agent p { font-size: 0.85rem; color: var(--muted); }

.pipeline {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #C7CDD8;
  padding: 14px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
}

.pipeline .arrow { color: var(--amber); }
.pipeline .done { color: var(--mint); }

/* ---------- experience ---------- */
.timeline { position: relative; display: grid; gap: 6px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: linear-gradient(var(--amber), rgba(245, 165, 36, 0.05));
}

.role {
  position: relative;
  padding: 18px 0 18px 42px;
}

.role::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 27px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--amber);
}

.role h3 { font-size: 1.02rem; letter-spacing: -0.01em; }
.role .role-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--amber);
  letter-spacing: 0.04em;
  margin: 3px 0 8px;
}
.role p { font-size: 0.88rem; color: var(--muted); max-width: 720px; }

/* ---------- awards ---------- */
.award {
  display: flex;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(245, 165, 36, 0.08), rgba(255, 255, 255, 0.015));
}

.award-icon { font-size: 1.5rem; line-height: 1; }
.award h3 { font-size: 1rem; margin-bottom: 6px; }
.award p { font-size: 0.87rem; color: var(--muted); }

/* ---------- contact ---------- */
.contact {
  position: relative;
  z-index: 1;
  padding: 96px 0 80px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(700px 340px at 50% 0%, rgba(245, 165, 36, 0.12), transparent 70%);
  text-align: center;
}

.contact h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.contact p { color: var(--muted); max-width: 520px; margin: 0 auto 26px; }

.contact-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.contact-links a {
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.9rem;
  transition: border-color 0.16s, color 0.16s;
}

.contact-links a:hover { border-color: var(--amber); color: var(--amber); }

.pfooter {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 24px 0;
  font-size: 0.8rem;
  color: #7F8898;
}

.pfooter .shell { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.pfooter a { color: #C7CDD8; }
.pfooter a:hover { color: var(--amber); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .phero-grid, .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .pnav-links { display: none; }
  .psection { padding: 60px 0; }
  .phero { padding: 52px 0 44px; }
}

@media (max-width: 520px) {
  .shell { padding: 0 20px; }
  .stat-row { gap: 14px; }
  .phero h1 { letter-spacing: -0.03em; }
}

/* ============================================================
   Motion
   ============================================================ */

@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(28px) translateY(10px); }
  to   { opacity: 1; transform: none; }
}

@keyframes auraDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-2%, 1.5%, 0) scale(1.08); }
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(69, 214, 168, 0.16); }
  50%      { box-shadow: 0 0 0 9px rgba(69, 214, 168, 0.03); }
}

@keyframes markGlow {
  0%, 100% { box-shadow: 0 6px 18px rgba(245, 165, 36, 0.25); }
  50%      { box-shadow: 0 8px 28px rgba(245, 165, 36, 0.5); }
}

/* ambient background slowly breathes */
.aura { animation: auraDrift 20s ease-in-out infinite alternate; }

/* brand mark and live dot */
.brand-mark { animation: markGlow 4.5s ease-in-out infinite; }
.live-dot { animation: livePulse 2.6s ease-in-out infinite; }

/* nav underline sweep */
.pnav-links a { position: relative; }
.pnav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--amber);
  transition: right 0.24s ease;
}
.pnav-links a:hover::after { right: 0; }

/* hero entrance */
.js-anim .phero .eyebrow,
.js-anim .phero h1,
.js-anim .phero-lede,
.js-anim .phero-actions {
  animation: riseIn 0.85s cubic-bezier(0.22, 0.7, 0.2, 1) both;
}
.js-anim .phero .eyebrow { animation-delay: 0.05s; }
.js-anim .phero h1 { animation-delay: 0.14s; }
.js-anim .phero-lede { animation-delay: 0.24s; }
.js-anim .phero-actions { animation-delay: 0.34s; }
.js-anim .hero-card {
  animation: slideInRight 0.95s 0.3s cubic-bezier(0.22, 0.7, 0.2, 1) both;
}

/* scroll reveals */
.js-anim .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 0.7, 0.2, 1) var(--d, 0ms),
    transform 0.75s cubic-bezier(0.22, 0.7, 0.2, 1) var(--d, 0ms);
}

.js-anim .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* timeline dots pop in with their role */
.js-anim .role::before {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--d, 0ms) + 120ms),
              border-color 0.5s ease;
  transform: scale(0.4);
}
.js-anim .role.is-in::before { transform: scale(1); }

/* counter digits shouldn't jitter while animating */
.stat b { font-variant-numeric: tabular-nums; }
.stat-suffix { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  .aura,
  .brand-mark,
  .live-dot,
  .js-anim .phero .eyebrow,
  .js-anim .phero h1,
  .js-anim .phero-lede,
  .js-anim .phero-actions,
  .js-anim .hero-card {
    animation: none !important;
  }
  .js-anim .reveal { opacity: 1; transform: none; transition: none; }
  .js-anim .role::before { transform: none; transition: none; }
  .pnav-links a::after { transition: none; }
}

/* ---------- running banner ---------- */
.marquee {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  padding: 15px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(245, 165, 36, 0.05), rgba(69, 214, 168, 0.04));
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #C8D0DC;
  animation: marqueeRun 38s linear infinite;
}

.marquee-track span { white-space: nowrap; }
.marquee-track i { color: var(--amber); font-style: normal; font-size: 0.6rem; opacity: 0.75; }

.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marqueeRun {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* portrait + stat band entrance */
.js-anim .portrait-card {
  animation: slideInRight 0.95s 0.28s cubic-bezier(0.22, 0.7, 0.2, 1) both;
}

.js-anim .stat-band .stat {
  animation: riseIn 0.6s cubic-bezier(0.22, 0.7, 0.2, 1) both;
}
.js-anim .stat-band .stat:nth-child(1) { animation-delay: 0.35s; }
.js-anim .stat-band .stat:nth-child(2) { animation-delay: 0.44s; }
.js-anim .stat-band .stat:nth-child(3) { animation-delay: 0.53s; }
.js-anim .stat-band .stat:nth-child(4) { animation-delay: 0.62s; }

@media (max-width: 900px) {
  .portrait-card { max-width: 400px; margin: 0 auto; }
  .stat-band-grid { grid-template-columns: 1fr 1fr; }
  .stat-band .stat:nth-child(2) { border-right: 0; }
  .stat-band .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 520px) {
  .stat-band .stat { padding: 16px 18px; }
  .marquee-track { gap: 22px; font-size: 0.72rem; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .js-anim .portrait-card,
  .js-anim .stat-band .stat { animation: none; }
}
