/* =========================================================
   Portfolio — Dark Charcoal + Electric Blue Design System
   ========================================================= */

/* Custom Properties */
:root {
  --bg: #0c0e1a;
  --bg-alt: #0f1120;
  --surface: #141627;
  --surface-soft: #1c1f35;
  --surface-hover: #21253f;
  --ink: #e2e8f0;
  --ink-muted: #8892a4;
  --ink-faint: #4a5568;
  --accent: #3b82f6;
  --accent-bright: #60a5fa;
  --accent-dim: #1d4ed8;
  --accent-glow: rgba(59, 130, 246, 0.18);
  --accent-border: rgba(59, 130, 246, 0.35);
  --border: rgba(255, 255, 255, 0.07);
  --border-soft: rgba(255, 255, 255, 0.04);
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --error: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.1);
  --warning: #f59e0b;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.12);
  --shadow-card:
    0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 4px 32px rgba(0, 0, 0, 0.35);
  --container: min(1080px, calc(100% - 2.5rem));
  --header-h: 68px;
  --bottom-nav-h: 64px;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base & Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

/* Ambient background gradient */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 50% at 70% -10%,
      rgba(59, 130, 246, 0.08) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 40% at -10% 80%,
      rgba(139, 92, 246, 0.06) 0%,
      transparent 55%
    );
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
p,
h1,
h2,
h3,
h4 {
  margin: 0;
}
button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}
img {
  max-width: 100%;
  display: block;
}
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* Keyframe Animations */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes cursorBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5);
  }
  60% {
    box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
  }
}
@keyframes shimmer {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: 400px 0;
  }
}
@keyframes spinRing {
  to {
    transform: rotate(360deg);
  }
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes progressFill {
  from {
    width: 0%;
  }
}

/* Scroll Reveal — progressive enhancement.
   Elements are visible by default. JS adds .reveal-ready before observing,
   which hides the element; IntersectionObserver adds .revealed to show it. */
[data-reveal].reveal-ready {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow);
}
[data-reveal].reveal-ready.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* App Shell */
.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  background: rgba(12, 14, 26, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
  width: var(--container);
  margin: 0 auto;
}

.site-brand {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--transition);
}
.site-brand:hover {
  color: var(--accent-bright);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.nav-link {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition:
    color var(--transition),
    background var(--transition);
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--ink);
  background: var(--border-soft);
}
.nav-link.is-active {
  color: var(--accent-bright);
  background: var(--accent-glow);
}

/* Bottom Tab Nav (mobile) */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--bottom-nav-h);
  background: rgba(12, 14, 26, 0.92);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid var(--border);
  padding: 0 0.5rem;
  justify-content: space-around;
  align-items: center;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  height: 100%;
  color: var(--ink-faint);
  transition: color var(--transition);
  padding: 0.25rem;
  position: relative;
}
.tab-item.is-active {
  color: var(--accent-bright);
}
.tab-item.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 0 0 var(--radius-pill) var(--radius-pill);
}

.tab-icon {
  font-size: 1.2rem;
  line-height: 1;
  display: block;
}
.tab-label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* Layout Utilities */
.page {
  flex: 1;
  padding: 3rem 0 5rem;
}

.section {
  padding: 2.5rem 0;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head h1,
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.section-intro {
  margin-top: 0.75rem;
  color: var(--ink-muted);
  max-width: 60ch;
  font-size: 1.05rem;
  line-height: 1.65;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-bright);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-pill);
  background: var(--accent-glow);
}

.status-badge {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.65rem;
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(59, 130, 246, 0.12) 50%,
    transparent 100%
  );
  background-size: 400px 100%;
  animation: shimmer 1.4s linear infinite;
  letter-spacing: 0.04em;
}

/* Hero Section */
.page-home {
  padding-top: 0;
}

.hero {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.hero .container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 820px;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
  max-width: 22ch;
  display: block;
}

.hero-title-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.typed-cursor {
  display: inline-block;
  width: 3px;
  height: clamp(2rem, 4.5vw, 3.5rem);
  background: var(--accent);
  margin-left: 4px;
  border-radius: 2px;
  vertical-align: middle;
  animation: cursorBlink 1.1s step-end infinite;
  flex-shrink: 0;
}

.hero-body {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--ink-muted);
  max-width: 58ch;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Skills Section */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-card);
  transition:
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
  cursor: default;
}
.skill-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.skill-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.25rem;
}

.skill-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.skill-value {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-bright);
}

.skill-category {
  font-size: 0.75rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
}

.skill-meter {
  height: 4px;
  background: var(--border-soft);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.skill-meter-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent-bright));
  border-radius: var(--radius-pill);
  animation: progressFill 0.8s ease both;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition:
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}
.project-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.project-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.project-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

.project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.project-badge {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--ink-muted);
  background: var(--surface-soft);
}

.project-badge.lang {
  color: var(--accent-bright);
  border-color: var(--accent-border);
  background: var(--accent-glow);
}

.project-repo {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

.project-description {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.65;
  flex: 1;
}

.project-stats {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.stat-chip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: var(--ink-muted);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.65rem;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
}

/* Experience Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2.5rem;
  position: relative;
}

.timeline-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0 1.5rem;
  position: relative;
}

.timeline-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.timeline-rail::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  bottom: 0;
  background: var(--border);
}

.timeline-item:last-child .timeline-rail::after {
  display: none;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
  margin-top: 4px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline-item.is-current .timeline-dot {
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

.timeline-content {
  padding-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.timeline-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
}

.timeline-content h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

.timeline-company {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-bright);
}

.timeline-dates {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
}

.timeline-content p {
  font-size: 0.93rem;
  color: var(--ink-muted);
  line-height: 1.7;
  max-width: 68ch;
}

/* Contact Page */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2.5rem;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-blurb h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.contact-blurb p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-info-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-info-value {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.required-dot {
  color: var(--accent);
  margin-left: 0.2rem;
}

.field input,
.field textarea {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  outline: none;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-faint);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.field-error {
  font-size: 0.8rem;
  color: var(--error);
  margin: 0;
}

.turnstile-wrap {
  margin-top: 0.25rem;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.4rem;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1.4;
}

.button:hover {
  transform: translateY(-2px);
}
.button:active {
  transform: translateY(0);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent-dim), var(--accent));
  color: #fff;
  box-shadow: 0 2px 16px rgba(59, 130, 246, 0.3);
}
.button-primary:hover {
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.45);
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
}

.button-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.button-secondary:hover {
  border-color: var(--accent-border);
  color: var(--accent-bright);
  background: var(--accent-glow);
}

.button-ghost {
  background: transparent;
  color: var(--ink-muted);
  border-color: rgba(255, 255, 255, 0.08);
}
.button-ghost:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.button.is-loading,
.button.is-disabled,
button:disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}

.button-icon {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}

.header-resume {
  flex-shrink: 0;
  font-size: 0.82rem;
  padding: 0.45rem 1rem;
}

.submit-button {
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

/* Toasts */
.toast {
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  animation: toastIn 0.35s ease both;
  margin-bottom: 1rem;
}

.toast-success {
  background: var(--success-bg);
  border-left-color: var(--success);
  color: #6ee7b7;
}

.toast-error {
  background: var(--error-bg);
  border-left-color: var(--error);
  color: #fca5a5;
}

/* Section Messages */
.message {
  font-size: 0.9rem;
  color: var(--ink-muted);
  padding: 1rem 1.25rem;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: 1rem;
}

.message-error {
  color: #fca5a5;
  background: var(--error-bg);
  border-color: var(--error);
}

.message-warning {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.35);
}

/* About Page */
.page-about .section-head h1 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: linear-gradient(
    135deg,
    var(--ink) 40%,
    var(--accent-bright) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3.5rem;
  align-items: start;
  margin-top: 1rem;
}

.prose {
  max-width: 70ch;
}

.prose p {
  font-size: 1.05rem;
  color: var(--ink-muted);
  line-height: 1.8;
  margin-bottom: 1.35rem;
}

.prose p:first-child {
  font-size: 1.15rem;
  color: var(--ink);
}

.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-card);
}

.sidebar-card-title {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.mini-skill {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.85rem;
}

.mini-skill:last-child {
  margin-bottom: 0;
}

.mini-skill-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.mini-skill-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
}

.mini-skill-pct {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: var(--accent-bright);
}

.mini-skill-bar {
  height: 3px;
  background: var(--border-soft);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.mini-skill-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent-bright));
  border-radius: var(--radius-pill);
  animation: progressFill 0.6s ease both;
}

/* Responsive */
@media (max-width: 1080px) {
  .about-layout {
    grid-template-columns: 1fr 280px;
    gap: 2.5rem;
  }
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .site-header {
    display: none;
  }
  .bottom-nav {
    display: flex;
  }

  .page {
    padding-bottom: calc(var(--bottom-nav-h) + 2.5rem);
  }

  .page-home .hero {
    min-height: calc(100svh - var(--bottom-nav-h));
    padding: 2.5rem 0;
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button,
  .hero-actions a,
  .hero-actions span {
    text-align: center;
    width: 100%;
    justify-content: center;
  }

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

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

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

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

@media (max-width: 480px) {
  :root {
    --container: calc(100% - 1.5rem);
  }

  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  .section-head h1,
  .section-head h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
}
