/* ============================================================
   SHWETA MISHRA — PORTFOLIO
   ============================================================ */

:root {
  --bg: #0a0a0b;
  --bg-2: #111114;
  --bg-3: #16161a;
  --fg: #f4f4f5;
  --fg-2: #b6b6bd;
  --fg-3: #6e6e76;
  --line: #26262c;
  --line-2: #1c1c21;
  --accent: #c6ff3d;       /* electric lime */
  --accent-2: #6e5cff;     /* deep violet */
  --accent-3: #ff6b9b;     /* hot pink */
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --maxw: 1280px;
  --pad: clamp(20px, 4vw, 64px);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: none;
}

a { color: inherit; text-decoration: none; cursor: none; }
a:hover { color: var(--accent); }
button { cursor: none; }

/* ============================================================
   GRAIN + CURSOR
   ============================================================ */

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 32px; height: 32px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  mix-blend-mode: difference;
}
.cursor.grow {
  width: 64px; height: 64px;
  background: var(--accent);
  border-color: var(--accent);
}
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

@media (hover: none), (pointer: coarse) {
  body, a, button { cursor: auto; }
  .cursor, .cursor-dot { display: none; }
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad);
  background: rgba(10,10,11,0.6);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--line-2); }

.nav-logo {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.nav-logo .dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  font-size: 13px;
  font-weight: 400;
}
.nav-links a {
  color: var(--fg-2);
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.nav-links a:hover { color: var(--fg); }
.nav-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  font-weight: 500;
}

@media (max-width: 720px) {
  .nav-links { gap: 14px; }
  .nav-links li:nth-child(n+4) { display: none; }
}

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

.hero {
  min-height: 100vh;
  padding: 140px var(--pad) 80px;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-2);
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.loc {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.hero-title {
  font-size: clamp(64px, 14vw, 220px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin-bottom: 48px;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.reveal {
  display: inline-block;
  transform: translateY(110%);
  animation: reveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.line:nth-child(2) .reveal { animation-delay: 0.15s; }
@keyframes reveal {
  to { transform: translateY(0); }
}

.hero-sub {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 720px;
  margin-bottom: 80px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.6s forwards;
}
.hero-sub em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--fg);
  font-size: 1.05em;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line-2);
  opacity: 0;
  animation: fadeUp 0.9s ease 0.85s forwards;
}
.hero-stats > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-stats strong {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 44px);
  color: var(--accent);
  letter-spacing: -0.03em;
}
.hero-stats span {
  font-size: 12px;
  color: var(--fg-3);
  line-height: 1.4;
}

@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  right: var(--pad);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-hint .arrow {
  font-size: 16px;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ============================================================
   MARQUEE
   ============================================================ */

.marquee {
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  overflow: hidden;
  padding: 22px 0;
  background: var(--bg-2);
}
.marquee-track {
  display: inline-flex;
  gap: 24px;
  white-space: nowrap;
  animation: scroll 45s linear infinite;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--fg-2);
}
.marquee-track span {
  display: inline-block;
}
.marquee-track span:nth-child(odd) {
  font-weight: 500;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 120px var(--pad) 80px;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-2);
}
.section-head .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}
.section-head h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  flex: 1;
}
.head-link {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-2);
}

.section-intro {
  color: var(--fg-2);
  margin-bottom: 32px;
  max-width: 560px;
}

/* ============================================================
   ABOUT
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
}

.about-copy .lead {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.25;
  color: var(--fg);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}
.about-copy p {
  color: var(--fg-2);
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.7;
}
.about-copy strong { color: var(--fg); font-weight: 500; }

.about-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.award {
  padding: 22px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  transition: border-color 0.3s ease, transform 0.3s ease;
  position: relative;
}
.award:hover { border-color: var(--accent); transform: translateY(-2px); }
.award-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 10px;
}
.award p {
  font-size: 13px;
  color: var(--fg-2);
  margin-bottom: 8px;
  line-height: 1.5;
}
.award em { color: var(--fg); font-style: normal; font-weight: 500; }
.award-date {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-3);
}

/* ============================================================
   TIMELINE
   ============================================================ */

.timeline {
  list-style: none;
  position: relative;
}

.job {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding: 48px 0;
  border-top: 1px solid var(--line-2);
  position: relative;
}
.job:last-child { border-bottom: 1px solid var(--line-2); }

@media (max-width: 820px) {
  .job { grid-template-columns: 1fr; gap: 16px; }
}

.job-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--mono);
  font-size: 12px;
  position: sticky;
  top: 100px;
  align-self: start;
  height: fit-content;
}
.job-date { color: var(--fg); font-weight: 500; }
.job-loc { color: var(--fg-3); }

.job-body h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  line-height: 1.25;
}
.job-body .at { color: var(--fg-3); font-weight: 300; margin: 0 4px; }
.job-body .co { color: var(--accent); font-weight: 500; }

.team {
  margin: 24px 0 16px;
}
.team.second { margin-top: 40px; }
.team-pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(198, 255, 61, 0.12);
  color: var(--accent);
  letter-spacing: 0.02em;
}
.team-pill.alt {
  background: rgba(110, 92, 255, 0.15);
  color: var(--accent-2);
}
.team-sub {
  font-size: 12px;
  color: var(--fg-3);
  margin-top: 8px;
}

.bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bullets li {
  position: relative;
  padding-left: 22px;
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.65;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 1px;
  background: var(--accent);
}
.bullets strong { color: var(--fg); font-weight: 500; }
.bullets em { color: var(--fg); font-style: normal; font-weight: 500; background: rgba(198,255,61,0.10); padding: 1px 4px; border-radius: 2px; }
.bullets code {
  font-family: var(--mono);
  font-size: 12px;
  padding: 2px 6px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 3px;
  color: var(--accent);
}

.stack {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.stack span {
  font-family: var(--mono);
  font-size: 11px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--fg-2);
  transition: all 0.2s ease;
}
.stack span:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.job.edu .job-body h3 {
  font-size: clamp(18px, 2vw, 22px);
  margin-bottom: 12px;
  color: var(--fg-2);
}
.edu-note {
  font-size: 14px;
  color: var(--fg-3);
}
.edu-note strong { color: var(--fg-2); font-weight: 500; }

/* ============================================================
   PROJECTS / REPOS
   ============================================================ */

.repos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.repo {
  display: block;
  padding: 24px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 180px;
  display: flex;
  flex-direction: column;
}
.repo:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  color: inherit;
}
.repo::before {
  content: "↗";
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--fg-3);
  font-size: 16px;
  transition: all 0.3s ease;
}
.repo:hover::before {
  color: var(--accent);
  transform: translate(2px, -2px);
}
.repo-name {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 10px;
  padding-right: 28px;
  word-break: break-word;
}
.repo-desc {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.55;
  margin-bottom: auto;
  padding-bottom: 18px;
}
.repo-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
}
.repo-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.repo-lang::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.repo.skeleton {
  pointer-events: none;
  background: linear-gradient(90deg, var(--bg-2) 0%, var(--bg-3) 50%, var(--bg-2) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  border-color: var(--line-2);
}
.repo.skeleton::before { display: none; }
@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.repos-error {
  grid-column: 1 / -1;
  padding: 32px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  text-align: center;
  color: var(--fg-2);
  font-size: 14px;
}
.repos-error a { color: var(--accent); }

/* ============================================================
   SKILLS GRID
   ============================================================ */

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-2);
}
@media (max-width: 720px) {
  .skills-grid { grid-template-columns: 1fr; }
}
.skill-cell {
  padding: 24px 0;
  border-bottom: 1px solid var(--line-2);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: baseline;
  transition: padding 0.3s ease;
}
.skill-cell:hover { padding-left: 12px; }
.skill-cell:hover .k { color: var(--accent); }
.skill-cell:nth-child(odd) { border-right: 1px solid var(--line-2); padding-right: 24px; }
.skill-cell:nth-child(even) { padding-left: 24px; }

@media (max-width: 720px) {
  .skill-cell { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .skill-cell:nth-child(odd), .skill-cell:nth-child(even) { padding-left: 0; padding-right: 0; border-right: none; }
}

.skill-cell .k {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.skill-cell .v {
  font-size: 15px;
  color: var(--fg);
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact { padding-bottom: 60px; }
.contact-line {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2;
  color: var(--fg);
  max-width: 880px;
  margin-bottom: 56px;
  letter-spacing: -0.02em;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  transition: all 0.3s ease;
  background: var(--bg-2);
}
.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  color: inherit;
}
.cc-k {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cc-v {
  font-size: 16px;
  color: var(--fg);
  font-weight: 500;
  word-break: break-all;
}
.contact-card:hover .cc-v { color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */

.foot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px var(--pad);
  border-top: 1px solid var(--line-2);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
}
@media (max-width: 600px) {
  .foot { flex-direction: column; gap: 8px; }
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */

.io {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.io.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .hero-sub, .hero-stats { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
