:root {
  --bg-1: #1f2127;
  --bg-2: #262a31;
  --bg-3: #2d3139;
  --panel: #262a31;
  --panel-2: #2d3139;
  --card: #2f343c;
  --card-soft: #343943;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text-main: #f2f4f8;
  --text-soft: #c8ced9;
  --text-muted: #9ea8b6;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --cursor-main: url("assets/cursor.png") 4 4, auto;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.04), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.03), transparent 18%),
    linear-gradient(180deg, var(--bg-3), var(--bg-1));
  cursor: var(--cursor-main);
}

body,
a,
button,
.tab,
.action-button,
.contact-card,
.chip {
  cursor: var(--cursor-main);
}

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

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

button {
  font: inherit;
  border: 0;
  outline: none;
}

.page-shell {
  min-height: 100vh;
  padding: 40px 20px;
}

.portfolio-card {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: rgba(36, 39, 47, 0.94);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero__text {
  max-width: 780px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 700;
}

.hero__title {
  margin: 18px 0 10px;
  font-size: clamp(46px, 8vw, 72px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.hero__location {
  color: var(--text-muted);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero__subtitle {
  margin: 0;
  color: var(--text-soft);
  font-size: 21px;
  line-height: 1.6;
}

.hero__avatar-wrap {
  flex-shrink: 0;
}

.hero__avatar-ring {
  padding: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7d8592, #d2d7df, #5e6571);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

.hero__avatar {
  width: 148px;
  height: 148px;
  object-fit: cover;
  border-radius: 999px;
  border: 6px solid #24272d;
  background: #181b20;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 18px;
  background: #2c3038;
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-weight: 700;
  transition: 0.18s ease;
}

.tab:hover {
  background: #343943;
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.tab.is-active {
  background: #404754;
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.tab__icon,
.section-title__icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tab__icon svg,
.section-title__icon svg,
.action-button svg {
  width: 100%;
  height: 100%;
}

.panel {
  display: none;
}

.panel.is-visible {
  display: block;
  animation: fadeUp 0.24s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.info-grid {
  display: grid;
  gap: 16px;
}

.info-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.content-card--wide {
  background: var(--panel-2);
}

.content-card--wide p {
  margin: 0 0 20px;
  line-height: 1.85;
  color: var(--text-soft);
  font-size: 18px;
}

.content-card--wide p:last-of-type {
  margin-bottom: 0;
}

.mini-card {
  padding: 20px;
  border-radius: 22px;
  background: var(--card-soft);
  border: 1px solid var(--border);
}

.mini-card__label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}

.mini-card__text {
  font-size: 21px;
  line-height: 1.45;
  font-weight: 700;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #3a404b;
  color: #f6f7fa;
  padding: 10px;
}

.section-title h3,
.project-title-row h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: #3a404b;
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 14px;
}

.chip--strong {
  background: #444c59;
}

.content-card--project {
  background: var(--panel-2);
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.project-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: #3d4450;
  border: 1px solid var(--border);
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 11px;
  font-weight: 700;
}

.project-description {
  margin: 0 0 16px;
  max-width: 800px;
  color: var(--text-soft);
  line-height: 1.85;
  font-size: 17px;
}

.action-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 18px;
  background: #454d5b;
  border: 1px solid var(--border-strong);
  color: #ffffff;
  font-weight: 700;
  transition: 0.18s ease;
}

.action-button svg {
  width: 18px;
  height: 18px;
}

.action-button:hover {
  transform: translateY(-1px);
  background: #505969;
}

.contact-card {
  transition: 0.18s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  background: #353b46;
}

.contact-card p {
  margin: 0;
  color: var(--text-main);
  font-size: 18px;
  font-weight: 600;
}

.contact-link,
.contact-note {
  display: inline-block;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 14px;
}

.footer {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  text-align: center;
  font-size: 14px;
}

@media (max-width: 880px) {
  .page-shell {
    padding: 20px 14px;
  }

  .portfolio-card {
    padding: 20px;
    border-radius: 24px;
  }

  .hero {
    gap: 20px;
  }

  .hero__subtitle {
    font-size: 18px;
  }

  .hero__avatar {
    width: 112px;
    height: 112px;
  }

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

  .mini-card__text {
    font-size: 18px;
  }

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