:root{
  --card-radius: 18px;
  --card-gap: 30px;
}

  body { 
    background: #fff; 
    font-family: 'Poppins', sans-serif; 
    color: #2b2b2b; 
  }

  .demo-main  {
     padding-top: 100px; 
    }
  .demo-container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 40px 20px; 
  }

.demo-heading { 
  font-size: 60px; 
  font-weight: 800; 
  color: #1f7a3a; 
  margin: 0 0 40px 0;
  text-align: center;
 }

.cards-list { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 28px;
 }

.card { 
  position: relative; 
  width: 100%; 
  max-width: 2200px; 
  background-size: cover; 
  background-position: center; 
  background-repeat: no-repeat;
  border-radius: 60px; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
  min-height: 220px; 
  overflow: hidden; 
}

.card:before { 
  content: ""; 
  position: absolute; 
  inset: 0; 
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.28) 60%); 
  pointer-events: none;
 }
.card-inner { 
  max-width: 1100px; 
  margin: 0 auto; 
  display: flex; 
  gap: 24px; 
  align-items: center; 
  justify-content: center;
  padding: 56px 48px; 
  position: relative; 
  z-index: 2;
  min-height: 220px;
 }

.card-body { 
  color: #fff; 
  text-align: center; 
  width: 100%;
 }

.card-title {
  font-size: 34px; 
  font-weight: 800; 
  margin: 0 0 8px 0; 
  color: #fff; 
  text-shadow: 0 2px 6px rgba(0,0,0,0.2); 
}

.card-desc { 
  margin: 0; 
  color: rgba(255,255,255,0.95); 
  font-weight: 600; 
  font-size: 15px; 
  line-height: 1.4; 
}

.demo-actions { 
  display: flex; 
  justify-content: center; 
  margin-top: 40px; 
  animation: fadeInUp 0.4s ease-out 0.3s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
  }
  50% {
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6);
  }
}

.back-btn { 
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
  color: white; 
  border: none; 
  padding: 16px 45px; 
  border-radius: 50px; 
  font-weight: 700; 
  font-size: 18px;
  cursor: pointer; 
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  animation: pulse 2s ease-in-out infinite;
}

.back-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.back-btn:hover::before {
  width: 300px;
  height: 300px;
}

.back-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 50px rgba(102, 126, 234, 0.7);
  animation: none;
}

.back-btn:active {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.back-btn a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  transition: gap 0.3s ease;
}

.back-btn a::before {
  content: '←';
  font-size: 20px;
  transition: transform 0.3s ease;
}

.back-btn:hover a {
  gap: 12px;
}

.back-btn:hover a::before {
  transform: translateX(-4px);
}

.animate-on-scroll { 
  opacity: 0; 
  transform: translateY(40px); 
  transition: opacity 0.8s ease-out, transform 0.8s ease-out; 
}

.animate-on-scroll.in-view { 
  opacity: 1; 
  transform: translateY(0); 
}

@media (max-width: 768px){
  .card { 
    flex-direction: column; 
    border-radius: 0;
  }
  .card-inner {
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
  }
  .card-body {
    text-align: center;
  }
  .demo-heading { 
    font-size: 26px;
   }
}

@media (min-width: 992px) {
  .demo-container { 
    max-width: 1100px; 
  }
  .card { 
    padding: 0; 
    min-height: 220px; 
  }
  .card-inner { 
    padding: 44px; 
  }
  .card-title { 
    font-size: 30px; 
  }
  .card-desc { 
    font-size: 18px; 
  }
}
