/* 3D Cards Animation CSS - Alternating Left/Right Fade */
.about-3d-cards {
  min-height: 100vh;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.section-title-3d {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 10;
  padding: 0 20px;
}

.section-title-3d h2 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 20px;
  opacity: 1;
  transform: translateY(0);
}

.section-title-3d p {
  font-size: 1.2rem;
  color: #666666;
  max-width: 600px;
  margin: 0 auto;
  opacity: 1;
  transform: translateY(0);
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 5;
}

.card-3d {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  padding: 50px 40px;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.1),
    0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Alternating slide animations */
.card-3d:nth-child(odd) {
  transform: translateX(-100px);
}

.card-3d:nth-child(even) {
  transform: translateX(100px);
}

.card-3d.fade-in {
  opacity: 1;
  transform: translateX(0);
}

.card-3d.fade-out {
  opacity: 0;
  transform: translateY(-30px);
}

.card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  font-size: 2rem;
  color: white;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  transform: translateY(0);
  transition: all 0.3s ease;
}

.card-3d:hover .card-icon {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.card-3d h3 {
  font-size: 2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 25px;
  text-align: center;
  position: relative;
}

.card-3d h3::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 2px;
}

.card-3d p {
  color: #555;
  line-height: 1.8;
  text-align: justify;
  font-size: 1.1rem;
  margin-bottom: 0;
}

.card-3d .highlight {
  color: #667eea;
  font-weight: 600;
}

/* Hover effects */
.card-3d:hover {
  transform: translateX(0) translateY(-5px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 10px 20px rgba(0, 0, 0, 0.08);
}

/* Remove scroll indicator for cleaner look */
.scroll-indicator {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .about-3d-cards {
    padding: 60px 0;
  }
  
  .section-title-3d h2 {
    font-size: 2.5rem;
  }
  
  .section-title-3d {
    margin-bottom: 60px;
  }
  
  .cards-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 15px;
  }
  
  .card-3d {
    padding: 40px 25px;
  }
  
  .card-3d h3 {
    font-size: 1.6rem;
  }
  
  .card-3d p {
    font-size: 1rem;
  }
  
  .card-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }
  
  /* Remove alternating translations on mobile to center cards */
  .card-3d,
  .card-3d:nth-child(odd),
  .card-3d:nth-child(even) {
    transform: none !important;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .section-title-3d h2 {
    font-size: 2rem;
  }
  
  .card-3d h3 {
    font-size: 1.4rem;
  }
  
  .card-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .card-3d {
    padding: 30px 20px;
  }
}

/* Smooth entrance animation for title */
.section-title-3d.animate-title h2 {
  animation: titleFadeIn 1s ease-out forwards;
}

.section-title-3d.animate-title p {
  animation: titleFadeIn 1s ease-out 0.3s forwards;
}

@keyframes titleFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}