/* CV Website styles */

/* ── Fonts ── self-hosted (fonts/), so visitors' browsers never contact Google */
/* Inter, latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter, latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Space Grotesk, latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Space Grotesk, latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Variables ── */
:root {
  --bg: #0d1117;
  --bg-alt: #0a0e14;
  --card: #161b22;
  --card-hover: #1c2330;
  --border: #21262d;
  --teal: #2dd4bf;
  --teal-glow: rgba(45, 212, 191, 0.15);
  --teal-dim: rgba(45, 212, 191, 0.6);
  --white: #f0f6fc;
  --muted: #8b949e;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-w: 1100px;
  --radius: 12px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(3rem, 8vw, 6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal); margin-bottom: 1rem; }
p { color: var(--muted); }

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title { margin-bottom: 3rem; }

/* ── Navbar ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 0;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--teal);
  letter-spacing: 0.05em;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  padding: 0.45rem 1.2rem;
  background: var(--teal);
  color: #0d1117;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius);
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: #5eead4;
  transform: translateY(-1px);
}
.nav-right { display: flex; align-items: center; gap: 1.25rem; }

/* Language switcher — SVG flags, because Windows renders flag emoji as letters */
.lang-switch { list-style: none; display: flex; align-items: center; gap: 0.35rem; }
.lang-switch a {
  display: block;
  padding: 0.3rem 0.2rem;
  border-bottom: 2px solid transparent;
  opacity: 0.45;
  transition: opacity 0.2s, border-color 0.2s;
}
.lang-switch a:hover,
.lang-switch a:focus-visible { opacity: 1; }
.lang-switch a[aria-current="page"] { opacity: 1; border-bottom-color: var(--teal); }
.flag {
  width: 21px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(240, 246, 252, 0.15);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
}
@media (max-width: 400px) {
  .nav-right { gap: 0.75rem; }
  .nav-cta { padding: 0.45rem 0.9rem; }
}

/* ── Hero ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

/* Animated dot-grid background */
.hero-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, #21262d 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
  animation: bgShift 20s linear infinite;
}
@keyframes bgShift {
  0% { background-position: 0 0; }
  100% { background-position: 32px 32px; }
}

/* Teal glow orb */
.glow-orb {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(45,212,191,0.12) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
  animation: orbPulse 6s ease-in-out infinite;
}
@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

.hero-content {
  position: relative; z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 4rem;
}
.hero-photo {
  flex-shrink: 0;
}
.hero-photo img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--teal);
  box-shadow: 0 0 40px rgba(45,212,191,0.25), 0 0 80px rgba(45,212,191,0.1);
}
.hero-text {
  flex: 1;
}
@media (max-width: 768px) {
  .hero-content { flex-direction: column; gap: 2rem; text-align: center; }
  .hero-photo img { width: 160px; height: 160px; }
  .hero-tagline { max-width: 100%; }
  .hero-cta { justify-content: center; }
}
.hero-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--teal);
  margin-bottom: 1rem;
}
h1 .teal {
  color: var(--teal);
  text-shadow: 0 0 40px rgba(45,212,191,0.4);
}
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--white);
  margin: 1.5rem 0 1rem;
  font-weight: 600;
}
.hero-sub {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.8em;
  font-weight: 500;
  color: var(--muted);
}
.hero-tagline {
  max-width: 560px;
  font-size: 1rem;
  margin-bottom: 2.5rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--teal);
  color: #0d1117;
  font-family: var(--font-head);
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s;
  font-size: 0.95rem;
}
.btn-primary:hover {
  background: #5eead4;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45,212,191,0.3);
}
.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s;
  font-size: 0.95rem;
}
.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}

/* ── Cards grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
/* Four cards read as a deliberate 2×2 rather than an orphaned 3 + 1 */
@media (min-width: 720px) {
  .cards-grid--2up { grid-template-columns: repeat(2, 1fr); }
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s;
}
.card:hover {
  border-color: var(--teal-dim);
  background: var(--card-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(45,212,191,0.08);
}
.card-icon {
  font-size: 1.8rem;
  color: var(--teal);
  margin-bottom: 1rem;
}
.card h3 { color: var(--white); }
.card-muted { opacity: 0.5; }
.card-muted:hover { opacity: 0.7; transform: none; box-shadow: none; }
.project-banner {
  display: block;
  max-width: 100%;
  width: auto;
  margin: 0 0 1.5rem 0;
  border-radius: 6px;
  image-rendering: -webkit-optimize-contrast;
}
.project-card .tech-tags { margin-top: 1.25rem; }

/* Project description — one-line lead, then the highlights as a scannable grid */
.project-lead {
  font-family: var(--font-head);
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--white);
  max-width: 62ch;
}
.project-points {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 2.5rem;
  max-width: 900px;
  margin: 1.5rem 0 0;
  padding: 0;
}
.project-points li {
  padding-left: 0.9rem;
  border-left: 2px solid var(--teal-dim);
}
.project-points strong {
  display: block;
  font-family: var(--font-head);
  color: var(--white);
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}
.project-points span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
@media (max-width: 700px) {
  .project-points { grid-template-columns: 1fr; }
}

/* Screenshot slot — the thing LinkedIn can't show */
.project-shot { margin: 1.5rem 0 0; }
.project-shot img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-alt);
  transition: border-color 0.3s;
}
.project-card:hover .project-shot img { border-color: var(--teal-dim); }
.project-shot figcaption {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Featured project — full row, with videos and a screenshot strip */
.project-card--featured { grid-column: 1 / -1; }
.project-card--featured > p { max-width: 760px; }
.project-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.project-media .project-shot { margin: 0; }
/* Video thumbnail: poster + play button, opens in the lightbox */
.media-thumb {
  position: relative;
  display: block;
  border-radius: 8px;
}
.media-thumb img { display: block; }
.media-thumb--video::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    no-repeat 55% 50% / 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M0 0l10 6-10 6z' fill='%230d1117'/%3E%3C/svg%3E"),
    var(--teal);
  box-shadow: 0 0 0 8px var(--teal-glow);
  transition: transform 0.3s;
}
.media-thumb--video:hover::after,
.media-thumb--video:focus-visible::after { transform: scale(1.08); }
.media-thumb:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(1, 4, 9, 0.92);
  backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lb-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.lb-media img,
.lb-media video {
  display: block;
  /* never larger than the file's own size, so it stays sharp on big screens */
  max-width: min(100%, 86vw);
  max-height: 82vh;
  width: auto;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-alt);
}
.lb-caption {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  white-space: pre-wrap;
}
.lb-btn {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.lb-btn:hover,
.lb-btn:focus-visible { border-color: var(--teal); color: var(--teal); outline: none; }
.lb-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.1rem;
}
@media (max-width: 600px) {
  .lightbox { padding: 4.5rem 0.75rem; }
  .lb-prev, .lb-next { position: absolute; bottom: 1rem; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .lb-media img, .lb-media video { max-width: 100%; max-height: 70vh; }
}
.project-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}
/* Predictor has 7 shots: 4 + 3 reads better than 5 + 2 */
.project-gallery--four { grid-template-columns: repeat(4, 1fr); }
.project-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.3s;
}
.project-gallery a:hover img,
.project-gallery a:focus-visible img { border-color: var(--teal); }
.project-note {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: var(--muted);
}
@media (max-width: 900px) {
  .project-gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .project-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* Section lead paragraph */
.section-lead {
  margin: -1.75rem 0 2.5rem;
  max-width: 640px;
  font-size: 0.95rem;
}

/* AI strip */
.ai-strip {
  text-align: center;
  color: var(--teal);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 1rem;
  border: 1px dashed rgba(45,212,191,0.3);
  border-radius: var(--radius);
}

/* ── About ── */
.about-grid { max-width: 860px; }
.about-text > p { margin-bottom: 1.5rem; }
.about-lead {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--white);
  border-left: 2px solid var(--teal);
  padding-left: 1.5rem;
}
.about-badges { display: flex; flex-direction: column; gap: 1rem; }
.ai-badge {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
}
.badge-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.ai-badge strong { color: var(--white); display: block; margin-bottom: 0.25rem; }
.ai-badge p { margin: 0; font-size: 0.9rem; }

/* ── Tech tags ── */
.tech-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tech-tags span, .tags span {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: rgba(45,212,191,0.08);
  border: 1px solid rgba(45,212,191,0.2);
  border-radius: 999px;
  color: var(--teal);
  font-family: var(--font-head);
  font-weight: 500;
}

/* ── Timeline ── */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--teal), rgba(45,212,191,0.1));
}
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--teal);
  box-shadow: 0 0 12px rgba(45,212,191,0.5);
}
.timeline-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  transition: border-color 0.3s;
  position: relative;
}
.timeline-card:hover { border-color: var(--teal-dim); }
.timeline-card.active { border-color: rgba(45,212,191,0.4); }
.timeline-period {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  font-family: var(--font-head);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}
.timeline-card h3 { color: var(--white); margin-bottom: 0.25rem; }
.timeline-area { margin-bottom: 1rem; }
.timeline-bullets {
  list-style: none;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.timeline-bullets li {
  font-size: 0.875rem;
  color: var(--muted);
  padding-left: 1rem;
  position: relative;
}
.timeline-bullets li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}
.badge-current {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  background: rgba(45,212,191,0.15);
  color: var(--teal);
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Employer group header */
.tl-employer {
  position: relative;
  margin: 3rem 0 1.5rem;
}
.tl-employer:first-child { margin-top: 0; }
.tl-employer h3 {
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 0.15rem;
}
.tl-employer p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  font-family: var(--font-head);
  font-weight: 500;
}
.tl-employer-dot {
  position: absolute;
  left: -2.62rem;
  top: 9px;
  width: 18px; height: 18px;
  border-radius: 4px;
  background: var(--teal);
  transform: rotate(45deg);
  box-shadow: 0 0 16px rgba(45,212,191,0.6);
}

/* Compact cards for earlier roles */
.timeline-card.compact { padding: 1.15rem 1.5rem; }
.timeline-card.compact h3 { font-size: 1.02rem; }
.timeline-card.compact .timeline-area { margin-bottom: 0.5rem; font-size: 0.85rem; }
.timeline-card.compact .timeline-bullets { margin-top: 0.5rem; }
.timeline-card.compact .tech-tags { margin-top: 0.75rem; }

@media (min-width: 768px) {
  .timeline { padding-left: 3rem; }
  .timeline-card { max-width: 600px; }
  /* keep both dot types centred on the rail at the wider padding */
  .timeline-dot { left: -3.5rem; }
  .tl-employer-dot { left: -3.62rem; }
}

/* ── Education ── */
.education { margin-top: 4rem; }
.edu-card {
  display: flex;
  gap: 2rem;
  align-items: baseline;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  max-width: 600px;
}
.edu-year {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--teal);
  white-space: nowrap;
}
.edu-card h3 { color: var(--white); font-size: 1.05rem; }
.edu-card p { font-size: 0.875rem; margin: 0; }

@media (max-width: 600px) {
  .edu-card { flex-direction: column; gap: 0.5rem; padding: 1.25rem 1.5rem; }
}

/* ── Certifications ── */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.cert-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  transition: all 0.3s;
}
.cert-card:hover {
  border-color: var(--teal-dim);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(45,212,191,0.08);
}
.cert-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--teal);
  background: rgba(45,212,191,0.1);
  border: 1px solid rgba(45,212,191,0.25);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.cert-info h3 { color: var(--white); font-size: 1rem; }
.cert-info p { font-size: 0.85rem; }
.cert-arrow { margin-left: auto; color: var(--teal); font-size: 1.2rem; flex-shrink: 0; }

/* ── Skills ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ── Languages ── */
.languages h4 { margin-bottom: 1.5rem; }
.lang-list { display: flex; flex-direction: column; gap: 1rem; max-width: 560px; }
.lang-item {
  display: grid;
  grid-template-columns: 2rem 120px 1fr 140px;
  align-items: center;
  gap: 1rem;
}
.lang-flag { width: 24px; height: 16px; }
.lang-name { color: var(--white); font-family: var(--font-head); font-weight: 500; font-size: 0.95rem; }
.lang-bar {
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.lang-fill {
  height: 100%;
  background: linear-gradient(to right, var(--teal), #5eead4);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s ease 0.3s;
}
.lang-fill.animated { transform: scaleX(1); }
.lang-level { font-size: 0.8rem; color: var(--muted); text-align: right; }

@media (max-width: 600px) {
  .lang-item { grid-template-columns: 2rem 1fr auto; }
  .lang-bar { display: none; }
  .lang-level { font-size: 0.75rem; }
}

/* ── Contact ── */
.contact-wrap { text-align: center; }
.contact-sub { font-size: 1.1rem; margin: 0.75rem 0 2rem; }
.contact-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.contact-meta {
  margin-top: 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .section { padding: 4rem 0; }
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; }
  .cards-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .cert-card { flex-direction: column; text-align: center; }
  .cert-arrow { display: none; }
  .skills-grid { grid-template-columns: 1fr; }
}
