:root {
  color-scheme: dark;
  --bg: #071018;
  --panel: rgba(12, 22, 34, 0.74);
  --panel-strong: rgba(18, 32, 48, 0.92);
  --text: #eef7ff;
  --muted: #9db0c4;
  --line: rgba(255, 255, 255, 0.12);
  --cyan: #22d3ee;
  --lime: #a3e635;
  --pink: #fb7185;
  --amber: #fbbf24;
  --blue: #60a5fa;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 15%, rgba(34, 211, 238, 0.18), transparent 28rem),
    radial-gradient(circle at 85% 5%, rgba(251, 191, 36, 0.14), transparent 24rem),
    radial-gradient(circle at 82% 75%, rgba(251, 113, 133, 0.16), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

#mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 16, 24, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
}

.brand {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--lime));
  color: #061018;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a,
.nav-cta,
.button {
  border-radius: 8px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-links a {
  padding: 10px 12px;
}

.nav-links a:hover,
.nav-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.nav-cta {
  padding: 12px 16px;
  background: var(--text);
  color: #071018;
  font-weight: 800;
  font-size: 14px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  gap: 34px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 64px 0 34px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(62px, 10vw, 124px);
  line-height: 0.9;
}

h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
}

.hero-text {
  max-width: 680px;
  color: #c5d6e7;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.58;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  font-weight: 800;
}

.button.primary {
  background: linear-gradient(135deg, var(--pink), var(--amber));
  color: #16080a;
  border-color: transparent;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.contact-strip a {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.hero-panel {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 24px, rgba(255, 255, 255, 0.06) 25px),
    linear-gradient(0deg, transparent 24px, rgba(255, 255, 255, 0.05) 25px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, black, transparent);
  pointer-events: none;
}

.status-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(163, 230, 53, 0.28);
  border-radius: 8px;
  background: rgba(163, 230, 53, 0.08);
  color: #d9ffc7;
  font-size: 13px;
  font-weight: 700;
}

.status-pill span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 18px var(--lime);
}

.profile-orbit {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  height: 320px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(1, 110, 126, 0.92), rgba(163, 12, 34, 0.94));
  color: white;
  font-family: "Space Grotesk", sans-serif;
  font-size: 52px;
  font-weight: 800;
  box-shadow: 0 0 55px rgba(34, 211, 238, 0.28);
}

.orbit {
  position: absolute;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 16, 24, 0.82);
  color: #d7e6f7;
  font-size: 13px;
  font-weight: 800;
  animation: float 5s ease-in-out infinite;
}

.orbit-one {
  top: 42px;
  left: 40px;
}

.orbit-two {
  top: 90px;
  right: 24px;
  animation-delay: -1s;
}

.orbit-three {
  bottom: 62px;
  left: 26px;
  animation-delay: -2s;
}

.orbit-four {
  right: 58px;
  bottom: 28px;
  animation-delay: -3s;
}

.stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stats-grid div {
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.stats-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--amber);
  font-family: "Space Grotesk", sans-serif;
  font-size: 32px;
}

.stats-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.ticker div {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 18px 0;
  animation: marquee 24s linear infinite;
}

.ticker span {
  padding: 10px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #dce9f7;
  font-weight: 800;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
}

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

.skill-board {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.skill-tab {
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.skill-tab.active {
  background: var(--cyan);
  color: #061018;
}

.skill-cloud {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.skill-chip {
  min-height: 78px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: #dce9f7;
  font-weight: 800;
  transform: translateY(0);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.skill-chip:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.12);
}

.split {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 40px;
  align-items: start;
}

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

.timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--cyan), var(--pink));
}

.timeline-card {
  position: relative;
  padding: 22px 22px 22px 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.18);
}

.timeline-dot {
  position: absolute;
  left: 6px;
  top: 28px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 20px var(--cyan);
}

.date,
.company {
  color: var(--muted);
  font-size: 14px;
}

.timeline-card h3,
.project-card h3 {
  margin-bottom: 6px;
  font-size: 24px;
}

ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: #c5d6e7;
  line-height: 1.7;
}

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

.project-card {
  min-height: 310px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease;
}

.project-card:hover {
  transform: translateY(-6px) rotateX(1deg);
  border-color: rgba(251, 191, 36, 0.42);
}

.project-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 42px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 800;
}

.project-top a {
  color: var(--cyan);
}

.project-card p {
  color: #c5d6e7;
  line-height: 1.65;
}

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

.project-tags span {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #dce9f7;
  font-size: 12px;
  font-weight: 800;
}

.achievement-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-block: 18px 68px;
}

.achievement {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.achievement span {
  color: var(--amber);
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 800;
}

.achievement p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.education {
  padding-top: 40px;
}

.education-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
}

.edu-card {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
}

.edu-card strong {
  display: block;
  margin-bottom: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
}

.edu-card span,
.edu-card p {
  color: var(--muted);
  line-height: 1.55;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer a {
  color: var(--cyan);
  font-weight: 800;
}

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

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: stretch;
  }

  .nav-links {
    display: none;
  }

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

  .hero {
    min-height: auto;
    padding-top: 52px;
  }

  .skill-cloud,
  .project-grid,
  .achievement-band,
  .education-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  .section,
  footer {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    font-size: clamp(54px, 19vw, 82px);
  }

  .hero-panel {
    padding: 14px;
  }

  .profile-orbit {
    height: 270px;
  }

  .avatar {
    width: 126px;
    height: 126px;
    font-size: 44px;
  }

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

  .section {
    padding: 62px 0;
  }

  footer {
    flex-direction: column;
  }
}
