:root {
  --red: #a78bfa;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  background: #0b0b0b;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  overflow: auto;
}

html.is-embedded,
html.is-embedded body {
  background: transparent;
}

button {
  color: inherit;
  font: inherit;
}

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

html,
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.section-page {
  min-height: 100vh;
  padding: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.09),
    rgba(255, 255, 255, 0.035)
  );
}

.about-sidebar {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 28px 12px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0.07)
    ),
    rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px) saturate(1.12);
}

.about-sidebar strong {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.about-sidebar button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  color: rgba(255, 255, 255, 0.66);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.about-sidebar button:hover,
.about-sidebar button:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  outline: 0;
}

.about-sidebar .is-selected {
  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(109, 70, 190, 0.9),
    rgba(48, 28, 92, 0.9)
  );
  box-shadow: 0 12px 26px rgba(167, 139, 250, 0.18);
}

.about-main {
  min-width: 0;
  overflow: auto;
  padding: clamp(24px, 3vw, 40px);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.about-main::-webkit-scrollbar,
.about-sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.profile-document {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 280px);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.eyebrow {
  margin: 0 0 10px;
  color: #a78bfa;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(2.9rem, 5.8vw, 6.2rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

p {
  max-width: 66ch;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(0.98rem, 1.25vw, 1.1rem);
  line-height: 1.62;
  text-wrap: pretty;
}

.overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.overview-actions button {
  min-height: 38px;
  padding: 0 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.overview-actions .primary,
.overview-actions button:hover,
.overview-actions button:focus-visible {
  background: linear-gradient(
    135deg,
    rgba(109, 70, 190, 0.95),
    rgba(48, 28, 92, 0.9)
  );
  outline: 0;
}

.panel-intro {
  max-width: 560px;
  margin-bottom: 25px;
  font-size: 0.96rem;
  line-height: 1.45;
}

.profile-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 38px 30px;
  text-align: center;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0.07)
    ),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 44px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(20px) saturate(1.12);
}

.profile-card img {
  width: 98px;
  height: 98px;
  object-fit: contain;
  padding: 10px;
  background: #111;
  border-radius: 22px;
}

.profile-card strong {
  color: #fff;
  font-size: 1.08rem;
  line-height: 1;
}

.profile-card span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.about-panel {
  margin-top: 0;
}

.about-panel:not(.overview-panel) {
  margin-top: clamp(4px, 1vw, 10px);
}

.about-panel[hidden] {
  display: none;
}

.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: clamp(22px, 3vw, 36px) clamp(14px, 2.4vw, 30px);
  align-items: start;
}

.mini-folder {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 8px;
  color: inherit;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  text-align: center;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.mini-folder:hover,
.mini-folder:focus-visible,
.mini-folder.is-selected {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  outline: 0;
  transform: translateY(-2px);
}

.folder-logo {
  position: relative;
  width: min(100%, 118px);
  aspect-ratio: 1.42;
  display: grid;
  place-items: center;
  overflow: hidden;
  clip-path: polygon(
    0 23%,
    31% 23%,
    36% 5%,
    64% 5%,
    70% 23%,
    100% 23%,
    100% 100%,
    0 100%
  );
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 34%),
    var(--folder-color, rgba(167, 139, 250, 0.72));
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -16px 28px rgba(0, 0, 0, 0.22),
    0 16px 28px rgba(0, 0, 0, 0.22);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.36);
}

.folder-logo::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25),
    transparent 48%
  );
  pointer-events: none;
}

.mini-folder strong {
  width: 100%;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.12;
  overflow-wrap: anywhere;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.48);
}

.language-html {
  --folder-color: #e44d26;
}

.language-css {
  --folder-color: #1572b6;
}

.language-js {
  --folder-color: #d6a900;
}

.language-react {
  --folder-color: #149eca;
}

.language-node {
  --folder-color: #3c873a;
}

.language-python {
  --folder-color: #356c9b;
}

.skill-folder {
  --folder-color: #a78bfa;
}

@media (max-width: 760px) {
  .section-page {
    min-height: 100svh;
  }

  .about-sidebar {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    min-height: 54px;
    max-height: 54px;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .about-sidebar strong {
    display: none;
  }

  .about-sidebar button {
    flex: 0 0 auto;
    min-height: 32px;
    height: 32px;
    padding: 0 11px;
    align-self: center;
    white-space: nowrap;
  }

  .about-main {
    padding: 22px;
  }

  .profile-document {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  h1 {
    font-size: clamp(2.25rem, 12vw, 3.55rem);
    letter-spacing: -0.045em;
  }

  p {
    font-size: 1rem;
  }

  .folder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 12px;
  }

  .folder-logo {
    max-width: 112px;
  }
}

.mini-folder small {
  display: block;
  max-width: 180px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
}

.mini-folder {
  align-content: start;
  min-height: 156px;
}

.mini-folder small {
  margin-top: 2px;
}

@media (max-width: 760px) {
  .mini-folder {
    min-height: 150px;
  }
}
