/* =============================================
   VARIABLES & RESET
   ============================================= */
:root {
  --bg:        #080b12;
  --bg-alt:    #0d1117;
  --surface:   #111827;
  --card:      #161d2d;
  --border:    #1e2d45;
  --accent:    #00c8e0;
  --accent2:   #f0a500;
  --text:      #e2e8f0;
  --text-muted:#7a8ba0;
  --text-dim:  #3d5068;
  --font:      'Inter', system-ui, sans-serif;
  --mono:      'JetBrains Mono', monospace;
  --radius:    12px;
  --radius-sm: 6px;
  --shadow:    0 4px 24px rgba(0,0,0,.45);
  --glow:      0 0 20px rgba(0,200,224,.15);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

p, h1, h2, h3, li, a, span { overflow-wrap: break-word; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #40d8ee; }

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--accent); }
.mono   { font-family: var(--mono); font-size: .88em; color: var(--accent); }

section {
  padding: 96px 0;
}

section:nth-child(even) {
  background: var(--bg-alt);
}

/* =============================================
   SECTION TITLES
   ============================================= */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 56px;
  position: relative;
  padding-bottom: 16px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 48px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* =============================================
   LANGUAGE GATE
   ============================================= */
html.lang-gate-active body {
  overflow: hidden;
}

.lang-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease;
}

.lang-gate::before {
  content: '';
  position: absolute;
  top: -200px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,200,224,.08) 0%, transparent 65%);
  pointer-events: none;
}

html.lang-gate-active .lang-gate {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lang-gate-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
  width: 100%;
  max-width: 420px;
  flex: 0 1 auto;
}

.lang-gate-inner .nav-logo {
  font-size: 1.8rem;
}

.lang-gate-title {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.6;
}

.lang-gate-buttons {
  display: flex;
  gap: 16px;
  width: 100%;
}

.lang-gate-btn {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.lang-gate-btn:hover,
.lang-gate-btn:focus-visible {
  border-color: rgba(0,200,224,.5);
  transform: translateY(-2px);
  box-shadow: var(--glow);
  outline: none;
}

.lang-gate-code {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.lang-gate-name {
  font-size: .9rem;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .lang-gate-buttons {
    flex-direction: column;
  }
}

/* =============================================
   NAVBAR
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s, backdrop-filter .3s, box-shadow .3s;
  padding: 0 24px;
}
#navbar.scrolled {
  background: rgba(8,11,18,.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-right: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}
.nav-links a {
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  min-width: 44px;
  height: 36px;
  padding: 0 12px;
  background: rgba(0,200,224,.08);
  border: 1px solid rgba(0,200,224,.3);
  color: var(--accent);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  background: rgba(0,200,224,.16);
  border-color: rgba(0,200,224,.55);
  color: #40d8ee;
  outline: none;
}

.btn-nav {
  padding: 8px 20px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 500;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.btn-nav:hover {
  background: var(--accent);
  color: var(--bg);
}

/* =============================================
   HERO
   ============================================= */
#hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 24px 48px;
  background: var(--bg);
  overflow: hidden;
  position: relative;
}

#hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,200,224,.07) 0%, transparent 65%);
  pointer-events: none;
}
#hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(240,165,0,.05) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  width: 100%;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--accent);
  font-family: var(--mono);
  margin-bottom: 20px;
  background: rgba(0,200,224,.08);
  border: 1px solid rgba(0,200,224,.2);
  padding: 6px 14px;
  border-radius: 100px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.8); }
}

#hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: 0;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-role {
  color: var(--text);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 600;
  margin-bottom: 6px;
}

.hero-stack {
  color: var(--accent);
  font-family: var(--mono);
  font-size: .9rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 14px 32px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  transition: opacity .2s, transform .2s;
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); color: var(--bg); }

.btn-ghost {
  padding: 14px 32px;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  transition: border-color .2s, transform .2s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

/* Photo */
.hero-photo-wrap {
  flex-shrink: 0;
  position: relative;
  width: 280px; height: 280px;
}
.photo-fallback {
  display: none;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--border);
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0;
  box-shadow: var(--glow);
}
.photo-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(0,200,224,.3);
  animation: spin 20s linear infinite;
}
.photo-ring::before {
  content: '';
  position: absolute;
  top: -3px; left: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-photo {
  width: 280px; height: 280px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--border);
  box-shadow: var(--glow);
}

.photo-badge {
  position: absolute;
  bottom: 12px; right: -16px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .78rem;
  font-family: var(--mono);
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow);
}
.badge-icon { color: var(--accent2); }

/* =============================================
   ABOUT
   ============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
}
.about-text strong { color: var(--text); }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.tag {
  padding: 6px 14px;
  background: rgba(0,200,224,.07);
  border: 1px solid rgba(0,200,224,.15);
  color: var(--accent);
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 500;
  font-family: var(--mono);
}

.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.info-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.info-list li:last-child { border-bottom: none; padding-bottom: 0; }
.info-label {
  font-size: .72rem;
  font-family: var(--mono);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.info-list span, .info-list a {
  font-size: .9rem;
  color: var(--text);
}

/* =============================================
   EXPERIENCE / TIMELINE
   ============================================= */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 7px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.tl-item {
  position: relative;
  margin-bottom: 48px;
}
.tl-item:last-child { margin-bottom: 0; }

.tl-dot {
  position: absolute;
  left: -29px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 8px rgba(0,200,224,.4);
}

.tl-date {
  font-size: .78rem;
  font-family: var(--mono);
  color: var(--accent2);
  margin-bottom: 10px;
}

.tl-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s, box-shadow .2s;
}
.tl-card:hover {
  border-color: rgba(0,200,224,.3);
  box-shadow: var(--glow);
}

.tl-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.tl-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
}
.tl-company {
  font-size: .82rem;
  font-family: var(--mono);
  color: var(--accent);
}

.tl-card p {
  color: var(--text-muted);
  font-size: .92rem;
  margin-bottom: 16px;
}
.tl-card p strong { color: var(--text); }

.tl-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 18px;
}

.tl-points li {
  position: relative;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.65;
}

.tl-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent2);
}

.tl-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tl-techs span {
  padding: 3px 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: .75rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

/* =============================================
   PROJECTS
   ============================================= */
.section-heading {
  margin-bottom: 56px;
}

.section-heading .section-title {
  margin-bottom: 12px;
}

.section-subtitle {
  max-width: 680px;
  color: var(--text-muted);
  font-size: .98rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(280px, .95fr) minmax(0, 1.25fr);
  gap: 28px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s, box-shadow .2s;
}

.project-card:hover {
  border-color: rgba(0,200,224,.3);
  box-shadow: var(--glow);
}

.project-figure {
  display: block;
  background: rgba(8,11,18,.5);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-sm);
  padding: 12px;
  overflow: hidden;
}

.project-figure img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  border-radius: 4px;
}

.project-content {
  min-width: 0;
}

.project-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0,200,224,.08);
  border: 1px solid rgba(0,200,224,.2);
  color: var(--accent);
  font-size: .72rem;
  font-family: var(--mono);
}

.project-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.project-content p {
  color: var(--text-muted);
  font-size: .92rem;
  margin-bottom: 18px;
}

.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-techs span {
  padding: 4px 10px;
  background: rgba(0,200,224,.06);
  border: 1px solid rgba(0,200,224,.15);
  color: var(--accent);
  border-radius: 4px;
  font-size: .75rem;
  font-family: var(--mono);
}

.project-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.project-highlights li {
  position: relative;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.6;
}

.project-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent2);
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.project-metric {
  background: rgba(255,255,255,.035);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  min-width: 0;
}

.project-metric-value {
  display: block;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}

.project-metric-label {
  display: block;
  color: var(--text-muted);
  font-size: .72rem;
  line-height: 1.35;
}

.project-note {
  padding: 12px 14px;
  background: rgba(240,165,0,.06);
  border: 1px solid rgba(240,165,0,.16);
  border-radius: var(--radius-sm);
  font-size: .82rem !important;
  line-height: 1.55;
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .85rem;
  font-weight: 600;
  transition: border-color .2s, background .2s, color .2s;
}

.project-cta:hover {
  border-color: rgba(0,200,224,.4);
  color: var(--accent);
}

.project-cta--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.project-cta--primary:hover {
  background: #40d8ee;
  color: var(--bg);
}

/* =============================================
   SKILLS
   ============================================= */
.skills-cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.skill-cat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .2s;
}
.skill-cat:hover { border-color: rgba(0,200,224,.25); }
.skill-cat--featured {
  grid-column: 1 / -1;
  border-color: rgba(0,200,224,.28);
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.skill-cat-icon {
  color: var(--accent2);
  flex-shrink: 0;
  display: flex;
}
.skill-cat-title {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sbadge {
  padding: 5px 12px;
  background: rgba(0,200,224,.06);
  border: 1px solid rgba(0,200,224,.18);
  color: var(--accent);
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background .2s, border-color .2s;
}
.sbadge:hover {
  background: rgba(0,200,224,.14);
  border-color: rgba(0,200,224,.35);
}

/* =============================================
   EDUCATION & CREDENTIALS
   ============================================= */
.education-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 40px;
}

.education-main {
  flex: 1;
  min-width: 0;
}

.education-main h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.education-main h4 {
  font-size: .98rem;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 6px;
}

.education-main p {
  color: var(--text-muted);
  font-size: .9rem;
  margin-top: 10px;
}

.education-meta {
  color: var(--accent) !important;
  font-family: var(--mono);
  font-size: .78rem !important;
  margin-top: 0 !important;
}

.education-link {
  flex-shrink: 0;
  padding: 10px 16px;
  border: 1px solid rgba(0,200,224,.25);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s, border-color .2s;
}

.education-link:hover {
  background: rgba(0,200,224,.08);
  border-color: rgba(0,200,224,.45);
}

.credentials-block {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.subsection-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.credential-groups {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.credential-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.credential-group-label {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.credential-group--secondary .cred-card {
  border-color: rgba(240,165,0,.18);
}

/* =============================================
   INFO BADGES
   ============================================= */
.info-badge-mobility {
  display: inline-block;
  font-size: .8rem;
  color: var(--accent);
  background: rgba(0,200,224,.08);
  border: 1px solid rgba(0,200,224,.2);
  padding: 2px 10px;
  border-radius: 100px;
  font-weight: 500;
}

/* =============================================
   CREDENTIAL CARDS
   ============================================= */
.creds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.cred-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--text);
  transition: border-color .2s, transform .2s, box-shadow .2s;
  cursor: pointer;
}
.cred-card:hover {
  border-color: rgba(0,200,224,.35);
  transform: translateY(-2px);
  box-shadow: var(--glow);
  color: var(--text);
}
.cred-card--no-dl {
  cursor: default;
}
.cred-card--no-dl:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}

.cred-icon {
  flex-shrink: 0;
  color: var(--accent2);
  display: flex;
}

.cred-body { flex: 1; min-width: 0; }
.cred-label {
  font-size: .68rem;
  font-family: var(--mono);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  display: block;
  margin-bottom: 2px;
}
.cred-body h4 {
  font-size: .88rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  margin-bottom: 1px;
}
.cred-body p {
  font-size: .75rem;
  color: var(--text-muted);
}

.cred-status {
  flex-shrink: 0;
  font-size: .7rem;
  font-family: var(--mono);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(0,200,224,.1);
  color: var(--accent);
  border: 1px solid rgba(0,200,224,.2);
}

/* =============================================
   CONTACT
   ============================================= */
#contact { text-align: center; }
#contact .section-title::after { left: 50%; transform: translateX(-50%); }

.contact-sub {
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 1rem;
}

.contact-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 28px;
  color: var(--text);
  transition: border-color .2s, transform .2s;
  min-width: 220px;
}
.contact-card:hover {
  border-color: rgba(0,200,224,.35);
  transform: translateY(-3px);
  color: var(--text);
}
.cc-icon {
  color: var(--accent);
  flex-shrink: 0;
}
.cc-label {
  font-size: .72rem;
  font-family: var(--mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 2px;
}
.cc-value {
  font-size: .9rem;
  font-weight: 500;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
footer p {
  color: var(--text-muted);
  font-size: .85rem;
}
.footer-copy {
  color: var(--text-dim) !important;
  font-size: .75rem !important;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .project-card {
    grid-template-columns: 1fr;
  }
  .project-figure img {
    max-height: none;
  }
  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero-tag { justify-content: center; }
  .hero-ctas { justify-content: center; }
  .hero-photo-wrap {
    width: 200px; height: 200px;
  }
  .hero-photo {
    width: 200px; height: 200px;
  }
  .photo-badge { right: -8px; }
  .tl-header {
    flex-direction: column;
    gap: 4px;
  }
  .education-card {
    flex-direction: column;
  }
  .education-link {
    align-self: flex-start;
  }
}

@media (max-width: 640px) {
  #navbar {
    padding: 0 16px;
    background: rgba(8,11,18,.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--border);
  }
  .nav-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 12px;
    height: auto;
    padding: 10px 0 8px;
  }
  .nav-logo { margin-right: 0; }
  .nav-actions {
    gap: 8px;
  }
  .lang-toggle {
    height: 34px;
    min-width: 40px;
    padding: 0 10px;
    font-size: .74rem;
  }
  .nav-links {
    order: 3;
    display: flex;
    gap: 18px;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .nav-links a {
    font-size: .78rem;
    white-space: nowrap;
  }
  .btn-nav {
    padding: 7px 12px;
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .78rem;
  }
  section { padding: 64px 0; }
  #hero {
    min-height: auto;
    padding: 128px 20px 56px;
  }
  #hero h1 { font-size: clamp(2.25rem, 11vw, 2.7rem); }
  .hero-inner { gap: 36px; }
  .hero-text { width: 100%; }
  .hero-tag {
    max-width: 100%;
    white-space: normal;
    justify-content: center;
    line-height: 1.45;
  }
  .hero-subtitle { font-size: .95rem; }
  .hero-ctas { width: 100%; }
  .btn-primary,
  .btn-ghost { flex: 1 1 140px; padding: 14px 18px; text-align: center; }
  .photo-badge { right: 50%; transform: translateX(50%); }
  .project-card { padding: 20px; }
  .project-metrics { grid-template-columns: 1fr; }
  .project-actions { align-items: stretch; }
  .project-cta { width: 100%; }
  .skills-cats { grid-template-columns: 1fr; }
  .creds-grid { grid-template-columns: 1fr; }
  .contact-cards { flex-direction: column; align-items: center; }
  .contact-card { width: 100%; max-width: 360px; }
}
