/* ═══════════════════════════════════════════════════════════════
   Auxy — Style System
   Professional Cybersecurity Portfolio
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  /* ── Color Tokens ─────────────────────────────── */
  --bg-base:        #0d0e12;
  --bg-surface:     #121318;
  --bg-elevated:    #181a22;
  --bg-card:        #1a1c24;
  --bg-card-hover:  #1e2028;

  --border:         #272932;
  --border-subtle:  #1e2028;
  --border-accent:  #007acc;

  --text-primary:   #e8eaf0;
  --text-secondary: #8b8fa8;
  --text-muted:     #5a5e72;
  --text-accent:    #007acc;

  --accent:         #007acc;
  --accent-dim:     rgba(0, 122, 204, 0.12);
  --accent-dimmer:  rgba(0, 122, 204, 0.06);

  --status-green:   #3fb950;
  --status-yellow:  #d29922;

  --danger:         #e05263;

  /* ── Typography ────────────────────────────────── */
  --font-mono:    'Fira Code', 'Courier New', monospace;
  --font-sans:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'DM Sans', sans-serif;

  --fs-xs:   0.6875rem;  /* 11px */
  --fs-sm:   0.75rem;    /* 12px */
  --fs-base: 0.875rem;   /* 14px */
  --fs-md:   1rem;       /* 16px */
  --fs-lg:   1.125rem;   /* 18px */
  --fs-xl:   1.375rem;   /* 22px */
  --fs-2xl:  1.75rem;    /* 28px */
  --fs-3xl:  2.25rem;    /* 36px */
  --fs-4xl:  3rem;       /* 48px */
  --fs-5xl:  3.75rem;    /* 60px */

  /* ── Spacing ───────────────────────────────────── */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* ── Layout ────────────────────────────────────── */
  --max-width: 1200px;
  --nav-h: 64px;
  --radius: 4px;

  /* ── Transition ────────────────────────────────── */
  --t-fast: 120ms ease;
  --t-base: 200ms ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: var(--accent-dim);
  color: var(--text-primary);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Focus */
:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

/* Utilities */
.mono { font-family: var(--font-mono); }
.hidden { display: none !important; }

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

img { display: block; max-width: 100%; }

/* ── Navigation ───────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: var(--bg-base);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color var(--t-base), background var(--t-base);
}

#navbar.scrolled {
  background: rgba(13, 14, 18, 0.95);
  border-bottom-color: var(--border);
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-8);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  transition: color var(--t-fast);
  white-space: nowrap;
}
.nav-logo:hover { color: var(--accent); }
.logo-bracket { color: var(--text-muted); }
.logo-accent { color: var(--accent); }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav-link {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius);
  transition: color var(--t-fast), background var(--t-fast);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: var(--sp-3); right: var(--sp-3);
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--text-primary); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0 8px;
  transition: border-color var(--t-fast);
}
.nav-hamburger:hover { border-color: var(--accent); }
.nav-hamburger span {
  display: block;
  height: 1px;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: transform var(--t-base), opacity var(--t-fast);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Section Scaffold ─────────────────────────────────────────── */
.section {
  padding: var(--sp-24) 0;
}
.section:first-of-type {
  padding-top: calc(var(--nav-h) + var(--sp-20));
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-8);
}

.section-header {
  margin-bottom: var(--sp-16);
}

.section-tag {
  font-size: var(--fs-sm);
  color: var(--accent);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: var(--sp-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-xl), 3vw, var(--fs-2xl));
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-4);
}

.section-line {
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin-top: var(--sp-4);
}

.sub-heading {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
}

.body-text {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--sp-4);
}
.body-text:last-of-type { margin-bottom: 0; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
  border: 1px solid transparent;
  text-decoration: none;
}

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

.btn-ghost {
  color: var(--text-secondary);
  border-color: var(--border);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.btn-full { width: 100%; }

/* ── Hero Section ─────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 55fr 45fr;
  align-items: center;
  gap: clamp(var(--sp-8), 5vw, var(--sp-20));
  padding: calc(var(--nav-h) + var(--sp-12)) 8% var(--sp-12);
  border-bottom: 1px solid var(--border-subtle);
  box-sizing: border-box;
}

/* Override section first-of-type top padding */
.hero-section.section:first-of-type { padding-top: calc(var(--nav-h) + var(--sp-12)); }

.hero-inner {
  display: flex;
  flex-direction: column;
}

.hero-label {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}
.label-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--status-green);
}
.label-text {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl));
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: var(--sp-6);
}
.title-accent { color: var(--accent); }

.hero-sub {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: var(--sp-8);
}

.hero-cta {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-12);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.stat-num {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.stat-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Terminal Widget */
.hero-terminal {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  width: 100%;
  position: relative;
}

/* Subtle glow accent on terminal */
.hero-terminal::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.t-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.t-red    { background: #e05263; opacity: 0.7; }
.t-yellow { background: #d29922; opacity: 0.7; }
.t-green  { background: #3fb950; opacity: 0.7; }
.t-title {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.04em;
}

.terminal-body {
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  min-height: 180px;
}

.t-line {
  line-height: 1.6;
}
.t-prompt {
  color: var(--accent);
  margin-right: var(--sp-2);
  user-select: none;
}
.t-cmd { color: var(--text-primary); }
.t-out {
  color: var(--text-secondary);
  padding-left: 0;
}

.t-cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink 1.1s step-end infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* ── About Section ────────────────────────────────────────────── */
.about-section {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  margin-bottom: var(--sp-12);
}

.bio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}

.tag {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius);
  letter-spacing: 0.04em;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.tag:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Platform Cards */
.platform-cards {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.platform-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: var(--sp-5);
  transition: border-color var(--t-base);
}
.platform-card:hover { border-color: var(--border-accent); }

.platform-card-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.platform-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0;
  flex-shrink: 0;
}
.htb-icon { background: rgba(0, 122, 204, 0.12); color: var(--accent); border: 1px solid rgba(0, 122, 204, 0.25); }
.thm-icon { background: rgba(63, 185, 80, 0.1); color: var(--status-green); border: 1px solid rgba(63, 185, 80, 0.2); }

.platform-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.platform-name {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text-primary);
}
.platform-handle {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.platform-status {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  white-space: nowrap;
}
.status-active { color: var(--status-green); }
.status-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.platform-metrics {
  display: flex;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.metric-val {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.metric-key {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.platform-bar-wrap {
  height: 2px;
  background: var(--bg-elevated);
  border-radius: 1px;
  overflow: hidden;
}
.platform-bar {
  height: 100%;
  width: var(--fill);
  background: var(--accent);
  border-radius: 1px;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.skill-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: var(--sp-5);
  transition: border-color var(--t-base), background var(--t-fast);
  cursor: default;
}
.skill-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.skill-icon {
  font-size: var(--fs-xs);
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-3);
}

.skill-title {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
  line-height: 1.3;
}

.skill-desc {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-4);
}

.skill-tools {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
}

.tool-tag {
  font-size: 0.625rem;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 2px var(--sp-2);
  border-radius: 2px;
  letter-spacing: 0.04em;
}

/* ── Projects Section ─────────────────────────────────────────── */
.projects-section {
  border-bottom: 1px solid var(--border-subtle);
}

.projects-filter {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-8);
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: transparent;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius);
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}
.filter-btn.active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dimmer);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-4);
  transition: border-color var(--t-base), background var(--t-fast);
}
.project-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.project-card.hidden-card { display: none; }

.project-card-top { display: flex; flex-direction: column; gap: var(--sp-3); }

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

.project-type {
  font-size: var(--fs-xs);
  color: var(--accent);
  letter-spacing: 0.08em;
}

.github-link {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: color var(--t-fast);
}
.github-link:hover { color: var(--text-primary); }

.project-title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.project-desc {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  line-height: 1.75;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  margin-top: auto;
}

.proj-tag {
  font-size: 0.625rem;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 2px var(--sp-2);
  border-radius: 2px;
  letter-spacing: 0.04em;
}

/* ── Achievements Section ─────────────────────────────────────── */
.achievements-section {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.achievements-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--sp-12);
  align-items: start;
}

/* Timeline */
.timeline {
  list-style: none;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 11px; top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  display: flex;
  gap: var(--sp-5);
  padding-bottom: var(--sp-8);
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }

.tl-marker {
  width: 23px; height: 23px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: border-color var(--t-base);
}
.timeline-item:hover .tl-marker { border-color: var(--accent); }
.tl-marker::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border);
  transition: background var(--t-base);
}
.timeline-item:hover .tl-marker::after { background: var(--accent); }

.tl-content { flex: 1; padding-top: 2px; }

.tl-date {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: var(--sp-1);
}

.tl-title {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
  line-height: 1.3;
}

.tl-desc {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--sp-3);
}

.tl-badge {
  font-size: 0.625rem;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 2px var(--sp-2);
  border-radius: 2px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Cert Cards */
.cert-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.cert-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: var(--sp-4);
  transition: border-color var(--t-base);
}
.cert-card:hover { border-color: var(--border-accent); }

.cert-code {
  width: 40px;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0;
  flex-shrink: 0;
  text-align: center;
}

.cert-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.cert-name {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cert-issuer {
  font-size: 0.625rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.cert-status {
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px var(--sp-2);
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}
.cert-valid {
  color: var(--status-green);
  background: rgba(63, 185, 80, 0.08);
  border: 1px solid rgba(63, 185, 80, 0.18);
}
.cert-progress {
  color: var(--status-yellow);
  background: rgba(210, 153, 34, 0.08);
  border: 1px solid rgba(210, 153, 34, 0.18);
}

/* ── Contact Section ──────────────────────────────────────────── */
.contact-section {
  border-bottom: 1px solid var(--border-subtle);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

.contact-social-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.contact-social-link:hover {
  color: var(--text-primary);
  border-color: var(--border);
  background: var(--bg-elevated);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.form-input {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  padding: var(--sp-3) var(--sp-4);
  width: 100%;
  transition: border-color var(--t-fast), background var(--t-fast);
  outline: none;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus { border-color: var(--accent); background: var(--bg-card); }
.form-input.error { border-color: var(--danger); }

.form-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-sans);
  line-height: 1.7;
}

.form-error {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--danger);
  min-height: 16px;
}

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer {
  padding: var(--sp-8) 0;
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer-logo {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.footer-copy {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.footer-note {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ── Back to Top ──────────────────────────────────────────────── */
.back-top {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base), border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
  z-index: 50;
}
.back-top.visible { opacity: 1; pointer-events: all; }
.back-top:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dimmer);
}

/* ── Reveal Animation ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: var(--sp-10);
    padding-top: calc(var(--nav-h) + var(--sp-8));
    padding-bottom: var(--sp-10);
  }
  .hero-terminal { max-width: 640px; margin: 0 auto; }
  .hero-title { font-size: clamp(var(--fs-2xl), 6vw, var(--fs-4xl)); }
}

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .achievements-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: var(--sp-10); }
  .cert-wrap { order: -1; }
}

@media (max-width: 720px) {
  :root {
    --sp-24: 4rem;
    --sp-16: 3rem;
    --sp-12: 2.5rem;
  }

  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: var(--sp-4) var(--sp-6);
    gap: var(--sp-1);
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: var(--sp-3) var(--sp-3); font-size: var(--fs-sm); }

  .hero-stats { flex-wrap: wrap; gap: var(--sp-5); }
  .stat-divider { display: none; }

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

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2);
  }

  .section-inner { padding: 0 var(--sp-5); }
  .hero-inner { padding: 0 var(--sp-5); }
  .nav-inner { padding: 0 var(--sp-5); }
}

@media (max-width: 480px) {
  .hero-title { font-size: var(--fs-2xl); }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .platform-metrics { flex-wrap: wrap; }
}

/* ── Show More Button ────────────────────────────────────────────── */
.show-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: var(--sp-8);
}

.show-more-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.65rem 1.75rem;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
}

.show-more-btn svg {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
