/* Simple Horizontal Project Gallery */
.project-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 60px;
  min-height: 400px;
  position: relative;
  overflow: visible;
}

.project-carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 30px;
  transition: all 0.3s ease;
}

.project-item {
  position: relative;
  width: 250px;
  height: 300px;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  flex-shrink: 0;
}

.project-item:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 25px 50px rgba(59, 130, 246, 0.4);
  border-color: rgba(59, 130, 246, 0.5);
  background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
}

.project-item img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.project-item:hover img {
  transform: scale(1.1);
}

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--slate-100);
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.project-type {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Detailed info overlay - shows on hover */
.project-details-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

/* Show details on hover */
.project-item:hover .project-details-overlay,
.project-item.show-details .project-details-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.project-details-overlay h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--slate-100);
  margin-bottom: 8px;
}

.project-details-overlay p {
  color: var(--slate-300);
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 15px;
  flex-grow: 1;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-bottom: 15px;
}

.tech-stack span {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-blue);
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 500;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.project-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.project-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
  color: white;
  text-decoration: none;
  border-radius: 50%;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.project-actions a:hover {
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

/* Removed 3D carousel animation - now using simple horizontal layout */

/* Responsive Design for Horizontal Layout */
@media (max-width: 1024px) {
  .project-showcase {
    min-height: 350px;
  }
  
  .project-carousel {
    max-width: 800px;
    gap: 25px;
  }
  
  .project-item {
    width: 220px;
    height: 280px;
    padding: 15px;
  }
  
  .project-item img {
    width: 160px;
    height: 110px;
  }
}

@media (max-width: 768px) {
  .project-showcase {
    min-height: 300px;
  }
  
  .project-carousel {
    flex-direction: column;
    gap: 20px;
    max-width: 300px;
    max-height: 600px;
    overflow-y: auto;
    padding: 10px 0;
  }
  
  .project-item {
    width: 200px;
    height: 260px;
    padding: 12px;
  }
  
  .project-item img {
    width: 140px;
    height: 100px;
  }
  
  .project-title {
    font-size: 1rem;
  }
  
  .project-type {
    font-size: 0.7rem;
    padding: 3px 8px;
  }
  
  .tech-stack span {
    font-size: 0.6rem;
    padding: 2px 4px;
  }
  
  .project-actions a {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
  
  /* Touch-friendly hover simulation */
  .project-item:active {
    transform: translateY(-5px) scale(1.02);
    transition: all 0.2s ease;
  }
}

@media (max-width: 480px) {
  .project-carousel {
    max-width: 250px;
  }
  
  .project-item {
    width: 180px;
    height: 240px;
    padding: 10px;
  }
  
  .project-item img {
    width: 120px;
    height: 80px;
  }
}

.projects-cta {
  text-align: center;
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.projects-cta p {
  font-size: 1.125rem;
  color: var(--slate-300);
  margin-bottom: 24px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

@media (max-width: 768px) {
  .project-showcase {
    flex-direction: column;
    gap: 40px;
  }
  
  .project-cube {
    animation: none;
  }
  
  .project-cube:hover {
    animation: spinOnce 1s ease-in-out;
  }
}

@keyframes spinOnce {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(180deg); }
}