/* Drag Carousel Styles */
.drag-menu {
  overflow: hidden;
  cursor: grab;
  width: 100%;
  position: relative;
  z-index: 1;
  height: 40vh;
  min-height: 300px;
  margin: 4rem 0;
}

.drag-menu.is-dragging {
  cursor: grabbing;
}

.drag-menu--wrapper {
  counter-reset: count;
  display: flex;
  position: absolute;
  z-index: 1;
  height: 100%;
  top: 0;
  left: 0;
  width: 100%;
}

.drag-menu--item {
  counter-increment: count;
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 30vw;
  height: 100%;
  padding: 0 1.5vw;
  overflow: hidden;
}

@media (max-width: 767px) {
  .drag-menu--item {
    width: 70vw;
    height: 40vw;
    min-height: 250px;
  }
}

.drag-menu--item:nth-child(n+10):before {
  content: counter(count);
}

.drag-menu--item figure {
  position: absolute;
  z-index: 1;
  display: block;
  user-select: none;
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
  border: none;
  outline: none;
  box-shadow: none;
  cursor: pointer;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  transform-origin: center;
  border-radius: 1rem;
}

.drag-menu--item figure img {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
  transform-origin: center;
}

.drag-menu--item figure:before {
  position: absolute;
  z-index: 2;
  bottom: 1vw;
  left: 1vw;
  display: inline-block;
  content: "0" counter(count);
  color: #ffffff;
  font-size: 1.5vw;
  font-weight: 600;
}

/* Project Section Styling */
.project-section {
  padding: 8rem 0;
  background-color: #0a0a0a;
  color: #fff;
}

.project-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.project-header {
  margin-bottom: 2rem;
}

.project-title {
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.project-description {
  max-width: 32rem;
  color: #a1a1aa;
  font-size: 1rem;
  line-height: 1.5;
}

/* Project Card Overlay */
.drag-menu--item .project-card-overlay {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  height: 70%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drag-menu--item:hover .project-card-overlay {
  opacity: 1;
}

.project-card-title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-card-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-link {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
}

.project-card-link svg {
  margin-left: 0.5rem;
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
}

.drag-menu--item:hover .project-card-link svg {
  transform: translateX(0.25rem);
}
