:root {
  color-scheme: dark;
  --bg: #0c0b1a;
  --bg-alt: rgba(28, 26, 46, 0.85);
  --card: rgba(18, 17, 33, 0.78);
  --ink: #f3f1ff;
  --muted: #a6a3bf;
  --accent: #c7b7ff;
  --accent-strong: #b5a4ff;
  --mint: #bfe9dc;
  --peach: #f6c6b3;
  --glow: rgba(170, 154, 255, 0.35);
  --shadow: 0 30px 80px rgba(5, 4, 16, 0.7);
  --shadow-soft: 0 18px 45px rgba(6, 5, 18, 0.55);
  --radius-xl: 28px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 50% 10%, rgba(175, 155, 255, 0.25), transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(191, 233, 220, 0.18), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(246, 198, 179, 0.18), transparent 50%),
    var(--bg);
  min-height: 100vh;
  line-height: 1.5;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  opacity: 0.65;
}

body::before {
  top: -220px;
  right: -200px;
  background: radial-gradient(circle, rgba(179, 162, 255, 0.5), transparent 70%);
}

body::after {
  bottom: -240px;
  left: -200px;
  background: radial-gradient(circle, rgba(199, 233, 222, 0.45), transparent 70%);
}

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

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

.page {
  max-width: 1100px;
  margin: 40px auto 80px;
  padding: 64px 40px 90px;
  background: linear-gradient(160deg, rgba(16, 15, 30, 0.9), rgba(10, 9, 20, 0.9));
  border-radius: 36px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(86, 78, 140, 0.35);
  backdrop-filter: blur(16px);
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(12, 11, 26, 0.75);
  border-bottom: 1px solid rgba(74, 67, 118, 0.4);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 16px auto 0;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(20, 18, 38, 0.85);
  box-shadow: 0 20px 45px rgba(5, 5, 18, 0.6);
  border: 1px solid rgba(94, 86, 150, 0.4);
}

.logo {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero {
  display: grid;
  gap: 24px;
  padding: 40px 0 56px;
  text-align: center;
  justify-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  margin: 0;
  letter-spacing: -0.01em;
}

.hero h1::after {
  content: "";
  display: block;
  width: 320px;
  height: 10px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(187, 171, 255, 0.7), transparent 70%);
  filter: blur(2px);
  opacity: 0.9;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 520px;
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  background: linear-gradient(135deg, #c8b8ff, #aee6d6);
  color: #f5f3ff;
  box-shadow: 0 16px 40px rgba(170, 160, 255, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.metrics-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(24, 22, 40, 0.8);
  border: 1px solid rgba(120, 116, 170, 0.4);
  color: #ebe8ff;
  font-size: 0.9rem;
}

.metric-value {
  font-weight: 700;
  color: #f1edff;
}

.metric-label {
  color: var(--muted);
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title h2 {
  margin: 0;
  font-size: 1.8rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.cat-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(120, 116, 170, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.cat-card__image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
}

.cat-card__image {
  position: relative;
}

.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(8, 7, 16, 0) 40%, rgba(10, 9, 18, 0.75) 100%);
  color: #f7f6ff;
}

.overlay-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.overlay-role {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(230, 225, 255, 0.85);
}

.overlay-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-overlay .chip {
  background: rgba(255, 255, 255, 0.12);
  color: #f5f2ff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.cat-card__body {
  padding: 18px 20px 22px;
  display: grid;
  gap: 10px;
}

.cat-card__body h3 {
  margin: 0;
  font-size: 1.35rem;
}

.tagline {
  margin: 0;
  color: var(--muted);
}

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

.chip {
  background: rgba(200, 190, 255, 0.18);
  color: #e8e5ff;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
}

.text-link {
  font-weight: 600;
  color: #dcd6ff;
}

.text-link span {
  display: inline-block;
  transform: translateX(0);
  transition: transform 0.2s ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mini-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.cat-card.mini .cat-card__image img {
  height: 180px;
  object-fit: contain;
  object-position: center;
  background: rgba(21, 19, 36, 0.8);
}

.cat-card.mini .tagline,
.cat-card.mini .chip-row {
  display: none;
}

.cat-card.mini .cat-card__body {
  padding: 14px 16px 18px;
}

.cat-card.mini h3 {
  font-size: 1.1rem;
}

.footer {
  padding: 32px 24px 60px;
  text-align: center;
  color: var(--muted);
}

.footer a {
  font-weight: 600;
  color: inherit;
}

.mini-hero {
  display: grid;
  gap: 16px;
  padding-bottom: 32px;
}

.profile-header {
  margin-bottom: 24px;
}

.profile-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 24px;
  border-radius: 24px;
  background: rgba(20, 18, 36, 0.85);
  border: 1px solid rgba(120, 116, 170, 0.4);
  box-shadow: var(--shadow-soft);
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  object-fit: cover;
  border: 2px solid rgba(200, 190, 255, 0.4);
}

.profile-info h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.role {
  margin: 6px 0 0;
  color: var(--muted);
}

.profile-links {
  margin-top: 10px;
}

.about-text {
  margin: 0;
  color: var(--muted);
  max-width: 680px;
}

.mini-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--card);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(120, 116, 170, 0.4);
}

.stat-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-item {
  border: 1px solid rgba(120, 116, 170, 0.4);
  padding: 0;
  background: var(--card);
  cursor: pointer;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 16, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 20;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: min(900px, 92vw);
  max-height: 84vh;
  background: var(--card);
  border-radius: 24px;
  padding: 16px;
  position: relative;
  box-shadow: var(--shadow);
}

.lightbox-content img {
  max-height: 70vh;
  width: 100%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: var(--bg-alt);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.8s ease forwards;
  animation-delay: var(--delay, 0s);
}

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

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    gap: 8px;
    border-radius: 20px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding-top: 16px;
  }

  .page {
    margin: 24px 16px 60px;
    padding: 40px 20px 70px;
  }

  .profile-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .profile-avatar {
    width: 88px;
    height: 88px;
  }

  .metrics-row {
    justify-content: center;
  }
}
