/* Base styles (Desktop) */
.main-content {
  background-color: white;
}

.project-list {
  padding: 40px 20px;
  font-family: 'Inter Tight', sans-serif;
  color: rgb(0, 0, 0);
}

.category {
  margin-bottom: 0px;
}

.category-title {
  display: block; /* ensures whole line is clickable */
  background: none;
  border: none;
  color: rgb(0, 0, 0);
  font-size: 130px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  padding: 8px 0;
  width: 100%;
  line-height: 0.8;
  user-select: none;
}

.client-list {
  padding-left: 120px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    max-height 0.4s ease,
    opacity 0.4s ease,
    transform 0.4s ease;
}

.client-list.show {
  max-height: 500px; /* big enough to fit all items */
  opacity: 1;
  transform: translateY(0);
}

.client {
  display: flex;
  align-items: center;
  font-size: 65px;
  padding: 6px 0px;
  position: relative;
}

.client-year {
  margin-left: 40px;
  opacity: 0;
  transform: translateX(15px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.client:hover .client-year {
  opacity: 1;
  transform: translateX(0);
}

.client-name {
  color: black;
  text-decoration: none;
  position: relative;
}

.client-name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: black;
  transition: width 0.3s ease;
}

.client-name:hover::after {
  width: 100%;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .category-title {
    font-size: 64px;
    padding: 4px 0;
  }
  .client-list {
    padding-left: 40px;
  }
  .client {
    font-size: 32px;
    padding: 4px 0;
  }
  .client-year {
    margin-left: 20px;
  }
}

@media (max-width: 480px) {
  .category-title {
    font-size: 42px;
    padding: 2px 0;
  }
  .client-list {
    padding-left: 20px;
  }
  .client {
    font-size: 20px;
    padding: 2px 0;
  }
  .client-year {
    margin-left: 12px;
  }
}

/* Project Heading */
.marquee-container {
  width: 100%;
  overflow: hidden;
  background-color: rgb(0, 0, 0);
  padding: 40px 0;
}

.marquee-track {
  list-style: none;
  display: flex;
  width: fit-content;
  animation: scroll-marquee 40s linear infinite;
}

.marquee-track li {
  flex-shrink: 0;
  font-size: clamp(60px, 20vw, 180px);
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
  padding-right: 120px;
  color: rgb(255, 255, 255);
}

@keyframes scroll-marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}
/* End of Project Heading */
