*,
*::before,
*::after {
  box-sizing: border-box;
}

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

:root {
  --bg-body: #020617;
  --bg-soft: #0b1120;
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.16);
  --accent-strong: #4ade80;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: #1f2937;
  --shadow-strong: 0 24px 60px rgba(0, 0, 0, 0.65);
  --radius-lg: 18px;
  --radius-pill: 999px;
  --container-width: 1080px;
}

body {
  font-family: "Karla", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, #1f2937 0, #020617 55%, #000 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.noise-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  background-image: url("https://grainy-gradients.vercel.app/noise.svg");
  z-index: -1;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  padding-inline: 1.5rem;
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section-contact {
  padding-bottom: 6rem;
}

.grid {
  display: grid;
}

.two-cols {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.gap-lg {
  gap: 2rem;
}

@media (max-width: 900px) {
  .two-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.95),
    rgba(2, 6, 23, 0.75),
    transparent
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--text-main);
  text-decoration: none;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: lowercase;
}

.nav-list a:hover {
  color: var(--accent-strong);
}

.nav-toggle {
  display: none;
  border: none;
  background: var(--bg-soft);
  color: var(--text-main);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 1rem;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    position: absolute;
    top: 4rem;
    right: 1.5rem;
    flex-direction: column;
    padding: 0.75rem;
    background-color: rgba(15, 23, 42, 0.98);
    border-radius: 0.75rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-strong);
    display: none;
  }

  .nav-list.is-open {
    display: flex;
  }
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--accent-strong);
  margin: 0 0 0.75rem;
}

.section-title {
  margin: 0;
  font-size: 1.75rem;
}

.muted {
  color: var(--text-muted);
}

.tiny {
  font-size: 0.8rem;
}

.hero {
  padding-top: 5.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

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

.hero-text {
  max-width: 34rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top left, #0f172a, #020617);
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.hero-eyebrow {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.hero-title {
  margin: 0.3rem 0;
  font-size: clamp(2.4rem, 4vw, 3.3rem);
}

.hero-subtitle {
  margin: 0.75rem 0 1.5rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  border: none;
  text-decoration: none;
  background: linear-gradient(135deg, #22c55e, #06b6d4);
  color: #020617;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 20px 40px rgba(34, 197, 94, 0.35);
  transition: transform 120ms ease, box-shadow 120ms ease,
    filter 120ms ease;
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 26px 55px rgba(34, 197, 94, 0.45);
  filter: brightness(1.02);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.9);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-main);
  font-size: 0.9rem;
  text-decoration: none;
}

.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at top left, #0b1120, #020617);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.card.soft {
  padding: 1.5rem 1.6rem;
}

.card-title {
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

.code-card {
  padding: 0;
}

.code-card-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  background: linear-gradient(to right, #020617, #0b1120);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.code-card-header .dot {
  width: 10px;
  height: 10px;
  box-shadow: none;
}

.code-card-header .red {
  background-color: #f97373;
}

.code-card-header .yellow {
  background-color: #facc15;
}

.code-card-header .green {
  background-color: #22c55e;
}

.code-block {
  display: block;
  padding: 1.1rem 1.3rem 1.2rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.8rem;
  color: #e5e7eb;
  background: radial-gradient(circle at top left, #020617, #020617);
  overflow-x: auto;
}

.profile-card {
  margin-top: 1.4rem;
  text-align: center;
  padding-bottom: 1rem;
}

.profile-img {
  width: 100%;
  max-width: 220px;
  display: block;
  margin: 1.2rem auto 0.8rem;
  border-radius: 999px;
  border: 3px solid rgba(34, 197, 94, 0.5);
  object-fit: cover;
}

.profile-caption {
  padding-inline: 1.25rem;
}

.profile-name {
  margin: 0;
  font-weight: 600;
}

.profile-role {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.tag {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.8rem;
  color: var(--text-main);
}

.chip-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.75rem;
}

.project-card {
  padding: 1.5rem 1.6rem 1.4rem;
}

.project-label {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-strong);
}

.project-title {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
}

.project-description {
  margin: 0 0 0.8rem;
  font-size: 0.93rem;
  color: var(--text-muted);
}

.bullet-list {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0.25rem 0 0;
}

.bullet-list li {
  margin-bottom: 0.35rem;
}

.section-contact .card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  padding: 2rem 2rem 2.2rem;
}

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

.contact-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  display: block;
}

.contact-list a {
  color: var(--text-main);
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--accent-strong);
}

.contact-form {
  display: grid;
  gap: 0.75rem;
  align-content: flex-start;
}

.field {
  display: grid;
  gap: 0.2rem;
  font-size: 0.85rem;
}

.field span {
  color: var(--text-muted);
}

input,
textarea {
  border-radius: 0.7rem;
  border: 1px solid var(--border-subtle);
  padding: 0.65rem 0.7rem;
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
}

input:focus,
textarea:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}

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

a:hover {
  color: var(--accent-strong);
}

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  padding: 1.8rem 0 2.2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-start;
}
