:root {
  --bg: #0a0f14;
  --surface: #0f1720;
  --surface-2: #111d2a;
  --text: #e9f2ff;
  --muted: #9fb2c7;
  --line: #213448;
  --brand: #0ad1c8;
  --brand-2: #ff8e3c;
  --ok: #73e2a7;
  --danger: #ff6b6b;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 20%, rgba(10, 209, 200, 0.14), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(255, 142, 60, 0.16), transparent 25%),
    linear-gradient(180deg, #080c11, #09121a 40%, #0a1119);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.bg-orb {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.35;
}

.bg-orb-1 {
  width: 320px;
  height: 320px;
  background: #00d5cc;
  top: -60px;
  right: -100px;
  animation: drift 14s ease-in-out infinite;
}

.bg-orb-2 {
  width: 280px;
  height: 280px;
  background: #ff8e3c;
  left: -120px;
  top: 50vh;
  animation: drift 16s ease-in-out infinite reverse;
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-24px) translateX(16px);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(8, 12, 17, 0.65);
  border-bottom: 1px solid rgba(159, 178, 199, 0.15);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.logo {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.logo-mark {
  color: var(--brand);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.02);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.lang-btn.active {
  background: rgba(10, 209, 200, 0.22);
  color: var(--text);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
}

.nav-links {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 16px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--text);
}

.hero {
  padding: 90px 0 48px;
}

.eyebrow {
  margin: 0;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
}

.hero h1 {
  margin-top: 14px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  max-width: 16ch;
}

.hero-accent {
  font-family: "DM Serif Display", Georgia, serif;
  font-style: italic;
  color: var(--brand-2);
}

.hero-lead {
  margin-top: 16px;
  color: var(--muted);
  max-width: 65ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--brand), #14e9df);
  color: #042b2f;
  box-shadow: 0 10px 24px rgba(10, 209, 200, 0.26);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.hero-metrics {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-metrics li {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

.hero-metrics strong {
  display: block;
  font-size: 1.45rem;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 62px 0;
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}

.about-grid p {
  margin: 0;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 255, 255, 0.01);
}

.skill-chips {
  list-style: none;
  padding: 16px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
  background: rgba(255, 255, 255, 0.01);
}

.skill-chips li {
  border: 1px solid rgba(10, 209, 200, 0.35);
  color: #b9fff9;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.projects-groups {
  display: grid;
  gap: 26px;
}

.project-group {
  display: grid;
  gap: 12px;
}

.project-group-title {
  margin: 0;
  font-size: clamp(1.2rem, 2.3vw, 1.6rem);
}

.projects-grid,
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.domains-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.project-card,
.result-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  box-shadow: var(--shadow);
}

.project-card {
  display: flex;
  flex-direction: column;
}

.spacer {
  flex: 1;
}

.domain-card {
  border: 1px solid rgba(10, 209, 200, 0.35);
  border-radius: var(--radius);
  padding: 14px;
  background: linear-gradient(155deg, rgba(10, 209, 200, 0.09), rgba(255, 142, 60, 0.08));
}

.domain-card h3 {
  font-size: 1.02rem;
}

.project-card h3,
.result-card h3 {
  font-size: 1.2rem;
}

.project-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.project-role {
  margin: 10px 0 0;
  color: #d3e3f3;
  font-size: 0.92rem;
}

.project-role strong {
  color: #f5fbff;
}

.project-points {
  margin: 12px 0 0;
  padding-left: 16px;
  color: var(--muted);
}

.project-links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.project-link {
  display: inline-block;
  color: #b9fff9;
  text-decoration: none;
  border-bottom: 1px dashed rgba(185, 255, 249, 0.5);
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 24px;
  background: linear-gradient(135deg, rgba(10, 209, 200, 0.09), rgba(255, 142, 60, 0.08));
}

.contact-card p {
  margin: 12px 0 0;
  color: #d8e8f7;
}

.contact-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer {
  border-top: 1px solid rgba(159, 178, 199, 0.2);
  padding: 24px 0 34px;
  color: var(--muted);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .projects-grid,
  .results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .domains-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .lang-switch {
    order: 2;
  }

  .nav-links {
    position: absolute;
    top: 62px;
    right: 4vw;
    width: min(260px, 90vw);
    flex-direction: column;
    background: #0b131c;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding-top: 68px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

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

  .domains-grid {
    grid-template-columns: 1fr;
  }
}
