/* ============================================================
   SHRUTI SINGH — PORTFOLIO STYLESHEET
   Theme: Dark developer-terminal aesthetic
   ============================================================ */

/* ---------- CSS VARIABLES (color palette & fonts) ---------- */
:root {
  --bg: #0B0E14;
  --bg-panel: #11151C;
  --bg-panel-2: #151A22;
  --border: #21262D;
  --text: #E6EDF3;
  --muted: #7D8590;
  --blue: #58A6FF;      /* full stack accent */
  --green: #56D364;     /* data analytics accent */
  --amber: #D29922;     /* ongoing / highlight accent */
  --purple: #BC8CFF;    /* AI / Python accent */
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', sans-serif;
}

/* ---------- RESET & BASE ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: var(--blue);
  color: #0B0E14;
}

a {
  color: inherit;
  text-decoration: none;
}

.mono {
  font-family: var(--mono);
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- NAVIGATION BAR ---------- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.nav-brand span {
  color: var(--green);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 13px;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.2s;
}

/* Highlight active nav link while scrolling */
.nav-links a.active,
.nav-links a:hover {
  color: var(--blue);
}

/* Mobile hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}

/* Hamburger animation when menu is open */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- HERO SECTION ---------- */
header.hero {
  padding: 150px 0 90px;
  position: relative;
}

/* Soft blue glow behind hero text */
.glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(88, 166, 255, 0.12), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(30px, 5.5vw, 52px);
  letter-spacing: -1px;
  margin-bottom: 10px;
}

.hero h1 .accent {
  color: var(--blue);
}

/* Typing animation area */
.hero-role {
  font-family: var(--mono);
  font-size: clamp(16px, 2.4vw, 20px);
  color: var(--muted);
  min-height: 28px;
  margin-bottom: 26px;
}

.hero-role .cursor {
  display: inline-block;
  width: 9px;
  height: 18px;
  background: var(--blue);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-start infinite;
}

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

.hero p.desc {
  max-width: 560px;
  color: var(--muted);
  font-size: 15.5px;
  margin-bottom: 34px;
}

/* Hero layout — text on left, profile photo on right */
.hero-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.hero-content {
  min-width: 0;
}

/* Profile photo frame — matches terminal/dark panel aesthetic */
.hero-avatar {
  flex-shrink: 0;
  text-align: center;
}

.avatar-frame {
  width: 190px;
  height: 230px;
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-panel);
  box-shadow:
    0 0 0 1px rgba(88, 166, 255, 0.08),
    0 20px 50px -12px rgba(0, 0, 0, 0.55);
  position: relative;
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  /* Slight tone adjustment so photo blends with dark theme */
  filter: brightness(0.93) contrast(1.04) saturate(0.95);
}

/* Subtle dark gradient at bottom of photo */
.avatar-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(11, 14, 20, 0.45));
  pointer-events: none;
}

/* Green "online" status dot — matches OPEN TO WORK indicator */
.avatar-status {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 11px;
  height: 11px;
  background: var(--green);
  border: 2px solid var(--bg-panel);
  border-radius: 50%;
  animation: pulse 1.6s infinite;
  z-index: 1;
}

.avatar-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
  display: block;
}

/* ---------- BUTTONS ---------- */
.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--blue);
  color: #0B0E14;
  border-color: var(--blue);
}

.btn-primary:hover {
  background: #79b8ff;
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}

/* ---------- TERMINAL WINDOW (hero decoration) ---------- */
.terminal {
  margin-top: 56px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 1;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: var(--bg-panel-2);
  border-bottom: 1px solid var(--border);
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.term-body {
  padding: 22px 24px;
  font-family: var(--mono);
  font-size: 13.5px;
}

.term-line {
  margin-bottom: 6px;
  white-space: pre-wrap;
}

/* Syntax highlighting colors inside terminal */
.k { color: #FF7B72; }
.s { color: #A5D6FF; }
.c { color: var(--muted); }
.fn { color: var(--blue); }
.num { color: var(--green); }

/* ---------- SECTION HEADINGS (shared across all sections) ---------- */
section {
  padding: 90px 0;
}

.sec-head {
  margin-bottom: 42px;
}

/* Small green label above title, e.g. "// 01 About" */
.sec-tag {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--green);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

/* Main section title with underline accent */
.sec-title {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(22px, 3.5vw, 30px);
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.sec-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: 2px;
}

.sec-sub {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 14px;
  max-width: 560px;
}

/* Scroll-reveal animation: elements fade in when visible */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- ABOUT SECTION ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-grid p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 14px;
}

.stat-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}

.stat-card:hover {
  border-color: var(--blue);
}

.stat-card .label {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card .val {
  font-family: var(--mono);
  font-size: 14px;
  margin-top: 4px;
  color: var(--text);
  line-height: 1.5;
}

/* ---------- SKILLS TABS ---------- */
.tabbar {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.tab {
  font-family: var(--mono);
  font-size: 13px;
  padding: 12px 18px;
  color: var(--muted);
  border-right: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  background: var(--bg-panel-2);
}

.tab.active {
  color: var(--text);
  background: var(--bg-panel);
  border-bottom-color: var(--tab-accent, var(--blue));
}

.tab .fdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.tab-panels {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}

.panel {
  display: none;
  padding: 28px 26px;
}

.panel.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel h4 {
  font-family: var(--mono);
  font-size: 14px;
  margin-bottom: 14px;
  color: var(--muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
}

.chip {
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg-panel-2);
  transition: transform 0.15s, border-color 0.15s;
}

.chip:hover {
  transform: translateY(-2px);
  border-color: var(--panel-accent, var(--blue));
}

.panel-note {
  font-size: 13.5px;
  color: var(--muted);
  border-left: 2px solid var(--panel-accent, var(--blue));
  padding-left: 12px;
}

/* ---------- PROJECT CARDS (expandable) ---------- */
.proj-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.proj-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.proj-card:hover {
  border-color: rgba(88, 166, 255, 0.4);
}

.proj-card.open {
  border-color: var(--blue);
  box-shadow: 0 8px 32px -8px rgba(88, 166, 255, 0.15);
}

/* Clickable header row of each project card */
.proj-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 20px 22px;
  cursor: pointer;
  user-select: none;
}

.proj-tag {
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 5px;
  white-space: nowrap;
}

.proj-tag.fullstack {
  background: rgba(88, 166, 255, 0.12);
  color: var(--blue);
}

.proj-tag.analytics {
  background: rgba(86, 211, 100, 0.12);
  color: var(--green);
}

.proj-tag.ai {
  background: rgba(188, 140, 255, 0.12);
  color: var(--purple);
}

.proj-tag.ongoing {
  background: rgba(210, 153, 34, 0.12);
  color: var(--amber);
}

.proj-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.proj-subtitle {
  color: var(--muted);
  font-size: 13px;
}

/* Chevron rotates when card is expanded */
.proj-chevron {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--muted);
  transition: transform 0.3s, color 0.2s;
}

.proj-card.open .proj-chevron {
  transform: rotate(180deg);
  color: var(--blue);
}

/* Expandable body — hidden by default */
.proj-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.proj-body-inner {
  padding: 0 22px 22px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.proj-desc {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.proj-features {
  margin-bottom: 16px;
}

.proj-features h5,
.proj-tech h5 {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.proj-features ul {
  list-style: none;
  display: grid;
  gap: 6px;
}

.proj-features li {
  font-size: 13.5px;
  color: var(--text);
  padding-left: 16px;
  position: relative;
}

.proj-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 12px;
}

.proj-tech {
  margin-bottom: 16px;
}

.proj-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.proj-link {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}

.proj-link:hover {
  opacity: 0.8;
}

/* Live demo link — green accent to stand out from GitHub */
.proj-link.demo {
  color: var(--green);
}

.proj-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.proj-date {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

.proj-status {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--amber);
  padding: 4px 10px;
  border: 1px solid rgba(210, 153, 34, 0.3);
  border-radius: 20px;
}

/* ---------- STATS COUNTER (hero section) ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.stat-box {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 16px;
  text-align: center;
  transition: border-color 0.2s;
}

.stat-box:hover {
  border-color: var(--blue);
}

.stat-num {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}

.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ---------- EXPERIENCE TIMELINE ---------- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 24px 26px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
  transition: background 0.2s;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-item:hover {
  background: var(--bg-panel-2);
}

.timeline-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green);
  line-height: 1.5;
}

.timeline-role {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.timeline-org {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--blue);
  margin-bottom: 10px;
}

.timeline-desc {
  color: var(--muted);
  font-size: 14px;
}

.timeline-desc li {
  margin-bottom: 4px;
  padding-left: 14px;
  position: relative;
  list-style: none;
}

.timeline-desc li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 11px;
}

/* ---------- CERTIFICATIONS GRID ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.cert-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  transition: border-color 0.2s, transform 0.2s;
}

.cert-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.cert-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}

.cert-issuer {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue);
  margin-bottom: 4px;
}

.cert-date {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 10px;
}

/* "View Certificate" link on each cert card */
.cert-link {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}

.cert-link:hover {
  opacity: 0.8;
}

.cert-card a.cert-link-wrap {
  display: block;
  color: inherit;
}

.cert-card a.cert-link-wrap:hover .cert-link {
  text-decoration: underline;
}

/* ---------- ACHIEVEMENTS ---------- */
.achieve-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.achieve-block {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 24px;
}

.achieve-block h4 {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.achieve-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.achieve-list li {
  font-size: 13.5px;
  color: var(--text);
  padding-left: 18px;
  position: relative;
}

.achieve-list li::before {
  content: '★';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-size: 11px;
}

.medal-list li::before {
  content: '🏅';
  font-size: 12px;
}

/* ---------- EDUCATION SECTION ---------- */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.edu-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.edu-item {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  transition: border-color 0.2s, transform 0.2s;
}

.edu-item:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.edu-degree {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.edu-school {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}

.edu-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--green);
  margin-top: 4px;
}

/* ---------- CONTACT SECTION ---------- */
.contact-term {
  max-width: 640px;
}

.input-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 14px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}

.input-line:hover {
  border-color: var(--blue);
}

.input-line .prompt {
  color: var(--green);
}

.input-line a {
  color: var(--text);
  transition: color 0.2s;
}

.input-line a:hover {
  color: var(--blue);
}

.about-grid p strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- SOCIAL ICON LINKS (contact section) ---------- */
.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.social-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-panel);
  transition: all 0.2s ease;
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--muted);
  transition: fill 0.2s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
}

.social-icon.github:hover {
  border-color: var(--text);
}

.social-icon.github:hover svg {
  fill: var(--text);
}

.social-icon.linkedin:hover {
  border-color: #0A66C2;
}

.social-icon.linkedin:hover svg {
  fill: #0A66C2;
}

.social-icon.reddit:hover {
  border-color: #FF4500;
}

.social-icon.reddit:hover svg {
  fill: #FF4500;
}

.social-icon.email:hover {
  border-color: var(--blue);
}

.social-icon.email:hover svg {
  fill: var(--blue);
}

.social-icon.resume:hover {
  border-color: var(--green);
}

.social-icon.resume:hover svg {
  fill: var(--green);
}

/* Legacy text contact links (kept for reference) */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.contact-links a {
  font-family: var(--mono);
  font-size: 13px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.contact-links a:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

/* ---------- FOOTER ---------- */
footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

footer p {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- RESPONSIVE (mobile & tablet) ---------- */
@media (max-width: 760px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(11, 14, 20, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
  }

  .nav-toggle {
    display: flex;
  }

  .hero-top {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .hero-content {
    order: 2;
  }

  .hero-avatar {
    order: 1;
    justify-self: center;
  }

  .hero p.desc {
    max-width: 100%;
  }

  .btn-row {
    justify-content: center;
  }

  .eyebrow {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .proj-header {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .proj-header .proj-tag {
    grid-column: 1 / -1;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .achieve-grid {
    grid-template-columns: 1fr;
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
