:root {
  --bg: #0b111f;
  --bg-soft: #121a2d;
  --surface: rgba(17, 24, 39, 0.76);
  --surface-border: rgba(148, 163, 184, 0.24);
  --text: #e5ecff;
  --muted: #a8b5d6;
  --accent: #5eead4;
  --accent-2: #fbbf24;
  --shadow: 0 20px 60px rgba(3, 7, 18, 0.5);
}

:root[data-theme="light"] {
  --bg: #f6f8ff;
  --bg-soft: #eaf0ff;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-border: rgba(15, 23, 42, 0.12);
  --text: #0f172a;
  --muted: #334155;
  --accent: #0f766e;
  --accent-2: #b45309;
  --shadow: 0 16px 46px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% -10%, rgba(94, 234, 212, 0.24), transparent 40%),
    radial-gradient(circle at 92% 0%, rgba(251, 191, 36, 0.2), transparent 34%),
    linear-gradient(160deg, var(--bg), var(--bg-soft));
  min-height: 100vh;
  line-height: 1.5;
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 3px;
  width: 0;
  z-index: 40;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(94, 234, 212, 0.6);
}

.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(94, 234, 212, 0.12), transparent 35%),
    radial-gradient(circle at 82% 84%, rgba(251, 191, 36, 0.08), transparent 30%);
  z-index: -1;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--surface-border);
  backdrop-filter: blur(12px);
  background: rgba(6, 10, 20, 0.42);
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: -120% auto auto -10%;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.24), transparent 65%);
  pointer-events: none;
  animation: drift 9s ease-in-out infinite;
}

:root[data-theme="light"] .site-header {
  background: rgba(248, 250, 255, 0.75);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 0.58rem 1rem 0.58rem 0.72rem;
  background:
    linear-gradient(130deg, rgba(15, 23, 42, 0.82), rgba(10, 20, 36, 0.72)),
    radial-gradient(circle at 10% 20%, rgba(94, 234, 212, 0.18), transparent 45%);
  box-shadow: 0 10px 32px rgba(2, 6, 23, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.brand:hover {
  transform: translateY(-1px);
  border-color: rgba(94, 234, 212, 0.55);
}

.brand-name {
  letter-spacing: 0.01em;
  font-size: clamp(1.24rem, 1.8vw, 1.55rem);
  font-family: "IBM Plex Serif", serif;
  font-weight: 600;
  background: linear-gradient(110deg, #e2f6ff, #9ef0e3 35%, #ffe8a6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(94, 234, 212, 0.25);
  white-space: nowrap;
}

.brand-orb {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.55);
  animation: pulse 1.9s ease-out infinite;
}

.brand-bars {
  width: 30px;
  height: 14px;
  border-radius: 999px;
  opacity: 0.8;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(94, 234, 212, 0.85) 0 4px,
      rgba(94, 234, 212, 0.12) 4px 7px
    );
  animation: barsMove 2.6s linear infinite;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

nav a {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

nav a.active,
nav a:hover {
  color: var(--text);
  border-color: rgba(94, 234, 212, 0.45);
  background: rgba(94, 234, 212, 0.09);
  transform: translateY(-1px);
}

.theme-toggle {
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  color: var(--text);
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(94, 234, 212, 0.45);
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2.4rem 1rem 5rem;
}

.hero {
  padding: 2.2rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  right: -8%;
  top: -20%;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.2), transparent 65%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 1.4rem;
  align-items: start;
}

.hero-copy {
  padding-right: 0.4rem;
}

.hero-portrait {
  margin: 0;
  justify-self: end;
  width: min(100%, 280px);
  padding: 5px;
  border-radius: 22px;
  border: 1px solid var(--surface-border);
  background:
    linear-gradient(155deg, rgba(94, 234, 212, 0.2), rgba(251, 191, 36, 0.18)),
    rgba(15, 23, 42, 0.2);
  box-shadow: 0 18px 38px rgba(2, 6, 23, 0.2);
}

.hero-portrait img {
  width: 100%;
  aspect-ratio: 5 / 6;
  height: auto;
  border-radius: 17px;
  object-fit: cover;
  object-position: 74% center;
  display: block;
}

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

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

h1 {
  font-family: "IBM Plex Serif", serif;
  font-size: clamp(2rem, 6vw, 3.8rem);
  margin-top: 0.5rem;
}

.focus-panel h2 {
  margin-top: 0.35rem;
  font-family: "IBM Plex Serif", serif;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

.focus-panel {
  margin-top: 1.1rem;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(7, 12, 24, 0.42);
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(150px, 0.82fr);
  gap: 1rem;
  align-items: center;
}

:root[data-theme="light"] .focus-panel {
  background: rgba(255, 255, 255, 0.78);
}

.focus-copy {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.focus-list {
  margin: 0;
  padding-left: 1rem;
}

.focus-list li {
  color: var(--muted);
}

.focus-list li + li {
  margin-top: 0.7rem;
}

.focus-art {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--surface-border);
  background: #0b1326;
}

.hero-subtitle {
  max-width: 800px;
  margin: 1rem 0 0;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
}

.hero-meta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  color: var(--muted);
}

.hero-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, filter 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(120deg, var(--accent), #14b8a6);
  color: #041015;
}

.btn-secondary {
  border-color: var(--surface-border);
  color: var(--text);
  background: rgba(15, 23, 42, 0.2);
}

:root[data-theme="light"] .btn-secondary {
  background: rgba(255, 255, 255, 0.75);
}

.impact {
  margin-top: 1.3rem;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.impact article {
  border-radius: 16px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.metric-art {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--surface-border);
  margin-bottom: 0.3rem;
  background: #0b1326;
}

.impact h2 {
  font-size: 1.6rem;
  color: var(--accent-2);
  margin-top: 0;
  margin-bottom: 0.45rem;
  line-height: 1.1;
}

.impact p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.52;
}

.section {
  margin-top: 2rem;
}

.section-head {
  margin-bottom: 1rem;
}

.section-head h2 {
  font-family: "IBM Plex Serif", serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.card {
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  padding: 1.1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 234, 212, 0.45);
}

.role-card + .role-card {
  margin-top: 1rem;
}

.role-card {
  position: relative;
  padding-left: 1.35rem;
}

.role-card::before {
  content: "";
  position: absolute;
  left: 0.62rem;
  top: 1.15rem;
  bottom: 1.15rem;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(94, 234, 212, 0.1));
}

.role-topline,
.role-title-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 0.8rem;
}

.role-topline h3 {
  font-size: 1.32rem;
}

.role-topline p,
.role-title-row p,
.card p {
  margin: 0.35rem 0;
}

.role-title {
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.35rem 0 0.25rem;
}

.tag-row span {
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.2rem 0.46rem;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  color: var(--muted);
}

.role-duration,
.role-topline p,
.card p {
  color: var(--muted);
}

.role-progress {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.role-progress p {
  margin: 0;
  font-size: 0.92rem;
  text-align: right;
}

.role-progress img {
  width: min(100%, 420px);
  height: auto;
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  background: #0b1326;
}

ul {
  margin: 0.65rem 0 0;
  padding-left: 1.15rem;
}

li + li {
  margin-top: 0.5rem;
}

.edu-grid,
.skills-grid {
  display: grid;
  gap: 0.9rem;
}

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

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

.edu-degree {
  font-style: italic;
}

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

.skill-visual-card {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}

.skill-visual-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  margin-bottom: 0.15rem;
  background: #0a1020;
}

.skill-visual-card h3 {
  font-size: 1.08rem;
  margin: 0;
}

.skill-visual-card p {
  margin: 0;
  line-height: 1.45;
}

.contact {
  text-align: center;
}

.contact h2 {
  font-family: "IBM Plex Serif", serif;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
}

.contact p {
  color: var(--muted);
  max-width: 760px;
  margin: 0.7rem auto 0;
}

.site-footer {
  padding: 1.2rem;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--surface-border);
}

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.52);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(94, 234, 212, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(94, 234, 212, 0);
  }
}

@keyframes drift {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(24px, 10px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes barsMove {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(2px);
  }
  100% {
    transform: translateX(0);
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .focus-panel {
    grid-template-columns: 1fr;
  }

  .hero-portrait {
    justify-self: start;
    width: min(100%, 320px);
  }

  .hero-portrait img {
    aspect-ratio: 6 / 7;
  }

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

  .skills-visual-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
  }

  nav a {
    font-size: 0.9rem;
    padding: 0.28rem 0.64rem;
  }

  .impact,
  .edu-grid,
  .skills-visual-grid {
    grid-template-columns: 1fr;
  }

  .role-card {
    padding-left: 1.1rem;
  }

  .hero-copy {
    padding-right: 0;
  }

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

  .hero-portrait img {
    object-position: 73% center;
  }

  .role-progress {
    align-items: flex-start;
    width: 100%;
  }

  .role-progress p {
    text-align: left;
  }

  .brand-name {
    font-size: 1.02rem;
  }

  .brand-bars {
    width: 20px;
    height: 11px;
  }
}
