:root {
  --bg: #08090d;
  --bg-alt: #0c0e14;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e7e9ee;
  --text-muted: #8b93a7;
  --accent: #22d3ee;
  --accent-2: #818cf8;
  --accent-3: #fbbf24;
  --accent-4: #34d399;
  --radius: 16px;
  --max-width: 1120px;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.modal-open, body.loading { overflow: hidden; }

/* ---------- Page Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: var(--bg);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader__brand {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.loader__brand .dot { color: var(--accent); }
.loader__bar-track {
  width: 240px;
  max-width: 60vw;
  height: 4px;
  border-radius: 999px;
  background: var(--surface-strong);
  overflow: hidden;
}
.loader__bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
}
.loader__percent {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

ul { padding-left: 1.1em; margin: 0.8em 0 0; }
li { margin-bottom: 6px; color: var(--text-muted); }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 150;
  transition: width 0.1s ease-out;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8, 9, 13, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.navbar__brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.navbar__brand .dot { color: var(--accent); }

.navbar__links {
  display: flex;
  gap: 28px;
}
.navbar__links a {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}
.navbar__links a:hover,
.navbar__links a.active { color: var(--text); }
.navbar__links a.active::after {
  content: "";
  position: absolute;
  bottom: -8px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.navbar__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.navbar__cta { display: inline-flex; }

.cmdk-trigger {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.cmdk-trigger:hover { border-color: var(--accent); color: var(--text); }

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.lang-switch button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-switch button.active {
  background: var(--surface-strong);
  color: var(--accent);
}
.lang-switch button:hover { color: var(--text); }

.lang-switch--mobile { display: none; }

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.navbar__toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05060a;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(34, 211, 238, 0.5); }

.btn--outline {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--ghost {
  border-color: var(--border);
  color: var(--text);
  padding: 10px 18px;
  font-size: 0.88rem;
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 15% 20%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(600px 500px at 85% 30%, rgba(129, 140, 248, 0.14), transparent 60%),
    linear-gradient(var(--bg), var(--bg));
  z-index: -1;
  animation: ambientDrift 18s ease-in-out infinite;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero__text, .hero__terminal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.hero__text { transition-delay: 0.1s; }
.hero__terminal { transition-delay: 0.3s; }
.hero.loaded .hero__text,
.hero.loaded .hero__terminal {
  opacity: 1;
  transform: translateY(0);
}

@keyframes ambientDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-1.5%, 1.5%) scale(1.05); }
}

.eyebrow {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.85rem;
  margin: 0 0 14px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.status-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-4);
  animation: statusPulse 2s infinite;
}
@keyframes statusPulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero__text h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__role {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text-muted);
  min-height: 1.4em;
}
.hero__role-prefix {
  color: var(--text-muted);
  opacity: 0.7;
  font-size: 0.9rem;
  margin-right: 4px;
}
.cursor { color: var(--accent); animation: blink 1s step-start infinite; }

.hero__desc {
  color: var(--text);
  font-size: 1.05rem;
  max-width: 48ch;
  margin: 18px 0 30px;
  padding-left: 18px;
  border-left: 2px solid;
  border-image: linear-gradient(180deg, var(--accent), var(--accent-2)) 1;
}
.hero__desc strong {
  color: var(--accent);
  font-weight: 700;
}
.tech-highlight {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.88em;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 6px;
  padding: 1px 7px;
  line-height: 1.6;
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Terminal */
.terminal {
  background: #0b0d13;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
  overflow: hidden;
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.terminal__bar .dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.terminal__title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.terminal__body {
  margin: 0;
  padding: 20px 22px 26px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--text);
  white-space: pre-wrap;
  overflow-x: auto;
}
.t-prompt { color: var(--accent); }
.t-out { color: var(--text); font-weight: 600; }
.t-comment { color: var(--text-muted); }
.blink-cursor { animation: blink 1s step-start infinite; color: var(--accent); }

@keyframes blink { 50% { opacity: 0; } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 110px 0; overflow: hidden; }
.section--alt { background: var(--bg-alt); }

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(480px 340px at 8% 0%, rgba(34, 211, 238, 0.07), transparent 60%),
    radial-gradient(480px 340px at 95% 100%, rgba(129, 140, 248, 0.08), transparent 60%);
  animation: ambientDrift 22s ease-in-out infinite;
}
.section > .container { position: relative; z-index: 1; }

.section__eyebrow {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.85rem;
  margin: 0 0 10px;
}
.section__title {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  max-width: 30ch;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.section__desc {
  color: var(--text);
  max-width: 62ch;
  margin: 0 0 40px;
}
.section__desc strong {
  color: var(--accent);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.about__text .section__desc { margin-bottom: 0; }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.stat-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.stat-card__icon {
  display: block;
  width: 26px;
  height: 26px;
  margin: 0 auto 12px;
  color: var(--accent);
}
.stat-card__icon svg { display: block; width: 100%; height: 100%; }
.stat-card__num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-card__label {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: min-content;
  align-items: start;
  gap: 20px;
}
.skill-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.skill-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.skill-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
}
.skill-card__icon {
  display: flex;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent);
}
.skill-card__icon svg { display: block; width: 100%; height: 100%; }
.skill-card h3 { margin: 0; font-size: 1.05rem; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}
.tags span:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* Timeline */
.timeline {
  position: relative;
  margin-top: 20px;
  padding-left: 28px;
  border-left: 1px solid var(--border);
}
.timeline__item {
  position: relative;
  margin-bottom: 44px;
}
.timeline__item:last-child { margin-bottom: 0; }
.timeline__dot {
  position: absolute;
  left: -33px;
  top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.15);
}
.timeline__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.timeline__date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
}
.timeline__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  margin-left: 10px;
  vertical-align: middle;
}
.timeline__badge--leadership {
  color: var(--accent-2);
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.3);
}
.timeline__badge--ic {
  color: var(--accent);
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.3);
}
.timeline__badge--intern {
  color: var(--text-muted);
  background: var(--surface-strong);
  border: 1px solid var(--border);
}
.timeline__card h3 { margin: 8px 0 2px; font-size: 1.15rem; }
.timeline__company { color: var(--text-muted); margin: 0 0 4px; font-size: 0.92rem; }

/* Projects */
.project-group { margin-bottom: 56px; }
.project-group:last-child { margin-bottom: 0; }

.project-group__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.project-group__icon {
  display: flex;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}
.project-group__icon svg { display: block; width: 100%; height: 100%; }
.project-group__header h3 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.project-group__count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 9px;
  margin-left: auto;
}

.project-group--web .project-group__icon,
.project-group--web .project-group__header h3 { color: var(--accent); }
.project-group--iot .project-group__icon,
.project-group--iot .project-group__header h3 { color: var(--accent-2); }
.project-group--security .project-group__icon,
.project-group--security .project-group__header h3 { color: var(--accent-3); }
.project-group--support .project-group__icon,
.project-group--support .project-group__header h3 { color: var(--accent-4); }

.project-group--web .project-card:hover { border-color: var(--accent); }
.project-group--iot .project-card:hover { border-color: var(--accent-2); }
.project-group--security .project-card:hover { border-color: var(--accent-3); }
.project-group--support .project-card:hover { border-color: var(--accent-4); }

.project-group--web .project-card { border-top: 3px solid rgba(34, 211, 238, 0.35); }
.project-group--iot .project-card { border-top: 3px solid rgba(129, 140, 248, 0.35); }
.project-group--security .project-card { border-top: 3px solid rgba(251, 191, 36, 0.35); }
.project-group--support .project-card { border-top: 3px solid rgba(52, 211, 153, 0.35); }

.project-group-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.project-group-split .project-group { margin-bottom: 0; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: min-content;
  align-items: start;
  gap: 20px;
}
.projects-grid--single { grid-template-columns: 1fr; }

.project-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s, transform 0.2s;
}
.project-card:hover { transform: translateY(-4px); }
.project-card::after,
.skill-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(34, 211, 238, 0.14), transparent 70%);
}
.project-card:hover::after,
.skill-card:hover::after { opacity: 1; }
.project-card > *,
.skill-card > * { position: relative; z-index: 1; }
.project-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.project-card__date {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent);
  margin-bottom: 12px;
}
.project-card p { color: var(--text-muted); font-size: 0.92rem; margin: 0 0 16px; }
.project-card[role="button"] { cursor: pointer; outline: none; }
.project-card[role="button"]:focus-visible { border-color: var(--accent); }
.project-card__hint {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s, color 0.2s;
}
.project-card[role="button"]:hover .project-card__hint,
.project-card[role="button"]:focus-visible .project-card__hint {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent);
}

/* Project detail modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 6, 10, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }

.modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); opacity: 1; }

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.modal__close:hover { color: var(--text); border-color: var(--accent); }

.modal__date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
}
.modal__title {
  margin: 8px 30px 14px 0;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.modal__desc { color: var(--text); line-height: 1.7; margin: 0 0 24px; }

.modal__stack-group { margin-bottom: 16px; }
.modal__stack-group:last-child { margin-bottom: 0; }
.modal__stack-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Command palette */
.cmdk-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 24px 24px;
  background: rgba(5, 6, 10, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.cmdk-backdrop.open { opacity: 1; visibility: visible; }

.cmdk {
  width: 100%;
  max-width: 560px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transform: translateY(-12px) scale(0.98);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}
.cmdk-backdrop.open .cmdk { transform: translateY(0) scale(1); opacity: 1; }

.cmdk__input {
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 1rem;
  padding: 18px 20px;
  outline: none;
}
.cmdk__input::placeholder { color: var(--text-muted); }

.cmdk__list {
  list-style: none;
  margin: 0;
  padding: 8px;
  max-height: 320px;
  overflow-y: auto;
}
.cmdk__item {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cmdk__item.active, .cmdk__item:hover { background: var(--surface-strong); color: var(--text); }
.cmdk__empty {
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Education */
.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 480px;
}
.edu-card h3 { margin: 0 0 8px; }
.edu-card p { margin: 4px 0; color: var(--text-muted); }

/* Contact */
.contact { text-align: center; }
.contact .section__title,
.contact .section__desc { margin-left: auto; margin-right: auto; }

.contact-primary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 480px;
  margin: 8px auto 24px;
  padding: 40px 32px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.12), rgba(129, 140, 248, 0.08));
  border: 1px solid rgba(34, 211, 238, 0.35);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.contact-primary:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 24px 60px -20px rgba(34, 211, 238, 0.35);
}
.contact-primary__icon {
  width: 36px;
  height: 36px;
  color: var(--accent);
  margin-bottom: 4px;
}
.contact-primary__icon svg { display: block; width: 100%; height: 100%; }
.contact-primary__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-primary__value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}
.contact-primary__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.contact-primary__cta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-2);
  transition: color 0.2s;
}
.contact-primary__cta:hover { color: var(--accent); text-decoration: underline; }
.contact-primary__copy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.contact-primary__copy:hover { color: var(--accent); border-color: var(--accent); }
.contact-primary__copy svg { width: 16px; height: 16px; display: block; }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface-strong);
  border: 1px solid var(--accent);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 400;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.contact-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}
.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
}
a.contact-link:hover { border-color: var(--accent); transform: translateY(-3px); }
.contact-link__icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-bottom: 4px;
}
.contact-link__icon svg { display: block; width: 100%; height: 100%; }
.contact-link__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.contact-link__value { font-size: 0.95rem; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer__inner a:hover { color: var(--accent); }

/* Back to top button */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s, border-color 0.2s;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__terminal { order: -1; }
  .about__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid--single { grid-template-columns: 1fr; }
  .project-group-split { grid-template-columns: 1fr; gap: 56px; }
  .contact-links { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .navbar__links, .navbar__cta, .navbar__right .lang-switch, .cmdk-trigger { display: none; }
  .navbar__toggle { display: flex; }

  .navbar__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(8, 9, 13, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px 26px;
    gap: 18px;
  }

  .navbar__links.open .lang-switch--mobile {
    display: flex;
    width: fit-content;
    margin-top: 6px;
  }

  .section { padding: 80px 0; }
  .hero { padding: 130px 0 70px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
}
