/* =============================================
   VARX!! Portfolio — Design System & Styles
   Inspired by Raindrop Workshop design language
   ============================================= */

/* --- Geist Pixel Fonts (Local) --- */
@font-face {
  font-family: 'Geist Pixel'; /* Default (Square shape) */
  src: url('fonts/GeistPixel-Square.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Pixel Circle';
  src: url('fonts/GeistPixel-Circle.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Pixel Grid';
  src: url('fonts/GeistPixel-Grid.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Pixel Line';
  src: url('fonts/GeistPixel-Line.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Pixel Triangle';
  src: url('fonts/GeistPixel-Triangle.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Font Variant Utility Classes */
.font-pixel-square { font-family: 'Geist Pixel', ui-monospace, SFMono-Regular, monospace; }
.font-pixel-circle { font-family: 'Geist Pixel Circle', ui-monospace, SFMono-Regular, monospace; }
.font-pixel-grid { font-family: 'Geist Pixel Grid', ui-monospace, SFMono-Regular, monospace; }
.font-pixel-line { font-family: 'Geist Pixel Line', ui-monospace, SFMono-Regular, monospace; }
.font-pixel-triangle { font-family: 'Geist Pixel Triangle', ui-monospace, SFMono-Regular, monospace; }

/* --- Custom Properties --- */
:root {
  /* Colors */
  --bg-page: #000000;
  --bg-surface: #1a1a1a;
  --bg-surface-hover: #1e1e1e;
  --bg-code: #111114;
  --text-primary: #f0ede6;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.48);
  --accent-blue: #4da6ff;
  --accent-green: #3ecf8e;
  --accent-amber: #f5a623;
  --border-default: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --traffic-red: #FF5F57;
  --traffic-yellow: #FFBD2E;
  --traffic-green: #28CA41;
  --tag-bg: #252525;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 64px;
  --space-xl: 120px;
  --space-2xl: 160px;

  /* Layout — widened to match Raindrop's generous widths */
  --max-w-text: 900px;
  --max-w-grid: 1280px;
  --max-w-full: 1440px;

  /* Typography */
  --font-mono: 'Geist Pixel', ui-monospace, SFMono-Regular, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-page);
  overflow-x: hidden;
  cursor: default;
}

/* Text selection styling (from Stitch) */
::selection {
  background: var(--accent-blue);
  color: #000000;
}

::-moz-selection {
  background: var(--accent-blue);
  color: #000000;
}

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

ul, ol {
  list-style: none;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-page);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* --- CRT Scanlines Overlay (Stitch-enhanced) --- */
.scanlines {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0),
    rgba(255,255,255,0) 50%,
    rgba(0,0,0,0.1) 50%,
    rgba(0,0,0,0.1)
  );
  background-size: 100% 4px;
  opacity: 0.3;
}

/* --- Glowing Dot Matrix (from Stitch) --- */
.dot-glow-blue { box-shadow: 0 0 5px rgba(77, 166, 255, 0.5); }
.dot-glow-green { box-shadow: 0 0 5px rgba(62, 207, 142, 0.5); }
.dot-glow-amber { box-shadow: 0 0 5px rgba(245, 166, 35, 0.5); }

@keyframes dot-flicker {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.12; }
}


/* --- Decrypted Text Component Styles --- */
.encrypted-char {
  color: var(--accent-blue);
  opacity: 0.8;
  font-weight: 500;
  text-shadow: 0 0 4px rgba(77, 166, 255, 0.4);
}

.revealed-char {
  color: inherit;
  opacity: 1;
  transition: color 0.15s ease, opacity 0.15s ease;
}

/* --- Fade-in Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.08s; }
.fade-in-delay-2 { transition-delay: 0.16s; }
.fade-in-delay-3 { transition-delay: 0.24s; }
.fade-in-delay-4 { transition-delay: 0.32s; }

/* =============================================
   NAVIGATION — Full-width, edge-to-edge
   ============================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: transparent;
}

@supports (backdrop-filter: blur(10px)) {
  .nav {
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    background: rgba(0, 0, 0, 0.6);
  }
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -0.5px;
  transition: opacity 0.2s ease;
}

.nav-logo:hover {
  color: rgba(255, 255, 255, 0.95);
}

.nav-separator {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.3);
}

.nav-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.5px;
}

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

.nav-link {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link-arrow {
  display: inline-block;
  margin-left: 3px;
  font-size: 10px;
  transition: transform 0.2s ease;
}

.nav-link:hover .nav-link-arrow {
  transform: translate(2px, -2px);
}

/* =============================================
   HERO SECTION — Split layout: text left, 3D right
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 40px;
  margin-top: -70px; /* offset nav height */
  max-width: var(--max-w-full);
  margin-left: auto;
  margin-right: auto;
  /* overflow: hidden removed to allow 3D canvas to bleed to the edge of ultra-wide screens */
}

.hero-content {
  position: relative;
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  z-index: 2;
  padding-top: 70px; /* compensate nav offset */
}

.hero-3d {
  position: absolute;
  top: 0;
  /* Anchor exactly to the viewport's right edge, ignoring the 1440px container limit */
  right: calc(50% - 50vw);
  width: 55vw;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-3d canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  pointer-events: auto;
}

/* --- Scrolling Ticker --- */
.ticker-wrapper {
  position: absolute;
  top: 12vh;
  left: 0;
  right: 0;
  overflow: hidden;
}

.ticker-row {
  display: flex;
  white-space: nowrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.12);
  margin-bottom: 6px;
}

.ticker-track {
  display: flex;
  gap: 12px;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.ticker-row:nth-child(1) .ticker-track {
  animation: ticker-left 40s linear infinite;
}

.ticker-row:nth-child(2) .ticker-track {
  animation: ticker-right 35s linear infinite;
}

.ticker-row:nth-child(3) .ticker-track {
  animation: ticker-left 45s linear infinite;
}

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

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

.ticker-item {
  flex-shrink: 0;
}

.ticker-dot {
  margin: 0 6px;
  opacity: 0.4;
}

/* --- Simple Wordmark --- */
.hero-canvas-wrapper {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  max-width: 900px;
  margin-bottom: var(--space-md);
}

.hero-title-simple {
  font-size: clamp(64px, 12vw, 96px);
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  margin: 0;
  text-align: left;
  line-height: 1;
  text-wrap: balance;
}

/* --- Hero Text --- */
.hero-subtitle {
  font-size: 22px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  margin-top: -8px;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.hero-name {
  font-size: 24px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 2px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-tagline {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-md);
}

.hero-tagline span {
  margin: 0 8px;
  opacity: 0.3;
}

/* --- Terminal Block --- */
/* Only override what's different from .hero-btn */
.hero-terminal {
  border-color: rgba(255, 255, 255, 0.08);
  cursor: default;
  text-transform: none;
  letter-spacing: 0;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.hero-terminal:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.03);
}

.hero-terminal .prompt {
  color: rgba(74, 222, 128, 0.6);
}

.hero-terminal .command {
  color: rgba(255, 255, 255, 0.7);
}

.hero-terminal .arrow {
  color: rgba(255, 255, 255, 0.25);
  margin: 0 8px;
}

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

/* --- Hero CTA Buttons (Raindrop-style) --- */
.hero-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: nowrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.02);
  padding: 0 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.hero-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  transform: scale(1.03);
}

/* --- Hero Link --- */
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

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

/* --- Scroll Indicator --- */
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.hero-scroll-hint span {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.scroll-arrow {
  display: block;
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.15), transparent);
  margin: 0 auto;
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0% { opacity: 0.2; transform: scaleY(0.8) translateY(-4px); }
  60% { opacity: 0.7; transform: scaleY(1.2) translateY(0); }
  100% { opacity: 0.2; transform: scaleY(0.8) translateY(4px); }
}

/* =============================================
   SECTION COMMON — Wider, more breathing room
   ============================================= */
.section {
  padding: var(--space-xl) 40px;
  max-width: var(--max-w-grid);
  margin: 0 auto;
}

.section--wide {
  max-width: var(--max-w-grid);
}

.section-number {
  /* numbered eyebrows removed per craft pass — keep element for backward compat but hide it */
  display: none;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.03em;
  text-transform: lowercase;
  margin-bottom: var(--space-lg);
  text-wrap: balance;
}

/* --- Section Divider --- */
.section-divider {
  width: 100%;
  max-width: var(--max-w-grid);
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.06) 20%,
    rgba(255, 255, 255, 0.06) 80%,
    transparent
  );
}

/* =============================================
   ABOUT SECTION — Bigger, bolder
   ============================================= */
.about-bio {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
  max-width: 800px;
}

.stat-row {
  display: flex;
  gap: 80px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 36px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.2;
}

.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* =============================================
   PROJECTS SECTION — Full-scale cards
   ============================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background-color: var(--bg-surface-hover);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.07);
}

/* Window Chrome */
.card-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #2a2a2c;
  border-bottom: 1px solid var(--border-default);
}

.traffic-lights {
  display: flex;
  gap: 7px;
}

.traffic-light {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.traffic-light--red { background: var(--traffic-red); }
.traffic-light--yellow { background: var(--traffic-yellow); }
.traffic-light--green { background: var(--traffic-green); }

.card-chrome-title {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-left: 6px;
}

/* Card Body */
.card-body {
  padding: 24px;
}

.card-title {
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
}

.card-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Tag Pills */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 4px;
}

/* Card Links */
.card-links {
  display: flex;
  gap: var(--space-sm);
}

.card-link {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-link:hover {
  color: #ffffff;
}

/* =============================================
   EXPERIENCE SECTION — Terminal log style
   ============================================= */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
  position: relative;
}

.experience-list::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 0;
  left: 8px;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.experience-entry {
  position: relative;
  padding-left: 32px;
}

.experience-role {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: flex-start;
}

.experience-arrow {
  color: var(--accent-blue);
  line-height: 1.6;
  position: absolute;
  left: 0;
  top: 0;
  width: 17px;
  text-align: center;
  background: var(--bg-page);
  padding: 4px 0;
  margin-top: -4px; /* offset the padding vertically */
}

.experience-meta {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 6px;
}

.experience-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 6px;
  line-height: 1.75;
}

/* =============================================
   STACK / SKILLS SECTION — Larger tags
   ============================================= */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  align-items: stretch; /* equal height cards */
}

.stack-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stack-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background-color: var(--bg-surface-hover);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

.stack-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.stack-card-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--card-accent, var(--text-primary));
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  font-family: var(--font-mono);
}

.stack-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stack-list li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
}

.stack-list li::before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--card-accent, rgba(255,255,255,0.5));
  box-shadow: 0 0 6px var(--card-accent, rgba(255,255,255,0.3));
}

/* =============================================
   CONTACT SECTION — Generous spacing
   ============================================= */
.contact {
  text-align: center;
  padding: var(--space-2xl) 40px;
  max-width: var(--max-w-grid);
  margin: 0 auto;
}

.contact-heading {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 48px;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.contact-email-row {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.contact-email {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

.copy-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.copy-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: scale(1.03);
}

.copy-btn.copied {
  color: var(--accent-green);
  border-color: var(--accent-green);
}

.contact-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  font-size: 13px;
}

.contact-socials a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
  padding: 0 16px;
  letter-spacing: 0.05em;
}

.contact-socials a:hover {
  color: #ffffff;
}

.contact-socials .pipe {
  color: rgba(255, 255, 255, 0.08);
  user-select: none;
}

/* =============================================
   FOOTER — Minimal
   ============================================= */
.footer {
  text-align: center;
  padding: var(--space-lg) 40px var(--space-md);
  border-top: 1px solid var(--border-default);
  max-width: var(--max-w-grid);
  margin: 0 auto;
}

.footer-logo {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
}

.footer-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (min-width: 769px) and (max-width: 1200px) {
  .section {
    padding: var(--space-xl) 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 80px;
    --space-2xl: 100px;
  }

  .hero {
    min-height: 100vh;
    padding: 100px 20px 40px;
  }

  .hero-content {
    width: 100%;
    padding-top: 0;
    align-items: center;
    text-align: center;
    z-index: 2;
  }

  .hero-canvas-wrapper {
    justify-content: center;
  }

  .hero-title-simple {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-3d {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0.25;
    pointer-events: none;
  }

  .ticker-wrapper {
    top: 8vh;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .section {
    padding: var(--space-xl) 20px;
  }

  .section-title {
    font-size: 28px;
  }

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

  .stat-row {
    gap: 40px;
  }

  .stat-value {
    font-size: 28px;
  }

  .hero-tagline {
    font-size: 13px;
  }

  .contact {
    padding: var(--space-xl) 20px;
  }

  .contact-heading {
    font-size: 24px;
  }

  .nav {
    padding: 16px 20px;
  }

  .contact-socials {
    flex-wrap: wrap;
    gap: 4px;
  }

  .hero-actions {
    flex-direction: column;
    flex-wrap: wrap;
    width: 100%;
  }

  .hero-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .nav-right {
    gap: var(--space-sm);
  }

  .stat-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .contact-email-row {
    flex-direction: column;
    gap: 8px;
  }

  .about-bio {
    font-size: 15px;
  }
}

@media (min-width: 1441px) {
  .nav {
    padding: 20px 40px;
  }
}

/* =============================================
   REDUCED MOTION — Respect user preference
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ticker-track {
    animation: none !important;
  }

  .scroll-arrow {
    animation: none;
    opacity: 0.4;
  }

  .hero-btn,
  .copy-btn,
  .project-card,
  .hero-terminal,
  .nav-link-arrow {
    transition: none;
  }

  .decrypted-text {
    /* Ensure content is immediately visible for reduced-motion users */
    opacity: 1;
  }
}
