:root {
  color-scheme: dark;
  --bg: #0b1120;
  --panel: #111827;
  --panel-border: rgba(148, 163, 184, 0.18);
  --text: #e5eefb;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --shadow: 0 20px 45px rgba(2, 8, 23, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top, rgba(14, 165, 233, 0.18), transparent 28%),
    linear-gradient(180deg, #020617 0%, var(--bg) 100%);
  color: var(--text);
}

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

.hero,
main {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  padding: 1.5rem 0 3rem;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-content {
  padding: 5.5rem 0 2rem;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

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

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin-bottom: 0;
}

.summary,
.card p,
.timeline-item p,
.project-card p,
.contact-copy {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0 1.15rem;
  border-radius: 999px;
  font-weight: 600;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #00111a;
}

.button-secondary {
  border: 1px solid var(--panel-border);
  background: rgba(15, 23, 42, 0.55);
}

.section {
  padding: 2.5rem 0;
}

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

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

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card,
.timeline-item,
.project-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--panel-border);
  border-radius: 1.2rem;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.timeline {
  display: grid;
  gap: 1rem;
}

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

.project-card a,
.contact-links a,
.project-label {
  color: var(--accent);
  font-weight: 600;
}

.project-meta {
  margin-bottom: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.project-label {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  background: rgba(56, 189, 248, 0.08);
}

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

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .hero-content {
    padding-top: 3.5rem;
  }
}
