:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -30;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.08), transparent 28%),
    linear-gradient(225deg, rgba(52, 211, 153, 0.06), transparent 30%),
    #07111f;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 0.375rem;
  background: #38bdf8;
  color: #07111f;
  padding: 0.75rem 1rem;
  font-weight: 700;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.nav-link,
.mobile-nav-link {
  border-radius: 0.375rem;
  color: rgb(203 213 225);
  font-size: 0.925rem;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease;
}

.nav-link {
  padding: 0.625rem 0.875rem;
}

.mobile-nav-link {
  padding: 0.875rem 1rem;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 1.125rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -0.38rem;
}

.menu-icon::after {
  top: 0.38rem;
}

#menu-toggle[aria-expanded="true"] .menu-icon {
  background: transparent;
}

#menu-toggle[aria-expanded="true"] .menu-icon::before {
  transform: translateY(0.38rem) rotate(45deg);
}

#menu-toggle[aria-expanded="true"] .menu-icon::after {
  transform: translateY(-0.38rem) rotate(-45deg);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.85rem 1.25rem;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.primary-button {
  background: #38bdf8;
  color: #07111f;
  box-shadow: 0 18px 40px rgba(56, 189, 248, 0.22);
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: white;
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.secondary-button:hover {
  border-color: rgba(56, 189, 248, 0.75);
  background: rgba(56, 189, 248, 0.1);
  color: #7dd3fc;
}

.metric {
  min-height: 5.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  background: rgba(16, 27, 45, 0.68);
  padding: 1rem;
  backdrop-filter: blur(12px);
}

.metric dt {
  color: rgb(148 163 184);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric dd {
  margin-top: 0.25rem;
  color: white;
  font-size: 1.75rem;
  font-weight: 800;
}

.section {
  padding: 6rem 0;
  scroll-margin-top: 5rem;
}

.section-grid {
  display: grid;
  gap: 3rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: #38bdf8;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  border-radius: 999px;
  background: #38bdf8;
}

.section-title {
  margin-top: 0.9rem;
  max-width: 46rem;
  color: white;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
}

.skill-card,
.project-card,
.credential-card,
.timeline-content {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  background: linear-gradient(180deg, rgba(16, 27, 45, 0.96), rgba(10, 20, 35, 0.96));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.skill-card {
  min-height: 15rem;
  padding: 1.5rem;
}

.skill-marker {
  width: 2.35rem;
  height: 0.22rem;
  border-radius: 999px;
}

.skill-card h3,
.project-card h3,
.credential-card h3,
.timeline-content h3 {
  margin-top: 1rem;
  color: white;
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.25;
}

.skill-card p,
.project-card p,
.credential-card p {
  margin-top: 0.9rem;
  color: rgb(203 213 225);
  line-height: 1.75;
}

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

.timeline::before {
  content: "";
  position: absolute;
  left: 0.62rem;
  top: 0.8rem;
  bottom: 0.8rem;
  width: 2px;
  background: linear-gradient(#38bdf8, rgba(52, 211, 153, 0.35));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 1rem;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  margin-top: 1.4rem;
  width: 1.25rem;
  height: 1.25rem;
  border: 3px solid #07111f;
  border-radius: 999px;
  background: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16);
}

.timeline-content {
  padding: 1.5rem;
}

.timeline-date,
.project-kicker {
  color: #7dd3fc;
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline-place {
  margin-top: 0.55rem;
  color: rgb(148 163 184);
  font-weight: 600;
}

.timeline-content ul {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.75rem;
  color: rgb(203 213 225);
  line-height: 1.7;
}

.timeline-content li {
  position: relative;
  padding-left: 1.1rem;
}

.timeline-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: #34d399;
}

.project-card {
  display: flex;
  min-height: 21rem;
  flex-direction: column;
  padding: 1.5rem;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.project-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 26px 70px rgba(56, 189, 248, 0.12);
}

.credential-card {
  padding: 1.4rem;
}

.contact-link,
.contact-detail {
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  background: rgba(16, 27, 45, 0.85);
  color: rgb(226 232 240);
  font-weight: 800;
}

.contact-link {
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.contact-link:hover {
  border-color: rgba(56, 189, 248, 0.7);
  color: #7dd3fc;
  transform: translateY(-2px);
}

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

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

@media (min-width: 768px) {
  .section-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .section-grid {
    padding: 0 2rem;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4.5rem 0;
  }

  .timeline::before {
    left: 0.55rem;
  }

  .timeline-item {
    grid-template-columns: 1.85rem 1fr;
    gap: 0.75rem;
  }

  .timeline-content {
    padding: 1.15rem;
  }
}

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