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

:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --muted-light: #64748b;
  --border: #dbe3ee;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #dbeafe;
  --header-bg: #0f172a;
  --header-text: #e5e7eb;
  --header-muted: #94a3b8;
  --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --radius-sm: 10px;
  --max-width: 1080px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

a:hover {
  text-decoration: none;
  color: var(--primary-dark);
}

.container {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: relative;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(37, 99, 235, 0) 50%),
    linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: var(--header-text);
  padding: 28px 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .container {
  display: grid;
  gap: 18px;
}

.branding h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.branding h1 a {
  color: inherit;
}

.branding h1 a:hover {
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 8px;
  color: #93c5fd;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tagline {
  margin: 10px 0 4px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #f8fafc;
}

.location {
  margin: 0;
  font-size: 0.95rem;
  color: var(--header-muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--header-text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active,
.site-nav a[aria-current="page"] {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(147, 197, 253, 0.35);
  color: #ffffff;
  outline: none;
}

main {
  padding: 28px 0 56px;
}

.section {
  padding: 20px 0;
}

.section .container {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px 22px;
}

.section-alt .container {
  background: var(--surface);
}

.hero .container {
  padding: 34px 22px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 1) 60%);
  box-shadow: var(--shadow-md);
}

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section p,
.section li {
  color: var(--muted);
  font-size: 1rem;
}

.hero h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.hero p {
  max-width: 72ch;
  font-size: 1.04rem;
}

.item {
  margin-bottom: 18px;
  padding: 18px 18px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-soft) 100%);
}

.item:last-child {
  margin-bottom: 0;
}

.item h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--text);
}

.item-meta {
  margin: 0 0 10px;
  font-size: 0.94rem;
  color: var(--muted-light);
}

.highlights,
.simple-list {
  padding-left: 1.2rem;
  margin: 12px 0 0;
}

.highlights li,
.simple-list li {
  margin-bottom: 8px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills-grid span {
  background: var(--primary-soft);
  color: #1e3a8a;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
}

.button:hover,
.button:focus-visible {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.28);
  outline: none;
}

.site-footer {
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: #94a3b8;
  text-align: center;
  padding: 20px 0;
  font-size: 0.92rem;
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
  border-radius: 8px;
}

@media (min-width: 760px) {
  .site-header .container {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .section .container,
  .hero .container {
    padding: 34px 30px;
  }
}

@media (max-width: 759px) {
  .site-nav {
    gap: 8px;
  }

  .site-nav a {
    font-size: 0.92rem;
    padding: 8px 12px;
  }

  .section .container,
  .hero .container {
    padding: 24px 18px;
  }

  .item {
    padding: 16px 14px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
