:root {
  --bg: #07111e;
  --bg-elevated: #0d1a2a;
  --panel: rgba(14, 22, 35, 0.8);
  --panel-strong: #122338;
  --text: #edf4ff;
  --muted: #b4c3d6;
  --soft: #dfeaf9;
  --line: rgba(184, 206, 232, 0.2);
  --primary: #72d6ff;
  --primary-alt: #8b8dff;
  --accent: #5ee6c7;
  --highlight: #f3c572;
  --shadow: 0 20px 50px rgba(11, 17, 26, 0.45);
}

:root[data-theme="light"] {
  --bg: #f5f8fc;
  --bg-elevated: #ffffff;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: #e9f0f8;
  --text: #102033;
  --muted: #50657c;
  --soft: #263b52;
  --line: rgba(51, 83, 117, 0.2);
  --primary: #0878d1;
  --primary-alt: #5358cf;
  --accent: #078d73;
  --highlight: #ae7100;
  --shadow: 0 20px 50px rgba(33, 64, 96, 0.15);
}

:root[data-theme="light"] .site-header,
:root[data-theme="light"] .site-footer {
  background: rgba(245, 248, 252, 0.82);
}

:root[data-theme="light"] .hero-card,
:root[data-theme="light"] .timeline-content,
:root[data-theme="light"] .skill-card,
:root[data-theme="light"] .impact-list div,
:root[data-theme="light"] .case-card,
:root[data-theme="light"] .contact-box,
:root[data-theme="light"] .lightbox-panel {
  background: var(--bg-elevated);
}

:root[data-theme="light"] .alt-bg {
  background: rgba(225, 235, 246, 0.65);
}

:root[data-theme="light"] .accent-section {
  background: linear-gradient(180deg, rgba(8, 120, 209, 0.1), rgba(83, 88, 207, 0.06));
}

:root[data-theme="light"] .timeline-dot {
  background: var(--bg);
}

:root[data-theme="light"] .hero-pills li,
:root[data-theme="light"] .nav-toggle {
  background: rgba(16, 32, 51, 0.03);
}

:root[data-theme="light"] .lightbox-backdrop {
  background: rgba(16, 32, 51, 0.68);
}

:root[data-theme="light"] .lightbox-close {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(114, 214, 255, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(94, 230, 199, 0.14), transparent 22%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(900px, calc(100% - 2rem));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(7, 17, 30, 0.7);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-alt));
  color: #061119;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--primary);
}

.theme-toggle-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.language-selector {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.language-selector select {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.site-nav a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  border-radius: 99px;
}

.hero {
  padding: 5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  align-items: center;
  gap: 2rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.lead {
  color: var(--soft);
  max-width: 62ch;
  font-size: 1.05rem;
  margin: 1.2rem 0 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-alt));
  color: #091724;
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.hero-pills li {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-card {
  padding: 1.5rem;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 35, 56, 0.9), rgba(9, 17, 28, 0.9));
  box-shadow: var(--shadow);
}

.profile-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, var(--primary), var(--primary-alt));
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 30px rgba(114, 214, 255, 0.2);
}

.card-header {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.76rem;
  color: var(--soft);
  margin-bottom: 1.2rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(94, 230, 199, 0.8);
}

.hero-card h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.company {
  margin: 0.2rem 0 1.1rem;
  color: var(--primary);
  font-weight: 600;
}

.hero-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--soft);
}

.hero-card li + li {
  margin-top: 0.5rem;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.mini-metrics div {
  display: grid;
  gap: 0.35rem;
}

.mini-metrics strong {
  font-size: 1.3rem;
  color: var(--text);
}

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

.section {
  padding: 5rem 0;
}

.alt-bg {
  background: rgba(9, 18, 28, 0.65);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 2.2rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  letter-spacing: -0.05em;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  color: var(--soft);
  font-size: 1.04rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1.4rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(114, 214, 255, 0), rgba(114, 214, 255, 0.8), rgba(114, 214, 255, 0));
}

.timeline-item {
  position: relative;
  padding-left: 3rem;
}

.timeline-dot {
  position: absolute;
  left: 2px;
  top: 0.8rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid rgba(114, 214, 255, 0.7);
  background: #07111e;
  box-shadow: 0 0 0 6px rgba(114, 214, 255, 0.15);
}

.timeline-content {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(9, 17, 28, 0.9);
  padding: 1.4rem 1.5rem;
}

.timeline-topline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
}

.timeline-role {
  font-weight: 700;
  color: var(--text);
}

.timeline-meta {
  color: var(--primary);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.timeline-content h3 {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
}

.timeline-content p {
  margin: 0 0 0.75rem;
  color: var(--soft);
}

.timeline-content ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.timeline-content li + li {
  margin-top: 0.45rem;
}

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

.skill-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(10, 19, 31, 0.8);
  padding: 1.35rem;
}

.skill-card h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.skill-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
}

.skill-card li {
  position: relative;
  padding-left: 1rem;
}

.skill-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.skill-card li + li {
  margin-top: 0.55rem;
}

.accent-section {
  background: linear-gradient(180deg, rgba(23, 59, 78, 0.18), rgba(74, 96, 163, 0.08));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.impact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.impact-list div {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(9, 17, 28, 0.7);
}

.impact-list strong {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.impact-list p {
  margin: 0;
  color: var(--soft);
}

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

.case-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(10, 19, 31, 0.82);
  box-shadow: var(--shadow);
}

.case-card-visual {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  border-bottom: 1px solid var(--line);
}

.case-card-visual img {
  display: block;
  width: 100%;
  height: auto;
  background: #edf4ff;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 100;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 16, 0.8);
  backdrop-filter: blur(8px);
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(1200px, 92vw);
  max-height: 90vh;
  background: rgba(11, 19, 28, 0.9);
  border: 1px solid rgba(184, 206, 232, 0.3);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  padding: 1rem;
}

.lightbox-panel img {
  display: block;
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 18px;
  background: #edf4ff;
}

.lightbox-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(184, 206, 232, 0.35);
  border-radius: 50%;
  background: rgba(8, 17, 27, 0.82);
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.lightbox-panel p {
  margin: 0.85rem 0 0;
  color: var(--soft);
  font-size: 0.95rem;
  text-align: center;
}

.case-body {
  padding: 1.4rem 1.4rem 1.5rem;
}

.case-body h3 {
  margin: 0 0 0.7rem;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.case-body p {
  margin: 0;
  color: var(--soft);
}

.contact-section {
  padding-bottom: 6rem;
}

.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.7rem 2rem;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(18, 35, 56, 0.9), rgba(10, 20, 34, 0.95));
  box-shadow: var(--shadow);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.contact-box h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2.1rem);
  letter-spacing: -0.04em;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(7, 17, 30, 0.85);
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 820px) {
  .hero-grid,
  .about-grid,
  .skill-grid,
  .impact-list,
  .case-grid,
  .contact-box {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    display: grid;
  }

  .about-grid,
  .impact-list,
  .skill-grid,
  .case-grid {
    display: grid;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(8, 17, 27, 0.96);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    width: 100%;
    padding: 0.4rem 0;
  }

  .language-selector span {
    display: none;
  }

  .contact-box {
    display: grid;
    align-items: start;
  }

  .footer-wrap {
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 4rem;
  }

  .hero-card,
  .timeline-content,
  .skill-card,
  .impact-list div,
  .contact-box {
    border-radius: 18px;
  }

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