:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --border: #e2e8f0;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  max-width: 1150px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--text);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  color: var(--muted);
  font-weight: 600;
}

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

.resume-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
}

.resume-button,
.primary-button {
  background: var(--primary);
  color: white;
  padding: 0.8rem 1.2rem;
}

.resume-button:hover,
.primary-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.secondary-button {
  border: 1px solid var(--border);
  padding: 0.8rem 1.2rem;
  color: var(--text);
  background: white;
}

.secondary-button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero {
  max-width: 1150px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  letter-spacing: -0.06em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.hero-text {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-card,
.content-card,
.project-card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 2rem;
  text-align: center;
}

.profile-placeholder {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
  border-radius: 36px;
  background: linear-gradient(135deg, var(--primary), #0f172a);
  color: white;
  display: grid;
  place-items: center;
  font-size: 3rem;
  font-weight: 900;
}

.hero-card p,
.content-card p,
.contact-card p {
  color: var(--muted);
}

.section {
  max-width: 1150px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.content-card {
  padding: 2rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.two-column {
  grid-template-columns: repeat(2, 1fr);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.project-card {
  padding: 1.5rem;
  font-weight: 800;
  min-height: 130px;
  display: flex;
  align-items: flex-end;
  transition: 0.2s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.spec-list {
  display: grid;
  gap: 0.75rem;
  color: var(--muted);
}

.spec-list li {
  padding-left: 1rem;
  border-left: 3px solid var(--primary);
}

.contact-card {
  padding: 3rem;
  text-align: center;
}

.contact-card p {
  max-width: 620px;
  margin: 1rem auto 2rem;
}

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

  .nav-links {
    flex-wrap: wrap;
  }

  .hero,
  .two-column,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4rem;
  }
}

@media (max-width: 520px) {
  .nav-links {
    gap: 1rem;
  }

  .resume-button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .content-card,
  .contact-card,
  .hero-card {
    padding: 1.5rem;
  }
}
