.category-wrapper {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.main-nav {
  background: linear-gradient(to bottom, #0b0b0b, transparent);
  width: 100%;
  position: fixed;
  padding: 0 2em;
  height: 85px;
  background: #0b0b0b;
  left: 0;
}

.main-nav .nav-items {
  position: relative;
  height: 85px;
  padding: 0;
  max-width: 1440px;
  margin: 0 auto;
}

.main-nav .nav-items::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, #1e3726, transparent);
}

.main-nav .nav-items::after {
  pointer-events: none;
  content: '';
  position: fixed;
  left: 0;
  top: 70px;
  z-index: -1;
  width: 100%;
  height: 50px;
  background: linear-gradient(to bottom, #0b0b0b, transparent);
}

.main-nav .nav-items .logo {
  position: relative;
}

.main-nav .nav-items .logo img {
  height: 26px;
}

.category-name {
  color: white;
  font-weight: 900;
  letter-spacing: -1px;
  font-size: 18px;
}

.category-page {
  width: calc(100% - 200px);
  position: absolute;
  right: 0;
  padding: 8em 0 6em 1em;
  min-height: 100vh;
}

.category-page .main-category {
  text-transform: uppercase;
  opacity: 0.5;
  letter-spacing: -0.5px;
  font-size: 1rem;
  font-weight: 300;
  margin: 0;
}

.category-page .sub-category {
  margin-bottom: 0.5em;
  line-height: 1em;
  font-size: 4.5rem;
  color: #fff;
  font-weight: 900;
}

.demo-container {
  position: relative;
  width: 100%;
  background: #0b0b0b;
  border: 1px solid #333;
  margin-top: 1.4rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-title-extra {
  font-size: 1.125rem;
  font-weight: 900;
  margin: 2rem 0 0 0;
  color: #e5e7eb;
}

.demo-container-dots {
  position: relative;
}

.demo-container-dots::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, #165f2b 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
  mask:
    linear-gradient(to right, transparent 0%, black 35%, black 55%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 35%, black 55%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask:
    linear-gradient(to right, transparent 0%, black 35%, black 55%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 35%, black 55%, transparent 100%);
  -webkit-mask-composite: source-in;
}

div:has(> .props-table) {
  border: 1px solid #333;
  border-radius: 20px;
}

.split-text-demo,
.blur-text-demo {
  font-size: 6rem;
  font-weight: bolder;
}

.scrambled-text-demo {
  max-width: 600px;
  font-size: 1rem;
  font-weight: bolder;
  color: #27ff64;
}

.star-border-demo .inner-content {
  padding: 1em 3em;
  background-color: #0b0b0b !important;
  border: 1px solid #333 !important;
}

.custom-bounceCards {
  position: relative;
  top: 2em;
}

.custom-folder {
  margin-top: 4em;
}

.ballpit-demo {
  position: relative;
}

.tilted-card-demo-text {
  font-family: 'Figtree', sans-serif;
  font-weight: 900;
  text-transform: capitalize;
  box-shadow: 0 5px 30px #0b0b0b59;
  border-radius: 15px;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.5rem 1em;
  letter-spacing: -0.5px;
  margin: 2em;
}

.shapeblur-demo {
  position: relative;
  mix-blend-mode: difference;
  z-index: 2;
}

.decrypted-text {
  font-size: 2rem;
  display: inline-block;
  font-weight: 400;
  color: #fff;
  cursor: pointer;
}

.variable-proximity-demo {
  max-width: 20ch;
  line-height: 100%;
  font-size: 4rem !important;
  cursor: pointer;
  text-align: center;
}

.shiny-text-demo {
  font-weight: 300;
}

.shiny-button {
  cursor: pointer;
  border: 1px solid #353535;
  background-color: #111;
  padding: 0.4em 1.2em;
  border-radius: 50px;
  transition: 0.3s ease;
}

.shiny-button:hover {
  background-color: #222;
}

.tabbed-layout {
  width: 100%;
}

.tab-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #333;
  border-radius: 10px;
  font-size: 14px;
  height: 36px;
  color: #ffffff;
  background: transparent;
  transition: all 0.3s ease;
}

.tab-header:hover {
  background: #222;
}

.code-example {
  margin: 1.2rem 0;
}

.code-section {
  margin-bottom: 2rem;
}

.code-container {
  position: relative;
  margin-bottom: 1.2rem;
}

.code-wrapper {
  position: relative;
  overflow: hidden;
  border: 1px solid #333;
  border-radius: 15px;
}

.code-wrapper.collapsed {
  max-height: 600px;
}

.code-block {
  overflow: hidden;
  border: none;
  border-radius: 15px;
}

.fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to bottom, transparent, #0b0b0b);
  pointer-events: none;
  z-index: 1;
}

.expand-button {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  height: 2.5rem;
  font-size: 14px;
  font-weight: 500;
  background-color: #0b0b0b;
  border: 1px solid #333;
  color: white;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.3s ease;
}

.expand-button:hover {
  background-color: #111;
}

.expand-button:active {
  background-color: #111;
}

.no-code {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #a1a1aa;
  font-style: italic;
  padding: 2rem;
  background: #0b0b0b;
  border: 1px solid #333;
  border-radius: 15px;
}

.demo-title {
  font-weight: 900;
  font-size: 1.6rem;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  color: #fff;
}

.demo-title span {
  font-size: 0.8rem;
  color: #a1a1aa;
  font-weight: 500;
}

.demo-title::first-letter {
  text-transform: uppercase;
}

.demo-title-contribute {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 900;
}

.demo-title-contribute {
  letter-spacing: -0.5px;
  font-weight: 600;
  margin-bottom: 1em;
  text-align: center;
  font-size: 1.65rem;
  color: #a7ef9e;
}

.contribute-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}

.contribute-button {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  background: #333333;
  border-radius: 10px;
  border: 1px solid #333;
  color: #fff;
  height: 2.5rem;
  padding: 0 1rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.contribute-button:hover {
  background: #222;
}

.contribute-separator {
  margin: 0 0.5rem;
  font-size: 16px;
  color: #a1a1aa;
}

.contribute-container {
  background: #0b0b0b;
  border: 1px solid #333;
  border-radius: 20px;
  padding: 46px;
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contribute-button {
  background-color: #0b0b0b !important;
  border: 1px solid #333;
  transition: 0.5s ease;
}

.contribute-button span {
  color: #a1a1aa;
}

.contribute-button:hover {
  background-color: #222 !important;
}

.demo-details {
  font-size: 1.6rem;
  margin: 0 0 1em;
  display: flex;
  gap: 0.3em;
}

.dependency-tag {
  background-color: #0b0b0b;
  border: 1px solid #333;
  white-space: nowrap;
  color: #27ff64;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 400;
  padding: 0.6em 1.2em;
  transition: 0.3s ease;
  user-select: none;
}

.demo-extra-info {
  margin: 1em 0;
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: #a1a1aa;
}

.jsrepo-info a {
  text-decoration: underline;
}

.cli-divider {
  position: relative;
  margin: 2em auto 2em;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, #333, transparent);
}

.cli-divider::before {
  content: 'Or';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: #0b0b0b;
  padding: 0 1em;
  color: #a1a1aa;
}

.coming-soon a {
  color: #27ff64;
  text-decoration: underline;
}

@media only screen and (max-width: 767px) {
  .main-nav {
    padding: 0 1em;
  }

  .category-wrapper {
    position: static;
  }

  .category-page {
    width: 100%;
    padding: 6em 1em 0;
  }

  .category-page .main-category {
    font-size: 1rem;
  }

  .category-page .sub-category {
    font-size: 3rem;
  }

  .split-text-demo,
  .blur-text-demo {
    font-size: 2rem;
    font-weight: bolder;
  }

  .decrypted-text {
    font-size: 1rem;
  }

  .variable-proximity-demo {
    font-size: 1.6rem !important;
  }

  .contribute-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .contribute-button {
    width: 90%;
  }

  .contribute-separator {
    display: none;
  }

  .demo-title-contribute {
    font-size: 1rem;
  }
}

.custom-gradient-class {
  padding: 1em 2em;
  text-align: center;
}

.count-up-text {
  font-size: 4rem;
  font-weight: bold;
}

.custom-spotlight-card {
  user-select: none;
  border: 1px solid #333 !important;
  width: 350px;
  height: 300px;
}

.contribute-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contribute-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
  justify-content: center;
}

.contribute-button i {
  font-size: 1rem;
  flex-shrink: 0;
}

.contribute-button span {
  font-weight: 500;
}

.contribute-separator {
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .contribute-buttons {
    flex-direction: column;
    width: 100%;
  }

  .contribute-button {
    width: 100%;
    flex: none;
  }

  .contribute-separator {
    order: 2;
  }
}

.scroll-stack-card-demo {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  gap: 1rem;
  white-space: nowrap;
  text-align: center;
}

.scroll-stack-card-demo .stack-img-container {
  width: 100%;
  height: 100%;
  min-height: 150px;
  border-radius: 1.5rem;
  border: 10px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(4rem, 8vw, 8rem);
}

.scroll-stack-demo-container .scroll-stack-inner {
  padding: 20vh 2rem 50rem;
}

.ssc-demo-1 {
  background-color: #35724d;
}

.ssc-demo-2 {
  background-color: #333;
}

.ssc-demo-3 {
  background-color: #35724d;
}

.ssc-demo-4 {
  background-color: #333;
}

.ssc-demo-5 {
  background-color: #35724d;
  text-align: center;
  justify-content: center;
  align-items: center;
}

@media only screen and (min-width: 1240px) {
  .scroll-stack-card-demo {
    flex-direction: row;
    gap: 2rem;
    text-align: left;
  }

  .scroll-stack-demo-container .scroll-stack-inner {
    padding: 20vh 5rem 50rem;
  }

  .scroll-stack-card-demo .stack-img-container {
    width: 50%;
    min-height: auto;
  }

  .scroll-stack-card-demo h3 {
    margin-bottom: 1em;
  }
}

@media only screen and (max-width: 480px) {
  .scroll-stack-card-demo {
    font-size: 1rem;
    padding: 0.2rem;
    gap: 0.5rem;
  }

  .scroll-stack-card-demo .stack-img-container {
    border-width: 5px;
    border-radius: 1rem;
    min-height: 120px;
    font-size: 3rem;
  }
}

.eb-demo-card {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  color: #e9f8ff;
}

.eb-demo-badge {
  align-self: flex-start;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.eb-demo-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.eb-demo-desc {
  margin: 0;
  opacity: 0.7;
  font-size: 14px;
}

.eb-demo-row {
  display: flex;
  gap: 6px;
  margin-top: auto;
}

.eb-demo-chip {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.eb-demo-cta {
  margin-top: 6px;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  color: #2e2e2e;
  background: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  transition:
    transform 120ms ease,
    filter 120ms ease,
    box-shadow 120ms ease;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

.eb-demo-cta:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
  box-shadow: 0 6px 24px rgba(125, 249, 255, 0.25);
}

.eb-demo-button-wrap {
  width: 150px;
  height: 50px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eb-demo-button {
  font-size: 16px;
  line-height: 0;
  letter-spacing: -0.5px;
  color: #b0f29e;
  border: none;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.eb-button-container {
  transition: 0.3s ease;
}

.eb-button-container:hover {
  transform: scale(1.1);
  background-color: rgba(177, 158, 239, 0.1);
  box-shadow: 0 8px 16px rgba(177, 158, 239, 0.1);
  transition: 0.3s ease;
  filter: saturate(1.5);
}
