/* ============================================================
   CIRCUIT INTELLIGENCE — Portfolio for Omprakash Indla
   ============================================================ */

:root {
  --bg:        #0A0E1A;
  --surface:   #0F1629;
  --surface-2: #131c33;
  --cyan:      #00D4FF;
  --violet:    #7B61FF;
  --orange:    #FF6B35;
  --text:      #E8EDF5;
  --muted:     #6B7A99;
  --border:    rgba(123, 130, 160, 0.16);
  --glass:     rgba(15, 22, 41, 0.65);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1180px;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: rgba(0, 212, 255, 0.28); color: #fff; }

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Skip link */
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--cyan); color: #00141c; padding: 10px 18px;
  border-radius: 8px; font-weight: 600; transition: top .25s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Background textures ---------- */
.grid-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(123, 97, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 85%);
}

/* Ambient glow blobs */
body::before {
  content: ""; position: fixed; z-index: 0; pointer-events: none;
  top: -10%; left: -5%; width: 50vw; height: 50vw; max-width: 700px; max-height: 700px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.10), transparent 65%);
  filter: blur(20px);
}
body::after {
  content: ""; position: fixed; z-index: 0; pointer-events: none;
  bottom: -15%; right: -10%; width: 55vw; height: 55vw; max-width: 750px; max-height: 750px;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.10), transparent 65%);
  filter: blur(20px);
}

/* ---------- Cursor trail ---------- */
.cursor-dot {
  position: fixed; top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 14px 2px rgba(0, 212, 255, 0.8);
  pointer-events: none; z-index: 999; transform: translate(-50%, -50%);
  transition: transform .12s ease-out, opacity .3s ease; opacity: 0; mix-blend-mode: screen;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s var(--ease), backdrop-filter .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em;
}
.logo-dot { color: var(--cyan); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 0.92rem; color: var(--muted); font-weight: 500; position: relative;
  transition: color .25s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--cyan); transition: width .3s var(--ease); border-radius: 2px;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text); }
.nav-links a:hover::after, .nav-links a:focus-visible::after { width: 100%; }
.nav-resume {
  border: 1px solid var(--border); padding: 8px 16px; border-radius: 999px; color: var(--cyan) !important;
}
.nav-resume::after { display: none; }
.nav-resume:hover { border-color: var(--cyan); box-shadow: 0 0 18px rgba(0,212,255,.25); }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 110; }
.hamburger span {
  width: 24px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px; overflow: hidden;
}
.scope {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  opacity: 0.16; pointer-events: none;
}
.scope-line { filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.6)); }
.scope-line-2 { opacity: 0.5; }

.floating-chips { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.chip {
  position: absolute; bottom: -60px; left: var(--x);
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--cyan);
  background: rgba(0, 212, 255, 0.06); border: 1px solid rgba(0, 212, 255, 0.25);
  padding: 6px 14px; border-radius: 999px; white-space: nowrap;
  animation: floatUp var(--dur) linear var(--delay) infinite;
  backdrop-filter: blur(4px);
}
@keyframes floatUp {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.9; }
  100% { transform: translateY(-104vh) translateX(20px); opacity: 0; }
}

.hero-content { position: relative; z-index: 2; max-width: 820px; }
.hero-eyebrow {
  font-family: var(--font-mono); color: var(--cyan); font-size: 0.85rem;
  letter-spacing: 0.08em; margin-bottom: 18px;
}
.blink { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.8rem, 8vw, 5.6rem); line-height: 1.02; letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff 30%, #9fb3d4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 14px;
}
.hero-typewriter {
  font-family: var(--font-display); font-size: clamp(1.2rem, 3.5vw, 2rem); font-weight: 500;
  color: var(--cyan); min-height: 1.4em; margin-bottom: 18px;
}
.caret { color: var(--violet); animation: blink 1s steps(1) infinite; font-weight: 400; }
.hero-tagline {
  color: var(--muted); font-size: clamp(1rem, 2.5vw, 1.18rem); max-width: 560px;
  margin: 0 auto 38px;
}

.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 0.95rem; padding: 14px 26px; border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
  position: relative; will-change: transform;
}
.btn-primary {
  background: linear-gradient(120deg, var(--cyan), #4ae3ff);
  color: #00141c; box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0, 212, 255, 0.45); }
.btn-outline { border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,212,255,.18); }

/* ---------- Scroll cue ---------- */
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 2px solid var(--muted); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 7px;
}
.scroll-cue span { width: 4px; height: 8px; background: var(--cyan); border-radius: 2px; animation: scrollDot 1.6s var(--ease) infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 110px 24px; }
.section-head { margin-bottom: 54px; }
.section-head-center { text-align: center; }
.section-kicker {
  font-family: var(--font-mono); color: var(--cyan); font-size: 0.82rem;
  letter-spacing: 0.1em; margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem); line-height: 1.1; letter-spacing: -0.02em;
  max-width: 16ch;
}
.section-head-center .section-title { max-width: none; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }

.profile-card {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); overflow: hidden;
}
.profile-card::before {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.profile-avatar {
  width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); margin-bottom: 20px;
  background: radial-gradient(circle at 50% 40%, var(--surface-2), var(--surface));
}
.avatar-initials {
  font-family: var(--font-display); font-size: 56px; font-weight: 700; fill: var(--text);
  letter-spacing: -0.03em;
}
.profile-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.profile-role { color: var(--muted); font-size: 0.92rem; margin-bottom: 16px; }
.profile-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted);
  border: 1px solid var(--border); padding: 5px 11px; border-radius: 999px;
}
.badge-accent { color: var(--cyan); border-color: rgba(0,212,255,.4); background: rgba(0,212,255,.06); }
.profile-meta { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--border); }
.profile-meta li { font-size: 0.85rem; color: var(--text); display: flex; gap: 10px; }
.profile-meta li span {
  font-family: var(--font-mono); font-size: 0.66rem; color: var(--violet);
  background: rgba(123,97,255,.1); border: 1px solid rgba(123,97,255,.25);
  padding: 2px 7px; border-radius: 5px; height: fit-content; letter-spacing: .04em;
}

.about-bio p { color: #c2cde0; margin-bottom: 18px; font-size: 1.02rem; }
.about-bio strong { color: var(--text); font-weight: 600; }

.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px;
}
.stat {
  text-align: center; padding: 22px 12px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.stat:hover { transform: translateY(-4px); border-color: rgba(0,212,255,.35); }
.stat-num {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 2rem; color: var(--cyan); line-height: 1;
}
.stat-label { font-size: 0.76rem; color: var(--muted); margin-top: 8px; display: block; }

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.skill-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.skill-card:hover {
  transform: translateY(-6px); border-color: rgba(0,212,255,.4);
  box-shadow: 0 18px 50px rgba(0, 212, 255, 0.16), 0 0 0 1px rgba(0,212,255,.1);
}
.skill-icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  color: var(--cyan); background: rgba(0,212,255,.08); border: 1px solid rgba(0,212,255,.25);
  margin-bottom: 18px;
}
.skill-icon svg { width: 26px; height: 26px; }
.skill-card h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.skill-sub { color: var(--muted); font-size: 0.86rem; margin-bottom: 20px; }

.skill-bars { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.bar-label { font-size: 0.82rem; color: #c2cde0; display: block; margin-bottom: 6px; }
.bar-track { height: 7px; background: rgba(255,255,255,.05); border-radius: 999px; overflow: hidden; }
.bar-track i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  border-radius: 999px; transition: width 1.1s var(--ease); box-shadow: 0 0 10px rgba(0,212,255,.5);
}

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--cyan);
  border: 1px solid rgba(0,212,255,.22); background: rgba(0,212,255,.05);
  padding: 4px 11px; border-radius: 7px; transition: background .25s var(--ease), border-color .25s var(--ease);
}
.tag:hover { background: rgba(0,212,255,.12); border-color: rgba(0,212,255,.5); }

/* ============================================================
   EXPERIENCE TIMELINE
   ============================================================ */
.timeline { position: relative; padding-left: 36px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--violet), transparent);
  box-shadow: 0 0 12px rgba(0,212,255,.4);
}
.tl-item { position: relative; margin-bottom: 30px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-node {
  position: absolute; left: -36px; top: 26px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--cyan); border: 3px solid var(--bg); transform: translateX(0);
  box-shadow: 0 0 0 0 rgba(0,212,255,.6); animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,212,255,.55); }
  70%  { box-shadow: 0 0 0 12px rgba(0,212,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,212,255,0); }
}
.tl-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 26px; transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.tl-card:hover { transform: translateX(4px); border-color: rgba(0,212,255,.35); box-shadow: 0 14px 40px rgba(0,0,0,.3); }
.tl-top { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.tl-top h3 { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; }
.tl-date { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); white-space: nowrap; }
.tl-company { color: var(--cyan); font-weight: 500; font-size: 0.95rem; margin: 4px 0 14px; }
.tl-points { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.tl-points li { position: relative; padding-left: 20px; color: #c2cde0; font-size: 0.95rem; }
.tl-points li::before { content: "▹"; position: absolute; left: 0; color: var(--cyan); }
.tl-points strong { color: var(--text); }

/* ============================================================
   PROJECTS — BENTO
   ============================================================ */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; grid-auto-rows: minmax(150px, auto); }
.proj { position: relative; border-radius: var(--radius); overflow: hidden; }
.proj-hero  { grid-column: span 4; grid-row: span 2; }
.proj-feat  { grid-column: span 2; grid-row: span 2; }
.proj-small { grid-column: span 3; }
.proj-wide  { grid-column: span 6; }

.proj-inner {
  position: relative; z-index: 1; height: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
/* Gradient sweep border on hover */
.proj::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); z-index: 0; opacity: 0;
  background: conic-gradient(from var(--ang, 0deg), var(--cyan), var(--violet), var(--orange), var(--cyan));
  transition: opacity .4s var(--ease); animation: spin 6s linear infinite paused;
}
.proj:hover::before { opacity: 1; animation-play-state: running; }
.proj:hover .proj-inner { transform: translateY(-4px); margin: 1.5px; height: calc(100% - 3px); }
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --ang: 360deg; } }

.proj-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.proj-index { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
.featured {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; color: var(--orange);
  background: rgba(255,107,53,.1); border: 1px solid rgba(255,107,53,.35);
  padding: 4px 10px; border-radius: 999px;
}
.proj-name { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.proj-hero .proj-name { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.proj-feat .proj-name { font-size: clamp(1.5rem, 3vw, 2rem); }
.proj-small .proj-name, .proj-wide .proj-name { font-size: 1.3rem; }
.proj-desc { color: #c2cde0; font-size: 0.95rem; margin-bottom: auto; }
.proj-desc strong { color: var(--cyan); }
.proj .tag-row { margin-top: 18px; }
.proj-hero .proj-inner { background: linear-gradient(155deg, var(--surface-2), var(--surface)); }

/* ============================================================
   CONTACT
   ============================================================ */
#contact { max-width: 980px; }
.contact-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
  padding: clamp(32px, 6vw, 64px); position: relative; overflow: hidden;
}
.contact-card::before {
  content: ""; position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 120%; height: 80%;
  background: radial-gradient(ellipse, rgba(0,212,255,.10), transparent 60%); pointer-events: none;
}
.contact-sub { color: var(--muted); max-width: 560px; margin: 14px auto 0; font-size: 1.02rem; }

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 44px 0; }
.contact-link {
  display: flex; flex-direction: column; gap: 4px; padding: 22px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.contact-link:hover {
  transform: translateY(-5px); border-color: rgba(0,212,255,.4);
  box-shadow: 0 14px 36px rgba(0,212,255,.15);
}
.cl-icon { color: var(--cyan); margin-bottom: 10px; }
.cl-label { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); letter-spacing: .06em; }
.cl-value { color: var(--text); font-weight: 500; font-size: 0.95rem; word-break: break-all; }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: span 2; }
.field label { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); letter-spacing: .04em; }
.field input, .field textarea {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 13px 15px; color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease); resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,212,255,.15);
}
.field input::placeholder, .field textarea::placeholder { color: #45506b; }
.btn-send { grid-column: span 2; justify-content: center; }
.form-status { grid-column: span 2; font-family: var(--font-mono); font-size: 0.82rem; color: var(--cyan); min-height: 1.2em; }
.form-status.error { color: var(--orange); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--border); margin-top: 40px; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 34px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer-logo { font-family: var(--font-display); font-weight: 700; }
.footer-copy { color: var(--muted); font-size: 0.86rem; }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--border); color: var(--muted);
  transition: color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.footer-social a:hover { color: var(--cyan); border-color: rgba(0,212,255,.4); transform: translateY(-3px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .profile-card { max-width: 420px; }
  .skills-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .proj-hero, .proj-feat, .proj-small, .proj-wide { grid-column: span 2; grid-row: auto; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 28px;
    padding: 80px 36px; background: var(--surface); border-left: 1px solid var(--border);
    transform: translateX(100%); transition: transform .4s var(--ease);
    backdrop-filter: blur(20px);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }
  .hamburger { display: flex; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .field-full, .btn-send, .form-status { grid-column: span 1; }
  .footer-inner { flex-direction: column; text-align: center; }
  .section { padding: 80px 22px; }
}

@media (max-width: 460px) {
  .stats-row { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .chip { display: none; }
  .cursor-dot { display: none; }
}
