@font-face {
  src: url("https://fonts.cdnfonts.com/css/pp-neue-montreal") format("woff2");
  font-family: "PP Neue Montreal", sans-serif;
  font-weight: 400;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

}

html,
body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: "PP Neue Montreal", sans-serif;
  background-color: #e4e4e4b3;
  color: #000;
  padding: 1rem;
}

.projects-component {
  max-width: 1200px;
  margin: 0 auto;
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  perspective: 1000px;
}

.projects-list {
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex: 1;
  justify-content: center;
  position: relative;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transform-style: preserve-3d;
}

.projects-list::-webkit-scrollbar {
  display: none;
}

.project-item {
  width: 100%;
  text-align: center;
  cursor: pointer;
  margin-bottom: 1.5rem;
  position: relative;
  transform-style: preserve-3d;
}

.project-title-container {
  position: relative;
  display: inline-block;
  transform-style: preserve-3d;
}

.project-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.5rem 0;
}

.project-title-clubs {
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0.5rem 0;
  text-decoration: underline;
}

.project-title-clubs-letter {
  font-size: 1rem;
  letter-spacing: -0.02em;
  margin: 0.5rem 0;
}

.project-title-clubs-free {
  padding: 0 0 12px;
  font-size: 16px;
  color: #303dae;
}

.title-world {
  font-size: 20px;
  font-weight: 400;
  margin-top: -10px;
}

.hover-indicator {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: #000;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  /* Increased z-index to ensure visibility */
}

.hover-indicator.left {
  left: -20px;
}

.hover-indicator.right {
  right: -20px;
}

.project-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 1rem;
  margin: 0;
  pointer-events: none;
  transform-style: preserve-3d;
}

.project-details {
  width: 25%;
  text-align: left;
  font-size: 0.9rem;
  letter-spacing: 0.05rem;
  font-weight: 500;
  padding-right: 6px;
}

.project-details left {
  max-height: 600px;
}

.project-details .line-wrapper {
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.project-details.right {
  text-align: right;
}

.detail-label {
  margin-bottom: 0.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.05rem;
}

.detail-year {
  margin-top: 0.5rem;
}

.project-image {
  width: 40%;
  max-width: 400px;
  position: relative;
  overflow: hidden;
}

.image-wrapper {
  position: relative;
  overflow: hidden;
  height: 100%;
  width: 100%;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
}

.carousel-container { 
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.carousel-title h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.5rem 0;
  text-align: center;
}

.carousel-title p {
  text-align: center;
  font-size: 17px;
  margin-bottom: 20px;
  font-weight: 400;
}

.carousel {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.carousel-strip {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* For Firefox */
}

.carousel-strip::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Opera */
}

.carousel-item {
    flex: 0 0 auto;
    margin: 0 10px;
    border-radius: 15px;
    overflow: hidden;
    width: 400px;
    height: 225px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.carousel-item source {
  max-width: 100%;
}

.carousel-item p {
  font-size: 15px;
  text-align: center;
  margin-bottom: 5px;
  font-weight: 600;
}

.carousel-item video {
  width: 100%;
  height: 100%;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 2em;
  cursor: pointer;
  padding: 10px;
  z-index: 1;
}

.carousel-button.left {
  left: 0;
  border-radius: 5px;
  }

.carousel-button.right {
  right: 0;
  border-radius: 5px;
}

.carousel-button.left:hover,
.carousel-button.right:hover {
  opacity: 0.5;
}

@media (max-height: 700px) {
  .project-title {
    font-size: 2.5rem;
  }

  .project-item {
    margin-bottom: 0.75rem;
  }
}

@media (max-width: 768px) {
  .project-content {
    flex-direction: column;
  }

  .project-details {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
  }

  .project-details.right {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0;
  }

  .project-image {
    width: 80%;
  }

  .project-title {
    font-size: 2rem;
  }

.video-block {
  display: flex;
}
