:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-alt: #eef3fb;
  --text: #172033;
  --muted: #61708a;
  --primary: #1e40af;
  --primary-dark: #16348e;
  --accent: #f4b400;
  --border: #d9e1ef;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
.photo-frame {
  position: relative;
  min-height: 340px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, #dbe8ff, #eef4ff);
}

.photo-frame img,
.photo-placeholder {
  width: 100%;
  height: 340px;
}

.photo-frame img {
  object-fit: cover;
  object-position: center 10%;
}
img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.wrapper {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(246, 248, 252, 0.86);
  border-bottom: 1px solid rgba(217, 225, 239, 0.8);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand span {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.nav-menu a {
  color: var(--muted);
  font-weight: 600;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.text-link,
.site-footer a {
  color: var(--primary);
}

.hero {
  padding: 72px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}

.eyebrow,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  background: rgba(30, 64, 175, 0.08);
  color: var(--primary);
  margin: 0 0 18px;
}

.hero h1,
.section h2,
.contact-card h2 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  max-width: 12ch;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 62ch;
  margin: 22px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.pdf-icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
}

.pdf-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-info {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.quick-info li {
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
}

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

.hero-card {
  padding: 20px;
}

.photo-frame {
  position: relative;
  min-height: 420px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, #dbe8ff, #eef4ff);
}

.photo-frame img,
.photo-placeholder {
  width: 100%;
  height: 420px;
}

.photo-frame img {
  object-fit: cover;
}

.photo-placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--primary);
  padding: 24px;
}

.photo-placeholder span {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
}

.photo-placeholder small {
  color: var(--muted);
}

.identity-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  background: var(--surface-alt);
  border-radius: 18px;
}

.identity-card h2 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.identity-card p {
  margin: 0;
  color: var(--muted);
}

.identity-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
}

.section {
  padding: 34px 0;
}

.alt-bg {
  background: linear-gradient(180deg, rgba(238, 243, 251, 0.7), rgba(246, 248, 252, 0));
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 24px;
}

.card,
.highlight-card,
.contact-card {
  padding: 28px;
}

.card p,
.highlight-card p,
.contact-card p,
.project-card p,
.skill-card li {
  color: var(--muted);
}

.highlight-card {
  background: linear-gradient(160deg, #1e40af, #233f95);
  color: #fff;
}

.highlight-card .section-tag,
.highlight-card p,
.highlight-card .text-link {
  color: #fff;
}

.highlight-card .section-tag {
  background: rgba(255, 255, 255, 0.14);
}

.section-heading {
  margin-bottom: 20px;
}

.project-grid,
.skills-grid {
  display: grid;
  gap: 22px;
}

.project-grid {
  grid-template-columns: repeat(3, 1fr);
}

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

.project-card,
.skill-card {
  padding: 24px;
}

.project-card h3,
.skill-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.project-badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(30, 64, 175, 0.1);
  margin-bottom: 16px;
}

.skill-card ul {
  margin: 0;
  padding-left: 18px;
}

.contact-section {
  padding-bottom: 64px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.contact-links {
  display: grid;
  gap: 14px;
}

.contact-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  font-weight: 700;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer-content {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-content p {
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-grid,
  .two-columns,
  .contact-card,
  .project-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  .nav-wrapper,
  .footer-content {
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
  }

  .nav-menu {
    justify-content: center;
  }

  .hero {
    padding-top: 40px;
  }

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

  .btn,
  .contact-links a {
    width: 100%;
  }

  .identity-card {
    align-items: flex-start;
    flex-direction: column;
  }
}
