/* ─── ROOT & RESET ──────────────────────────────────── */
:root {
  --bg: #070707;
  --surface: #0d0d0d;
  --text: #f5f5f5;
  --muted: #888888;
  --very-muted: #444444;
  --border: #1a1a1a;
  --pink: #ff4d8d;
  --pink-soft: #ff85b3;
  --pink-text: #ff9cc0;
  --pink-tag-bg: #1a0d12;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-snap-type: y mandatory; }
body {
  font-family: "Manrope", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ─── NAV ───────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8vw;
  background: #070707ee;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}
.nav-logo {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
}
.nav-links a {
  font-family: monospace;
  font-size: 11px;
  color: #e0e0e0;
  padding: 0 16px;
  height: 52px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-div {
  width: 0.5px;
  height: 14px;
  background: #2a2a2a;
  flex-shrink: 0;
}

/* ─── SECTION COMMON ────────────────────────────────── */
section { padding: 88px 8vw; scroll-snap-align: start; scroll-snap-stop: always; min-height: 100vh; }
.section-label {
  font-family: monospace;
  font-size: 10px;
  color: var(--pink);
  letter-spacing: 0.08em;
  margin-bottom: 40px;
  display: block;
}

/* ─── HERO ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - 52px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 8vw;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero-glow-tr {
  width: 360px;
  height: 360px;
  top: -80px;
  right: -60px;
  background: radial-gradient(circle, #ff4d8d15, transparent 70%);
}
.hero-glow-bl {
  width: 200px;
  height: 200px;
  bottom: 60px;
  left: -40px;
  background: radial-gradient(circle, #ff4d8d0a, transparent 70%);
}
.hero-glow-cursor {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #ff4d8d0d, transparent 70%);
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: left 0.3s ease, top 0.3s ease;
  will-change: left, top;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero-eyebrow {
  font-family: monospace;
  font-size: 11px;
  color: var(--pink);
  letter-spacing: 0.1em;
  margin-bottom: 28px;
  opacity: 0;
}
.hero-eyebrow.is-visible { opacity: 1; transition: opacity 0.4s ease; }
.hero-headline {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 0;
}
.hero-line1 {
  display: block;
  font-size: clamp(48px, 7vw, 76px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 0.93;
  min-height: 1em;
  white-space: nowrap;
}
.hero-cursor {
  display: inline-block;
  width: 3px;
  height: 0.82em;
  background: #fff;
  margin-left: 3px;
  vertical-align: middle;
  animation: cursor-blink 0.9s ease infinite;
}
@keyframes cursor-blink {
  0%, 45% { opacity: 1; }
  55%, 100% { opacity: 0; }
}
.hero-line2 {
  display: block;
  font-size: clamp(48px, 7vw, 76px);
  font-weight: 700;
  -webkit-text-stroke: 1.5px var(--pink);
  color: transparent;
  letter-spacing: -0.03em;
  line-height: 0.93;
}
/* each word in line2 stamps in separately */
.hero-line2 .stamp-word {
  display: inline-block;
  opacity: 0;
  -webkit-text-stroke: 1.5px var(--pink);
  color: transparent;
}
@keyframes word-stamp {
  0%   { opacity: 0; transform: translateY(-8px) scale(1.05); }
  100% { opacity: 1; transform: translateY(0)    scale(1); }
}
.hero-line2 .stamp-word.stamped {
  animation: word-stamp 200ms ease-out forwards;
}
.hero-sub-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  border-top: 0.5px solid var(--border);
  padding-top: 28px;
  margin-top: 40px;
}
.hero-subtext {
  font-size: 13px;
  color: #e0e0e0;
  max-width: none;
  line-height: 1.65;
}
.hero-cv-btn {
  font-size: 12px;
  color: #e0e0e0;
  border: 0.5px solid #333;
  padding: 10px 20px;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.2s;
  flex-shrink: 0;
  white-space: nowrap;
}
.hero-cv-btn:hover { background: #ffffff0d; }
.hero-cv-btn:hover .cv-arrow { transform: translateY(3px); }
.cv-arrow { display: inline-block; transition: transform 0.2s ease; }
.hero-cta-row {
  margin-top: 28px;
}
.hero-cta {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  background: var(--pink);
  color: #1a0610;
  padding: 14px 36px;
  border: 1px solid var(--pink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.hero-cta:hover {
  background: transparent;
  color: var(--pink);
  border-color: var(--pink);
}

/* ─── ABOUT ─────────────────────────────────────────── */
.about { border-top: 0.5px solid var(--border); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}
.about-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-headline {
  font-size: 20px;
  font-weight: 500;
  color: #eee;
  line-height: 1.55;
}
.about-body {
  font-size: 13px;
  color: #e0e0e0;
  line-height: 1.85;
}
.about-stat-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-top: 0.5px solid var(--border);
  padding-top: 18px;
  margin-top: 4px;
}
.about-stat-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--pink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.about-stat-label {
  font-size: 11px;
  color: #ccc;
  line-height: 1.5;
}
.about-right {
  position: relative;
  height: 540px;
  overflow: visible;
}
.polaroid-cluster {
  position: relative;
  width: 100%;
  height: 540px;
  overflow: visible;
}
.polaroid {
  position: absolute;
  background: #0d0d0d;
  border: 5px solid rgba(255,255,255,0.85);
  border-radius: 2px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  cursor: pointer;
  transition: transform 300ms ease, box-shadow 300ms ease;
}
.polaroid img {
  width: 100%;
  height: 155px;
  object-fit: cover;
  display: block;
  background: #1a1a1a;
}
.polaroid:hover {
  box-shadow: 0 24px 60px rgba(0,0,0,0.8);
}
.polaroid-caption {
  font-family: monospace;
  font-size: 11px;
  color: #aaa;
  text-align: center;
  margin-top: 0;
  padding-top: 6px;
  background: transparent;
  position: relative;
  z-index: 1;
}
/* polaroid positions */
.p1 {
  top: 0;
  left: 0;
  width: 210px;
  transform: rotate(-4deg);
  z-index: 4;
  opacity: 0;
}
.p1:hover { transform: rotate(-4deg) translateY(-10px); }

.p2 {
  top: 0;
  right: 0;
  width: 195px;
  transform: rotate(5deg);
  z-index: 3;
  opacity: 0;
}
.p2:hover { transform: rotate(5deg) translateY(-10px); }

.p3 {
  top: 260px;
  left: 30px;
  width: 190px;
  transform: rotate(2.5deg);
  z-index: 2;
  opacity: 0;
}
.p3:hover { transform: rotate(2.5deg) translateY(-10px); }

.p4 {
  top: 280px;
  right: 0;
  width: 180px;
  transform: rotate(-3deg);
  z-index: 1;
  opacity: 0;
}
.p4:hover { transform: rotate(-3deg) translateY(-10px); }
.polaroid-placeholder {
  width: 100%;
  height: 155px;
  background: #1a1a1a;
}

/* ─── EDUCATION ─────────────────────────────────────── */
.education { border-top: 0.5px solid var(--border); padding-top: 140px; }
.edu-timeline {
  position: relative;
  height: 340px;
  overflow: visible;
}
.edu-center-line {
  position: absolute;
  top: 169px;
  left: 0;
  right: -8px;
  height: 0.5px;
  background: linear-gradient(to right, #2a2a2a 10%, rgba(255,77,141,0.4) 55%, var(--pink));
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.2s ease-in-out;
  z-index: 1;
}
.edu-center-line::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 7px solid var(--pink);
}
.edu-timeline.is-visible .edu-center-line { transform: scaleX(1); }
.edu-nodes {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  height: 100%;
}
.edu-node {
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* above: [content 120px][conn 24px][dot 10px][pad flex] */
.edu-node.node-above .edu-top-content {
  height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding-bottom: 0;
  overflow: visible;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  transition-delay: var(--node-delay, 0ms);
}
.edu-node.node-above .edu-conn {
  height: 24px;
  width: 0.5px;
  background: #2a2a2a;
  flex-shrink: 0;
}
.edu-node.node-above .edu-dot { flex-shrink: 0; }
.edu-node.node-above .edu-pad { flex: 1; }

/* below: [pad][dot][conn][content] */
.edu-node.node-below .edu-pad { height: 164px; flex-shrink: 0; }
.edu-node.node-below .edu-dot { flex-shrink: 0; }
.edu-node.node-below .edu-conn {
  height: 24px;
  width: 0.5px;
  background: #2a2a2a;
  flex-shrink: 0;
}
.edu-node.node-below .edu-top-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding-top: 0;
  overflow: visible;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  transition-delay: var(--node-delay, 0ms);
}

.edu-timeline.is-visible .edu-top-content {
  opacity: 1;
  transform: translateY(0);
}

.edu-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  transition-delay: var(--node-delay, 0ms);
  position: relative;
  z-index: 3;
}
.edu-dot.pink {
  background: var(--pink);
  box-shadow: 0 0 10px rgba(255,77,141,0.6);
}
.edu-dot.dark {
  background: #2a2a2a;
  border: 0.5px solid #3a3a3a;
}
.edu-timeline.is-visible .edu-dot { opacity: 1; }

/* node hover */
.edu-node { cursor: default; }
.edu-timeline.is-visible .edu-node:hover .edu-top-content {
  transform: translateY(0) scale(1.08);
  transition: transform 200ms ease, opacity 0.4s ease;
}
.edu-timeline.is-visible .edu-node:hover .edu-top-content * { color: #fff; transition: color 200ms ease; }
.edu-timeline.is-visible .edu-node:hover .edu-dot.pink { box-shadow: 0 0 20px rgba(255,77,141,1); transition: box-shadow 200ms ease; }
.edu-timeline.is-visible .edu-node:hover .edu-dot.dark { box-shadow: 0 0 8px rgba(255,255,255,0.25); transition: box-shadow 200ms ease; }

.edu-level {
  font-family: monospace;
  font-size: 10px;
  color: #999;
  margin-bottom: 4px;
}
.edu-school {
  font-size: 11px;
  color: #e0e0e0;
  font-weight: 500;
  line-height: 1.4;
  max-width: 130px;
}
.edu-year {
  font-size: 10px;
  color: #ccc;
  margin-top: 4px;
}
.edu-cgpa {
  font-size: 20px;
  font-weight: 700;
  color: var(--pink);
  margin-top: 6px;
  line-height: 1;
}
.edu-cgpa-label {
  font-size: 9px;
  color: #aaa;
  margin-top: 2px;
}
/* below node content spacing */
.edu-node.node-below .edu-top-content .edu-level { margin-top: 8px; }

/* ─── PROJECTS ──────────────────────────────────────── */
.projects { border-top: 0.5px solid var(--border); }
.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
}
.projects-header .section-label { margin-bottom: 0; }
.projects-count {
  font-family: monospace;
  font-size: 11px;
  color: #ccc;
}
.project-rows { border-top: 0.5px solid var(--border); margin-top: 20px; }
.project-row {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 22px 0;
  border-bottom: 0.5px solid var(--border);
  position: relative;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.2s ease;
  opacity: 0;
  transform: translateY(16px);
}
.project-row.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease, padding-left 0.2s ease;
}
.project-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--pink);
  transition: height 0.2s ease;
}
.project-row:hover::before { height: 100%; }
.project-row:hover .project-num { color: var(--pink); }
.project-row:hover .project-arrow { transform: translateX(4px); }
.project-num {
  font-family: monospace;
  font-size: 12px;
  color: #555;
  padding-left: 40px;
  margin-right: 56px;
  flex-shrink: 0;
  transition: color 0.2s ease;
}
.project-text { flex: 1; min-width: 0; }
.project-headline {
  font-size: 15px;
  font-weight: 500;
  color: #eee;
  line-height: 1.4;
  margin-bottom: 5px;
}
.project-meta {
  font-size: 11px;
  color: #ccc;
  font-family: monospace;
}
.project-title {
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 5px;
}
.project-subtitle {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
  margin-bottom: 4px;
}
.project-arrow {
  font-family: monospace;
  font-size: 11px;
  color: var(--pink);
  margin: 0 8px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.project-screen {
  flex-shrink: 0;
  transform: perspective(400px) rotateY(-8deg) rotateX(2deg);
  overflow: hidden;
  border: 0.5px solid #1e1e1e;
  background: #0a0a0a;
  width: 120px;
  height: 72px;
  border-radius: 2px;
}
.project-screen svg { display: block; }

/* ─── SIDE QUESTS ───────────────────────────────────── */
.side-quests { border-top: 0.5px solid var(--border); }
.sq-outer {
  overflow: hidden;
  position: relative;
}
.sq-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  justify-content: flex-end;
}
.sq-arrow-btn {
  width: 32px;
  height: 32px;
  border: 0.5px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.2s, color 0.2s;
  font-family: monospace;
}
.sq-arrow-btn:hover { border-color: var(--pink); color: var(--pink); }
.sq-track-wrap {
  overflow: hidden;
}
.sq-track {
  position: relative;
}
.sq-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 260px;
  min-height: auto;
  background: var(--surface);
  border: 0.5px solid var(--border);
  cursor: pointer;
  transition: transform 0.4s ease, opacity 0.4s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.sq-card.active { border-color: rgba(255,77,141,0.27); }
.sq-card:hover { border-color: rgba(255,77,141,0.53); box-shadow: 0 0 20px rgba(255,77,141,0.15), 0 0 40px rgba(255,77,141,0.05); }
.sq-bg-placeholder {
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 120px;
  background: linear-gradient(135deg, #3d1a28, transparent);
  pointer-events: none;
}
.sq-overlay-lr {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, transparent 0%, rgba(13,13,13,0.73) 45%, #0d0d0d 75%);
  pointer-events: none;
  z-index: 1;
}
.sq-overlay-tb {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(13,13,13,0.67) 50%, #0d0d0d 80%);
  pointer-events: none;
  z-index: 1;
}
.sq-content {
  position: relative;
  z-index: 2;
  padding: 24px;
}
.sq-role {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  line-height: 1.45;
  margin-bottom: 10px;
  opacity: 1 !important;
}
.sq-detail {
  font-size: 11px;
  color: #ccc;
  line-height: 1.65;
  opacity: 1 !important;
}
.sq-year {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: monospace;
  font-size: 10px;
  color: #aaa;
  z-index: 3;
  opacity: 1 !important;
}
.sq-bullets {
  list-style: none;
  padding: 12px 0 0;
  margin: 14px 0 0;
  border-top: 0.5px solid #2a2a2a;
  font-size: 12px;
  color: #ccc;
  line-height: 1.8;
}
.sq-bullets li::before {
  content: '';
}

/* entrance animation */
@keyframes sq-enter {
  from { opacity: 0; transform: translateY(-40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sq-card.card-entrance {
  animation: sq-enter 0.5s ease-out forwards;
}

/* ─── SKILLS ────────────────────────────────────────── */
.skills { border-top: 0.5px solid var(--border); }
.skills-hero {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  align-items: baseline;
  margin-bottom: 36px;
}
.skills-word {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.skills-solid { color: #fff; }
.skills-outlined {
  -webkit-text-stroke: 1.5px #ff4d8d;
  color: transparent;
}
.skills-divider {
  border: none;
  border-top: 0.5px solid #1a1a1a;
  margin-bottom: 28px;
}
.skills-cols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.skill-col {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
}
.skill-col-label {
  font-family: monospace;
  font-size: 11px;
  color: #ff4d8d;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  width: 100%;
  white-space: nowrap;
}
.skill-item {
  font-family: monospace;
  font-size: 11px;
  color: #e0e0e0;
  display: inline-block;
  padding: 5px 10px;
  border: 0.5px solid #3a3a3a;
  background: transparent;
  border-radius: 0;
  margin: 3px 3px 3px 0;
  transition: border-color 150ms ease, color 150ms ease;
}
.skill-item:hover {
  border-color: #ff4d8d;
  color: #fff;
}

/* ─── PROJECTS: EXPAND ──────────────────────────────── */
.project-rest-wrap {
  position: relative;
  max-height: 90px;
  overflow: hidden;
  transition: max-height 0.5s ease;
}
.project-rest-wrap.expanded { max-height: 600px; }
.project-rest-wrap:not(.expanded)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.project-more-btn {
  font-family: monospace;
  font-size: 11px;
  color: var(--pink);
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 0;
  display: block;
  transition: opacity 0.2s;
}
.project-more-btn:hover { opacity: 0.7; }
.project-more-btn.hidden { display: none; }

/* ─── PROJECTS SCROLL BOX ───────────────────────────── */
.proj-scroll-box {
  position: relative;
  height: calc(100vh - 180px);
  overflow-y: scroll;
  border-top: 0.5px solid #1a1a1a;
  margin-top: 20px;
  padding-right: 20px;
  scrollbar-width: thin;
  scrollbar-color: #ff4d8d #1a1a1a;
}
.proj-scroll-box::-webkit-scrollbar { width: 3px; }
.proj-scroll-box::-webkit-scrollbar-track { background: #1a1a1a; }
.proj-scroll-box::-webkit-scrollbar-thumb { background: #ff4d8d; border-radius: 0; }
.proj-scroll-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(to bottom, transparent 0%, #070707 100%);
  pointer-events: none;
  z-index: 2;
  transition: opacity 400ms ease;
}
.proj-scroll-btn {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 12px;
  color: #ff4d8d;
  border: 0.5px solid #ff4d8d;
  padding: 10px 24px;
  background: transparent;
  cursor: pointer;
  font-family: monospace;
  letter-spacing: 0.05em;
  transition: opacity 400ms ease;
}

/* ─── CONTACT ───────────────────────────────────────── */
.contact {
  border-top: 0.5px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
}
.contact-glow {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, #ff4d8d10, transparent 70%);
  pointer-events: none;
}
.contact-headline {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  cursor: default;
}
.contact-headline .word { display: inline-block; transition: font-weight 0.15s ease; }
.contact-period { color: var(--pink); }
.contact-subtext {
  font-size: 13px;
  color: #ccc;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}
.contact-links {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}
.contact-link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
.contact-link-icon {
  display: block;
  color: #444;
  transition: color 0.2s ease, filter 0.2s ease;
}
.contact-link-label {
  font-family: monospace;
  font-size: 11px;
  color: #ccc;
  transition: color 0.2s ease;
}
.contact-link-item:hover .contact-link-icon {
  color: var(--pink);
  filter: drop-shadow(0 0 6px rgba(255,77,141,0.53));
}
.contact-link-item:hover .contact-link-label { color: var(--pink); }
.contact-wordmark {
  font-size: clamp(40px, 6vw, 52px);
  font-weight: 700;
  -webkit-text-stroke: 1px #1e1e1e;
  color: transparent;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
  user-select: none;
}

/* ─── SHARED TAG STYLES (used in project pages) ──────── */
.tag {
  display: inline-block;
  font-family: monospace;
  font-size: 10px;
  padding: 3px 8px;
  border: 0.5px solid var(--border);
  background: var(--surface);
  color: #ccc;
  margin: 2px 2px 2px 0;
}
.tag-pink {
  background: var(--pink-tag-bg);
  border-color: rgba(255,77,141,0.2);
  color: var(--pink-text);
}

/* ─── FADE-IN UTIL ──────────────────────────────────── */
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-right { display: none; }
  .edu-timeline { height: auto; overflow: visible; }
  .edu-center-line { display: none; }
  .edu-nodes { grid-template-columns: 1fr 1fr; gap: 24px; height: auto; }
  .edu-node { height: auto; }
  .edu-node.node-above, .edu-node.node-below { flex-direction: column; align-items: flex-start; }
  .edu-node.node-above .edu-top-content,
  .edu-node.node-below .edu-top-content { height: auto; transform: none; opacity: 1; }
  .edu-node.node-above .edu-conn,
  .edu-node.node-below .edu-conn,
  .edu-node.node-above .edu-pad,
  .edu-node.node-below .edu-pad { display: none; }
  .edu-dot { opacity: 1; margin-bottom: 8px; }
  .skills-cols { grid-template-columns: 1fr 1fr; }
  .project-screen { display: none; }
  .hero-line1, .hero-line2 { font-size: clamp(36px, 8vw, 60px); }
}
@media (max-width: 600px) {
  section { padding: 64px 5vw; }
  .nav { padding: 0 5vw; }
  .nav-links a { padding: 0 10px; font-size: 10px; }
  .hero { padding: 60px 5vw; }
  .education { padding-top: 64px; }
  .skills-cols { grid-template-columns: 1fr; }
  .hero-sub-row { flex-direction: column; gap: 12px; }
  .contact-links { flex-direction: column; gap: 8px; }
  .contact-link-div { display: none; }

  /* Education — animated vertical timeline (mirrors desktop scaleX → scaleY) */
  .edu-nodes {
    display: flex !important;
    flex-direction: column;
    gap: 24px;
    position: relative;
    padding-left: 0 !important;
  }
  /* Vertical line draws top→bottom when is-visible, like desktop draws left→right */
  .edu-nodes::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, #2a2a2a 60%, rgba(255,77,141,0.5));
    transform-origin: top center;
    transform: scaleY(0);
    transition: transform 1.2s ease-in-out;
    z-index: 0;
  }
  .edu-timeline.is-visible .edu-nodes::before { transform: scaleY(1); }
  /* Each node: block, left-rail space for dot */
  .edu-node,
  .edu-node.node-above,
  .edu-node.node-below {
    display: block !important;
    position: relative !important;
    padding: 0 0 0 18px !important;
    height: auto !important;
    min-height: 0 !important;
  }
  /* Dot: absolute, starts invisible, fades in via existing base is-visible rule */
  .edu-dot {
    position: absolute !important;
    left: 0 !important;
    top: 3px !important;
    margin: 0 !important;
    opacity: 0; /* reset 900px's opacity:1 so animation plays */
    z-index: 1;
  }
  /* Spacers hidden */
  .edu-conn,
  .edu-pad,
  .edu-node.node-above .edu-conn,
  .edu-node.node-above .edu-pad,
  .edu-node.node-below .edu-conn,
  .edu-node.node-below .edu-pad {
    display: none !important;
    height: 0 !important;
  }
  /* Content: block, fade-in only (no slide — wrong axis on vertical layout) */
  .edu-node.node-above .edu-top-content,
  .edu-node.node-below .edu-top-content {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    transform: none !important;
    opacity: 0; /* reset 900px's opacity:1 */
    transition: opacity 0.5s ease !important;
    transition-delay: var(--node-delay, 0ms) !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
    max-width: 100% !important;
  }
  /* Reveal content when is-visible (higher specificity wins over reset above) */
  .edu-timeline.is-visible .edu-node.node-above .edu-top-content,
  .edu-timeline.is-visible .edu-node.node-below .edu-top-content {
    opacity: 1 !important;
    transform: none !important;
  }
  /* All text elements explicitly left-aligned */
  .edu-level, .edu-school, .edu-year, .edu-cgpa, .edu-cgpa-label {
    text-align: left !important;
    max-width: 100% !important;
  }
  .edu-timeline.is-visible .edu-node:hover .edu-top-content { transform: none !important; }
}

/* ─── PROJECT PAGE SHARED ───────────────────────────── */
.proj-page {
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.proj-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8vw;
  background: #070707ee;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}
.proj-nav-back {
  font-family: monospace;
  font-size: 11px;
  color: #e0e0e0;
  transition: color 0.2s;
}
.proj-nav-back:hover { color: var(--text); }
.proj-nav-logo {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.proj-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 8vw 80px;
}
.proj-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.proj-meta-cell { display: flex; flex-direction: column; gap: 6px; }
.proj-meta-label {
  font-family: monospace;
  font-size: 10px;
  color: #999;
}
.proj-meta-stack {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 0.5px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.proj-meta-stack .proj-meta-label { margin-bottom: 4px; }
.proj-divider { border: none; border-top: 0.5px solid var(--border); margin: 24px 0; }
.proj-company-label {
  font-family: monospace;
  font-size: 10px;
  color: var(--pink);
  margin-bottom: 12px;
  display: block;
}
.proj-headline { display: flex; flex-direction: column; gap: 4px; margin-bottom: 32px; }
.proj-h-line1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.proj-h-line2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  -webkit-text-stroke: 1.5px var(--pink);
  color: transparent;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.proj-headline-single {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 32px;
}
.proj-content-rows { border-top: 0.5px solid var(--border); }
.proj-row {
  display: flex;
  gap: 24px;
  border-bottom: 0.5px solid var(--border);
  padding: 14px 0;
}
.proj-row-label {
  font-family: monospace;
  font-size: 10px;
  color: #aaa;
  min-width: 72px;
  padding-top: 2px;
  flex-shrink: 0;
}
.proj-row-text {
  font-size: 13px;
  color: #f0f0f0;
  line-height: 1.7;
}
.proj-row-text.placeholder { color: #888; font-style: italic; }
.proj-section {
  border-top: 0.5px solid var(--border);
  padding: 20px 0;
}
.proj-section-label {
  font-family: monospace;
  font-size: 10px;
  color: #ccc;
  margin-bottom: 14px;
  display: block;
  text-decoration: none;
}
a.proj-section-label:hover { color: var(--pink); }
.proj-ach-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 0.5px solid var(--border);
  background: var(--surface);
}
.proj-ach-cell {
  padding: 20px 24px;
  border-right: 0.5px solid var(--border);
}
.proj-ach-cell:last-child { border-right: none; }
.proj-ach-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--pink);
  line-height: 1;
  margin-bottom: 6px;
}
.proj-ach-desc {
  font-size: 11px;
  color: #ccc;
  line-height: 1.5;
}
.proj-screens-grid, .proj-more-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.proj-screen-cell {
  height: 220px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-size: 10px;
  color: #2a2a2a;
  overflow: hidden;
  position: relative;
}
.proj-screen-cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.proj-screen-lbl {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #888;
  font-family: monospace;
  font-size: 10px;
  text-align: center;
  z-index: 1;
}
.proj-more-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: border-color 0.2s;
}
.proj-more-card:hover { border-color: rgba(255,77,141,0.3); }
.proj-more-thumb {
  height: 70px;
  background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
  position: relative;
  overflow: hidden;
}
.proj-more-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: opacity 0.2s;
}
.proj-more-card:hover .proj-more-thumb img { opacity: 0.85; }
.proj-more-peek {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 9px;
  background: var(--pink);
  color: #1a0610;
  padding: 3px 7px;
  font-weight: 600;
  font-family: monospace;
}
.proj-more-card:hover .proj-more-peek { display: block; }
.proj-more-info { padding: 10px 12px; }
.proj-more-name {
  font-size: 12px;
  color: #e0e0e0;
  display: block;
  margin-bottom: 2px;
}
.proj-more-type {
  font-size: 10px;
  color: #ccc;
  font-family: monospace;
}
.proj-back {
  display: block;
  font-family: monospace;
  font-size: 11px;
  color: #ccc;
  padding: 16px 0;
  border-top: 0.5px solid var(--border);
  transition: color 0.2s;
}
.proj-back:hover { color: var(--text); }

/* ─── SCROLL SNAP (index.html only) ─────────────────── */
html.snap-enabled {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  scroll-padding-top: 52px;
}
html.snap-enabled .hero {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}
html.snap-enabled section:not(.hero) {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

/* ─── LIGHTBOX ───────────────────────────────────────── */
#lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
#lb-overlay.lb-active { display: flex; }
#lb-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 2px;
  display: block;
}
#lb-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #666;
  font-size: 20px;
  cursor: pointer;
  padding: 6px 10px;
  line-height: 1;
  transition: color 0.15s;
}
#lb-close:hover { color: #fff; }
#lb-prev, #lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #444;
  font-size: 44px;
  cursor: pointer;
  padding: 0 20px;
  line-height: 1;
  user-select: none;
  transition: color 0.15s;
}
#lb-prev { left: 0; }
#lb-next { right: 0; }
#lb-prev:hover, #lb-next:hover { color: #fff; }
