:root {
  --bg: #07131f;
  --bg-soft: #0b1d2f;
  --card: rgba(8, 26, 41, 0.86);
  --text: #eef6ff;
  --muted: #b8c8da;
  --hero-role: #e8f3ff;
  --hero-vibe: #d7f8f2;
  --hero-owner: #ffe4c3;
  --accent: #00d4b8;
  --accent-2: #ff9f43;
  --line: rgba(172, 203, 233, 0.22);
  --spot-1: rgba(0, 212, 184, 0.18);
  --spot-2: rgba(255, 159, 67, 0.18);
  --grid-line: rgba(255, 255, 255, 0.02);
  --project-name: #dff8ff;
  --period: #b6dbff;
  --company: #d6e9ff;
  --contact-label: #c3d7eb;
  --footer: #afc1d5;
  --static-action: #9fb2c6;
  --surface-1: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.03);
  --surface-3: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(2, 20, 33, 0.65);
  --chip-text: #e8f5ff;
  --btn-primary-text: #042122;
  --btn-primary-end: #67f3de;
  --timeline-line: rgba(0, 212, 184, 0.45);
  --hover-accent-border: rgba(0, 212, 184, 0.65);
  --hover-accent-bg: rgba(0, 212, 184, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

:root[data-theme="light"] {
  --bg: #eaf2fb;
  --bg-soft: #dbe7f5;
  --card: rgba(255, 255, 255, 0.9);
  --text: #0f2338;
  --muted: #4f6378;
  --hero-role: #1d3550;
  --hero-vibe: #204663;
  --hero-owner: #734924;
  --line: rgba(20, 55, 88, 0.2);
  --spot-1: rgba(0, 145, 126, 0.14);
  --spot-2: rgba(224, 131, 44, 0.16);
  --grid-line: rgba(19, 40, 61, 0.05);
  --project-name: #133250;
  --period: #2f5678;
  --company: #1e3c57;
  --contact-label: #45607b;
  --footer: #4d6277;
  --static-action: #56718d;
  --surface-1: rgba(255, 255, 255, 0.72);
  --surface-2: rgba(255, 255, 255, 0.86);
  --surface-3: rgba(255, 255, 255, 0.92);
  --surface-strong: rgba(255, 255, 255, 0.88);
  --chip-text: #17324b;
  --btn-primary-text: #052626;
  --btn-primary-end: #41c9b6;
  --timeline-line: rgba(0, 145, 126, 0.42);
  --hover-accent-border: rgba(0, 145, 126, 0.56);
  --hover-accent-bg: rgba(0, 145, 126, 0.12);
  --shadow: 0 16px 46px rgba(17, 38, 57, 0.14);
}

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

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

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, var(--spot-1), transparent 40%),
    radial-gradient(circle at 82% 2%, var(--spot-2), transparent 36%),
    linear-gradient(150deg, var(--bg), var(--bg-soft));
  color: var(--text);
  font-family: "Sora", sans-serif;
  line-height: 1.6;
}

.background-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
  z-index: -1;
}

.topbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  letter-spacing: 0.08em;
  font-family: "IBM Plex Mono", monospace;
  color: var(--accent);
  font-size: 0.95rem;
}

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.theme-btn {
  min-width: 7.8rem;
}

.lang-btn {
  border: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--text);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 220ms ease;
}

.lang-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 212, 184, 0.6);
}

.lang-btn.active {
  background: linear-gradient(120deg, rgba(0, 212, 184, 0.22), rgba(255, 159, 67, 0.22));
  border-color: rgba(0, 212, 184, 0.7);
}

.cv-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  text-decoration: none;
}

.cv-download-btn svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.2rem;
  display: grid;
  gap: 1.25rem;
}

.hero {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  box-shadow: var(--shadow);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent 48%),
    linear-gradient(320deg, rgba(0, 212, 184, 0.1), rgba(255, 159, 67, 0.06)),
    var(--card);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr minmax(220px, 0.85fr);
  gap: 1rem;
  align-items: center;
}

.kicker {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
}

h1 {
  margin: 0.45rem 0 0.7rem;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.1;
}

.hero-role {
  font-size: clamp(1.03rem, 2.2vw, 1.35rem);
  margin: 0;
  color: var(--hero-role);
}

.hero-vibe {
  margin-top: 0.8rem;
  color: var(--hero-vibe);
  max-width: 70ch;
}

.hero-owner {
  margin-top: 0.6rem;
  color: var(--hero-owner);
  font-weight: 600;
}

.hero-offer-line {
  margin: 0.65rem 0 0;
  max-width: 72ch;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-photo-wrap {
  margin: 0;
  justify-self: end;
}

.hero-photo {
  width: min(290px, 100%);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-actions {
  margin-top: 1.1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-metrics {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-metric {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  background: var(--surface-3);
  color: var(--chip-text);
  font-size: 0.79rem;
  line-height: 1.3;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.63rem 1rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 220ms ease, filter 220ms ease, background 220ms ease;
}

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

.btn-primary {
  color: var(--btn-primary-text);
  background: linear-gradient(120deg, var(--accent), var(--btn-primary-end));
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line);
  background: var(--surface-1);
}

.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.15rem;
  background: var(--card);
  box-shadow: var(--shadow);
}

h2 {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
}

.section-intro {
  margin: 0.45rem 0 0.9rem;
  color: var(--muted);
}

.timeline {
  border-left: 2px solid var(--timeline-line);
  padding-left: 0.9rem;
  display: grid;
  gap: 0.85rem;
}

.experience-toggle-wrap {
  margin-top: 0.85rem;
}

.experience-toggle-btn {
  cursor: pointer;
}

.offer-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.offer-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem;
  background: var(--surface-2);
  display: grid;
  gap: 0.35rem;
}

.offer-card h3 {
  margin: 0;
  font-size: 0.98rem;
}

.offer-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.process-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.process-step {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0.78rem;
  background: var(--surface-2);
  display: grid;
  gap: 0.3rem;
}

.process-step .step-index {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-family: "IBM Plex Mono", monospace;
  border: 1px solid var(--line);
  background: var(--surface-3);
  color: var(--accent);
}

.process-step h3 {
  margin: 0;
  font-size: 0.94rem;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.proof-stats {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.proof-stat {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem;
  background: var(--surface-2);
  display: grid;
  gap: 0.2rem;
}

.proof-value {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.04rem;
  color: var(--accent);
}

.proof-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.proof-quotes {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.proof-quote {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem;
  background: var(--surface-2);
}

.proof-quote p {
  margin: 0;
  font-size: 0.9rem;
}

.proof-quote footer {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.timeline-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem;
  background: var(--surface-strong);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.32rem;
  top: 1rem;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--accent-2);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.projects-toggle-wrap {
  margin-top: 0.85rem;
}

.projects-toggle-btn {
  cursor: pointer;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.case-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem;
  background: var(--surface-2);
  display: grid;
  gap: 0.45rem;
}

.case-title {
  margin: 0;
  font-size: 1rem;
}

.case-row {
  display: grid;
  gap: 0.2rem;
}

.case-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.73rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.case-value {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
}

.case-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.case-tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 0.6rem;
  min-height: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  line-height: 1;
  white-space: nowrap;
  background: var(--surface-3);
  color: var(--chip-text);
}

.project-link {
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem;
  background: var(--surface-2);
  display: grid;
  gap: 0.22rem;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.project-link:hover {
  transform: translateY(-2px);
  border-color: var(--hover-accent-border);
  background: var(--hover-accent-bg);
}

.project-static {
  cursor: default;
}

.project-static:hover {
  transform: none;
  border-color: var(--line);
  background: var(--surface-2);
}

.project-name {
  font-family: "IBM Plex Mono", monospace;
  color: var(--project-name);
  font-size: 0.9rem;
}

.project-meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.project-action {
  color: var(--accent);
  font-size: 0.82rem;
}

.project-static .project-action {
  color: var(--static-action);
}

.period {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  color: var(--period);
}

.role {
  margin: 0.3rem 0 0.2rem;
  font-size: 1rem;
}

.company {
  color: var(--company);
  font-size: 0.95rem;
}

.summary {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.grid.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.chip-wrap {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  border: 1px solid var(--line);
  background: var(--surface-3);
  color: var(--chip-text);
  border-radius: 999px;
  padding: 0.33rem 0.7rem;
  font-size: 0.84rem;
}

.list-stack {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.7rem;
}

.stack-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.72rem;
  background: var(--surface-2);
}

.stack-title {
  margin: 0;
  font-size: 0.95rem;
}

.stack-meta {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.simple-list {
  margin: 0.8rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.42rem;
}

.certificates-list {
  list-style: none;
  padding-left: 0;
  gap: 0.7rem;
}

.certificate-item {
  display: grid;
  gap: 0.5rem;
}

.certificate-text {
  font-size: 0.94rem;
}

.certificate-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.certificate-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.certificate-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--chip-text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  padding: 0.28rem 0.62rem;
  text-decoration: none;
  transition: all 220ms ease;
}

.certificate-link:hover {
  border-color: var(--hover-accent-border);
  background: var(--hover-accent-bg);
  transform: translateY(-1px);
}

.certificate-image {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

.contact-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.contact-item {
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  background: var(--surface-1);
  border-radius: 12px;
  padding: 0.72rem;
  display: grid;
  gap: 0.1rem;
}

.contact-label {
  color: var(--contact-label);
  font-size: 0.82rem;
}

.contact-value {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
}

.contact-cta {
  margin-top: 0.95rem;
  display: inline-flex;
}

.footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.2rem 1.2rem 1.6rem;
  color: var(--footer);
  font-size: 0.88rem;
}

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

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .grid.split,
  .contact-grid,
  .projects-grid,
  .case-grid,
  .offer-grid,
  .proof-stats,
  .proof-quotes {
    grid-template-columns: 1fr;
  }

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

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

  .hero-photo-wrap {
    justify-self: start;
  }

  .hero-photo {
    width: min(280px, 100%);
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .layout {
    padding: 1rem;
  }

  .card,
  .hero {
    border-radius: 14px;
  }

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