:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #f8fbff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --nav: #0f172a;
  --border: #dbe3ee;
  --shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.hero {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: white;
  padding: 4.5rem 0 4rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.hero-text {
  max-width: 760px;
  font-size: 1.05rem;
  margin: 1rem 0 1.5rem;
}

.site-nav {
  background: var(--nav);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 0;
}

.site-nav a {
  color: white;
  text-decoration: none;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
}

main {
  padding: 2rem 0 3rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

h2 {
  margin-top: 0;
  color: #0f172a;
}

h3 {
  margin-top: 0;
  color: #1e3a8a;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.item {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}

.button {
  display: inline-block;
  text-decoration: none;
  background: var(--accent);
  color: white;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  margin-top: 0.5rem;
  margin-right: 0.4rem;
}

.button:hover {
  background: var(--accent-dark);
}

.button.secondary {
  background: #e7eefc;
  color: #1d4ed8;
}

.button.secondary:hover {
  background: #d9e5ff;
}

.button.small {
  padding: 0.55rem 0.8rem;
  font-size: 0.92rem;
}

.skills-list,
.contact-list {
  padding-left: 1.2rem;
}

footer {
  text-align: center;
  color: var(--muted);
  padding: 0 0 2rem;
}

@media (max-width: 640px) {
  .card {
    padding: 1.25rem;
  }

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