/* Modern Carousel Styles */
.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;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.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-controls {
  display: flex;
  gap: 0.5rem;
}

.project-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background-color: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.project-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.project-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.project-button svg {
  width: 1.25rem;
  height: 1.25rem;
}

.project-carousel {
  position: relative;
  overflow: visible;
}

.swiper-container {
  overflow: visible;
  width: 100%;
}

.project-card {
  position: relative;
  height: 27rem;
  max-width: 100%;
  overflow: hidden;
  border-radius: 0.75rem;
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .project-card {
    aspect-ratio: 5/4;
  }
}

@media (min-width: 1024px) {
  .project-card {
    aspect-ratio: 16/9;
  }
}

.project-card:hover {
  transform: translateY(-0.25rem);
}

.project-card-image {
  position: absolute;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.project-card:hover .project-card-image {
  transform: scale(1.05);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  height: 100%;
  background: linear-gradient(hsla(var(--primary-hue, 224), var(--primary-saturation, 76%), var(--primary-lightness, 48%)/0), 
                             hsla(var(--primary-hue, 224), var(--primary-saturation, 76%), var(--primary-lightness, 48%)/0.4), 
                             hsla(var(--primary-hue, 224), var(--primary-saturation, 76%), var(--primary-lightness, 48%)/0.8) 100%);
  mix-blend-mode: multiply;
}

.project-card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
  color: #fff;
}

@media (min-width: 768px) {
  .project-card-content {
    padding: 2rem;
  }
}

.project-card-title {
  margin-bottom: 0.5rem;
  padding-top: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .project-card-title {
    margin-bottom: 0.75rem;
    padding-top: 1rem;
  }
}

@media (min-width: 1024px) {
  .project-card-title {
    padding-top: 1rem;
  }
}

.project-card-description {
  margin-bottom: 2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .project-card-description {
    margin-bottom: 3rem;
  }
}

@media (min-width: 1024px) {
  .project-card-description {
    margin-bottom: 2.25rem;
  }
}

.project-card-link {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
}

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

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

.project-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination-bullet {
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
  transition: background-color 0.3s ease;
  background-color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.pagination-bullet.active {
  background-color: #fff;
}

:root {
  --primary-hue: 224;
  --primary-saturation: 76%;
  --primary-lightness: 48%;
}

/* Swiper Overrides */
.swiper-slide {
  width: 320px;
  max-width: 100%;
}

@media (min-width: 768px) {
  .swiper-slide {
    width: 360px;
  }
}

.swiper-wrapper {
  padding-left: 1.25rem;
}

@media (min-width: 1536px) {
  .swiper-wrapper {
    margin-left: max(8rem, calc(50vw - 700px));
    margin-right: max(0rem, calc(50vw - 700px));
  }
}
