:root {
  color-scheme: dark;
  --bg: #07080a;
  --bg-soft: #0d1014;
  --card: rgba(18, 20, 24, 0.82);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #9ca3ab;
  --text-strong: #cfd4da;
  --muted: #7d848b;
  --accent-teal: #5fd3c1;
  --accent-amber: #f2b86f;
  --accent-sky: #73b8ff;
  --accent-rose: #e07fa0;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(95, 211, 193, 0.14), transparent 34%),
    radial-gradient(circle at top right, rgba(112, 130, 255, 0.12), transparent 30%),
    radial-gradient(circle at 50% 0%, rgba(242, 184, 111, 0.08), transparent 28%),
    linear-gradient(180deg, #050607 0%, var(--bg) 55%, #040506 100%);
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 32px;
}

.hero-card {
  position: relative;
  width: min(100%, 460px);
  padding: 28px 24px 30px;
  border: 1px solid var(--card-border);
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(22, 24, 29, 0.92), rgba(13, 15, 18, 0.92));
  box-shadow: var(--shadow);
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  isolation: isolate;
}

.content-shell {
  width: min(100%, 880px);
}

.section-nav {
  border-bottom: 1px solid rgba(180, 186, 194, 0.22);
}

.section-tabs {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  scrollbar-width: none;
}

.section-tabs::-webkit-scrollbar {
  display: none;
}

.section-tab {
  position: relative;
  margin: 0;
  padding: 0 0 10px;
  border: 0;
  background: transparent;
  color: #8e949b;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.015em;
  cursor: pointer;
  white-space: nowrap;
  transition: color 150ms ease;
}

.section-tab::after {
  content: "";
  position: absolute;
  left: 6%;
  bottom: -1px;
  width: 88%;
  height: 1px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
  opacity: 0;
  transition: opacity 150ms ease;
}

.section-tab:hover {
  color: #adb3ba;
}

.section-tab.is-active {
  color: #d8dde3;
}

.section-tab.is-active::after {
  opacity: 1;
}

.section-tab:focus-visible {
  outline: 1px solid rgba(220, 224, 229, 0.7);
  outline-offset: 4px;
  border-radius: 2px;
}

.content-card {
  margin-top: 14px;
  padding: 18px 6px 4px;
}

.content-panel {
  display: none;
}

.content-panel.is-active {
  display: block;
}

.content-panel h2 {
  margin: 0;
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: #cdd3da;
}

.content-panel p {
  margin: 12px 0 0;
  max-width: 68ch;
  font-size: 1.05rem;
  line-height: 1.82;
  color: #a1a9b1;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 24%, transparent 76%, rgba(255, 255, 255, 0.03));
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  inset: auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.5;
  pointer-events: none;
}

.hero-glow-left {
  top: -170px;
  left: -155px;
  background: radial-gradient(circle, rgba(95, 211, 193, 0.12), transparent 70%);
}

.hero-glow-right {
  right: -120px;
  bottom: -140px;
  background: radial-gradient(circle, rgba(242, 184, 111, 0.14), transparent 68%);
}

.profile-block {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  justify-items: center;
  text-align: center;
}

.avatar-ring {
  width: 168px;
  height: 168px;
  padding: 9px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(95, 211, 193, 0.28), rgba(255, 255, 255, 0.08), rgba(242, 184, 111, 0.18));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(180deg, #121417, #0b0d10);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

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

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  /* font-size: clamp(1.5rem, 10vw, 3.6rem); */
  font-size: 3.4rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.02);
}

.description {
  margin: 16px auto 0;
  max-width: 30ch;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  justify-content: center;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-strong);
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.contact-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
}

.contact-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.accent-teal {
  color: var(--accent-teal);
}

.telegram {
  color: #34aae4;
}

.accent-amber {
  color: var(--accent-amber);
}

.accent-sky {
  color: var(--accent-sky);
}

.github {
  color: #9b7eff;
}

.accent-rose {
  color: var(--accent-rose);
}

.website-item {
  margin-top: 32px;
  padding: 20px;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: rgba(18, 20, 24, 0.4);
  transition: background 160ms ease, border-color 160ms ease;
}

.website-item:hover {
  background: rgba(18, 20, 24, 0.6);
  border-color: rgba(255, 255, 255, 0.12);
}

.website-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.website-item h3 {
  margin: 0;
  font-size: 1.24rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: #cdd3da;
}

.visit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--accent-teal);
  background: rgba(95, 211, 193, 0.1);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  color: var(--accent-teal);
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.visit-btn:hover {
  transform: translateY(-2px);
  background: rgba(95, 211, 193, 0.2);
  box-shadow: 0 8px 20px rgba(95, 211, 193, 0.2);
}

.visit-btn:focus-visible {
  outline: 2px solid var(--accent-teal);
  outline-offset: 3px;
}

.website-description {
  margin: 8px 0 0;
  font-size: 1.02rem;
  line-height: 1.72;
  color: #a1a9b1;
}

.website-credit {
  margin: 8px 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  font-style: italic;
}

.gallery-container {
  margin-top: 24px;
}

.gallery-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-top: 5px;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(95, 211, 193, 0.5) rgba(255, 255, 255, 0.08);
}

.gallery-item {
  display: flex;
  justify-content: center;
  flex: 0 0 auto;
  width: clamp(180px, 30vw, 280px);
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: rgba(18, 20, 24, 0.5);
  scroll-snap-align: start;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(130px, 22vw, 210px);
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
  transition: transform 300ms ease;
}

@media (min-width: 781px) {
  .gallery-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 32px rgba(95, 211, 193, 0.15);
  }
  
  .gallery-item:hover img {
    transform: scale(1.02);
  }
}

@media (max-width: 780px) {
  .gallery-track {
    gap: 10px;
  }

  .gallery-item {
    width: clamp(160px, 72vw, 240px);
    padding: 8px;
  }

  .gallery-item img {
    max-height: clamp(120px, 48vw, 180px);
  }

  .hero-card {
    padding: 22px 18px 24px;
    border-radius: 30px;
  }

  .avatar-ring {
    width: 148px;
    height: 148px;
  }

  .section-tabs {
    gap: 14px;
  }

  /* .section-tab {
    font-size: 0.88rem;
  } */

  .content-card {
    padding: 14px 2px 2px;
  }

  .content-panel h2 {
    font-size: 1.24rem;
  }

  .content-panel p {
    font-size: 1rem;
    line-height: 1.76;
  }
}
