:root {
  --bg: #04060a;
  --bg-alt: #0f1119;
  --card: #101320;
  --card-light: #f8f8fb;
  --text: #f5f6ff;
  --muted: rgba(245, 246, 255, 0.75);
  --accent: #8ef6da;
  --accent-strong: #7b6ef6;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(7, 11, 20, 0.45);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 20%, #13172a, #03040a);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

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

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

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

ul {
  padding-left: 1.2rem;
}

button,
input,
textarea {
  font-family: inherit;
  font-size: 1rem;
}

.eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 200ms ease, box-shadow 200ms ease,
    background-color 200ms ease, border-color 200ms ease;
}

.btn.primary {
  background: linear-gradient(130deg, #8ef6da, #7b6ef6);
  color: #06060f;
  box-shadow: 0 20px 40px rgba(142, 246, 218, 0.35);
}

.btn.outline,
.btn.ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.05);
}

.btn:hover {
  transform: translateY(-2px);
}

.site-hero {
  min-height: 100vh;
  padding: 1.5rem 4vw 4rem;
  position: relative;
  overflow: hidden;
}

.site-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(142, 246, 218, 0.12), transparent 35%),
    radial-gradient(circle at bottom right, rgba(123, 110, 246, 0.15), transparent 45%),
    linear-gradient(135deg, #05060f 0%, #020308 100%);
  opacity: 1;
  z-index: -2;
}

.site-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 6, 10, 0) 0%, #04060a 85%);
  z-index: -1;
}

.primary-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-radius: 999px;
  background: rgba(5, 8, 19, 0.8);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  margin-bottom: 3rem;
}

.primary-nav.is-scrolled {
  box-shadow: var(--shadow);
}

.primary-nav .brand {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.primary-nav .brand span {
  color: var(--accent);
}

.primary-nav .nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.primary-nav .nav-links a {
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  transition: background-color 200ms ease;
}

.primary-nav .nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--text);
  border-radius: 99px;
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.2;
  margin: 0 0 1.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.hero-stats article {
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 1.25rem;
  background: rgba(5, 6, 12, 0.7);
}

.hero-stats article span {
  font-size: 2rem;
  display: block;
  font-weight: 600;
  color: var(--accent);
}

.hero-profile {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-card {
  background: rgba(4, 6, 12, 0.6);
  border: 1px solid var(--border);
  border-radius: 1.8rem;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  align-items: center;
}

.profile-card img {
  border-radius: 1.2rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.profile-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.profile-card li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.profile-card li span {
  color: var(--muted);
  font-weight: 500;
  margin-right: 1rem;
}

.profile-meta {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.profile-meta small {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.badge-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge-stack span {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

.section {
  padding: 5rem 4vw;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 0 0 1rem;
}

.section-heading.narrow {
  max-width: 540px;
}

.about {
  background: #060711;
}

.experience {
  background: linear-gradient(180deg, #060711 0%, #05060d 100%);
}

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

.experience-card header h3 {
  margin-bottom: 0.4rem;
}

.experience-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.experience-card ul li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--muted);
}

.experience-card ul li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--accent);
}

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

.card {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 1.6rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  margin-top: 0;
}

.card.focus ul {
  margin: 0;
}

.card.focus li {
  margin-bottom: 0.6rem;
  list-style: none;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li {
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  padding-left: 1rem;
  margin-left: 0.4rem;
  margin-bottom: 1rem;
}

.timeline span {
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.pill-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

.pill-metrics span {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.skills {
  background: linear-gradient(180deg, #060711 0%, #080a13 100%);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.skills-grid article,
.toolbox {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 1.4rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
}

.skills-meta {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pill-list li {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.6rem 1rem;
  border-radius: 0.9rem;
}

.pill-list strong {
  color: var(--accent);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-list.wide {
  gap: 0.6rem;
}

.tag-list.wide span {
  background: rgba(255, 255, 255, 0.1);
}

.tag-list span {
  border-radius: 0.8rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.toolbox ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.toolbox i {
  color: var(--accent);
  margin-right: 0.5rem;
}

.projects {
  background: linear-gradient(180deg, #060711 0%, #040610 100%);
  color: #f5f6ff;
}

.projects .section-heading p,
.projects .section-heading h2 {
  color: inherit;
}

.projects .section-heading p {
  color: var(--muted);
}

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

.project-card {
  background: rgba(6, 7, 17, 0.8);
  border-radius: 1.6rem;
  padding: 1.5rem;
  box-shadow: 0 25px 50px rgba(2, 3, 8, 0.35);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-card figure {
  margin: 0;
  overflow: hidden;
}

.project-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

.project-card .eyebrow {
  color: var(--accent);
}
.project-card a.highlight-link {
  color: var(--accent-strong);
  font-weight: 600;
}

.project-card ul li {
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.35rem 0.7rem;
  border-radius: 0.8rem;
  color: var(--text);
}

.case-highlight {
  background: linear-gradient(135deg, #0f111b, #03050a);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: center;
}

.case-highlight .case-content h2 {
  margin-top: 0;
}

.case-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.case-list li {
  padding-left: 1.2rem;
  position: relative;
}

.case-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

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

.metrics article {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1.2rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--border);
}

.metrics span {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--accent);
}

.case-media {
  display: flex;
  justify-content: center;
}
.stage-carousel {
  width: min(420px, 100%);
  position: relative;
}
.stage-carousel .slides {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}
.stage-carousel img {
  width: 100%;
  display: none;
}
.stage-carousel img.is-active {
  display: block;
}
.stage-carousel .controls {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
}
.stage-carousel .carousel-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}
.stage-carousel .carousel-btn:hover {
  border-color: var(--accent);
}

.contact {
  background: linear-gradient(180deg, #040610 0%, #020308 100%);
  color: var(--text);
}

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

.contact-grid article {
  background: rgba(6, 7, 17, 0.85);
  border-radius: 1.2rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 20px 45px rgba(2, 3, 8, 0.4);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 420px;
}

.contact-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-grid li {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.contact-grid i {
  color: var(--accent);
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.option-list label {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border-radius: 0.9rem;
  background: rgba(123, 110, 246, 0.08);
}

.option-list input {
  accent-color: #7b6ef6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: 0.95rem;
  gap: 0.4rem;
}

.contact-form input,
.contact-form textarea {
  border-radius: 0.8rem;
  border: 1px solid rgba(17, 17, 17, 0.1);
  padding: 0.75rem;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(123, 110, 246, 0.4);
}

.site-footer {
  padding: 2rem 4vw;
  background: #03040a;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .primary-nav {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
  }

  .primary-nav .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 19, 0.96);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    transform: translateY(-100%);
    transition: transform 250ms ease;
  }

  .primary-nav.open .nav-links {
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .profile-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-card li {
    flex-direction: column;
  }

  .hero-cta {
    justify-content: center;
  }
}

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