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

:root {
  --bg: #A8BFD0;
  --surface: rgba(232, 244, 252, 0.88);
  --surface-inner: rgba(220, 236, 248, 0.6);
  --project-card-bg: rgba(255, 255, 255, 0.82);
  --project-card-border: rgba(13, 148, 136, 0.28);
  --border: rgba(13, 148, 136, 0.14);
  --text: #07121C;
  --text-muted: #3D5A6A;
  --accent: #0D9488;
  --accent-2: #D97706;
  --accent-light: rgba(13, 148, 136, 0.1);
  --accent-glow: rgba(13, 148, 136, 0.2);
  --tag-bg: rgba(13, 148, 136, 0.09);
  --tag-text: #076B62;
  --tag-border: rgba(13, 148, 136, 0.18);
  --card-shadow: 0 8px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.07);
  --dot-fill: rgba(13, 148, 136, 0.18);
  --illus-surface: rgba(13, 148, 136, 0.06);
  --illus-screen: rgba(7, 18, 28, 0.08);
  --illus-code-a: #0D9488;
  --illus-code-b: #3D5A6A;
  --orb-1: radial-gradient(ellipse at 10% 15%, rgba(20,184,166,0.28) 0%, transparent 55%);
  --orb-2: radial-gradient(ellipse at 90% 80%, rgba(217,119,6,0.2) 0%, transparent 55%);
  --orb-3: radial-gradient(ellipse at 55% 105%, rgba(6,182,212,0.14) 0%, transparent 50%);
  --scrollbar: rgba(13, 148, 136, 0.2);
  --scrollbar-hover: rgba(13, 148, 136, 0.45);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C2E3E;
    --surface: rgba(10, 20, 32, 0.9);
    --surface-inner: rgba(16, 28, 42, 0.7);
    --project-card-bg: #1e3549;
    --project-card-border: rgba(45, 212, 191, 0.22);
    --border: rgba(45, 212, 191, 0.1);
    --text: #D4EDE8;
    --text-muted: #4A7870;
    --accent: #2DD4BF;
    --accent-2: #FB923C;
    --accent-light: rgba(45, 212, 191, 0.08);
    --accent-glow: rgba(45, 212, 191, 0.14);
    --tag-bg: rgba(45, 212, 191, 0.07);
    --tag-text: #2DD4BF;
    --tag-border: rgba(45, 212, 191, 0.14);
    --card-shadow: 0 8px 60px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.3);
    --dot-fill: rgba(45, 212, 191, 0.1);
    --illus-surface: rgba(45, 212, 191, 0.05);
    --illus-screen: rgba(4, 10, 18, 0.6);
    --illus-code-a: #2DD4BF;
    --illus-code-b: #4A7870;
    --orb-1: radial-gradient(ellipse at 10% 15%, rgba(20,184,166,0.2) 0%, transparent 55%);
    --orb-2: radial-gradient(ellipse at 90% 80%, rgba(251,146,60,0.13) 0%, transparent 55%);
    --orb-3: radial-gradient(ellipse at 55% 105%, rgba(56,189,248,0.1) 0%, transparent 50%);
    --scrollbar: rgba(45, 212, 191, 0.18);
    --scrollbar-hover: rgba(45, 212, 191, 0.4);
  }
}

:root[data-theme="dark"] {
  --bg: #1C2E3E;
  --surface: rgba(10, 20, 32, 0.9);
  --surface-inner: rgba(16, 28, 42, 0.7);
  --project-card-bg: #1e3549;
  --project-card-border: rgba(45, 212, 191, 0.22);
  --border: rgba(45, 212, 191, 0.1);
  --text: #D4EDE8;
  --text-muted: #4A7870;
  --accent: #2DD4BF;
  --accent-2: #FB923C;
  --accent-light: rgba(45, 212, 191, 0.08);
  --accent-glow: rgba(45, 212, 191, 0.14);
  --tag-bg: rgba(45, 212, 191, 0.07);
  --tag-text: #2DD4BF;
  --tag-border: rgba(45, 212, 191, 0.14);
  --card-shadow: 0 8px 60px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.3);
  --dot-fill: rgba(45, 212, 191, 0.1);
  --illus-surface: rgba(45, 212, 191, 0.05);
  --illus-screen: rgba(4, 10, 18, 0.6);
  --illus-code-a: #2DD4BF;
  --illus-code-b: #4A7870;
  --orb-1: radial-gradient(ellipse at 10% 15%, rgba(20,184,166,0.2) 0%, transparent 55%);
  --orb-2: radial-gradient(ellipse at 90% 80%, rgba(251,146,60,0.13) 0%, transparent 55%);
  --orb-3: radial-gradient(ellipse at 55% 105%, rgba(56,189,248,0.1) 0%, transparent 50%);
  --scrollbar: rgba(45, 212, 191, 0.18);
  --scrollbar-hover: rgba(45, 212, 191, 0.4);
}

:root[data-theme="light"] {
  --bg: #A8BFD0;
  --surface: rgba(232, 244, 252, 0.88);
  --surface-inner: rgba(220, 236, 248, 0.6);
  --project-card-bg: rgba(255, 255, 255, 0.82);
  --project-card-border: rgba(13, 148, 136, 0.28);
  --border: rgba(13, 148, 136, 0.14);
  --text: #07121C;
  --text-muted: #3D5A6A;
  --accent: #0D9488;
  --accent-2: #D97706;
  --accent-light: rgba(13, 148, 136, 0.1);
  --accent-glow: rgba(13, 148, 136, 0.2);
  --tag-bg: rgba(13, 148, 136, 0.09);
  --tag-text: #076B62;
  --tag-border: rgba(13, 148, 136, 0.18);
  --card-shadow: 0 8px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.07);
  --dot-fill: rgba(13, 148, 136, 0.18);
  --illus-surface: rgba(13, 148, 136, 0.06);
  --illus-screen: rgba(7, 18, 28, 0.08);
  --illus-code-a: #0D9488;
  --illus-code-b: #3D5A6A;
  --orb-1: radial-gradient(ellipse at 10% 15%, rgba(20,184,166,0.28) 0%, transparent 55%);
  --orb-2: radial-gradient(ellipse at 90% 80%, rgba(217,119,6,0.2) 0%, transparent 55%);
  --orb-3: radial-gradient(ellipse at 55% 105%, rgba(6,182,212,0.14) 0%, transparent 50%);
  --scrollbar: rgba(13, 148, 136, 0.2);
  --scrollbar-hover: rgba(13, 148, 136, 0.45);
}

html { font-size: 16px; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
}

/* Particle canvas */
#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Orbs */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb { position: absolute; border-radius: 50%; filter: blur(90px); }

.orb-1 {
  width: 600px; height: 600px;
  top: -180px; left: -120px;
  background: var(--orb-1);
  animation: d1 22s ease-in-out infinite alternate;
}
.orb-2 {
  width: 500px; height: 500px;
  bottom: -120px; right: -120px;
  background: var(--orb-2);
  animation: d2 26s ease-in-out infinite alternate;
}
.orb-3 {
  width: 400px; height: 400px;
  top: 45%; left: 45%;
  background: var(--orb-3);
  animation: d3 18s ease-in-out infinite alternate;
}

@keyframes d1 { to { transform: translate(40px, 50px) scale(1.06); } }
@keyframes d2 { to { transform: translate(-50px, -40px) scale(1.08); } }
@keyframes d3 { to { transform: translate(-20px, 30px) scale(1.04); } }

/* Main card — fixed viewport height */
.page-wrap {
  position: relative;
  width: 45vw;
  height: 90vh;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

.site-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 36px 40px 32px;
  border-bottom: 1px solid var(--border);
  position: relative;
  flex-shrink: 0;
}

.hero-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.name-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1.0;
  color: var(--text);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.title-badge {
  position: relative;
  z-index: 6;
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--tag-border);
  padding: 4px 10px;
  border-radius: 6px;
  width: fit-content;
}

.meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 150ms;
}

.meta-item svg { color: var(--accent); flex-shrink: 0; }
.meta-item:hover { color: var(--accent); }
.meta-link { color: var(--text-muted); }

/* Tabs */
.tab-nav {
  position: relative;
  z-index: 6;
  display: flex;
  gap: 2px;
  background: var(--surface-inner);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  width: fit-content;
}

.tab {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 18px;
  border-radius: 7px;
  transition: background 150ms, color 150ms;
  white-space: nowrap;
}

.tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.tab:hover:not(.active) { color: var(--text); }

/* CV button */
.cv-btn {
  position: relative;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  white-space: nowrap;
  width: fit-content;
  transition: background 150ms, color 150ms;
}
.cv-btn:hover { background: var(--accent); color: #fff; }

/* Theme button */
.theme-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 32px; height: 32px;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 150ms, border-color 150ms;
}
.theme-btn:hover { color: var(--accent); border-color: var(--accent); }

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

/* Illustration */
.hero-right {
  position: relative;
  z-index: 6;
  width: clamp(220px, 22vw, 380px);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.illustration { width: 100%; height: auto; }

/* Content area — scrollable with fixed height */
.content-area {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 40px 36px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar) transparent;
}

.content-area::-webkit-scrollbar { width: 5px; }
.content-area::-webkit-scrollbar-track { background: transparent; }
.content-area::-webkit-scrollbar-thumb {
  background: var(--scrollbar);
  border-radius: 3px;
}
.content-area::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-hover); }

.section { display: none; animation: fadeUp 200ms ease; }
.section.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.project-card {
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid var(--project-card-border);
  background: var(--project-card-bg);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  box-shadow: 0 6px 32px rgba(0,0,0,0.38), 0 1px 4px rgba(0,0,0,0.2);
  transition: border-color 200ms, transform 200ms, box-shadow 200ms;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
}

.project-img {
  aspect-ratio: 5 / 2;
  overflow: hidden;
  background: var(--accent-light);
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 14px;
}

.project-logo {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}

.project-screenshot-wrap {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: calc(100% - 95px);
  overflow: hidden;
  border-radius: 10px 0 0 0;
  box-shadow: -4px 4px 20px rgba(0,0,0,0.4);
}

.project-screenshot-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 12%;
}

.project-card:hover .project-screenshot-wrap img { transform: scale(1.03); transition: transform 300ms; }

.project-info {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 150ms, transform 150ms;
}
.project-card:hover .arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.project-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.project-card p {
  font-size: 0.78rem;
  color: var(--text);
  opacity: 0.8;
  line-height: 1.55;
}

.device-icons {
  display: inline-flex;
  gap: 4px;
  vertical-align: middle;
  margin-left: 4px;
}

.device-icons svg {
  width: 14px;
  height: 14px;
  color: var(--text);
  opacity: 0.75;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 5px; }

.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.63rem;
  background: var(--tag-bg);
  color: var(--tag-text);
  border: 1px solid var(--tag-border);
  padding: 3px 8px;
  border-radius: 5px;
  letter-spacing: 0.02em;
}

.lang-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55rem;
  font-weight: 500;
  color: var(--text);
  opacity: 0.75;
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 4px;
  vertical-align: middle;
  letter-spacing: 0.05em;
}

/* Resume */
.resume-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* Single resume eye: absolutely positioned, icon-only, aligned with col-labels */
#resume { position: relative; }

.resume-eye {
  position: absolute;
  top: 0;
  right: 0;
  background: none;
  border: 1px solid var(--tag-border);
  border-radius: 6px;
  cursor: pointer;
  color: var(--accent);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 150ms, border-color 150ms, background 150ms;
}

.resume-eye:hover,
.resume-eye.open {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-light);
}

.col-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 20px;
  line-height: 26px;
}

.timeline { position: relative; }

.timeline::before {
  content: '';
  position: absolute;
  left: 5px; top: 12px; bottom: 12px;
  width: 1px;
  background: var(--border);
}

.tl-item {
  display: flex;
  gap: 14px;
  padding-bottom: 24px;
}
.tl-item:last-child { padding-bottom: 0; }

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

.tl-body { flex: 1; min-width: 0; }

.tl-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.tl-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.tl-sub { font-size: 0.78rem; color: var(--text-muted); }

.tl-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.tl-details {
  overflow: hidden;
  transition: max-height 300ms ease, opacity 250ms ease;
}
.tl-details.collapsed {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}
.tl-details p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 10px 0 8px;
}

/* Projects section header */
.projects-header {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 20px;
}

#resume { padding-top: 12px; }

/* Request access button */
.access-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: none;
  color: var(--accent);
  font-size: 0.83rem;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: background 150ms, color 150ms;
}
.access-btn:hover { background: var(--accent); color: #fff; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  transform: translateY(10px);
  transition: transform 200ms;
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 150ms, border-color 150ms;
}
.modal-close:hover { color: var(--text); border-color: var(--text-muted); }

.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.modal-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.access-form { display: flex; flex-direction: column; gap: 14px; }

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--surface-inner);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.83rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  outline: none;
  transition: border-color 150ms;
  resize: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-muted); opacity: 0.6; }
.form-field select option { background: var(--bg); color: var(--text); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--accent); }

.modal-submit {
  margin-top: 4px;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: opacity 150ms;
}
.modal-submit:hover { opacity: 0.88; }

.access-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 0 8px;
  text-align: center;
  color: var(--accent);
}
.access-success p { font-size: 0.88rem; color: var(--text-muted); }

.field-optional {
  font-weight: 400;
  opacity: 0.6;
  font-size: 0.7rem;
}

.label-required::after {
  content: ' *';
  color: var(--accent);
}

.field-error {
  font-size: 0.72rem;
  color: #f87171;
  display: none;
}
.field-error.visible { display: block; }

.app-dropdown { position: relative; }

.app-dropdown-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-inner);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.83rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  transition: border-color 150ms;
}
.app-dropdown-trigger.has-value { color: var(--text); }
.app-dropdown-trigger.error { border-color: #f87171; }
.app-dropdown-trigger svg { flex-shrink: 0; transition: transform 150ms; }
.app-dropdown-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.app-dropdown-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  list-style: none;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  display: none;
}
.app-dropdown-list.open { display: block; }

.app-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.83rem;
  color: var(--text);
  cursor: pointer;
  transition: background 120ms;
}
.app-option:hover { background: var(--accent-light); }
.app-option input[type="checkbox"] {
  accent-color: var(--accent);
  width: 14px;
  height: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Responsive */

@media (max-width: 760px) {
  body { height: auto; overflow: auto; padding: 16px 12px; }
  .page-wrap { width: 100%; height: auto; max-height: none; }
  .site-card { height: auto; }
  .content-area { overflow-y: visible; padding: 20px 18px 28px; }
  .hero { flex-direction: column; padding: 20px 20px 20px; gap: 16px; }
  .hero-right { order: -1; width: 100%; max-width: 220px; align-self: center; }
  .projects-grid { grid-template-columns: 1fr; }
  .resume-cols { grid-template-columns: 1fr; gap: 28px; }
  .name { font-size: 1.9rem; }
  .hero-left { gap: 14px; }
  .tab-bar { width: 100%; }
  .tab-bar .tab { flex: 1; text-align: center; }
}

@media (max-width: 480px) {
  body { padding: 12px 10px; }
  .theme-btn { top: 14px; right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
