/* ============================================================
   PORTFOLIO 2026 - NEUMORPHIC MINIMAL
   Soft shadows + neutral base + high-contrast text/CTAs
   ============================================================ */

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */

:root {
  /* Neumorphic Base */
  --bg: #e0e5ec;
  --bg-surface: #d5dbe3;
  --ink: #2d3436;
  --text-secondary: #4a5568;
  --text-muted: #525e6e;

  /* Neumorphic Shadows */
  --neu-light: rgba(255, 255, 255, 0.8);
  --neu-dark: rgba(163, 177, 198, 0.6);
  --neu-raised: 6px 6px 14px var(--neu-dark), -6px -6px 14px var(--neu-light);
  --neu-raised-sm: 3px 3px 8px var(--neu-dark), -3px -3px 8px var(--neu-light);
  --neu-raised-lg: 10px 10px 24px var(--neu-dark), -10px -10px 24px var(--neu-light);
  --neu-inset: inset 3px 3px 7px var(--neu-dark), inset -3px -3px 7px var(--neu-light);
  --neu-inset-sm: inset 2px 2px 5px var(--neu-dark), inset -2px -2px 5px var(--neu-light);

  /* Accent */
  --accent: #5b7fe9;
  --accent-rgb: 91, 127, 233;
  --accent-glow: 0 4px 20px rgba(91, 127, 233, 0.35);

  /* Supporting accents (muted) */
  --blue: #5b7fe9;
  --coral: #e06c5d;
  --green: #52b788;
  --yellow: #e9b44c;
  --purple: #9b7fe9;
  --orange: #e08c4c;

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radius */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-full: 50%;

  /* Transitions */
  --t-fast: 0.2s ease;
  --t-normal: 0.3s ease;

  /* Layout */
  --container: 1200px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.text-purple { color: var(--purple); }
.text-blue { color: var(--blue); }
.text-green { color: var(--green); }

/* ============================================================
   LAYOUT
   ============================================================ */

.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
section { padding: 5rem 0; }

/* ============================================================
   NAVIGATION - clean, no neumorphism
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 max(2rem, calc((100% - var(--container)) / 2 + 2rem));
  background: var(--bg);
  transition: box-shadow var(--t-normal);
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(163, 177, 198, 0.35);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.nav__logo span { color: var(--accent); }

.nav__links { display: flex; align-items: center; gap: 0.25rem; }

.nav__links a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-sm);
  transition: background var(--t-fast), color var(--t-fast);
}

.nav__links a:hover,
.nav__links a.active {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.6rem;
  border-radius: var(--r-sm);
  box-shadow: var(--neu-raised-sm);
  background: var(--bg);
  transition: box-shadow var(--t-fast);
}

.nav__hamburger:active { box-shadow: var(--neu-inset-sm); }

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform var(--t-fast), opacity var(--t-fast);
}

/* Mobile nav open */
.nav__links.open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--bg);
  box-shadow: 0 10px 30px rgba(163, 177, 198, 0.4);
  padding: 1rem 2rem 1.5rem;
}

.nav__links.open a {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
}

/* ============================================================
   SECTION LABELS & TITLES
   ============================================================ */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  background: var(--bg);
}

.hero__content { padding: 4rem 0; }

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg);
  box-shadow: var(--neu-raised-sm);
  border-radius: var(--r-xl);
  padding: 0.4rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.hero__tag .pulse {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.hero__name .highlight { color: var(--accent); }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  min-height: 2.5rem;
}

.hero__title .caret {
  display: inline-block;
  width: 3px;
  height: 1.1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: middle;
  animation: caret-blink 1s step-end infinite;
}

@keyframes caret-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero__bio {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.hero__bio strong { color: var(--ink); font-weight: 700; }

/* Proof badges - neumorphic outset */
.hero__proof { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }

.proof-badge {
  background: var(--bg);
  box-shadow: var(--neu-raised-sm);
  border-radius: var(--r-sm);
  padding: 0.45rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: box-shadow var(--t-fast);
}

.proof-badge:hover { box-shadow: var(--neu-inset-sm); }
.proof-badge strong { color: var(--ink); font-weight: 700; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }

/* ============================================================
   BUTTONS - high contrast, NOT neumorphic
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: var(--r-sm);
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #fff;
  box-shadow: var(--accent-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(var(--accent-rgb), 0.45);
}

.btn--ghost {
  background: var(--bg);
  color: var(--ink);
  border: 2px solid var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Hero socials - neumorphic circles */
.hero__socials { display: flex; gap: 0.85rem; align-items: center; }

.hero__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--bg);
  border-radius: var(--r-full);
  box-shadow: var(--neu-raised-sm);
  color: var(--ink);
  transition: box-shadow var(--t-fast), color var(--t-fast);
}

.hero__socials a:hover {
  box-shadow: var(--neu-inset);
  color: var(--accent);
}

.hero__socials svg { width: 20px; height: 20px; fill: currentColor; }
.hero__socials a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ============================================================
   SKILLS SECTION - neumorphic cards
   ============================================================ */

.skills-section { background: var(--bg-surface); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.skill-card {
  position: relative;
  background: var(--bg);
  border-radius: var(--r-lg);
  box-shadow: var(--neu-raised);
  padding: 1.75rem;
  transition: box-shadow var(--t-normal), transform var(--t-normal);
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--card-accent, var(--accent));
}

.skill-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--neu-raised-lg);
}

.skill-card__header { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }

.skill-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r);
  font-size: 1.5rem;
  flex-shrink: 0;
  background: var(--bg);
  box-shadow: var(--neu-inset-sm);
  color: var(--card-accent, var(--accent));
}

.skill-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  padding-top: 0.25rem;
}

.skill-card__narrative {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.skill-card__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid rgba(163, 177, 198, 0.3);
  border-radius: var(--r-sm);
  padding: 0.25rem 0.55rem;
}

/* Skill card accent colors */
.skill-card--frontend { --card-accent: var(--blue); }
.skill-card--ai { --card-accent: var(--purple); }
.skill-card--payments { --card-accent: var(--green); }
.skill-card--saas { --card-accent: var(--yellow); }

/* ============================================================
   SERVICE SECTION
   ============================================================ */

.service-section { background: var(--bg); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg);
  border-radius: var(--r-lg);
  box-shadow: var(--neu-raised);
  padding: 2rem;
  transition: box-shadow var(--t-normal), transform var(--t-normal);
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--neu-raised-lg);
}

.service-card--1::before,
.service-card--2::before,
.service-card--3::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.service-card--1::before { background: var(--blue); }
.service-card--2::before { background: var(--purple); }
.service-card--3::before { background: var(--green); }

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.service-card__desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   STATS BAR - neumorphic inset
   ============================================================ */

.stats-bar { display: flex; flex-wrap: wrap; gap: 1.25rem; padding: 2.5rem 0; }

.stat {
  flex: 1 1 160px;
  background: var(--bg);
  border-radius: var(--r);
  box-shadow: var(--neu-inset);
  padding: 1.25rem 1.5rem;
}

.stat--blue .stat__number { color: var(--blue); }
.stat--coral .stat__number { color: var(--coral); }
.stat--yellow .stat__number { color: var(--yellow); }
.stat--green .stat__number { color: var(--green); }

.stat__number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.04em;
  display: block;
  margin-bottom: 0.25rem;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   PROJECTS - soft depth
   ============================================================ */

.project {
  background: var(--bg);
  border-radius: var(--r-lg);
  box-shadow: var(--neu-raised);
  margin-bottom: 2rem;
  border-left: 4px solid var(--project-accent, var(--accent));
  transition: box-shadow var(--t-normal), transform var(--t-normal);
  overflow: hidden;
}

.project:first-of-type { margin-top: 3rem; }

.project:hover {
  transform: translateY(-2px);
  box-shadow: var(--neu-raised-lg);
}

.project:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }

.project__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid rgba(163, 177, 198, 0.25);
  flex-wrap: wrap;
}

.project__header-content { flex: 1; }

.project__header-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.project__number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.project__name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.project__tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.project__badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }

.project__badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem;
  background: var(--bg);
  color: var(--text-secondary);
  border-radius: var(--r-sm);
  border: 1px solid rgba(163, 177, 198, 0.3);
}

.project__role {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg);
  border-radius: var(--r-sm);
  box-shadow: var(--neu-inset-sm);
  padding: 0.4rem 0.85rem;
}

/* Project links */
.project__links { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.project__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg);
  border-radius: var(--r-sm);
  box-shadow: var(--neu-raised-sm);
  padding: 0.4rem 0.85rem;
  transition: box-shadow var(--t-fast), color var(--t-fast);
}

.project__link:hover {
  box-shadow: var(--neu-inset-sm);
  color: var(--accent);
}

.project__link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.project__link svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }

/* Project preview */
.project__preview {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  margin: 0 2rem;
  box-shadow: var(--neu-inset);
}

.project__preview::before {
  content: '';
  display: block;
  height: 32px;
  background: var(--ink);
}

.project__preview::after {
  content: '\2014\2003\25FB\2003\2715';
  position: absolute;
  top: 0; right: 0;
  height: 32px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.15em;
}

.project__preview img { width: 100%; height: auto; display: block; }

/* Project body */
.project__body { padding: 1.75rem 2rem 2rem; }

.project__tech-bar { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-bottom: 1.5rem; }

.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid rgba(163, 177, 198, 0.3);
  padding: 0.35rem 0.7rem;
}

.tech-pill--highlight { color: var(--accent); font-weight: 700; }

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

.project__col-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* Feature list */
.feature-list { list-style: none; padding: 0; margin: 0; }

.feature-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--project-accent, var(--accent));
  opacity: 0.6;
}

.feature-list li + li { margin-top: 0.5rem; }

/* Highlight list - inset neumorphic */
.highlight-list { list-style: none; padding: 0; margin: 0; }

.highlight-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-sm);
  background: var(--bg);
  box-shadow: var(--neu-inset-sm);
}

.highlight-list li + li { margin-top: 0.5rem; }
.highlight-list li strong { color: var(--ink); font-weight: 700; }

/* Project color variants */
.project--fwd { --project-accent: var(--purple); }
.project--dyd { --project-accent: var(--blue); }
.project--pp { --project-accent: var(--coral); }
.project--os { --project-accent: var(--orange); }

/* ============================================================
   ARCHIVED PROJECTS
   ============================================================ */

.archived-section { padding-top: 3rem; margin-top: 2rem; }

.archived-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.archived-card {
  background: var(--bg);
  border-radius: var(--r);
  box-shadow: var(--neu-raised);
  padding: 1.5rem;
  transition: box-shadow var(--t-fast), transform var(--t-fast);
}

.archived-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--neu-raised-lg);
}

.archived-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.archived-card__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.archived-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.archived-card__tech {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.archived-card__badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  box-shadow: var(--neu-inset-sm);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */

.contact-section { background: var(--bg-surface); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
}

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

.contact-info p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.contact-links { display: flex; flex-direction: column; gap: 0.75rem; }

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg);
  border-radius: var(--r);
  box-shadow: var(--neu-raised);
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  color: var(--ink);
  transition: box-shadow var(--t-fast), color var(--t-fast);
}

.contact-link:hover {
  box-shadow: var(--neu-inset);
  color: var(--accent);
}

.contact-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.contact-link svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

.contact-link span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

/* Contact terminal */
.contact-terminal {
  background: #2d3436;
  border-radius: var(--r-lg);
  box-shadow: var(--neu-raised-lg);
  overflow: hidden;
}

.contact-terminal__bar {
  display: flex;
  align-items: center;
  height: 36px;
  padding-left: 1rem;
  background: #3a3f42;
}

.contact-terminal__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  flex: 1;
}

.contact-terminal__winbtns {
  display: flex;
  height: 100%;
  margin-left: auto;
}

.contact-terminal__winbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 100%;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
  transition: background var(--t-fast);
  cursor: default;
}

.contact-terminal__winbtn:hover { background: rgba(255, 255, 255, 0.1); }
.contact-terminal__winbtn--close:hover { background: #e81123; color: #fff; }

.contact-terminal__body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.8;
  color: #d4d4d4;
}

.contact-terminal__body .prompt { color: var(--green); user-select: none; }
.contact-terminal__body .cmd { color: #fff; font-weight: 600; }
.contact-terminal__body .output { color: #a8c0c8; padding-left: 1rem; display: block; }
.contact-terminal__body .accent { color: var(--yellow); font-weight: 700; }
.contact-terminal__body .dim { color: rgba(255, 255, 255, 0.3); }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--bg-surface);
  padding: 2.5rem 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}


/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.45s; }

.hero .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

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

/* ============================================================
   FAQ SECTION
   ============================================================ */

.faq-section {
  padding: 4rem 0;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  background: var(--bg);
  border-radius: var(--r);
  box-shadow: var(--neu-raised-sm);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.faq-item[open] {
  box-shadow: var(--neu-raised);
}

.faq-item__question {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
}

.faq-item__question::-webkit-details-marker { display: none; }
.faq-item__question::marker { display: none; content: ""; }

.faq-item__question::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-item__question::after {
  transform: rotate(45deg);
}

.faq-item__answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

.faq-item__answer p { margin: 0; }
.faq-item__answer a { color: var(--accent); text-decoration: underline; }

/* Footer identity line */
.footer__identity {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Answer-first definition paragraph */
.hero__bio--definition {
  font-weight: 500;
}

.hero__bio--definition a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.hero__bio--definition a:hover {
  border-bottom-color: var(--accent);
}

/* ============================================================
   THEME TOGGLE
   ============================================================ */

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  box-shadow: var(--neu-raised-sm);
  background: var(--bg);
  transition: box-shadow var(--t-fast);
  cursor: pointer;
  border: none;
  color: var(--ink);
  font-size: 1.1rem;
  margin-left: 0.5rem;
}

.theme-toggle:active { box-shadow: var(--neu-inset-sm); }

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

/* ============================================================
   DARK MODE
   ============================================================ */

.dark-theme {
  --bg: #1e2227;
  --bg-surface: #171a1e;
  --ink: #e0e5ec;
  --text-secondary: #a0aec0;
  --text-muted: #9aa8bd;

  --neu-light: rgba(255, 255, 255, 0.05);
  --neu-dark: rgba(0, 0, 0, 0.4);
  --neu-raised: 6px 6px 14px var(--neu-dark), -6px -6px 14px var(--neu-light);
  --neu-raised-sm: 3px 3px 8px var(--neu-dark), -3px -3px 8px var(--neu-light);
  --neu-raised-lg: 10px 10px 24px var(--neu-dark), -10px -10px 24px var(--neu-light);
  --neu-inset: inset 3px 3px 7px var(--neu-dark), inset -3px -3px 7px var(--neu-light);
  --neu-inset-sm: inset 2px 2px 5px var(--neu-dark), inset -2px -2px 5px var(--neu-light);

  --accent-glow: 0 4px 20px rgba(91, 127, 233, 0.25);
}

.dark-theme body { background: var(--bg); color: var(--ink); }
.dark-theme .nav { background: var(--bg); }
.dark-theme .nav.scrolled { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3); }

.dark-theme .btn--ghost {
  background: var(--bg-surface);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

.dark-theme .btn--ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

.dark-theme .project__preview {
  border-color: rgba(255, 255, 255, 0.08);
}

.dark-theme .contact-terminal {
  box-shadow: var(--neu-raised);
}

.dark-theme .highlight-item {
  background: var(--bg-surface);
}

.dark-theme .skill-tag,
.dark-theme .project__badge,
.dark-theme .tech-pill {
  border-color: rgba(255, 255, 255, 0.08);
}

/* ============================================================
   SKIP LINK
   ============================================================ */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 200;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0.75rem;
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .hero .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE - 900px
   ============================================================ */

@media (max-width: 900px) {
  section { padding: 3.5rem 0; }
  .hero { padding-top: 80px; }
  .hero__content { padding: 2.5rem 0; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: 1fr; }
  .stats-bar { gap: 1rem; }
  .stat { flex: 1 1 140px; }
  .project__header { flex-direction: column; gap: 1rem; }
  .project__header-side { align-items: flex-start; }
  .project__preview { margin: 0 1.5rem; }
  .project__body { padding: 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .archived-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { max-width: 100%; }
}

/* ============================================================
   RESPONSIVE - 700px
   ============================================================ */

@media (max-width: 700px) {
  .container { padding: 0 1.25rem; }
  .nav { padding: 0 1.25rem; }
  .nav__links { display: none; }
  .nav__links.open { display: flex; padding: 1rem 1.25rem 1.5rem; }
  .nav__hamburger { display: flex; }
  .hero__name { font-size: clamp(2.5rem, 12vw, 4rem); }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__proof { gap: 0.5rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .skill-card { padding: 1.25rem; }
  .project__columns { grid-template-columns: 1fr; gap: 1.5rem; }
  .project__header { padding: 1.25rem; }
  .project__body { padding: 1.25rem; }
  .project__preview { margin: 0 1.25rem; }
  .project__name { font-size: 1.4rem; }
  .archived-grid { grid-template-columns: 1fr; }
  .stats-bar { flex-direction: column; }
  .stat { flex: none; width: 100%; }
  .faq-item__question { font-size: 0.95rem; padding: 1rem 1.25rem; }
  .faq-item__answer { padding: 0 1.25rem 1rem; font-size: 0.9rem; }
}

/* ============================================================
   RESPONSIVE - 480px
   ============================================================ */

@media (max-width: 480px) {
  .hero__bio { font-size: 1rem; }
  .section-title { font-size: 1.75rem; }
  .hero__socials a { width: 42px; height: 42px; }
  .btn { padding: 0.65rem 1.25rem; font-size: 0.9rem; }
  .proof-badge { font-size: 0.72rem; padding: 0.3rem 0.65rem; }
  .contact-terminal__body { font-size: 0.78rem; padding: 1rem; }
  .project__link { font-size: 0.72rem; padding: 0.3rem 0.6rem; }
  .skill-tag { font-size: 0.68rem; }
}