:root {
  --tf-bg: #0b1020;
  --tf-bg-soft: #121933;
  --tf-surface: rgba(255, 255, 255, 0.08);
  --tf-surface-strong: rgba(255, 255, 255, 0.12);
  --tf-border: rgba(255, 255, 255, 0.12);
  --tf-text: #edf2ff;
  --tf-muted: #b5c0e0;
  --tf-primary: #7c9cff;
  --tf-primary-strong: #5f82ff;
  --tf-accent: #7ee7ff;
  --tf-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  --tf-radius-xl: 28px;
  --tf-radius-lg: 22px;
  --tf-radius-md: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 156, 255, 0.28), transparent 30%),
    radial-gradient(circle at top right, rgba(126, 231, 255, 0.16), transparent 28%),
    linear-gradient(180deg, #09101f 0%, #0b1020 100%);
  color: var(--tf-text);
  min-height: 100vh;
}

a { color: inherit; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1050;
  padding: 0.75rem 1rem;
  background: white;
  color: #0b1020;
  border-radius: 12px;
}
.main-shell { min-height: calc(100vh - 140px); }
.tf-navbar {
  background: rgba(8, 12, 26, 0.76);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--tf-primary), var(--tf-accent));
  color: #08101d;
  font-weight: 800;
}
.brand-name-wrap {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name { font-size: 1rem; }
.brand-domain {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.66);
  font-weight: 500;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}
.lang-option {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.92rem;
}
.lang-option.active {
  background: rgba(124, 156, 255, 0.20);
  color: white;
}
.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
}
.nav-link:hover { color: #ffffff !important; }
.nav-cta {
  background: rgba(124, 156, 255, 0.18);
  border: 1px solid rgba(124, 156, 255, 0.35);
  padding: 0.6rem 1rem !important;
  border-radius: 14px;
}
.hero-section, .page-hero { padding: 5rem 0 2rem; }
.page-hero.compact { padding-bottom: 0; }
.hero-chip, .eyebrow, .discipline-kicker, .section-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(126, 231, 255, 0.12);
  border: 1px solid rgba(126, 231, 255, 0.22);
  color: var(--tf-accent);
  font-size: 0.9rem;
}
.hero-title, .page-hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 1rem 0;
}
.hero-subtitle, .page-hero p, .section-heading p, .tf-card p, .footer-text {
  color: var(--tf-muted);
  font-size: 1.02rem;
}
.hero-card, .tf-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-xl);
  box-shadow: var(--tf-shadow);
}
.hero-card, .tf-card { padding: 1.5rem; }
.hero-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.metric-box {
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.metric-value {
  font-size: 1.8rem;
  font-weight: 800;
}
.small-metric { font-size: 1.6rem; }
.metric-label { color: var(--tf-muted); margin-top: 0.3rem; }
.section-block { padding: 2.5rem 0 4rem; }
.section-heading { margin-bottom: 1.25rem; }
.section-heading h2, .tf-card h3 { font-weight: 700; }
.tf-card {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.tf-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 156, 255, 0.35);
}
.tf-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--tf-accent);
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(124, 156, 255, 0.14);
  border: 1px solid rgba(124, 156, 255, 0.28);
  color: #dbe6ff;
  font-size: 0.92rem;
}
.repo-stars { color: #ffe28a; font-weight: 700; white-space: nowrap; }
.repo-action {
  color: var(--tf-accent);
  font-weight: 600;
  font-size: 0.96rem;
}
.tf-btn-primary, .tf-btn-secondary, .tf-btn-outline {
  border-radius: 16px;
  padding: 0.9rem 1.35rem;
  font-weight: 700;
}
.tf-btn-primary {
  background: linear-gradient(135deg, var(--tf-primary), var(--tf-primary-strong));
  border: none;
}
.tf-btn-secondary { color: #0b1020; }
.tf-btn-outline { border-color: rgba(255,255,255,0.4); }
.resume-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.resume-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--tf-text);
}
.resume-list-item .material-symbols-outlined { color: var(--tf-accent); }
.compact-list .resume-list-item { gap: 0.65rem; }
.timeline-period {
  color: var(--tf-accent);
  font-size: 0.92rem;
  font-weight: 600;
}
.muted-inline { color: var(--tf-muted); }
.action-card, .discipline-card, .repo-card, .stat-card { height: 100%; }
.form-control {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: white;
  border-radius: 14px;
  padding: 0.85rem 1rem;
}
.form-control::placeholder { color: rgba(255, 255, 255, 0.45); }
.form-control:focus {
  background: rgba(255, 255, 255, 0.10);
  color: white;
  border-color: rgba(126, 231, 255, 0.48);
  box-shadow: 0 0 0 0.25rem rgba(126, 231, 255, 0.12);
}
.tf-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 26, 0.45);
}
.footer-grid {
  padding: 1.25rem 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 1.25rem;
  align-items: start;
}
.footer-title { font-weight: 700; margin-bottom: 0.35rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}
.footer-links a {
  color: rgba(255,255,255,0.80);
  text-decoration: none;
}
.footer-links a:hover { color: #fff; }
.footer-meta {
  color: rgba(255,255,255,0.56);
  font-size: 0.92rem;
  text-align: right;
}
@media (max-width: 991px) {
  .hero-section { padding-top: 3.5rem; }
  .hero-card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
}
@media (max-width: 575px) {
  .hero-title, .page-hero h1 { font-size: 2.2rem; }
  .tf-card, .hero-card { border-radius: 22px; }
  .lang-option span:last-child { display: none; }
}
