/* Products Section */
.products-section {
  padding: 4rem 0;
  background: linear-gradient(
    180deg,
    white 0%,
    var(--bg-light) 100%
  );
}

/* Product Card */
.product-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(30, 64, 175, 0.2);
  border-color: var(--primary-color);
}

/* Image Container */
.product-image-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: var(--bg-light);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image {
  transform: scale(1.1);
}

/* Image Overlay */
.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(30, 64, 175, 0.8) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.overlay-icon {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.product-card:hover .overlay-icon {
  transform: translateY(0);
}

.overlay-icon i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* Category Badge */
.category-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(
    135deg,
    var(--secondary-color) 0%,
    #ea580c 100%
  );
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
  z-index: 2;
}

/* Card Body */
.product-card-body {
  padding: 1.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-card-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.875rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.product-card:hover .product-card-title {
  color: var(--primary-color);
}

.product-card-text {
  font-size: 0.938rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Card Link */
.product-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.938rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  margin-top: auto;
}

.product-card-link::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s ease;
}

.product-card:hover .product-card-link {
  color: var(--secondary-color);
  gap: 0.75rem;
}

.product-card:hover .product-card-link::after {
  width: 100%;
}

.product-card-link i {
  font-size: 0.875rem;
  transition: transform 0.3s ease;
}

.product-card:hover .product-card-link i {
  transform: translateX(4px);
}

/* CTA Section */
.cta-section {
  margin-top: 4rem;
  background: linear-gradient(
    135deg,
    #eff6ff 0%,
    #dbeafe 100%
  );
  border-radius: 24px;
  padding: 3rem;
  border: 1px solid #bfdbfe;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(30, 64, 175, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.25);
}

.cta-icon i {
  font-size: 2rem;
  color: white;
}

.cta-section h4 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.cta-section p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.cta-section a:not(.btn) {
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s;
}

.cta-section a:not(.btn):hover {
  color: var(--secondary-color);
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  animation: fadeInUp 0.6s ease-out backwards;
}

.product-card:nth-child(1) {
  animation-delay: 0.1s;
}
.product-card:nth-child(2) {
  animation-delay: 0.15s;
}
.product-card:nth-child(3) {
  animation-delay: 0.2s;
}
.product-card:nth-child(4) {
  animation-delay: 0.25s;
}
.product-card:nth-child(5) {
  animation-delay: 0.3s;
}
.product-card:nth-child(6) {
  animation-delay: 0.35s;
}
.product-card:nth-child(7) {
  animation-delay: 0.4s;
}
.product-card:nth-child(8) {
  animation-delay: 0.45s;
}

/* Responsive */
@media (max-width: 768px) {
  .page-header {
    padding: 3rem 0 2rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .products-section {
    padding: 2.5rem 0;
  }

  .product-image-wrapper {
    height: 200px;
  }

  .cta-section {
    padding: 2rem;
  }

  .cta-section h4 {
    font-size: 1.5rem;
  }
}
