:root {
  --bg-1: #0a0f14;
  --bg-2: #121b21;
  --bg-3: #18232d;
  --surface: rgba(15, 23, 30, 0.72);
  --surface-strong: rgba(22, 32, 40, 0.9);
  --text: #f3f6f8;
  --muted: #b0c0cc;
  --accent: #2dd4bf;
  --accent-2: #f4b859;
  --accent-3: #ff7a59;
  --stroke: rgba(255, 255, 255, 0.08);
  --shadow: 0 35px 80px rgba(6, 11, 16, 0.7);
  --mono: "IBM Plex Mono", monospace;
  --sans: "Manrope", sans-serif;
  --display: "Syne", sans-serif;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--text);
  background: radial-gradient(circle at 10% 15%, rgba(45, 212, 191, 0.18), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(244, 184, 89, 0.18), transparent 45%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2) 50%, var(--bg-3) 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.35;
}

body::after {
  background: radial-gradient(circle at 20% 80%, rgba(255, 122, 89, 0.12), transparent 40%),
    radial-gradient(circle at 70% 85%, rgba(45, 212, 191, 0.14), transparent 38%);
  z-index: -1;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 20px;
  padding: 10px 16px;
  background: var(--accent-2);
  color: #1b1f24;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  z-index: 20;
}

.skip-link:focus {
  left: 20px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 20;
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s ease-out;
}

.orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(0px);
  opacity: 0.35;
  mix-blend-mode: screen;
  z-index: -3;
  animation: float 14s ease-in-out infinite;
}

.orb--one {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.6), transparent 70%);
  top: 8vh;
  left: 8vw;
}

.orb--two {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(244, 184, 89, 0.5), transparent 70%);
  top: 55vh;
  right: 10vw;
  animation-delay: -4s;
}

.orb--three {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 122, 89, 0.5), transparent 70%);
  top: 72vh;
  left: 20vw;
  animation-delay: -8s;
}

.cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 12px rgba(45, 212, 191, 0.25));
}

body.has-pointer .cursor-trail {
  opacity: 0.85;
}

.cursor-trail span {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(45, 212, 191, 0.75) 0%,
    rgba(45, 212, 191, 0.22) 40%,
    rgba(244, 184, 89, 0.12) 60%,
    rgba(45, 212, 191, 0) 72%
  );
  filter: blur(0.3px);
  opacity: 0.38;
  will-change: transform;
}

.cursor-trail span:nth-child(1) {
  width: 18px;
  height: 18px;
  opacity: 0.65;
}

.cursor-trail span:nth-child(2) {
  width: 15px;
  height: 15px;
  opacity: 0.5;
}

.cursor-trail span:nth-child(3) {
  width: 12px;
  height: 12px;
  opacity: 0.4;
}

.cursor-trail span:nth-child(4) {
  width: 10px;
  height: 10px;
  opacity: 0.32;
}

.cursor-trail span:nth-child(5) {
  width: 9px;
  height: 9px;
  opacity: 0.26;
}

.cursor-trail span:nth-child(6) {
  width: 8px;
  height: 8px;
  opacity: 0.22;
}

.cursor-trail span:nth-child(7) {
  width: 7px;
  height: 7px;
  opacity: 0.16;
}

.cursor-trail span:nth-child(8) {
  width: 6px;
  height: 6px;
  opacity: 0.12;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) translateX(0px);
  }
  50% {
    transform: translateY(-20px) translateX(14px);
  }
}

.topbar {
  position: sticky;
  top: 18px;
  margin: 18px auto 0;
  width: min(1160px, 92vw);
  padding: 16px 22px;
  border-radius: 999px;
  background: rgba(10, 15, 20, 0.72);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  z-index: 10;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand__name {
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.brand__role {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.2em;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.cta-small {
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: var(--text);
  font-weight: 600;
  background: rgba(45, 212, 191, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-small:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(45, 212, 191, 0.2);
}

main {
  width: min(1160px, 92vw);
  margin: 0 auto;
  padding: 60px 0 90px;
  display: flex;
  flex-direction: column;
  gap: 110px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
  margin-top: 40px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent-2);
}

.hero__title {
  font-family: var(--display);
  font-size: clamp(2.6rem, 4vw, 4.4rem);
  line-height: 1.05;
  margin: 14px 0 18px;
}

.accent {
  color: var(--accent);
}

.accent-alt {
  color: var(--accent-3);
}

.hero__lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 540px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.btn--primary {
  color: #0d1218;
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  box-shadow: 0 20px 40px rgba(45, 212, 191, 0.2);
}

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

.btn--ghost {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.hero__metrics {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.metric {
  min-width: 130px;
}

.metric__value {
  font-family: var(--display);
  font-size: 1.6rem;
}

.metric__label {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.hero__card {
  background: var(--surface);
  border-radius: 22px;
  padding: 28px 28px 32px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
}

.hero__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(45, 212, 191, 0.15), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}

.card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.8);
}

.hero__card h2 {
  font-family: var(--display);
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.focus-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.focus-list li::before {
  content: ">";
  color: var(--accent-2);
  margin-right: 8px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 30px;
  scroll-margin-top: 140px;
}

.section__heading h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 3vw, 3rem);
  margin-top: 10px;
}

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

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

.about-text {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--muted);
  display: grid;
  gap: 18px;
}

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

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

.mini-card h3 {
  font-family: var(--display);
  margin-bottom: 8px;
}

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

.project-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 22px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(45, 212, 191, 0.15), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(6, 11, 16, 0.7);
}

.project-card:hover::after {
  opacity: 1;
}

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

.pill {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.project-card h3 {
  font-family: var(--display);
  font-size: 1.4rem;
}

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

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

.tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: var(--muted);
}

.project-card__actions {
  display: flex;
  gap: 16px;
}

.project-card__actions a {
  text-decoration: none;
  color: var(--accent-2);
  font-weight: 600;
}

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

.skill-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 22px;
  border: 1px solid var(--stroke);
  display: grid;
  gap: 12px;
}

.skill-card h3 {
  font-family: var(--display);
}

.timeline {
  display: grid;
  gap: 18px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
  opacity: 0.6;
}

.timeline-item {
  padding-left: 40px;
  position: relative;
  display: grid;
  gap: 6px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px rgba(244, 184, 89, 0.6);
}

.timeline-year {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.timeline-item h3 {
  font-family: var(--display);
}

.timeline-item p {
  color: var(--muted);
  line-height: 1.6;
}

.contact-section {
  align-items: center;
  text-align: center;
}

.contact-card {
  background: var(--surface-strong);
  padding: 32px;
  border-radius: 24px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  display: grid;
  gap: 22px;
  max-width: 720px;
}

.contact-card p {
  color: var(--muted);
  line-height: 1.6;
}

.contact-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer {
  text-align: center;
  padding: 40px 20px 60px;
  color: var(--muted);
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--delay, 0s);
}

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

@media (max-width: 960px) {
  .topbar {
    flex-direction: column;
    border-radius: 24px;
  }

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

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

@media (max-width: 720px) {
  .topbar {
    gap: 12px;
    padding: 14px 16px;
  }

  .nav {
    gap: 10px;
  }

  .hero__title {
    font-size: clamp(2.2rem, 6vw, 3.2rem);
  }

  main {
    padding-top: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (hover: none) {
  .cursor-trail {
    display: none;
  }
}
