:root {
  color-scheme: light dark;
  --background: #05050a;
  --surface: rgba(16, 16, 32, 0.85);
  --accent: #6c5ce7;
  --accent-soft: rgba(108, 92, 231, 0.12);
  --text: #f5f6ff;
  --muted: rgba(245, 246, 255, 0.7);
  --border: rgba(245, 246, 255, 0.1);
  --shadow: 0 40px 80px -40px rgba(11, 5, 43, 0.6);
  --max-width: 1120px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(108, 92, 231, 0.08), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(255, 121, 198, 0.1), transparent 45%),
    var(--background);
  color: var(--text);
  line-height: 1.6;
}

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

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

a:hover,
a:focus-visible {
  color: #ffffff;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 5, 10, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1rem;
}

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

.brand__logo {
  display: inline-grid;
  place-items: center;
  font-weight: 600;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7f5af0, #2cb1ff);
  color: #0b0b12;
}

.brand__name {
  font-weight: 600;
  font-size: 1rem;
}

.brand__role {
  font-size: 0.8rem;
  color: var(--muted);
}

.nav {
  position: relative;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.nav__links a {
  color: var(--muted);
  transition: color 150ms ease;
}

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

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(245, 246, 255, 0.06);
  border: 1px solid var(--border);
  cursor: pointer;
}

.nav__toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hero {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.hero__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 1.5rem;
}

.hero__summary {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.hero__contact {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #7f5af0, #2cb1ff);
  color: #0b0b12;
  font-weight: 600;
  transition: transform 150ms ease, box-shadow 150ms ease;
  border: none;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(127, 90, 240, 0.25);
}

.button--ghost {
  background: rgba(245, 246, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
}

.hero__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
}

.hero__card-header {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pill-grid li {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.85rem;
  border: 1px solid rgba(108, 92, 231, 0.3);
  text-align: center;
}

.section {
  padding-block: clamp(4rem, 8vw, 6rem);
}

.section--highlight {
  background: rgba(10, 10, 24, 0.7);
}

.section__intro {
  max-width: 640px;
  margin-bottom: clamp(2rem, 6vw, 3rem);
}

.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 1rem;
}

.section p {
  color: var(--muted);
  margin: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border-radius: 20px;
  padding: 1.8rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

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

.timeline::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 2px;
  margin-left: 10px;
  background: linear-gradient(180deg, rgba(108, 92, 231, 0), rgba(108, 92, 231, 0.6), rgba(108, 92, 231, 0));
}

.timeline__item {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 2rem;
  padding-left: 2.5rem;
  position: relative;
}

.timeline__item::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7f5af0, #2cb1ff);
  box-shadow: 0 0 0 6px rgba(127, 90, 240, 0.12);
  margin-left: -33px;
  margin-top: 0.35rem;
}

.timeline__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.timeline__role {
  font-weight: 600;
}

.timeline__company,
.timeline__date {
  color: var(--muted);
  font-size: 0.9rem;
}

.timeline__details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  color: var(--muted);
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.credential-card {
  border-radius: 18px;
  padding: 1.8rem;
  border: 1px solid var(--border);
  background: rgba(245, 246, 255, 0.04);
  box-shadow: var(--shadow);
}

.credential-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.credential-card p {
  margin: 0;
  color: var(--muted);
}

.cta {
  padding-block: clamp(4rem, 8vw, 6rem);
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.3), rgba(44, 177, 255, 0.3));
}

.cta__content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.cta__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: #0b0b12;
}

.cta h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.cta p {
  margin: 0;
  color: rgba(11, 11, 18, 0.8);
}

.cta__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta .button {
  background: #0b0b12;
  color: #f5f6ff;
}

.cta .button--ghost {
  background: rgba(11, 11, 18, 0.1);
  color: #0b0b12;
  border: 1px solid rgba(11, 11, 18, 0.2);
}

.site-footer {
  padding: 2.5rem var(--gutter);
  background: rgba(5, 5, 10, 0.95);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.site-footer__name {
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer__links a {
  color: var(--text);
  font-weight: 500;
}

.site-footer__copyright {
  margin: 0;
  text-align: center;
  color: rgba(245, 246, 255, 0.5);
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    background: rgba(5, 5, 10, 0.94);
    border: 1px solid var(--border);
    border-radius: 16px;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 150ms ease, transform 150ms ease;
  }

  .nav__links--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .timeline {
    gap: 2.5rem;
  }

  .timeline__item {
    grid-template-columns: 1fr;
    padding-left: 2rem;
  }

  .timeline__item::before {
    margin-left: -28px;
  }
}

@media (max-width: 640px) {
  .site-header .container {
    padding-block: 0.75rem;
  }

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

  .hero__card {
    order: -1;
  }

  .cta {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
