/* ─── NEO-BRUTALIST & MAXIMALIST GRAPHIC DESIGN SYSTEM ────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important; /* Strict 0px sharp corners */
}

/* Neo-Brutalist Color Tokens & Design Variables */
:root, [data-theme="dark"] {
  --bg: #0C0C0E;
  --surface: #151518;
  --surface2: #1F1F24;
  --text: #FFFFFF;
  --muted: #A0A0A5;
  --border-color: #000000;
  --shadow-color: #000000;

  /* Expressive Neo-Brutalist Palette */
  --accent-yellow: #FFE600; /* Electric Yellow */
  --accent-pink: #FF007A;   /* Hot Pink */
  --accent-lime: #C8F135;   /* Lime Green */
  --accent-cyan: #00F0FF;   /* Cyan / Teal */
  --accent-purple: #7000FF; /* Bright Purple */
  
  --card-border: 3px solid #000000;
  --nav-bg: #0C0C0E;
  
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --max-w: 1280px;
  --nav-h: 76px;
  
  --grid-pattern: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
}

[data-theme="light"] {
  --bg: #F4F4EE;
  --surface: #FFFFFF;
  --surface2: #E6E6DC;
  --text: #000000;
  --muted: #444444;
  --border-color: #000000;
  --shadow-color: #000000;
  
  --accent-yellow: #FFE600;
  --accent-pink: #FF007A;
  --accent-lime: #C8F135;
  --accent-cyan: #00F0FF;
  --accent-purple: #7000FF;
  
  --nav-bg: #F4F4EE;
  --grid-pattern: radial-gradient(rgba(0, 0, 0, 0.12) 1px, transparent 1px);
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
}

body {
  background-color: var(--bg);
  background-image: var(--grid-pattern);
  background-size: 24px 24px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Hard Block Selection */
::selection {
  background: var(--accent-pink);
  color: #FFFFFF;
}

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

img {
  display: block;
  max-width: 100%;
}

/* Fast Micro-Transitions */
body, nav, section, .project-card, .code-window, .browser-mock, .stat-pill, #contactForm, input, textarea, footer, .theme-toggle, .eyebrow, .hero-status, .tag, .btn, .sticker-badge, .social-link {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

/* ─── SCROLL FADE-IN ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

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

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

/* ─── NAV ───────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--nav-bg);
  border-bottom: 3px solid #000000;
}

.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  background: var(--accent-yellow);
  color: #000000;
  padding: 6px 14px 6px 8px;
  border: 3px solid #000000;
  box-shadow: 4px 4px 0px #000000;
}

.nav-logo span {
  color: var(--accent-pink);
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  background: #000000;
  border: 2px solid #000000;
  margin-right: 10px;
  display: inline-block;
  vertical-align: middle;
  padding: 2px;
}

.nav-logo:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #000000;
  background: var(--accent-cyan);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  gap: 16px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  padding: 8px 14px;
  border: 2px solid transparent;
  background: transparent;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--accent-lime);
  color: #000000;
  border: 2px solid #000000;
  box-shadow: 3px 3px 0px #000000;
  transform: translate(-2px, -2px);
}

/* Neo-Brutalist Theme Toggle */
.theme-toggle {
  background: var(--accent-cyan);
  color: #000000;
  border: 3px solid #000000;
  box-shadow: 4px 4px 0px #000000;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.theme-toggle:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #000000;
  background: var(--accent-pink);
  color: #FFFFFF;
}

.theme-toggle:active {
  transform: translate(0, 0);
  box-shadow: 1px 1px 0px #000000;
}

.sun-icon { display: none; }
.moon-icon { display: block; }

[data-theme="light"] .sun-icon { display: block; }
[data-theme="light"] .moon-icon { display: none; }

/* Hamburger Menu Toggle (mobile) */
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: var(--accent-yellow);
  color: #000000;
  border: 3px solid #000000;
  box-shadow: 4px 4px 0px #000000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.menu-toggle .menu-bar {
  display: block;
  width: 20px;
  height: 3px;
  background: #000000;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle:active {
  transform: translate(0, 0);
  box-shadow: 1px 1px 0px #000000;
}

.menu-toggle.active .menu-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active .menu-bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .menu-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nav-overlay.open {
  display: block;
  opacity: 1;
  visibility: visible;
}

body.menu-open {
  overflow: hidden;
}

/* ─── WRAPPER ───────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ─── STICKER BADGES & EYEBROWS ─────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 16px;
  background: var(--accent-yellow);
  border: 3px solid #000000;
  box-shadow: 5px 5px 0px #000000;
  transform: rotate(-1deg);
}

.sticker-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border: 2px solid #000000;
  box-shadow: 3px 3px 0px #000000;
  display: inline-block;
  user-select: none;
}

.sticker-pink { background: var(--accent-pink); color: #FFFFFF; }
.sticker-yellow { background: var(--accent-yellow); color: #000000; }
.sticker-lime { background: var(--accent-lime); color: #000000; }
.sticker-cyan { background: var(--accent-cyan); color: #000000; }
.sticker-purple { background: var(--accent-purple); color: #FFFFFF; }

/* ─── HERO SECTION ──────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 20px);
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid #000000;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 32px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  max-width: 620px;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 28px;
  border: 3px solid #000000;
  padding: 8px 18px;
  background: var(--accent-lime);
  box-shadow: 5px 5px 0px #000000;
}

.hero-status .dot {
  width: 10px; height: 10px;
  background: var(--accent-pink);
  border: 2px solid #000000;
  animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(52px, 6.8vw, 92px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.hero-h1 .accent {
  color: #000000;
  background: var(--accent-yellow);
  padding: 2px 14px;
  border: 3px solid #000000;
  display: inline-block;
  box-shadow: 6px 6px 0px #000000;
  transform: rotate(-1deg);
}

.hero-h1 .accent-pink {
  color: #FFFFFF;
  background: var(--accent-pink);
  padding: 2px 14px;
  border: 3px solid #000000;
  display: inline-block;
  box-shadow: 6px 6px 0px #000000;
  transform: rotate(1deg);
}

.hero-body {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 40px;
  font-weight: 500;
}

.hero-body strong {
  color: var(--text);
  background: var(--accent-cyan);
  color: #000000;
  padding: 0 4px;
  border: 1px solid #000000;
}

.hero-btns {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 34px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 3px solid #000000;
  box-shadow: 6px 6px 0px #000000;
}

.btn-primary {
  background: var(--accent-lime);
  color: #000000;
}

.btn-primary:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0px #000000;
  background: var(--accent-pink);
  color: #FFFFFF;
}

.btn-primary:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0px #000000;
}

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

.btn-ghost:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0px #000000;
  background: var(--accent-cyan);
  color: #000000;
}

.btn-ghost:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0px #000000;
}

/* Hero Graphic Canvas / Window */
.hero-visual {
  position: relative;
}

.code-window {
  background: var(--surface);
  border: 3px solid #000000;
  box-shadow: 9px 9px 0px #000000;
  position: relative;
}

.code-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 3px solid #000000;
  background: var(--accent-yellow);
  color: #000000;
}

.code-chrome .dots {
  display: flex;
  gap: 6px;
}

.code-chrome .dot {
  width: 12px; height: 12px;
  border: 2px solid #000000;
}

.dot-red { background: #FF5F57; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #28CA41; }

.code-chrome .file-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #000000;
  text-transform: uppercase;
}

.code-body {
  padding: 24px 24px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.85;
  overflow-x: auto;
}

.code-line {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.ln {
  color: var(--muted);
  opacity: 0.45;
  min-width: 20px;
  width: 20px;
  text-align: right;
  user-select: none;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.code-txt {
  font-family: var(--font-mono);
  white-space: pre;
}

.kw { color: var(--accent-pink); font-weight: 700; }
.fn { color: var(--accent-cyan); font-weight: 700; }
.str { color: var(--accent-lime); }
.cm { color: var(--muted); font-style: italic; }
.acc { color: var(--accent-yellow); font-weight: 700; }
.tx { color: var(--text); }
.pm { color: #FFA07A; }

.hero-badge {
  position: absolute;
  bottom: -24px;
  right: -20px;
  background: var(--accent-pink);
  color: #FFFFFF;
  border: 3px solid #000000;
  box-shadow: 6px 6px 0px #000000;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: rotate(2deg);
}

.hero-badge:hover {
  transform: rotate(0deg) translate(-2px, -2px);
  box-shadow: 8px 8px 0px #000000;
}

.badge-icon {
  width: 40px; height: 40px;
  background: #000000;
  color: var(--accent-lime);
  border: 2px solid #000000;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}

.badge-text { font-family: var(--font-mono); font-size: 11px; }
.badge-text strong { display: block; color: #FFFFFF; font-size: 14px; margin-bottom: 2px; text-transform: uppercase; }
.badge-text span { color: rgba(255,255,255,0.85); }

/* ─── MARQUEE ───────────────────────────────────────── */
.marquee-section {
  border-bottom: 3px solid #000000;
  padding: 22px 0;
  overflow: hidden;
  background: var(--accent-lime);
  color: #000000;
}

.marquee-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
}

.marquee-item {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: #000000;
  padding: 0 32px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.marquee-item span { color: var(--accent-pink); margin: 0 10px; font-size: 18px; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ─── SECTIONS SHARED ───────────────────────────────── */
section {
  padding: 120px 0;
  border-bottom: 3px solid #000000;
  position: relative;
}

.section-header {
  margin-bottom: 64px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-transform: uppercase;
}

/* ─── PROJECTS / WORK ───────────────────────────────── */
#work { background: var(--bg); }

.project-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  background: var(--surface);
  border: 3px solid #000000;
  box-shadow: 8px 8px 0px #000000;
  padding: 40px;
  position: relative;
}

.project-card:hover {
  transform: translate(-4px, -4px) rotate(-0.5deg);
  box-shadow: 12px 12px 0px #000000;
}

.project-card:nth-child(even) .project-visual { order: 2; }
.project-card:nth-child(even) .project-info  { order: 1; }

.browser-mock {
  background: var(--bg);
  border: 3px solid #000000;
  overflow: hidden;
  box-shadow: 5px 5px 0px #000000;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 3px solid #000000;
  background: var(--accent-cyan);
  color: #000000;
}

.browser-bar .dot { width: 10px; height: 10px; border: 2px solid #000000; }

.browser-url {
  flex: 1;
  margin-left: 12px;
  background: #FFFFFF;
  color: #000000;
  border: 2px solid #000000;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.project-img {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--surface2);
  position: relative;
  overflow: hidden;
}

.project-img picture,
.project-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #000000;
  border: 2px solid #000000;
  padding: 6px 12px;
  background: var(--accent-yellow);
  box-shadow: 3px 3px 0px #000000;
}

.project-info h3 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  text-transform: uppercase;
  line-height: 1.05;
}

.project-desc {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.7;
  margin-bottom: 32px;
}

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

.project-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000000;
  background: var(--accent-lime);
  border: 3px solid #000000;
  box-shadow: 4px 4px 0px #000000;
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.project-link:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0px #000000;
  background: var(--accent-pink);
  color: #FFFFFF;
}

.project-link:active {
  transform: translate(0, 0);
  box-shadow: 1px 1px 0px #000000;
}

/* ─── ABOUT SECTION ─────────────────────────────────── */
#about { background: var(--surface); }

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: start;
}

.about-text p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.about-text p:last-of-type { margin-bottom: 40px; }
.about-text p strong { color: var(--text); font-weight: 700; background: var(--accent-yellow); color: #000000; padding: 2px 6px; border: 1px solid #000000; }

.stats-row {
  display: flex;
  gap: 0;
  border: 3px solid #000000;
  background: var(--bg);
  box-shadow: 7px 7px 0px #000000;
}

.stat-pill {
  flex: 1;
  padding: 24px 18px;
  border-right: 3px solid #000000;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--surface2);
}

.stat-pill:last-child { border-right: none; }

.stat-pill strong {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-yellow);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.stat-pill:nth-child(2) strong { color: var(--accent-pink); }
.stat-pill:nth-child(3) strong { color: var(--accent-lime); }

.about-photo-wrap {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg);
  overflow: hidden;
  border: 3px solid #000000;
  box-shadow: 9px 9px 0px #000000;
  position: relative;
}

.about-photo picture,
.about-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.about-photo-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--accent-yellow);
  color: #000000;
  border: 2px solid #000000;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 3px 3px 0px #000000;
}

/* ─── CONTACT SECTION ───────────────────────────────── */
#contact { background: var(--bg); }

.contact-inner {
  max-width: 1080px;
}

.contact-inner .section-header { margin-bottom: 32px; }

.contact-body {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 640px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  color: #000000;
  background: var(--accent-lime);
  padding: 12px 28px;
  border: 3px solid #000000;
  box-shadow: 6px 6px 0px #000000;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  transform: rotate(-0.5deg);
}

.contact-email:hover {
  transform: translate(-3px, -3px) rotate(0deg);
  box-shadow: 9px 9px 0px #000000;
  background: var(--accent-pink);
  color: #FFFFFF;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
  margin-top: 32px;
}

.contact-info-card {
  background: var(--surface);
  border: 3px solid #000000;
  box-shadow: 7px 7px 0px #000000;
  padding: 32px;
}

.contact-info-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.contact-info-card p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.contact-detail-item {
  margin-bottom: 20px;
}

.contact-detail-item label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--accent-yellow);
  color: #000000;
  padding: 3px 8px;
  border: 2px solid #000000;
  margin-bottom: 6px;
}

.contact-detail-item a {
  display: block;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.contact-detail-item a:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
}

#contactForm {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--surface);
  border: 3px solid #000000;
  box-shadow: 8px 8px 0px #000000;
  padding: 40px;
}

#contactForm input,
#contactForm textarea {
  background: var(--bg);
  border: 3px solid #000000;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 16px 20px;
  outline: none;
  resize: vertical;
  width: 100%;
}

#contactForm input:focus,
#contactForm textarea:focus {
  background: var(--surface);
  border-color: #000000;
  box-shadow: 4px 4px 0px var(--accent-pink);
}

#contactForm input::placeholder,
#contactForm textarea::placeholder {
  color: var(--muted);
  opacity: 0.75;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
}

#contactForm button {
  background: var(--accent-lime);
  color: #000000;
  border: 3px solid #000000;
  box-shadow: 6px 6px 0px #000000;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 18px 36px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#contactForm button:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0px #000000;
  background: var(--accent-pink);
  color: #FFFFFF;
}

#contactForm button:active {
  transform: translate(0, 0);
  box-shadow: 1px 1px 0px #000000;
}

#contactForm button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--surface2);
  color: var(--muted);
  box-shadow: none;
  transform: none;
}

.form-status {
  display: none;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  padding: 16px 20px;
  margin-top: 10px;
  line-height: 1.5;
  border: 3px solid #000000;
  box-shadow: 5px 5px 0px #000000;
}

.form-status.success {
  display: block;
  background: var(--accent-lime);
  color: #000000;
}

.form-status.error {
  display: block;
  background: var(--accent-pink);
  color: #FFFFFF;
}

.social-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 56px;
  border-top: 3px solid #000000;
  padding-top: 36px;
}

.social-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #000000;
  background: var(--accent-yellow);
  border: 3px solid #000000;
  box-shadow: 4px 4px 0px #000000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
}

.social-link:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0px #000000;
  background: var(--accent-cyan);
  color: #000000;
}

.social-link:nth-child(2) { background: var(--accent-cyan); }
.social-link:nth-child(2):hover { background: var(--accent-pink); color: #FFFFFF; }

.social-link:nth-child(3) { background: var(--accent-lime); }
.social-link:nth-child(3):hover { background: var(--accent-yellow); color: #000000; }

/* ─── FOOTER ─────────────────────────────────────────── */
footer {
  border-top: 3px solid #000000;
  padding: 40px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
}

footer span {
  color: #000000;
  background: var(--accent-lime);
  padding: 3px 10px;
  border: 2px solid #000000;
}

/* ─── RESPONSIVE ─────────────────────────────────────── */

/* Use the JS-corrected --vh unit as a fallback-safe full-height value wherever
   100vh is used, so mobile browser chrome doesn't clip content. */
#hero {
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
}

/* ── Large tablets / small laptops ───────────────────── */
@media (max-width: 1100px) {
  .hero-inner { gap: 40px; }
  .about-grid { gap: 40px; }
  .contact-wrapper { gap: 32px; }
}

/* ── Tablets (portrait) ──────────────────────────────── */
@media (max-width: 900px) {
  :root { --nav-h: 68px; }

  /* Hamburger nav kicks in here */
  .menu-toggle { display: inline-flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    bottom: 0;
    z-index: 999;
    width: min(320px, 82vw);
    height: calc(100vh - var(--nav-h));
    height: calc((var(--vh, 1vh) * 100) - var(--nav-h));
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 24px;
    background: var(--nav-bg);
    border-left: 3px solid #000000;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }

  .nav-links.open { transform: translateX(0); }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    width: 100%;
    font-size: 15px;
    padding: 18px 14px;
    margin-bottom: 10px;
    border: 2px solid #000000;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 30px;
    padding-bottom: 50px;
  }
  .hero-visual { display: none; }

  .project-card {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 28px;
  }
  .project-card:nth-child(even) .project-visual { order: unset; }
  .project-card:nth-child(even) .project-info  { order: unset; }

  .about-grid { grid-template-columns: 1fr; }
  .about-photo-wrap { position: static; margin-top: 32px; }
  .about-photo { aspect-ratio: 4/3; max-width: 480px; margin: 32px auto 0; }

  .contact-wrapper { grid-template-columns: 1fr; gap: 32px; }

  .stats-row { flex-direction: column; }
  .stat-pill { border-right: none; border-bottom: 3px solid #000000; }
  .stat-pill:last-child { border-bottom: none; }

  section { padding: 72px 0; }
}

/* ── Phones (landscape & large) ──────────────────────── */
@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .nav-inner { padding: 0 20px; }

  .nav-logo { font-size: 13px; padding: 5px 10px 5px 6px; }
  .nav-logo-img { width: 26px; height: 26px; margin-right: 6px; }

  .hero-h1 { font-size: clamp(38px, 10vw, 60px); }
  .hero-body { font-size: 16px; max-width: 100%; }
  .hero-status { font-size: 10.5px; padding: 7px 14px; flex-wrap: wrap; }

  .hero-btns { flex-direction: column; align-items: stretch; gap: 14px; }
  .btn { justify-content: center; width: 100%; }

  .marquee-item { font-size: 13px; padding: 0 20px; }

  .section-header { margin-bottom: 44px; }
  .eyebrow { font-size: 11px; padding: 7px 12px; }

  .project-list { gap: 56px; }
  .project-info h3 { font-size: 26px; }
  .project-desc { font-size: 15px; margin-bottom: 24px; }
  .project-links { gap: 10px; }
  .project-link { padding: 10px 16px; font-size: 11px; }

  .about-text p { font-size: 16px; }

  .contact-body { font-size: 16px; }
  .contact-email { font-size: clamp(20px, 7vw, 30px); padding: 10px 18px; width: 100%; box-sizing: border-box; }
  #contactForm { padding: 24px; }
  .contact-info-card { padding: 24px; }
}

/* ── Small phones ─────────────────────────────────────── */
@media (max-width: 480px) {
  :root { --nav-h: 60px; }

  .container { padding: 0 18px; }
  .nav-inner { padding: 0 16px; }
  .nav-right { gap: 10px; }

  .nav-logo { font-size: 0; padding: 6px; }
  .nav-logo-img { width: 26px; height: 26px; margin-right: 0; }

  .theme-toggle, .menu-toggle { width: 38px; height: 38px; }

  #hero { padding-top: calc(var(--nav-h) + 14px); padding-bottom: 40px; }
  .hero-inner { padding: 24px 18px; gap: 24px; }
  .hero-h1 { font-size: clamp(32px, 11vw, 44px); margin-bottom: 20px; }
  .hero-h1 .accent, .hero-h1 .accent-pink { padding: 1px 10px; box-shadow: 4px 4px 0px #000000; }
  .hero-status { font-size: 10px; gap: 8px; margin-bottom: 22px; }
  .hero-body { font-size: 15px; margin-bottom: 28px; }
  .btn { font-size: 12px; padding: 14px 20px; }

  .marquee-section { padding: 14px 0; }
  .marquee-item { font-size: 11px; padding: 0 14px; }
  .marquee-item span { font-size: 14px; margin: 0 6px; }

  section { padding: 56px 0; }
  .section-header h2 { font-size: clamp(28px, 9vw, 40px); }

  .project-card { padding: 18px; }
  .browser-url { font-size: 9px; padding: 3px 8px; }
  .project-tags { gap: 6px; margin-bottom: 18px; }
  .tag { font-size: 10px; padding: 5px 9px; }
  .project-info h3 { font-size: 22px; }

  .about-photo-badge { font-size: 10px; padding: 5px 9px; }
  .stat-pill { padding: 18px 14px; }
  .stat-pill strong { font-size: 28px; }

  .contact-email { font-size: clamp(18px, 8vw, 26px); }
  #contactForm { padding: 18px; }
  #contactForm input, #contactForm textarea { font-size: 13px; padding: 13px 16px; }
  .contact-info-card { padding: 20px; }

  footer { padding: 28px 18px; font-size: 11px; }
  .social-row { flex-direction: column; gap: 12px; }
  .social-link { width: 100%; justify-content: center; }
}

/* ── Very small / older phones ───────────────────────── */
@media (max-width: 360px) {
  .hero-h1 { font-size: clamp(28px, 11vw, 36px); }
  .nav-links { width: 100vw; }
  .code-body { font-size: 11.5px; padding: 16px; }
}

/* ── Landscape phones (short viewport height) ────────── */
@media (max-height: 480px) and (orientation: landscape) {
  #hero { min-height: auto; padding-top: calc(var(--nav-h) + 24px); padding-bottom: 32px; }
  .nav-links { height: calc(100vh - var(--nav-h)); overflow-y: auto; }
}

/* ── Large / high-res desktop screens ────────────────── */
@media (min-width: 1600px) {
  :root { --max-w: 1440px; }
  body { font-size: 17px; }
}

/* ── Touch device refinements ────────────────────────── */
@media (hover: none) and (pointer: coarse) {
  .project-card:hover,
  .btn-primary:hover,
  .btn-ghost:hover,
  .social-link:hover,
  .project-link:hover,
  .theme-toggle:hover,
  .contact-email:hover {
    transform: none;
    box-shadow: 6px 6px 0px #000000;
  }
  a, button, .nav-links a, .theme-toggle, .menu-toggle { -webkit-tap-highlight-color: transparent; }
}