/* Liquid Glass Project Cards with Slideshow Functionality */

/* Container for projects slideshow */
.projects-carousel {
  position: relative;
  width: 100%;
  height: 65vh;
  overflow: hidden;
  margin: 40px 0;
  padding: 20px 0;
}

/* Projects wrapper with glassmorphism effect */
.projects-glass {
  display: flex;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Liquid glass effect for each project card */
.project-liquid {
  flex: 0 0 calc(33.333% - 40px);
  height: 100%;
  margin: 0 20px;
  scroll-snap-align: start;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(15, 15, 35, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(125, 249, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 240, 255, 0.2),
    inset 0 0 30px rgba(125, 249, 255, 0.08);
  transform-style: preserve-3d;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Liquid shine effect */
.project-liquid::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  transition: left 1s ease;
}

.project-liquid:hover::before {
  left: 100%;
}

/* Inner structure of project card */
.project-liquid-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 30px;
}

/* Project image area with advanced styling */
.project-liquid-image {
  position: relative;
  height: 50%;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 15px;
}

.project-liquid-image .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(20, 20, 50, 0.8),
    rgba(10, 10, 30, 0.9)
  );
  border: 1px solid rgba(125, 249, 255, 0.1);
  font-size: 2rem;
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.project-liquid-image .project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(5, 5, 15, 0.8) 100%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-liquid:hover .project-overlay {
  opacity: 1;
}

/* Enhanced hover effects for liquid cards */
.project-liquid:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(125, 249, 255, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 240, 255, 0.25),
    inset 0 0 40px rgba(125, 249, 255, 0.12);
}

.project-overlay .project-icon {
  font-size: 3rem;
  color: var(--primary);
  filter: drop-shadow(0 0 15px var(--primary-glow));
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.project-liquid:hover .project-overlay .project-icon {
  transform: translateY(0);
  opacity: 1;
}

/* Project info area */
.project-liquid-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-liquid-title {
  font-size: 1.8rem;
  color: var(--text-bright);
  margin: 0 0 15px;
  background: linear-gradient(120deg, #fff, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.project-liquid-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.project-liquid-tech span {
  padding: 6px 14px;
  background: rgba(10, 10, 30, 0.4);
  border: 1px solid rgba(125, 249, 255, 0.1);
  border-radius: 30px;
  font-size: 0.8rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.project-liquid:hover .project-liquid-tech span {
  border-color: rgba(125, 249, 255, 0.3);
  box-shadow: 0 0 10px rgba(125, 249, 255, 0.2);
}

.project-liquid-desc {
  margin: 0 0 auto;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.project-liquid-links {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}

/* Carousel navigation */
.projects-nav {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 5;
}

.project-nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(125, 249, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(125, 249, 255, 0.1);
}

.project-nav-dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

/* Carousel arrows */
.project-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(10, 10, 30, 0.6);
  border: 1px solid rgba(125, 249, 255, 0.2);
  color: var(--primary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.project-arrow:hover {
  background: rgba(15, 15, 35, 0.8);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(125, 249, 255, 0.3);
}

.project-prev {
  left: 20px;
}

.project-next {
  right: 20px;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
  .project-liquid {
    flex: 0 0 calc(50% - 60px);
  }
}

@media (max-width: 1024px) {
  .projects-carousel {
    height: 70vh;
  }

  .project-liquid {
    flex: 0 0 calc(70% - 40px);
    margin: 0 20px;
  }

  .project-liquid-content {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .projects-carousel {
    height: 80vh;
  }

  .project-liquid {
    flex: 0 0 calc(100% - 40px);
  }

  .project-liquid-image {
    height: 50%;
  }

  .project-arrow {
    width: 40px;
    height: 40px;
  }
}
