/* ============================================================
   Harsh Vardhan — portfolio
   Dark, glassy, purple-accented. No framework, no build step.
   ============================================================ */

:root {
  --bg: #0a0a0f;
  --bg-soft: #11111a;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e6e6ef;
  --muted: #9a9ab0;
  --accent: #7c3aed;
  --accent-2: #22d3ee;
  --accent-soft: rgba(124, 58, 237, 0.16);
  --radius: 16px;
  --max: 1080px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "Fira Code", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

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

/* ---------- animated background ---------- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(600px circle at 15% 8%, rgba(124, 58, 237, 0.20), transparent 55%),
    radial-gradient(700px circle at 85% 30%, rgba(34, 211, 238, 0.12), transparent 55%),
    radial-gradient(600px circle at 50% 100%, rgba(124, 58, 237, 0.12), transparent 60%);
  animation: drift 22s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(0, -30px, 0) scale(1.06); }
}

#grid-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  pointer-events: none;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 48px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 10, 15, 0.55);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}

.nav.is-scrolled {
  background: rgba(10, 10, 15, 0.85);
  border-bottom-color: var(--border);
  padding-top: 12px;
  padding-bottom: 12px;
}

.nav__brand { text-decoration: none; }

.nav__mark {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--accent-2);
  letter-spacing: -0.5px;
}

.nav__links { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 30px); }

.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  transition: color 0.25s ease;
}

.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav__links a:hover { color: var(--text); }
.nav__links a:not(.nav__cta):hover::after { width: 100%; }

.nav__cta {
  padding: 7px 16px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--text) !important;
  background: var(--accent-soft);
  transition: transform 0.2s ease, box-shadow 0.25s ease !important;
}

.nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}

.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px clamp(20px, 6vw, 48px) 60px;
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}

.hero__hello {
  font-family: var(--mono);
  color: var(--accent-2);
  font-size: 0.95rem;
  margin-bottom: 18px;
  letter-spacing: 1px;
}

.hero__title {
  font-size: clamp(2.6rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  background: linear-gradient(120deg, #ffffff 20%, #c4b5fd 60%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__dot { -webkit-text-fill-color: var(--accent); }

.hero__subtitle {
  font-size: clamp(1.5rem, 5vw, 2.6rem);
  font-weight: 700;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: -1px;
  min-height: 1.3em;
}

.hero__subtitle::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 0.95em;
  margin-left: 6px;
  background: var(--accent-2);
  animation: blink 1s steps(2) infinite;
  vertical-align: -0.1em;
}

@keyframes blink { 50% { opacity: 0; } }

.hero__lede {
  max-width: 620px;
  margin-top: 26px;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
}

.hero__lede em { color: var(--accent-2); font-style: normal; font-weight: 600; }

.hero__actions { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 44px;
  border: 2px solid var(--border);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.hero__scroll span {
  width: 4px; height: 8px;
  background: var(--accent-2);
  border-radius: 2px;
  animation: wheel 1.8s ease-in-out infinite;
}

@keyframes wheel {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.22s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #9333ea);
  color: #fff;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.35);
}

.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(124, 58, 237, 0.5); }

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover { transform: translateY(-3px); border-color: var(--accent); background: var(--accent-soft); }

/* ---------- sections ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(70px, 10vw, 120px) clamp(20px, 6vw, 48px);
}

.section__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 44px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section__title span {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--accent-2);
  font-weight: 600;
}

.section__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ---------- about ---------- */
.about {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.about__text p { color: var(--muted); margin-bottom: 16px; }
.about__text strong { color: var(--text); }

.about__facts { list-style: none; margin-top: 22px; display: grid; gap: 9px; }

.about__facts li {
  color: var(--muted);
  font-size: 0.95rem;
  padding-left: 4px;
}

.about__card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s ease;
}

.about__card:hover { transform: perspective(1000px) rotateY(0) rotateX(0); }

.about__card-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border);
}

.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot--r { background: #ff5f57; }
.dot--y { background: #febc2e; }
.dot--g { background: #28c840; }

.about__card-title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.about__code {
  padding: 18px;
  font-family: var(--mono);
  font-size: 0.83rem;
  line-height: 1.75;
  overflow-x: auto;
  color: var(--muted);
}

.about__code .k { color: #c4b5fd; }
.about__code .s { color: #67e8f9; }
.about__code .n { color: #fbbf24; }

/* ---------- skills ---------- */
.skills { display: grid; gap: 30px; }

.skill-group h4 {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent-2);
  margin-bottom: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.chips { display: flex; flex-wrap: wrap; gap: 9px; }

.chip {
  padding: 7px 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.87rem;
  color: var(--muted);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.chip:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-soft);
}

/* ---------- projects ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 22px;
}

.project {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.project::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.14), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.project:hover {
  transform: translateY(-7px);
  border-color: rgba(124, 58, 237, 0.55);
  box-shadow: 0 22px 50px rgba(124, 58, 237, 0.18);
}

.project:hover::before { opacity: 1; }

.project__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.project__icon { font-size: 1.7rem; }

.project__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 1.25rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.project__links a:hover { color: var(--accent-2); transform: translate(2px, -2px); }

.project h4 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 9px;
  letter-spacing: -0.3px;
}

.project p {
  color: var(--muted);
  font-size: 0.91rem;
  flex: 1;
  margin-bottom: 16px;
}

.project__stack { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }

.project__stack span {
  font-family: var(--mono);
  font-size: 0.73rem;
  color: var(--accent-2);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.22);
  padding: 3px 9px;
  border-radius: 6px;
}

.project__demo {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-2);
  text-decoration: none;
  align-self: flex-start;
  transition: letter-spacing 0.2s ease;
}

.project__demo:hover { letter-spacing: 0.4px; }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  justify-items: center;
}

.stats img {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.stats__wide { grid-column: 1 / -1; width: 100%; }

/* ---------- contact ---------- */
.section--contact { text-align: center; }

.section--contact .section__title { justify-content: center; }
.section--contact .section__title::after { display: none; }

.contact p {
  max-width: 560px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 1.05rem;
}

.contact__links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 30px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- scroll progress ---------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 200;
  background: transparent;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.8);
  transition: width 0.1s linear;
}

/* ---------- custom cursor ---------- */
.cursor,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 300;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor {
  width: 7px; height: 7px;
  background: var(--accent-2);
  transform: translate(-50%, -50%);
}

.cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid rgba(124, 58, 237, 0.65);
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, opacity 0.3s ease;
}

.cursor.is-on,
.cursor-ring.is-on { opacity: 1; }

.cursor-ring.is-hover {
  width: 56px; height: 56px;
  border-color: var(--accent-2);
  background: rgba(34, 211, 238, 0.08);
}

@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-ring { display: none; }
}

/* ---------- side section dots ---------- */
.dots {
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dots a {
  position: relative;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.dots a.is-active {
  background: var(--accent-2);
  border-color: var(--accent-2);
  transform: scale(1.35);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.7);
}

.dots a span {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  font-size: 0.72rem;
  font-family: var(--mono);
  color: var(--accent-2);
  background: rgba(13, 13, 20, 0.92);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.dots a:hover span,
.dots a.is-active span {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ---------- hero pills ---------- */
.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 42px;
  max-width: 640px;
}

.pill {
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  animation: floaty 5s ease-in-out infinite;
}

.pill:nth-child(2n) { animation-delay: 0.6s; }
.pill:nth-child(3n) { animation-delay: 1.2s; }
.pill:nth-child(4n) { animation-delay: 1.8s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ---------- counters ---------- */
.counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 54px;
}

.counter {
  text-align: center;
  padding: 26px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.counter:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 58, 237, 0.55);
}

.counter b {
  display: block;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  background: linear-gradient(120deg, #c4b5fd, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.counter span {
  display: block;
  margin-top: 7px;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

/* ---------- featured showcase ---------- */
.featured {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(26px, 4vw, 48px);
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: clamp(18px, 3vw, 30px);
  background:
    linear-gradient(150deg, rgba(124, 58, 237, 0.14), rgba(34, 211, 238, 0.05) 55%),
    var(--surface);
  backdrop-filter: blur(10px);
}

.featured__media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

.featured__media img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.featured:hover .featured__media img { transform: scale(1.04); }

.featured__badge {
  position: absolute;
  top: 13px; right: 13px;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(10, 10, 15, 0.82);
  border: 1px solid rgba(34, 211, 238, 0.5);
  color: var(--accent-2);
}

.featured__eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--accent-2);
  margin-bottom: 10px;
}

.featured__body h4 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}

.featured__body p { color: var(--muted); font-size: 0.96rem; }
.featured__body strong { color: var(--text); }

.featured__meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 22px 0 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}

.featured__meta li {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.featured__meta b {
  display: block;
  font-size: 1.35rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.featured__actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

/* ---------- project screenshot cards ---------- */
.project--shot { padding: 0; overflow: hidden; }

.project__shot {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #06060a;
}

.project__shot img {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
  filter: saturate(0.85) brightness(0.9);
}

.project--shot:hover .project__shot img {
  transform: scale(1.06);
  filter: saturate(1.1) brightness(1);
}

.project__body { padding: 22px 24px 24px; position: relative; z-index: 1; }

/* ---------- profile snapshot card ---------- */
.snapshot {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 18px 20px 16px;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.snapshot:hover { border-color: rgba(124, 58, 237, 0.5); transform: translateY(-3px); }

.snapshot--wide { grid-column: 1 / -1; }

.snapshot__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.snapshot__avatar {
  border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}

.snapshot__head b {
  display: block;
  font-family: var(--mono);
  font-size: 0.92rem;
  color: var(--text);
}

.snapshot__head span {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 2px;
}

.snapshot__badge {
  margin-left: auto;
  font-size: 0.66rem !important;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--accent-2) !important;
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.snapshot__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 12px;
  margin: 16px 0 14px;
}

.snapshot__grid dt {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--muted);
  margin-bottom: 4px;
}

.snapshot__grid dd {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.8px;
  background: linear-gradient(120deg, #c4b5fd, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.snapshot__foot {
  margin: 0;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 0.74rem;
  color: var(--muted);
}

.snapshot__graph {
  display: block;
  width: 100%;
  height: auto;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent;
}

/* ---------- streak card ---------- */
.streak__top {
  display: flex;
  align-items: center;
  gap: 13px;
}

.streak__flame { font-size: 1.7rem; line-height: 1; }

.streak__nums b {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}

.streak__nums b i {
  font-style: normal;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-right: 3px;
  background: linear-gradient(120deg, #fbbf24, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.streak__nums span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

.streak__badge {
  color: #39d353 !important;
  border-color: rgba(57, 211, 83, 0.45) !important;
  background: rgba(57, 211, 83, 0.08) !important;
}

.streak__bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 54px;
  margin: 18px 0 4px;
  padding-bottom: 2px;
}

.streak__bars .bar {
  flex: 1;
  max-width: 20px;
  min-height: 4px;
  border-radius: 3px;
  background: linear-gradient(180deg, #39d353, #26a641);
  box-shadow: 0 0 8px rgba(57, 211, 83, 0.35);
  transition: transform 0.2s ease;
}

.streak__bars .bar:hover { transform: scaleY(1.08); }

.streak__bars .bar--0 {
  background: #161b22;
  box-shadow: none;
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__card { transform: none; }
}

@media (max-width: 720px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(76vw, 300px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 40px;
    background: rgba(13, 13, 20, 0.97);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav__links.is-open { transform: translateX(0); }

  .nav__links a { font-size: 1.1rem; }

  .nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero__scroll { display: none; }
  .projects { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive: new components ---------- */
@media (max-width: 980px) {
  .featured { grid-template-columns: 1fr; }
  .dots { display: none; }
}

@media (max-width: 720px) {
  .counters { grid-template-columns: repeat(2, 1fr); }
  .counter { padding: 20px 10px; }
  .featured__meta { gap: 14px; }
  .project__shot img { height: 150px; }
  .hero__pills { margin-top: 32px; }
  .snapshot__grid { grid-template-columns: repeat(2, 1fr); }
  .snapshot__badge { display: none; }
}

@media (max-width: 420px) {
  .counters { grid-template-columns: 1fr 1fr; gap: 10px; }
  .snapshot__grid { grid-template-columns: repeat(2, 1fr); gap: 14px 10px; }
  .snapshot__grid dd { font-size: 1.2rem; }
}
