.projects-split__intro {
  margin-bottom: 0rem;
  padding-top: 4rem;
}

.projects-split__inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 2rem 0 4rem 0;
}

.projects-split__nav,
.projects-split__display {
  min-width: 0;
}

@media (min-width: 1000px) {
  .projects-split__inner {
    flex-direction: row;
    align-items: flex-start;
  }
  .projects-split__nav {
    flex: 0 0 360px;
    position: sticky;
    top: 6rem;
  }
  .projects-split__display {
    flex: 1;
    min-width: 0;
  }
}

.projects-split__intro {
  margin-bottom: 2rem;
}

.projects-split__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--yellow-400, #ffb800);
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.projects-split__title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--text-0, #fff);
  margin-bottom: 1rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.projects-split__subtitle {
  color: var(--text-2, #a0aec0);
  font-size: 1.1rem;
  line-height: 1.6;
}

.projects-split__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 415px; /* Exactly 5 items in height */
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  padding-right: 0.5rem;
}

.projects-split__list::-webkit-scrollbar {
  width: 6px;
}

.projects-split__list::-webkit-scrollbar-track {
  background: transparent;
}

.projects-split__list::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}

.ps-nav-btn {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  text-align: left;
  color: var(--text-1, #cfd8dc);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.ps-nav-btn::before {
  content: "";
  position: absolute;
  left: 0; top: 10%; bottom: 10%;
  width: 4px;
  border-radius: 4px;
  background: var(--yellow-400, #ffb800);
  transform: scaleY(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.ps-nav-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-0, #ffffff);
}

.ps-nav-btn.is-active {
  background: var(--glass-bg, rgba(5, 13, 26, 0.8));
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-0, #ffffff);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.ps-nav-btn.is-active::before {
  transform: scaleY(1);
}

.ps-nav-btn-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.ps-nav-btn-content > div {
  min-width: 0;
}

.ps-nav-label-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.ps-nav-btn:hover .ps-nav-label-icon,
.ps-nav-btn.is-active .ps-nav-label-icon {
  opacity: 1;
}

.ps-nav-title {
  font-weight: 600;
  font-size: 1.1rem;
  display: block;
  overflow-wrap: anywhere;
}

.ps-nav-cat {
  font-size: 0.85rem;
  color: var(--text-2, #a0aec0);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
  display: block;
  overflow-wrap: anywhere;
}

.is-archived-btn .ps-nav-title {
  color: var(--text-2);
}


/* Toggle Archived */
.ps-nav-toggle-wrapper {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ps-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  gap: 1rem;
}
.ps-toggle input {
  display: none;
}
.ps-toggle-slider {
  position: relative;
  width: 40px;
  height: 22px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transition: background 0.3s;
}
.ps-toggle-slider::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ps-toggle input:checked + .ps-toggle-slider {
  background: var(--yellow-500, #f59e0b);
}
.ps-toggle input:checked + .ps-toggle-slider::after {
  transform: translateX(18px);
}
.ps-toggle-label {
  font-size: 0.9rem;
  color: var(--text-1);
  font-weight: 500;
}

/* Premium Card Design */
.ps-card {
  position: relative;
  background: var(--bg-1, #08111e);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ps-card.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.ps-card__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.15);
}

@media (min-width: 1000px) {
  .ps-card__inner {
    flex-direction: row;
    min-height: 450px;
  }
}

.ps-card__content {
  padding: 3rem;
  flex: 0.95 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ps-card__visual {
  flex: 1.05 1 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
  padding: 2rem;
  position: relative;
  background: transparent;
}

.ps-card__media-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  align-self: stretch;
}

.ps-card__media-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  box-shadow: 0 16px 34px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.06);
  padding: 1.25rem;
  box-sizing: border-box;
}

.ps-card__preview {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  flex: 0 1 auto;
  object-fit: contain;
  object-position: center;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: opacity 0.18s ease;
}

.ps-card__media-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.ps-card__media-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(5, 13, 26, 0.78);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ps-card__media-btn:hover {
  color: #000;
  border-color: var(--yellow-400, #fbbf24);
  background: var(--yellow-400, #fbbf24);
}

.ps-card__media-count {
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(5, 13, 26, 0.72);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Card Content Details */
.ps-card__tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
  width: auto;
}

.ps-card__tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--text-1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.ps-card__tag--active {
  color: #000;
  background: #10b981;
  border-color: #10b981;
}

.ps-card__tag--archived {
  background: rgba(0,0,0,0.3);
  color: var(--text-2);
}

.pulse-dot {
  width: 6px; height: 6px;
  background: #000;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,0,0,0.4); }
  70% { box-shadow: 0 0 0 6px rgba(0,0,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}

.ps-card__header {
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ps-card__title {
  font-size: 2.5rem;
  color: #fff;
  margin: 0;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  width: 100%;
  overflow-wrap: anywhere;
}

.ps-card__desc {
  color: var(--text-1, #cfd8dc);
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.ps-card__features {
  display: grid;
  gap: 0.45rem;
  margin: -0.75rem 0 2rem;
  padding: 0;
  list-style: none;
  color: var(--text-2, #a0aec0);
  font-size: 0.92rem;
  line-height: 1.45;
}

.ps-card__features li {
  position: relative;
  padding-left: 1.15rem;
}

.ps-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow-400, #fbbf24);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.45);
}

.ps-card__bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  gap: 2rem;
}

.ps-card__tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  flex: 1;
}

.ps-card__tech-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-2);
  font-weight: 500;
}

.ps-card__tech-item img {
  width: 20px;
  height: 20px;
}

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

.ps-card__action-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 100%;
}

.ps-card__action-group--downloads {
  margin-left: 0;
  width: min(100%, 28rem);
  flex-wrap: nowrap;
  justify-content: center;
  container-type: inline-size;
}

.ps-card__bottom-row .ps-card__tags {
  margin-left: auto;
}

.ps-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 1rem;
  background: var(--yellow-500, #f59e0b);
  color: #000;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.3s ease;
  width: fit-content;
  max-width: 220px;
  white-space: nowrap;
}

.ps-card__action span {
  min-width: 0;
}

.ps-card__action-label--short {
  display: none;
}

.ps-card__action-group--downloads .ps-card__action {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.95rem 1.4rem;
  gap: 0.75rem;
}

@container (max-width: 27rem) {
  .ps-card__action-group--downloads {
    width: 100%;
  }

  .ps-card__action-group--downloads .ps-card__action-label--full {
    display: none;
  }

  .ps-card__action-group--downloads .ps-card__action-label--short {
    display: inline;
  }

  .ps-card__action-group--downloads .ps-card__action {
    padding: 0.95rem 1.4rem;
    font-size: 0.96rem;
    gap: 0.75rem;
  }
}

.ps-card__action i {
  transition: transform 0.3s ease;
}

.ps-card__action:not(.is-disabled):hover {
  background: var(--yellow-400, #fbbf24);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.ps-card__action:not(.is-disabled):hover i.fa-arrow-right {
  transform: translateX(4px);
}

.ps-card__action--download {
  background: #2563eb;
  color: #fff;
}

.ps-card__action--download:not(.is-disabled):hover {
  background: #3b82f6;
  color: #fff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.28);
}

.ps-card__action--secondary {
  background: #5865f2;
  color: #fff;
  border: 1px solid rgba(88, 101, 242, 0.75);
}

.ps-card__action--secondary:not(.is-disabled):hover {
  color: #fff;
  background: #6b77f7;
  border-color: rgba(107, 119, 247, 0.85);
  box-shadow: 0 10px 20px rgba(88, 101, 242, 0.28);
}

.ps-card__action.is-disabled {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
  pointer-events: none;
}

/* Search Bar styling */
.ps-search-wrapper {
  position: relative;
  margin-bottom: 1rem;
}
.ps-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-2);
  pointer-events: none;
}
.ps-search-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  color: var(--text-0);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}
.ps-search-input:focus {
  outline: none;
  border-color: var(--yellow-400);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 2px rgba(255, 184, 0, 0.1);
}
.ps-search-input::placeholder {
  color: var(--text-2);
  opacity: 0.7;
}


/* Divider styling */
.ps-nav-divider {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.5rem 0.5rem 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ps-nav-divider-text {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-2);
}
.ps-nav-divider-count {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  color: var(--text-1);
}

@media (max-width: 999px) {
  .projects-split__inner {
    gap: 2rem;
    padding: 1.5rem 0 3rem 0;
  }

  .projects-split__intro {
    margin-bottom: 1.5rem;
    padding-top: 3rem;
  }

  .projects-split__list {
    max-height: min(50vh, 22rem);
    padding-right: 0.25rem;
  }

  .ps-nav-btn {
    padding: 0.95rem 1rem;
  }

  .ps-nav-label-icon {
    width: 30px;
    height: 30px;
  }

  .ps-card {
    border-radius: 20px;
  }

  .ps-card__content {
    padding: 2rem 1.5rem 1.5rem;
  }

  .ps-card__visual {
    padding: 0 1.5rem 1.5rem;
  }

  .ps-card__title {
    font-size: clamp(1.95rem, 6vw, 2.35rem);
  }

  .ps-card__desc {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .ps-card__bottom-row {
    gap: 1rem;
  }
}

@media (max-width: 680px) {
  .projects-split__inner {
    gap: 1.5rem;
  }

  .projects-split__intro {
    padding-top: 2.5rem;
  }

  .projects-split__title {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }

  .projects-split__subtitle {
    font-size: 0.98rem;
  }

  .projects-split__eyebrow {
    font-size: 1.88rem;
    margin-bottom: 0.65rem;
  }

  .projects-split__list {
    max-height: min(46vh, 18rem);
  }

  .ps-nav-btn {
    padding: 0.85rem 0.95rem;
    border-radius: 10px;
  }

  .ps-nav-btn-content {
    gap: 0.75rem;
  }

  .ps-nav-title {
    font-size: 0.98rem;
  }

  .ps-nav-cat {
    font-size: 0.76rem;
  }

  .ps-nav-toggle-wrapper {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
  }

  .ps-toggle {
    align-items: flex-start;
    gap: 0.75rem;
  }

  .ps-card__content {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .ps-card__visual {
    padding: 0 1.25rem 1.25rem;
  }

  .ps-card__media-frame {
    border-radius: 14px;
    aspect-ratio: 16 / 11;
    padding: 1rem;
  }

  .ps-card__header {
    margin-bottom: 1rem;
    padding-bottom: 0.7rem;
  }

  .ps-card__title {
    font-size: clamp(1.65rem, 8vw, 2rem);
  }

  .ps-card__desc {
    font-size: 0.98rem;
    margin-bottom: 1.25rem;
  }

  .ps-card__features {
    margin: -0.25rem 0 1.5rem;
    font-size: 0.88rem;
  }

  .ps-card__bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }

  .ps-card__tech-list {
    width: 100%;
    gap: 0.75rem;
  }

  .ps-card__tags,
  .ps-card__bottom-row .ps-card__tags {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .ps-card__footer {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .ps-card__action-group {
    width: 100%;
  }

  .ps-card__action-group--downloads {
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: center;
    container-type: normal;
  }

  .ps-card__action,
  .ps-card__action-group--downloads .ps-card__action {
    width: min(100%, 220px);
    max-width: 220px;
    padding: 0.9rem 1rem;
    font-size: 0.96rem;
  }

  .ps-card__action-label--full {
    display: inline;
  }

  .ps-card__action-label--short {
    display: none;
  }
}

@media (max-width: 480px) {
  .projects-split__intro {
    padding-top: 2rem;
    margin-bottom: 1.25rem;
  }

  .projects-split__list {
    max-height: min(42vh, 15rem);
  }

  .projects-split__eyebrow {
    font-size: 1.8rem;
    gap: 0.45rem;
  }

  .ps-search-input {
    font-size: 0.9rem;
    padding-left: 2.5rem;
  }

  .ps-nav-title {
    font-size: 0.92rem;
  }

  .ps-nav-cat {
    font-size: 0.72rem;
  }

  .ps-toggle-label {
    font-size: 0.82rem;
  }

  .ps-card {
    border-radius: 16px;
  }

  .ps-card__content {
    padding: 1.25rem 1rem 1rem;
  }

  .ps-card__visual {
    padding: 0 1rem 1rem;
  }

  .ps-card__media-frame {
    padding: 0.75rem;
    border-radius: 12px;
  }

  .ps-card__title {
    font-size: 1.5rem;
  }

  .ps-card__desc {
    font-size: 0.93rem;
  }

  .ps-card__tag {
    padding: 0.3rem 0.65rem;
    font-size: 0.7rem;
  }

  .ps-card__tech-item {
    font-size: 0.8rem;
  }

  .ps-card__media-btn {
    width: 34px;
    height: 34px;
  }

  .ps-card__media-count {
    padding: 0.3rem 0.7rem;
    font-size: 0.7rem;
  }

  .ps-card__media-controls {
    gap: 0.4rem;
  }
}

