/* Komla Petro Asinyo — Dev Portfolio v2 */

:root {
  --bg: #050505;
  --bg-panel: rgba(14, 8, 8, 0.72);
  --bg-card: rgba(18, 10, 10, 0.88);
  --border: rgba(255, 45, 45, 0.14);
  --border-hover: rgba(255, 45, 45, 0.38);
  --text: #e8e0e0;
  --text-muted: #9b7373;
  --green: #ff2d2d;
  --green-dim: #cc2424;
  --cyan: #ff6b6b;
  --amber: #ffb800;
  --purple: #c084fc;
  --glow: rgba(255, 45, 45, 0.28);
  --gradient: linear-gradient(135deg, var(--green) 0%, var(--cyan) 100%);
  --font: "JetBrains Mono", "Cascadia Code", "Consolas", monospace;
  --radius: 12px;
  --nav-h: 76px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  font-size: 0.92rem;
}

::selection {
  background: rgba(255, 45, 45, 0.25);
  color: #fff;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

/* ─── Background ─── */
.bg-effects {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#particles {
  position: absolute;
  inset: 0;
  opacity: 0.45;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 45, 45, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 45, 45, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, black 20%, transparent 80%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: var(--green);
  top: -150px;
  left: -100px;
  animation: float 12s ease-in-out infinite;
}

.glow-2 {
  width: 400px;
  height: 400px;
  background: var(--cyan);
  bottom: 10%;
  right: -80px;
  animation: float 15s ease-in-out infinite reverse;
}

.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  opacity: 0.4;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, 20px); }
}

/* ─── Code tokens ─── */
.comment { color: var(--text-muted); }
.prompt { color: var(--green); margin-right: 0.35rem; }
.t-dim { color: var(--text-muted); }
.t-kw { color: var(--purple); }
.t-fn { color: var(--cyan); }
.t-str { color: var(--amber); }
.t-var { color: var(--green); }
.t-num { color: #ff6b9d; }

.cursor-blink {
  animation: blink 1s step-end infinite;
  color: var(--green);
}

@keyframes blink { 50% { opacity: 0; } }

/* ─── Nav ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(5, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--green);
  letter-spacing: -0.02em;
}

.logo-bracket { color: var(--cyan); }

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-num { color: var(--green); font-size: 0.7rem; }

.nav-links a:hover { color: var(--green); }

.lang-toggle {
  display: flex;
  gap: 2px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
}

.lang-btn {
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--green);
  color: var(--bg);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green);
}

/* ─── Hero ─── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 2rem) 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--green);
  background: rgba(255, 45, 45, 0.06);
  border: 1px solid var(--border);
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.7s ease both;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-greeting {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero-name {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  animation: fadeUp 0.7s 0.2s ease both;
}

.name-line { display: block; }
.name-line.accent { color: var(--green); text-shadow: 0 0 40px var(--glow); }

.hero-role-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.25rem 0;
  font-size: 1rem;
  color: var(--cyan);
  animation: fadeUp 0.7s 0.3s ease both;
}

.hero-role::after {
  content: "█";
  animation: blink 1s step-end infinite;
  color: var(--green);
  margin-left: 2px;
}

.hero-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.9;
  animation: fadeUp 0.7s 0.4s ease both;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  animation: fadeUp 0.7s 0.5s ease both;
}

.hero-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  animation: fadeUp 0.7s 0.6s ease both;
}

.hero-stack span {
  font-size: 0.65rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  background: rgba(255, 45, 45, 0.03);
  transition: var(--transition);
}

.hero-stack span:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--green);
  color: var(--bg);
  box-shadow: 0 0 30px var(--glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px var(--glow);
  background: #ff5555;
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--green);
  background: rgba(255, 45, 45, 0.05);
}

/* Hero visual — portrait + terminal */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
}

.portrait-frame {
  position: relative;
  width: min(340px, 80vw);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--green), var(--cyan), var(--green));
  box-shadow: 0 0 60px var(--glow), 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: fadeUp 0.7s 0.4s ease both;
  overflow: hidden;
}

.portrait-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(255, 45, 45, 0.2), transparent 70%);
  z-index: 0;
  animation: pulse 3s ease-in-out infinite;
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  background: #0a0a0a;
}

.portrait-badge {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--bg);
  background: var(--green);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 0 20px var(--glow);
  white-space: nowrap;
}

.hero-visual .terminal {
  width: 100%;
  max-width: 420px;
}

.hero-terminal { animation: fadeUp 0.7s 0.5s ease both; }

.terminal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 45, 45, 0.05);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
  flex: 1;
}

.terminal-status {
  font-size: 0.65rem;
  color: var(--green);
}

.terminal-body {
  padding: 1.25rem;
  font-size: 0.75rem;
  line-height: 1.9;
  min-height: 260px;
}

.terminal-body .line {
  opacity: 0;
  animation: termLine 0.35s ease forwards;
}

.terminal-body .line:nth-child(1) { animation-delay: 0.5s; }
.terminal-body .line:nth-child(2) { animation-delay: 0.75s; }
.terminal-body .line:nth-child(3) { animation-delay: 1s; }
.terminal-body .line:nth-child(4) { animation-delay: 1.25s; }
.terminal-body .line:nth-child(5) { animation-delay: 1.5s; }
.terminal-body .line:nth-child(6) { animation-delay: 1.75s; }
.terminal-body .line:nth-child(7) { animation-delay: 2s; }
.terminal-body .line:nth-child(8) { animation-delay: 2.25s; }

@keyframes termLine {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: translateX(0); }
}

.terminal-output { margin-top: 0.75rem; }

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-code {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.mouse {
  width: 20px;
  height: 32px;
  border: 2px solid var(--border);
  border-radius: 10px;
  position: relative;
}

.mouse::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  background: var(--green);
  border-radius: 2px;
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; top: 5px; }
  100% { opacity: 0; top: 14px; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Sections ─── */
section {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
}

.section-panel {
  border-top: 1px solid rgba(255, 45, 45, 0.06);
}

.glass-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: var(--border-hover);
}

.section-header { margin-bottom: 2.5rem; }

.section-tag {
  font-size: 0.72rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.section-num { color: var(--cyan); font-weight: 700; }

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-title::after {
  content: "()";
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.7em;
  margin-left: 0.35rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible,
.no-js .reveal {
  opacity: 1;
  transform: translateY(0);
}

/* ─── About ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.about-location {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--cyan);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0 1rem;
  align-items: center;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--green);
  transform: translateX(4px);
  box-shadow: -4px 0 0 var(--green);
}

.stat-icon {
  grid-row: span 2;
  font-size: 1.1rem;
  color: var(--green);
  opacity: 0.6;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}

.stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ─── Skills ─── */
.skills-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.skill-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.skill-category-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.skills-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.skill-category {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.skill-category:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.skill-category-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 0.85rem;
}

.skills-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--cyan);
}

.soft-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.soft-tag {
  font-size: 0.68rem;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 45, 45, 0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  transition: var(--transition);
}

.soft-tag:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
}

.skill-bar-item { margin-bottom: 1rem; }

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
}

.skill-bar-header span:last-child { color: var(--green); }

.skill-bar-track {
  height: 5px;
  background: rgba(255, 45, 45, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  width: 0;
  background: var(--gradient);
  border-radius: 999px;
  box-shadow: 0 0 10px var(--glow);
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-bar-item.animated .skill-bar-fill { width: var(--level); }

/* ─── Projects ─── */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.75rem;
}

.filter-btn {
  font-family: var(--font);
  font-size: 0.68rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(255, 45, 45, 0.08);
  border-color: var(--green);
  color: var(--green);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 45, 45, 0.08);
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border);
}

.browser-url {
  flex: 1;
  font-size: 0.6rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.3);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.project-card:hover .project-thumb img { transform: scale(1.04); }

.project-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 0, 0, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
  opacity: 0;
  transition: opacity var(--transition);
}

.project-card:hover .project-thumb-overlay { opacity: 1; }

.project-body { padding: 1.15rem; flex: 1; display: flex; flex-direction: column; }

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.project-client {
  font-size: 0.62rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-type {
  font-size: 0.58rem;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.project-name {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.project-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.55;
  flex: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.tech-badge {
  font-size: 0.58rem;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 45, 45, 0.06);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--green);
}

/* ─── Experience ─── */
.timeline {
  padding: 1.75rem 1.75rem 1.75rem 2.5rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 1.75rem;
  bottom: 1.75rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--green), var(--cyan), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-item::before {
  content: ">";
  position: absolute;
  left: -1.15rem;
  top: 0;
  color: var(--green);
  font-weight: 700;
}

.timeline-period {
  font-size: 0.68rem;
  color: var(--green);
  margin-bottom: 0.3rem;
}

.timeline-role {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.timeline-company {
  font-size: 0.78rem;
  color: var(--cyan);
  margin-bottom: 0.65rem;
}

.timeline-items li {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-left: 0.85rem;
  position: relative;
  margin-bottom: 0.3rem;
}

.timeline-items li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--green);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.info-block h3 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--cyan);
}

.info-block + .info-block { margin-top: 1.25rem; }

.edu-item, .lang-item {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.edu-item:last-child, .lang-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.edu-period, .lang-level {
  font-size: 0.65rem;
  color: var(--green);
}

.edu-degree, .lang-name {
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0.2rem 0;
}

.edu-school { font-size: 0.72rem; color: var(--text-muted); }

.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.interest-tag {
  font-size: 0.68rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  transition: var(--transition);
}

.interest-tag:hover {
  border-color: var(--green);
  color: var(--green);
}

/* ─── Contact ─── */
.contact-section {
  background: linear-gradient(180deg, transparent, rgba(255, 45, 45, 0.02));
}

.contact-box {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.contact-terminal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.contact-box p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.contact-actions .btn { justify-content: center; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.72rem;
}

.contact-info a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.contact-info a:hover { color: var(--green); }

/* ─── Footer ─── */
.footer {
  position: relative;
  z-index: 1;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.footer-code { color: var(--green); opacity: 0.6; }

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .skill-categories {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .skills-grid,
  .skill-categories,
  .skills-bottom,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual { order: -1; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(5, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .menu-toggle { display: flex; }

  .contact-actions .btn { font-size: 0.65rem; }
}

@media (max-width: 600px) {
  .hero-actions { flex-direction: column; }
  .projects-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
