.projects-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  padding: 3rem 5rem;
}

.projects-left {
  margin-top: 7rem;
  margin-left: 2rem;
  flex: 0 0 40rem; /* Fixed width: will NOT change */
  max-width: 100%;
}

.projects-title {
  font-family: 'Poppins', sans-serif;
  font-size: 5rem;
  color: white;
  margin-bottom: 1rem;
}

.projects-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  line-height: 3.5rem;
  color: #ccc;
  max-width: 40rem; /* Controls how wide the paragraph is */
}


.projects-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-right: 2rem;
  margin-top: 4rem;
}


.project-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* makes sure it stays on the left */
  gap: 1.5rem;
}


.project-card {
  background: #000000;
  border-radius: 2rem;
  padding: 1rem;
  width: 35rem;
  padding-bottom: 18rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
  cursor: pointer;
}


.project-card video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2rem;
}



.project-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  color: white;
  text-align: right; /* aligns text to the right within the label box */
  line-height: 1.3;
  min-width: 8rem; /* or adjust as needed */
}

@keyframes fadeSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply the animation */
.page-wrapper .projects-section,
.page-wrapper footer {
  animation: fadeSlideDown 0.8s ease forwards;
  animation-delay: 0.4s;
  opacity: 0; /* Start hidden */
}