/* Cards Section Styles */
.cards-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 15px;
  padding: 0 15px;
  max-width: 1400px;
  margin: 15px auto;
}

.card {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.card:hover {
  transform: translateY(-5px);
}

/* Product Card with Slider */
.card-product {
  position: relative;
  height: 0;
  padding-bottom: 56.25%;
}

.card-product::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  mix-blend-mode: multiply;
  z-index: 1;
}

.product-slider {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: slider 15s infinite;
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }

/* Services Card */
.card-services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  mix-blend-mode: multiply;
  z-index: 2;
}

.card-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 3;
  color: #fff;
}

/* Typography */
.card h2 {
  color: #fff;
  font-size: 2.4rem;
  margin-bottom: 1rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 50%;
  height: 3px;
  background: linear-gradient(90deg, #2563eb 0%, #fafafa 100%);
}

.card p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 80%;
  color: #fff;
}

/* Link Buttons */
.card-btn {
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  text-decoration: none !important;
}

/* Product Card Button */
.card-product .card-btn {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  color: #2563eb;
  box-shadow: 0 6px 12px rgba(37, 99, 235, 0.15);
  border: 2px solid rgba(37, 99, 235, 0.1);
}

.card-product .card-btn:hover {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
}

/* Services Card Button */
.card-services .card-btn {
  background: linear-gradient(135deg, #4360ed 0%, #6a8aff 100%);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(67, 96, 237, 0.25);
}

.card-services .card-btn:hover {
  background: linear-gradient(135deg, #3a55d1 0%, #5c7ae8 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(67, 96, 237, 0.35);
}

/* Button Effects */
.card-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.15) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-25deg);
  transition: left 0.75s ease;
}

.card-btn:hover::after {
  left: 200%;
}


a.card-btn:any-link {
  color: inherit;
  text-decoration: none;
}

a.card-btn:hover {
  color: inherit;
  text-decoration: none;
}

/* Animations */
@keyframes slider {
  0%, 33% { opacity: 1; }
  33.33%, 100% { opacity: 0; }
}

/* Responsive Design */
@media (min-width: 1025px) {
  .card-product {
    border-radius: 24px 0 0 24px;
  }
  .card-services {
    border-radius: 0 24px 24px 0;
  }
}

@media (max-width: 1024px) {
  .cards-container {
    grid-template-columns: 1fr;
    max-width: 800px;
  }
  
  .card-product {
    padding-bottom: 100%;
  }
  
  .card-services {
    padding-top: 56.25%;
  }
}

@media (max-width: 768px) {
  .cards-container {
    padding: 1rem;
    gap: 1.5rem;
  }

  .card-content {
    justify-content: flex-start;
    padding: 1.5rem !important;
  }

  .card-btn {
    margin-top: auto;
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem !important;
  }

  .card h2 {
    font-size: 1.75rem !important;
    margin-bottom: 0.75rem;
  }

  .card p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem !important;
    max-width: 100%;
  }

  .card-product {
    padding-bottom: 120%;
  }

  .card-services {
    padding-top: 100%;
  }



  .card h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 480px) {
  .card h2 {
    font-size: 1.5rem !important;
  }
  
  .card p {
    font-size: 0.9rem !important;
  }
  
  .card-btn {
    font-size: 0.9rem;
  }
}