/* Override کامل بخش پروژه‌ها */

/* مخفی کردن محتوای قدیمی */
#projects .grid {
  display: none !important;
}

#projects .grid + * {
  display: none !important;
}

/* مخفی کردن دکمه View All Projects */
button:contains("View All Projects"),
a[href*="projects"],
[class*="view-all"],
[class*="view-details"] {
  display: none !important;
}

/* Container جدید برای اسلاید شو */
#projects-slideshow-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* اسلاید شو پروژه‌ها - نسخه جدید */
.projects-slideshow-new {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f8fafc;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.projects-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  gap: 2rem;
}

.project-slide {
  flex: 0 0 calc(33.333% - 1.33rem);
  min-width: 320px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

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

.project-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  z-index: 1;
}

.project-header-new {
  padding: 1.5rem;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  position: relative;
}

.project-type-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  backdrop-filter: blur(10px);
}

.project-title-new {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  opacity: 0.9;
}

.project-year {
  font-weight: 600;
}

.project-status-new {
  background: #10b981;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.project-status-new.ongoing {
  background: #f59e0b;
}

.project-content-new {
  padding: 1.5rem;
}

.project-client-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.info-item {
  text-align: center;
}

.info-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.info-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1f2937;
}

.project-description {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-features-new {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
}

.features-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.features-list {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
}

/* کنترل‌های ناوبری */
.projects-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.projects-nav-new {
  background: white;
  border: 2px solid #e5e7eb;
  color: #374151;
  font-size: 1.25rem;
  padding: 0.75rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.projects-nav-new:hover:not(:disabled) {
  background: #3b82f6;
  border-color: #3b82f6;
  color: white;
  transform: scale(1.05);
}

.projects-nav-new:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.projects-indicators {
  display: flex;
  gap: 0.5rem;
}

.indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator-dot.active {
  background: #3b82f6;
  transform: scale(1.3);
}

.indicator-dot:hover {
  background: #6b7280;
}

/* نشانگر پیش‌نمایش */
.preview-hint {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 60px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1));
  pointer-events: none;
  z-index: 5;
  border-radius: 8px;
}

.preview-hint.left {
  left: 10px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), transparent);
}

.preview-hint.right {
  right: 10px;
}

/* ریسپانسیو */
@media (max-width: 1024px) {
  .project-slide {
    flex: 0 0 calc(50% - 1rem);
    min-width: 280px;
  }
}

@media (max-width: 768px) {
  .project-slide {
    flex: 0 0 calc(100% - 2rem);
    min-width: 250px;
  }
  
  .projects-slideshow-new {
    padding: 1rem;
  }
  
  .project-client-info {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .projects-nav-new {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* انیمیشن ورود */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-slide.animate-in {
  animation: slideInUp 0.6s ease-out;
}

/* رنگ‌بندی بر اساس نوع پروژه */
.project-slide[data-type*="Science"] .project-header-new {
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

.project-slide[data-type*="Showroom"] .project-header-new {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.project-slide[data-type*="Adventure"] .project-header-new {
  background: linear-gradient(135deg, #10b981, #059669);
}

.project-slide[data-type*="Visitor"] .project-header-new {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.project-slide[data-type*="Retail"] .project-header-new {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.project-slide[data-type*="Experience"] .project-header-new {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.project-slide[data-type*="Planetarium"] .project-header-new {
  background: linear-gradient(135deg, #1e293b, #334155);
}
