:root {
  --bg: #07131d;
  --bg-soft: #0f1f2e;
  --text: #f2f7fb;
  --muted: #9fb4c4;
  --primary: #40e0b9;
  --secondary: #ffb84d;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-border: rgba(255, 255, 255, 0.11);
  --max: 1120px;
}

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

body {
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at 8% 8%, rgba(64, 224, 185, 0.18), transparent 36%),
    radial-gradient(circle at 92% 6%, rgba(255, 184, 77, 0.16), transparent 40%),
    linear-gradient(160deg, #030a11 0%, var(--bg) 52%, #0d2538 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.35;
  animation: drift 14s ease-in-out infinite alternate;
}

.ambient-left {
  background: var(--primary);
  left: -110px;
  bottom: 15%;
}

.ambient-right {
  background: var(--secondary);
  right: -90px;
  top: 10%;
  animation-delay: 1.5s;
}

.site-header,
main,
footer {
  width: min(var(--max), 92%);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  backdrop-filter: blur(10px);
}

.brand {
  width: 40px;
  height: 40px;
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.08em;
}

nav {
  display: flex;
  gap: 1.2rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.9;
}

nav a:hover {
  color: var(--primary);
}

.hero {
  padding: 5.2rem 0 3.6rem;
  animation: fadeInUp 900ms ease both;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: center;
}

.kicker {
  color: var(--secondary);
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  margin-bottom: 0.9rem;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 4.3rem);
  line-height: 1.07;
  max-width: 17ch;
}

h1 span {
  color: var(--primary);
}

.intro {
  margin-top: 1.3rem;
  max-width: 60ch;
  color: var(--muted);
}

.meta {
  margin-top: 0.65rem;
  color: var(--secondary);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.profile-frame {
  justify-self: end;
  width: min(360px, 100%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--surface-border);
  border-radius: 22px;
  padding: 0.6rem;
}

.profile-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.btn {
  display: inline-block;
  padding: 0.72rem 1.2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 180ms ease, filter 180ms ease, background 180ms ease;
}

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

.btn.primary {
  background: linear-gradient(120deg, var(--primary), #74f3d4);
  color: #032a24;
}

.btn.ghost {
  border: 1px solid var(--surface-border);
  color: var(--text);
}

.stats {
  margin-top: 2.2rem;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.stats li {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 1rem;
}

.stats strong {
  font-size: 1.15rem;
}

.stats span {
  display: block;
  color: var(--muted);
  margin-top: 0.2rem;
  font-size: 0.92rem;
}

.section {
  padding: 3.2rem 0;
  animation: fadeInUp 900ms ease both;
}

.section-heading h2,
.split h2,
footer h2 {
  font-size: clamp(1.4rem, 4vw, 2.3rem);
  max-width: 24ch;
}

.cards {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  padding: 1.2rem;
}

.tag {
  font-family: "IBM Plex Mono", monospace;
  color: var(--secondary);
  font-size: 0.78rem;
}

.card h3,
.timeline-items h3 {
  margin: 0.6rem 0;
  font-size: 1.1rem;
}

.card p,
.split p,
.timeline-items p,
footer p {
  color: var(--muted);
}

.card a {
  color: var(--primary);
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.8rem;
  align-items: start;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.skill-grid > div {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 1rem;
}

.skill-grid h4 {
  margin-bottom: 0.65rem;
}

.skill-grid ul {
  list-style: none;
}

.skill-grid li {
  color: var(--muted);
  padding: 0.15rem 0;
}

.skill-grid li::before {
  content: "• ";
  color: var(--primary);
}

.timeline-items {
  margin-top: 1.3rem;
  display: grid;
  gap: 0.8rem;
}

.timeline-items article {
  border-left: 2px solid rgba(64, 224, 185, 0.5);
  padding: 0.5rem 0 0.5rem 1rem;
}

.timeline-items ul {
  margin-top: 0.45rem;
  list-style: none;
}

.timeline-items li {
  color: var(--muted);
  padding: 0.14rem 0;
}

.timeline-items li::before {
  content: "• ";
  color: var(--primary);
}

.time {
  font-family: "IBM Plex Mono", monospace;
  color: var(--secondary);
  font-size: 0.8rem;
}

footer {
  padding: 2.6rem 0 4rem;
}

footer p {
  margin: 0.8rem 0 1.2rem;
  max-width: 60ch;
}

.contact-links {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: translateY(-15px) scale(1);
  }
  to {
    transform: translateY(25px) scale(1.08);
  }
}

@media (max-width: 950px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .profile-frame {
    justify-self: start;
    width: min(320px, 100%);
  }

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

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

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

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
  }

  nav {
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 3.8rem;
  }

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