:root {
  --bg: #0f1210;
  --bg-2: #131917;
  --surface: #161c19;
  --surface-2: #1d2622;
  --ink: #f1f4f2;
  --muted: #a9b4ad;
  --accent: #f39a5b;
  --accent-2: #3a9b8b;
  --accent-3: #e9f1ed;
  --stroke: rgba(233, 241, 237, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Lexend", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

main {
  position: relative;
  z-index: 1;
}

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.bg-glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(243, 154, 91, 0.16), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(58, 155, 139, 0.18), transparent 50%),
    radial-gradient(circle at 40% 85%, rgba(233, 241, 237, 0.12), transparent 55%);
  z-index: -5;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(233, 241, 237, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 241, 237, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.4;
  z-index: -4;
}

.input-nav {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  font-family: "Syne", sans-serif;
  color: var(--ink);
}

.input-brand {
  position: absolute;
  left: 28px;
  top: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.6rem;
  pointer-events: auto;
  cursor: pointer;
}

.input-link {
  position: absolute;
  left: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(10, 14, 12, 0.7);
  border: 1px solid rgba(233, 241, 237, 0.14);
  backdrop-filter: blur(8px);
  color: var(--ink);
  pointer-events: auto;
  transform: translateY(-50%);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-link::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  height: 1px;
  width: var(--lead, 40px);
  background: rgba(233, 241, 237, 0.24);
  transform: translateY(-50%);
}

.input-link.align-node::after {
  display: none;
}

.input-link:hover {
  transform: translateY(-50%) translateX(4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  background: rgba(18, 25, 22, 0.85);
}

.input-link.is-active {
  background: rgba(58, 155, 139, 0.25);
  border-color: rgba(243, 154, 91, 0.6);
  box-shadow: 0 12px 28px rgba(58, 155, 139, 0.45);
}

.matrix-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -3;
  opacity: 0.35;
  mix-blend-mode: screen;
}

.ai-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(58, 155, 139, 0.32) 1px, transparent 1px),
    radial-gradient(circle, rgba(243, 154, 91, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 155, 139, 0.18) 1px, transparent 1px),
    linear-gradient(rgba(58, 155, 139, 0.18) 1px, transparent 1px);
  background-size: 26px 26px, 52px 52px, 160px 160px, 160px 160px;
  background-position: 0 0, 13px 13px, 0 0, 0 0;
  opacity: 0.28;
  z-index: -3;
  animation: drift 48s linear infinite;
}

.ai-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -2;
  opacity: 0.7;
  mix-blend-mode: screen;
}

.ai-scan {
  position: fixed;
  width: min(70vw, 820px);
  height: min(70vw, 820px);
  right: -20vw;
  top: -30vw;
  border-radius: 50%;
  background:
    conic-gradient(
      from 0deg,
      rgba(242, 108, 42, 0),
      rgba(242, 108, 42, 0.2),
      rgba(36, 107, 91, 0.08),
      rgba(36, 107, 91, 0.18),
      rgba(242, 108, 42, 0)
    );
  filter: blur(30px);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
  animation: spin 26s linear infinite;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--stroke);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

.logo {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.1rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
  flex-wrap: wrap;
}

.nav a {
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  background: rgba(233, 241, 237, 0.08);
}

.nav-cta {
  background: var(--accent-3);
  color: var(--bg);
}

.nav-cta:hover {
  background: color-mix(in srgb, var(--accent-3) 85%, transparent);
}


.hero {
  padding: 120px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.hero-copy h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(2.6rem, 4.8vw, 4.2rem);
  line-height: 1.05;
  margin: 12px 0 18px;
}

.hero-em {
  color: var(--accent-2);
  background: color-mix(in srgb, var(--accent) 25%, transparent);
  padding: 0 8px 2px;
  border-radius: 999px;
}

.hero-nowrap {
  white-space: nowrap;
  display: inline-block;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
}

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

.hero-actions {
  display: flex;
  gap: 14px;
  margin: 26px 0 18px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(242, 108, 42, 0.3);
}

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

.btn.ghost {
  border-color: var(--accent-2);
  color: var(--accent-2);
  background: transparent;
}

.btn.ghost:hover {
  background: color-mix(in srgb, var(--accent-2) 12%, transparent);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-stack {
  display: grid;
  gap: 18px;
}

.stat-card {
  background: var(--surface);
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.stat-card.accent {
  background: linear-gradient(140deg, rgba(242, 108, 42, 0.12), rgba(36, 107, 91, 0.12));
}

.card-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 8px;
}

.card-sub {
  margin: 0 0 6px;
  color: var(--muted);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 4px;
}

.stat-value {
  font-weight: 600;
  margin: 0;
}

.stat-list {
  padding-left: 18px;
  margin: 0;
}

.section {
  padding: 90px 0;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  margin: 10px 0 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.about-text p {
  margin-top: 0;
}

.about-cards {
  display: grid;
  gap: 16px;
}

.mini-card {
  background: var(--surface-2);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--stroke);
}

.mini-card h3 {
  margin-top: 0;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.highlight-card h3 {
  margin-top: 0;
}

.list-stack {
  display: grid;
  gap: 22px;
}

.list-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--stroke);
}

.list-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.role {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 4px;
}

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

.date {
  color: var(--muted);
  font-size: 0.95rem;
}

.list-card ul {
  padding-left: 18px;
  margin: 0;
}

.project-list {
  display: grid;
  gap: 16px;
}

.project-item {
  background: var(--surface);
  border-radius: 20px;
  padding: 22px;
  border: 1px solid rgba(36, 107, 91, 0.2);
  box-shadow: 0 18px 40px rgba(36, 107, 91, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.project-main h3 {
  margin-top: 0;
}

.project-main p {
  margin-bottom: 12px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  background: rgba(36, 107, 91, 0.12);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}

.project-date {
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
}

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

.skills-block {
  background: var(--surface-2);
  border-radius: 18px;
  padding: 20px 22px;
  border: 1px solid var(--stroke);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-row span {
  background: rgba(233, 241, 237, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
}

.contact {
  padding-bottom: 110px;
}

.contact-card {
  display: flex;
  gap: 32px;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(120deg, rgba(18, 47, 46, 0.08), rgba(242, 108, 42, 0.12));
  border-radius: 28px;
  padding: 32px;
  border: 1px solid rgba(18, 47, 46, 0.1);
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.link-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.link-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid var(--stroke);
  font-weight: 600;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 24px 0 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  main {
    padding-left: 0;
  }

  .input-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 16px 0;
    pointer-events: auto;
  }

  .input-brand,
  .input-label {
    position: static;
    width: 100%;
  }

  .input-link {
    position: static;
    transform: none;
  }

  .input-link::after {
    display: none;
  }

  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .highlight-grid,
  .skills-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .project-item {
    flex-direction: column;
  }

  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 1000px) {
  main {
    padding-left: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .ai-field,
  .ai-scan {
    animation: none;
  }

  .ai-canvas {
    opacity: 0.4;
  }

  .matrix-canvas {
    opacity: 0.2;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes drift {
  from {
    background-position: 0 0, 13px 13px, 0 0, 0 0;
  }
  to {
    background-position: 60px 40px, 30px 10px, 140px 0, 0 140px;
  }
}

