:root {
  --bg: #0b0f14;
  --bg-soft: #121821;
  --panel: rgba(18, 24, 33, 0.9);
  --panel-strong: #151c26;
  --border: rgba(163, 180, 201, 0.18);
  --text: #f3f7fb;
  --muted: #9da9b7;
  --accent: #79c0ff;
  --accent-soft: rgba(121, 192, 255, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(121, 192, 255, 0.12), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(127, 255, 212, 0.08), transparent 22%),
    linear-gradient(180deg, #0b0f14 0%, #0e131a 100%);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.page-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 2rem;
  align-items: center;
  padding: 4rem 0 3rem;
}

.eyebrow,
.section-kicker,
.card-label,
.project-stack,
.terminal-label {
  margin: 0;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

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

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.8rem, 7vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.tagline {
  margin-bottom: 1rem;
  max-width: 38rem;
  color: #dce7f5;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
}

.intro,
.card p,
.project-card p,
.contact-copy {
  color: var(--muted);
}

.intro {
  max-width: 42rem;
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.3rem;
  border: 1px solid rgba(121, 192, 255, 0.35);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(121, 192, 255, 0.22), rgba(121, 192, 255, 0.12));
  box-shadow: 0 12px 30px rgba(121, 192, 255, 0.14);
  text-decoration: none;
  font-weight: 600;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(121, 192, 255, 0.55);
  background: linear-gradient(180deg, rgba(121, 192, 255, 0.28), rgba(121, 192, 255, 0.16));
}

.hero-panel {
  display: flex;
  justify-content: flex-end;
}

.terminal-card,
.card,
.project-card,
.contact-section {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.terminal-card {
  width: min(100%, 360px);
  padding: 1.4rem;
}

.terminal-card ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: #d8e4f3;
}

.terminal-card li + li {
  margin-top: 0.6rem;
}

.section {
  padding: 2rem 0;
}

.section-heading {
  margin-bottom: 1.25rem;
}

h2 {
  margin-top: 0.45rem;
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

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

.card {
  padding: 1.35rem;
}

.card h3 {
  margin: 0.75rem 0 0.65rem;
  font-size: 1.05rem;
}

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

.project-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem;
}

.project-card h3 {
  margin: 0.4rem 0 0.6rem;
  font-size: 1.35rem;
}

.project-card a,
.contact-links a {
  color: var(--text);
  text-decoration: none;
  font-family: "IBM Plex Mono", monospace;
}

.project-card a {
  flex-shrink: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--accent-soft);
}

.contact-section {
  margin-top: 1rem;
  padding: 1.75rem;
  background:
    linear-gradient(180deg, rgba(121, 192, 255, 0.08), rgba(121, 192, 255, 0.04)),
    var(--panel-strong);
}

.contact-copy {
  max-width: 42rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 1rem;
}

.contact-links a {
  padding-bottom: 0.2rem;
  border-bottom: 1px solid rgba(121, 192, 255, 0.32);
}

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

  .hero-panel {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 1.25rem), var(--max-width));
    padding-top: 1rem;
  }

  .hero,
  .card-grid,
  .project-list {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.5rem;
  }

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

  .project-card a {
    width: 100%;
    text-align: center;
  }
}
