/* â”€â”€ PROJECTS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.projects-section {
  background: var(--black);
  color: var(--white);
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 96px 0;
}

.projects-section .sec-header {
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 0 1.25rem;
  color: var(--white);
}

.projects-section .sec-header h2{
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  line-height: 1.08;
}

.projects-section .sec-header p {
  color: var(--white);
}

.projects-container {
  width: min(1200px, calc(100% - 2.5rem));
  margin: 0 auto;
  display: flex;
  gap: 4rem;
  position: relative;
}

.projects-left {
  flex: 0 0 30%;
  position: sticky;
  top: 150px;
  height: max-content;
  display: flex;
  flex-direction: column;
}

.project-number-container {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 10rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.1);
  line-height: 1;
  overflow: hidden;
  height: 160px;
  margin-bottom: 1rem;
}

.projects-copy {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-number-track {
  display: flex;
  flex-direction: column;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.14s;
}

.project-number {
  height: 160px;
  display: flex;
  align-items: center;
  transition: color 0.4s ease 0.14s;
}

.project-number.active {
  color: var(--white);
  -webkit-text-stroke: 0;
}

.projects-left h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.9rem, 5.4vw, 4.4rem);
  margin-bottom: 1rem;
  line-height: 1.05;
}

.projects-left p {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.65;
}

.projects-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20vh;
  padding-top: 5vh;
  padding-bottom: 20vh;
}

.project-item {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  opacity: 0.3;
  transform: scale(0.95);
  transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  aspect-ratio: 4 / 3;
}

.project-item.active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-item:not(.active) img {
  filter: brightness(0.48) saturate(0.7);
}

.project-item.active img {
  filter: brightness(1) saturate(1);
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: var(--white);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease 0.2s;
}

.project-item.active .project-info {
  transform: translateY(0);
  opacity: 1;
}

.project-info h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.project-info p {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 1024px) {
  .projects-section {
    padding: 64px 0;
  }

  .projects-section .sec-header {
    margin-bottom: 2.5rem;
  }

  .projects-container {
    gap: 1.5rem; /* Reduced gap for mobile */
    align-items: flex-start;
  }

  .projects-left {
    flex: 0 0 60px; /* Narrow sticky column for numbers */
    top: 100px;
  }

  .projects-copy {
    display: none; /* Hide extra text to save space on mobile */
  }

  .project-number-container {
    height: 60px;
    font-size: 3.5rem;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
  }

  .project-number {
    height: 60px;
  }

  .projects-right {
    gap: 10vh; /* Peppier scroll on mobile */
    padding-bottom: 10vh;
  }

  .project-item {
    border-radius: 20px;
    width: 100%;
  }

  .project-info {
    padding: 1.5rem;
  }

  .project-info h3 {
    font-size: 1.5rem;
  }
}

