:root {
  --bg: #050505;
  --bg-soft: #0d0d0d;
  --card: #111111;
  --card-2: #171717;
  --border: #2c2c2c;
  --text: #ffffff;
  --muted: #a3a3a3;
  --keyword: #f9c800;
  --shadow: rgba(0, 0, 0, 0.38);
}

body.light {
  --bg: #f5f5f5;
  --bg-soft: #ffffff;
  --card: #ffffff;
  --card-2: #f0f0f0;
  --border: #d2d2d2;
  --text: #050505;
  --muted: #555555;
  --keyword: #c99700;
  --shadow: rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px),
    var(--bg);
  background-size: 72px 72px;
  color: var(--text);
  line-height: 1.7;
}

body.light {
  background-size: 48px 48px;
}

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

ul {
  padding-left: 1.15rem;
}

li {
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.keyword {
  color: var(--keyword);
  font-weight: 850;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--keyword);
  z-index: 999;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-size: 1.45rem;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.logo span {
  color: var(--keyword);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-links a {
  color: var(--muted);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition: 0.18s ease;
}

.nav-links a:hover {
  background: var(--card);
  color: var(--text);
}

.theme-toggle,
.menu-btn {
  width: 44px;
  height: 42px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.theme-icon {
  position: relative;
  width: 18px;
  height: 18px;
  display: block;
}

.theme-icon.moon {
  border: 2px solid var(--text);
  border-radius: 50%;
}

.theme-icon.moon::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 6px;
  width: 18px;
  height: 18px;
  background: var(--card);
  border-radius: 50%;
}

.theme-icon.sun {
  border: 2px solid var(--text);
  border-radius: 50%;
}

.theme-icon.sun::before,
.theme-icon.sun::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 26px;
  background: var(--text);
  transform: translate(-50%, -50%);
}

.theme-icon.sun::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.menu-btn {
  display: none;
  border-radius: 12px;
  padding: 9px;
}

.menu-btn span {
  width: 100%;
  height: 2px;
  background: var(--text);
  display: block;
  margin: 3px 0;
}

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

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 2rem;
}

.eyebrow,
.section-title p {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.085em;
  margin-bottom: 1.25rem;
}

.name {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0 0.18em;
  align-items: baseline;
}

.name span {
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
  transition: 0.2s ease;
}

.name:hover span {
  color: var(--keyword);
  -webkit-text-stroke-color: var(--keyword);
}

.hero-text {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 1.7rem;
}

.hero-actions,
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions {
  margin-bottom: 1rem;
}

.btn,
.social-row a {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.8rem 1rem;
  font-weight: 800;
  transition: 0.18s ease;
}

.btn:hover,
.social-row a:hover,
.card:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--keyword);
  color: #111111;
  border-color: var(--keyword);
}

.btn.secondary,
.social-row a {
  background: var(--card);
  color: var(--text);
}

.social-row a {
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-card,
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 18px 50px var(--shadow);
}

.profile-card {
  text-align: center;
  padding: 1.5rem;
}

.profile-photo {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--keyword);
  margin-bottom: 1rem;
}

.profile-card h2 {
  font-size: 1.5rem;
}

.profile-card p {
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.quick-info {
  display: grid;
  gap: 0.7rem;
  text-align: left;
}

.quick-info a {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.75rem 0.9rem;
}

.quick-info span,
.contact-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.quick-info strong,
.contact-grid strong {
  overflow-wrap: anywhere;
  font-size: 0.93rem;
}

.section-title {
  max-width: 760px;
  margin-bottom: 1.35rem;
}

.section-title h2 {
  font-size: clamp(2rem, 5vw, 3.45rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.card {
  padding: 1.35rem;
  transition: 0.18s ease;
}

.card p {
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.timeline-header p,
.timeline-header span {
  color: var(--muted);
}

.timeline-header span {
  white-space: nowrap;
}

.grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card h3 {
  margin-bottom: 0.9rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tags span {
  color: #111111;
  background: var(--keyword);
  border-radius: 999px;
  padding: 0.45rem 0.65rem;
  font-weight: 750;
  font-size: 0.88rem;
}

.number {
  color: var(--keyword);
  font-weight: 950;
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 0.8rem;
}

.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 880px) {
  .menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 20px;
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

  .grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .timeline-header {
    flex-direction: column;
  }

  .timeline-header span {
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .section,
  .nav,
  .footer {
    width: min(100% - 24px, 1120px);
  }

  .section {
    padding: 64px 0;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 15vw, 4rem);
  }
}

@media print {
  .site-header,
  .hero-actions,
  .social-row,
  .scroll-progress {
    display: none;
  }

  body {
    background: #ffffff;
    color: #111111;
  }

  .section {
    padding: 22px 0;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .profile-card,
  .card {
    box-shadow: none;
  }
}
