:root {
  --bg: #e7edf4;
  --bg-soft: #dde5ee;
  --surface: #f6f9fc;
  --surface-soft: #edf2f7;
  --text: #18212f;
  --muted: #5f6b7c;
  --line: #d8e0ea;
  --accent: #0f4c81;
  --accent-soft: #eaf2fb;
  --shadow: 0 18px 45px rgba(18, 33, 53, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(214, 226, 239, 0.85), rgba(231, 237, 244, 0) 22%),
    var(--bg);
}

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

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

button {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(231, 237, 244, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(216, 224, 234, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

.brand,
.hero h1,
.section-heading h2,
.contact-panel h2,
.panel h3 {
  font-family: "Sora", sans-serif;
}

.brand {
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.desktop-nav {
  display: flex;
  gap: 28px;
}

.desktop-nav a,
.mobile-menu a {
  color: var(--muted);
  font-weight: 600;
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.mobile-menu a:hover,
.project-links a:hover,
.contact-links a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle.is-open span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

.hero,
.section {
  padding: 84px 0;
  scroll-margin-top: 92px;
}

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

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1.08;
}

.hero-text,
.panel p,
.contact-text {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.04rem;
}

.hero-text {
  max-width: 58ch;
  margin: 22px 0 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #ffffff;
  background: var(--accent);
}

.button-secondary {
  background: var(--surface);
  border-color: var(--line);
}

.hero-card,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 20px;
}

.profile-photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.hero-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.hero-summary div {
  padding: 16px;
  border-radius: 14px;
  background: var(--surface-soft);
}

.summary-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-summary strong {
  font-size: 1rem;
}

.section-soft {
  background: var(--bg-soft);
}

.section-heading {
  max-width: 740px;
  margin-bottom: 28px;
}

.section-heading h2,
.contact-panel h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.2;
}

.about-grid {
  align-items: stretch;
}

.panel {
  padding: 28px;
}

.compact-panel h3,
.panel h3 {
  margin: 8px 0 10px;
  font-size: 1.35rem;
}

.info-grid,
.skills-grid,
.projects-grid {
  display: grid;
  gap: 20px;
}

.info-grid {
  grid-template-columns: 1fr;
}

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

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag-list li,
.project-tags span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 600;
}

.projects-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.project-card {
  padding: 0;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--surface-soft);
}

.project-content {
  padding: 24px;
}

.project-content h3 {
  margin: 10px 0 12px;
}

.project-tags,
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.project-links a {
  color: var(--accent);
  font-weight: 700;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
}

.contact-text {
  max-width: 52ch;
  margin-top: 16px;
}

.contact-links {
  display: grid;
  gap: 12px;
  justify-items: end;
  text-align: right;
}

.contact-links a,
.contact-links span {
  color: var(--muted);
  font-weight: 600;
}

.site-footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  color: var(--muted);
  text-align: center;
}
