/* ===================================
   PROJECTS CAROUSEL STYLES
   =================================== */

.projects-carousel-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 60px 60px;
  overflow: visible;
}

.projects-carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 20px;
  overflow: hidden;
}

.project-card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 320px;
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.project-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--accent) 0%, var(--bg) 100%);
  position: relative;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-status {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .project-card-status {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
}

.project-card-status.status-active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.project-card-status.status-beta {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.project-card-status.status-ideation {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.project-card-status.status-planning {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
}

.project-card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-card-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.project-card-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}

.project-card-cta {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.project-card-cta:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transform: translateX(4px);
}

.project-card-cta i {
  font-size: 0.85rem;
}

/* Carousel Navigation */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 2px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-nav:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.carousel-nav-prev {
  left: 0;
}

.carousel-nav-next {
  right: 0;
}

.carousel-nav i {
  font-size: 1.2rem;
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.3;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.carousel-dot:hover {
  opacity: 0.6;
  transform: scale(1.2);
}

.carousel-dot.active {
  background: var(--accent);
  opacity: 1;
  width: 28px;
  border-radius: 5px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .projects-carousel-container {
    padding: 40px 50px 60px;
  }
  
  .project-card {
    flex: 0 0 calc(50% - 12px);
    min-width: 280px;
  }
  
  .carousel-nav {
    width: 40px;
    height: 40px;
  }
  
  .carousel-nav-prev {
    left: 0;
  }
  
  .carousel-nav-next {
    right: 0;
  }
}

@media (max-width: 768px) {
  .projects-carousel-container {
    padding: 20px 0 50px;
  }
  
  .projects-carousel-track {
    padding: 0;
    gap: 16px;
    transform: none !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }
  
  .projects-carousel-track::-webkit-scrollbar {
    display: none;
  }
  
  .project-card {
    flex: 0 0 85%;
    min-width: 280px;
    scroll-snap-align: center;
  }
  
  .project-card-image {
    height: 180px;
  }
  
  .project-card-content {
    padding: 20px;
  }
  
  .project-card-title {
    font-size: 1.25rem;
  }
  
  .carousel-nav {
    display: none;
  }
  
  .carousel-dots {
    margin-top: 24px;
  }
}
