:root {
  --bg: #f3efe7;
  --ink: #0f172a;
  --muted: #334155;
  --accent: #0f766e;
  --accent-2: #c2410c;
  --card: rgba(255, 255, 255, 0.78);
  --border: rgba(15, 23, 42, 0.15);
  --shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
  --focus: #0f766e;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 10%, #ffe3c0 0%, transparent 35%),
    radial-gradient(circle at 82% 2%, #c7efe5 0%, transparent 40%),
    var(--bg);
  line-height: 1.65;
  position: relative;
  overflow-x: hidden;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.bg-shape {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.36;
}

.bg-shape-1 {
  width: 260px;
  height: 260px;
  top: 15%;
  left: -90px;
  background: #eb7a34;
}

.bg-shape-2 {
  width: 320px;
  height: 320px;
  bottom: 8%;
  right: -120px;
  background: #14b8a6;
}

.site-header,
main,
.site-footer {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
  /* background: rgba(243, 239, 231, 0.78); */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.13rem;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 1.1rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}

main {
  display: grid;
  gap: 2rem;
  padding: 2rem 0 3rem;
}

#about,
#experience,
#projects,
#contact {
  scroll-margin-top: 92px;
}

.hero {
  padding-top: 0.4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1rem;
  align-items: start;
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-size: 0.78rem;
  margin: 0;
}

.status-badge {
  display: inline-flex;
  margin-top: 0.7rem;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.35);
  background: rgba(20, 184, 166, 0.12);
  color: #115e59;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
}

.hero h1 {
  margin: 0.7rem 0 0.8rem;
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  line-height: 1.08;
  max-width: 14ch;
}

.lead {
  color: var(--muted);
  max-width: 62ch;
  margin: 0;
}

.tagline {
  margin: 0.7rem 0 0;
  color: #1e293b;
  font-weight: 500;
}

.hero-panel {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.hero-panel h2 {
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
}

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

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.68rem 1.08rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: #0f172a;
  color: #fff;
}

.btn-primary:hover {
  background: #1e293b;
}

.btn-secondary {
  border-color: #0f172a;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.85);
}

.btn-secondary:hover {
  background: #ffffff;
}

.card {
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  border-radius: 22px;
  padding: 1.35rem 1.4rem;
}

h2 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.65rem;
  line-height: 1.2;
}

.skills {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.skills li {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.79rem;
  color: #0f172a;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.experience-list {
  display: grid;
  gap: 1rem;
}

.experience-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.9rem;
}

.experience-item h3 {
  margin: 0;
  font-size: 1.08rem;
}

.experience-meta {
  margin: 0.25rem 0 0.7rem;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
}

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

.project-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  padding: 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-card h3 {
  margin: 0;
  line-height: 1.25;
}

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

.impact-list {
  margin: 0;
  padding-left: 1.2rem;
  color: #1e293b;
  display: grid;
  gap: 0.35rem;
}

.impact-list li {
  line-height: 1.45;
}

.stack {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: #0f172a;
  background: rgba(15, 23, 42, 0.04);
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
}

.project-card a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 700;
  margin-top: auto;
}

.contact-grid {
  display: grid;
  gap: 0.45rem;
}

.contact-grid p {
  margin: 0;
}

.contact-grid a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.contact-actions {
  margin-top: 1.1rem;
}

.education-line {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-footer {
  padding: 0 0 2rem;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 700ms ease forwards;
}

.hero.reveal {
  animation-delay: 0ms;
}

#about.reveal {
  animation-delay: 120ms;
}

#projects.reveal {
  animation-delay: 220ms;
}

#goals.reveal {
  animation-delay: 280ms;
}

#contact.reveal {
  animation-delay: 320ms;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1 {
    max-width: 100%;
  }
}

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

  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
