:root {
  color-scheme: light dark;
  --bg: #07090f;
  --fg: #f2f5ff;
  --fg-muted: rgba(242, 245, 255, 0.75);
  --accent: #71f5d1;
  --accent-2: #5465ff;
  --surface: rgba(15, 20, 34, 0.6);
  --surface-strong: rgba(15, 20, 34, 0.85);
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 18px 56px rgba(3, 13, 34, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: radial-gradient(circle at top left, #132035, var(--bg) 45%),
    radial-gradient(circle at bottom right, #11192c, #05060b 60%);
  color: var(--fg);
  scroll-behavior: smooth;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at 50% 0,
    rgba(113, 245, 209, 0.13),
    transparent 55%
  );
  pointer-events: none;
  z-index: -1;
}

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

.wrapper {
  display: flex;
  justify-content: center;
  padding: 0 clamp(24px, 6vw, 96px) 120px;
}

.container {
  width: 100%;
  max-width: 1280px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 5vw, 48px) 0;
}

.logo {
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  text-transform: uppercase;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}

nav {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
}

nav a {
  position: relative;
  padding-bottom: 6px;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.2, 1);
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
  min-height: clamp(760px, 100vh, 920px);
  padding: clamp(80px, 18vh, 150px) 0 clamp(120px, 24vh, 200px);
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 40%,
    rgba(113, 245, 209, 0.08),
    rgba(84, 101, 255, 0.05),
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
}

.hero__intro {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: clamp(640px, 60vw, 780px);
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.36em;
  font-size: 0.78rem;
  color: var(--fg-muted);
}

.hero__title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.05;
  font-weight: 600;
  max-width: 16ch;
  word-break: keep-all;
}

.hero__title span {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  color: transparent;
}

.hero__blurb {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--fg-muted);
  max-width: 48ch;
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: clamp(20px, 4vw, 36px);
  padding: clamp(18px, 3vw, 28px);
  background: rgba(7, 10, 22, 0.7);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero__stat {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero__stat-value {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  color: var(--accent);
}

.hero__stat-label {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

.button {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 26px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  background: rgba(6, 10, 25, 0.7);
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 10px 22px rgba(4, 8, 20, 0.4);
}

.button--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #020204;
  font-weight: 600;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(3, 13, 34, 0.6);
}

.hero__card {
  align-self: start;
  justify-self: stretch;
  max-width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 32px;
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
  display: grid;
  gap: 24px;
}

.hero__card-heading {
  font-size: 1.2rem;
  font-weight: 500;
}

section {
  margin-bottom: 140px;
}

.section__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 48px;
}

.section__title {
  font-size: 2.2rem;
  font-weight: 500;
}

.section__subtitle {
  color: var(--fg-muted);
  font-size: 1rem;
}

.about {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
}

.about__summary {
  grid-column: span 6;
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--border);
  padding: 32px;
  line-height: 1.7;
  color: var(--fg-muted);
  box-shadow: var(--shadow);
}

.about__qualities {
  grid-column: span 6;
  display: grid;
  gap: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(14, 20, 35, 0.8);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--fg-muted);
  width: fit-content;
}

.chip::before {
  content: "●";
  font-size: 0.65rem;
  color: var(--accent);
}

.expertise__grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(113, 245, 209, 0.4);
}

.card__title {
  font-size: 1.3rem;
  font-weight: 500;
}

.card__body {
  color: var(--fg-muted);
  line-height: 1.7;
}

.pill {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(113, 245, 209, 0.12);
  color: var(--accent);
  border: 1px solid rgba(113, 245, 209, 0.3);
}

.timeline {
  position: relative;
  padding-left: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(113, 245, 209, 0.6),
    rgba(84, 101, 255, 0.2)
  );
}

.timeline__item {
  position: relative;
  padding: 24px 0 24px 24px;
  display: grid;
  gap: 8px;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 6px rgba(113, 245, 209, 0.16);
}

.timeline__role {
  font-size: 1.15rem;
  font-weight: 500;
}

.timeline__meta {
  display: flex;
  gap: 16px;
  color: var(--fg-muted);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.timeline__description {
  color: var(--fg-muted);
  line-height: 1.7;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.project {
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.project__media {
  padding: 24px;
  background: radial-gradient(
    circle at 36% 24%,
    rgba(113, 245, 209, 0.2),
    transparent 68%
  );
}

.project__media svg {
  width: 100%;
  height: 140px;
}

.project__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project__title {
  font-size: 1.2rem;
  font-weight: 500;
}

.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--fg-muted);
  font-size: 0.85rem;
}

.project__action {
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.project__action::after {
  content: "→";
  transition: transform 0.25s ease;
}

.project:hover .project__action::after,
.project:focus-within .project__action::after {
  transform: translateX(6px);
}

.contact {
  display: grid;
  gap: 24px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 60px 48px;
  background: var(--surface);
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact__title {
  font-size: 2rem;
  font-weight: 500;
}

.contact__body {
  color: var(--fg-muted);
  line-height: 1.7;
}

footer {
  margin-top: 120px;
  padding: 40px 0 60px;
  text-align: center;
  color: var(--fg-muted);
  font-size: 0.85rem;
}

footer a {
  color: var(--accent);
}

@media (max-width: 980px) {
  nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: unset;
    padding-top: 80px;
    gap: 48px;
  }

  .hero__stats {
    margin-top: 16px;
  }

  .hero__card {
    justify-self: stretch;
  }

  .about {
    grid-template-columns: repeat(6, 1fr);
  }

  .about__summary,
  .about__qualities {
    grid-column: 1 / -1;
  }
}

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

  .hero {
    padding-top: 40px;
    padding-bottom: 120px;
  }

  .hero__stats {
    flex-direction: column;
    padding: 24px;
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  .hero__card {
    padding: 24px;
  }
}
