/* Fonts */
@font-face {
  font-family: 'lufga';
  src: url('../fonts/LufgaMedium.ttf') format('truetype');
  font-weight: 10;
  font-style: normal;
}

/* productS SECTION STYLES */
.sx-products {
  padding: 100px 0;
  background: linear-gradient(to bottom, #f8fafc, #ffffff);
  position: relative;
  overflow: hidden;
  font-family: 'Lufga', sans-serif;
}

.sx-products::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23d9e1f2' fill-opacity='0.2' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: 0;
}

.sx-products-heading {
  text-align: center;
  margin-bottom: 70px;
  position: relative;
  z-index: 1;
}

.sx-products-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #222;
  margin: 0 0 20px 0;
  position: relative;
  display: inline-block;
}

.sx-products-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #2f54a3;
  border-radius: 2px;
}

.sx-products-subtitle {
  font-size: 1.2rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.sx-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.sx-product-card {
  background: #fff;
  border-radius: 16px;
  overflow: visible;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

.sx-product-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.sx-product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.sx-product-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -30px auto 0;
  background: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 2;
  font-size: 32px;
}

.sx-product-card:hover .sx-product-icon {
  transform: scale(1.1) rotate(5deg);
}

.sx-product-content {
  padding: 20px 30px 30px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.sx-product-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #222;
  margin: 15px 0;
}

.sx-product-description {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.sx-product-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2f54a3;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 10px 0;
}

.sx-product-link:hover {
  color: #1e3a8a;
  transform: translateX(5px);
}

.sx-product-link i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.sx-product-link:hover i {
  transform: translateX(5px);
}

/* Color variants for each product */
.sx-product-card:nth-child(1) .sx-product-icon {
  background: linear-gradient(135deg, #2f54a3 0%, #1e3a8a 100%);
  color: white;
}

.sx-product-card:nth-child(2) .sx-product-icon {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
}

.sx-product-card:nth-child(3) .sx-product-icon {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
}

.sx-product-card:nth-child(4) .sx-product-icon {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: white;
}

.sx-product-card:nth-child(5) .sx-product-icon {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: white;
}

.sx-product-card:nth-child(6) .sx-product-icon {
  background: linear-gradient(135deg, #0e7490 0%, #155e75 100%);
  color: white;
}

.sx-product-card:nth-child(7) .sx-product-icon {
  background: linear-gradient(135deg, #db2777 0%, #be185d 100%);
  color: white;
}

/* Responsive styles */
@media (max-width: 768px) {
  .sx-products {
    padding: 60px 0;
  }

  .sx-products-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .sx-product-content {
    padding: 20px 20px 20px;
  }
}

/* View More Products Button Styles */
.sx-products-viewmore-wrapper {
  text-align: center;
  margin-top: 50px;
}

.sx-products-viewmore-btn {
  display: inline-block;
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #2f54a3 0%, #1e3a8a 100%);
  border-radius: 50px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.sx-products-viewmore-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: skewX(-25deg);
  transition: all 0.5s ease;
}

.sx-products-viewmore-btn:hover::before {
  left: 125%;
}

.sx-products-viewmore-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

body {
  background: #f8fafc;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  padding: 0;

}

/* Products Section */
.sxp-products {
  padding: 100px 20px;
  max-width: 1400px;
  margin: auto;
  position: relative;
  perspective: 1000px; /* for 3D hover effects */
}

.sxp-products-heading {
  text-align: center;
  margin-bottom: 60px;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

.sxp-products-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: #2f54a3;
  margin: 0 0 10px 0;
  display: inline-block;
  position: relative;
}

.sxp-products-title::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 5px;
  background: linear-gradient(90deg, #2f54a3, #1851a1);
  border-radius: 3px;
  box-shadow: 0 0 10px #2f54a3;
}

.sxp-products-subtitle {
  font-size: 1.2rem;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.75;
  font-weight: 500;
  animation: fadeIn 2s ease forwards;
  opacity: 0;
}

/* Grid */
.sxp-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 45px;
  padding: 0 10px;
}

/* Product Card */
.sxp-product-card {
  background: #fff;
  border-radius: 25px;
  box-shadow: 0 6px 12px rgba(47, 84, 163, 0.15),
    0 15px 20px rgba(47, 84, 163, 0.1);
  overflow: visible;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 0.4s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  padding: 60px 20px 40px;
  position: relative;
  opacity: 0;
  transform: translateY(60px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: var(--animation-delay);
  will-change: transform, opacity;
}

.sxp-product-card:nth-child(odd) {
  --animation-delay: 0.3s;
}
.sxp-product-card:nth-child(even) {
  --animation-delay: 0.6s;
}

.sxp-product-card:hover {
  transform: translateY(-18px) rotateX(6deg) rotateY(6deg) scale(1.05);
  box-shadow: 0 15px 30px rgba(47, 84, 163, 0.3),
    0 35px 40px rgba(47, 84, 163, 0.4);
  z-index: 50;
  border-top: 8px solid #2f54a3;
}

/* Product Icon */
.sxp-product-icon {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: #fff;
  background: linear-gradient(135deg, #2f54a3 0%, #1851a1 100%);
  box-shadow: 0 12px 30px rgba(47, 84, 163, 0.3);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  will-change: transform;
  position: relative;
  top: -45px;
}

.sxp-product-card:hover .sxp-product-icon {
  transform: scale(1.2) rotate(15deg);
  box-shadow: 0 20px 40px rgba(47, 84, 163, 0.6);
}

/* Content */
.sxp-product-content {
  padding: 0 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.sxp-product-name {
  font-weight: 700;
  margin: 22px 0 14px 0;
  color: #2f54a3;
  position: relative;
  letter-spacing: 0.025em;
  transition: color 0.3s ease;
  text-align: center;
}

.sxp-product-card:hover .sxp-product-name {
  color: #1851a1;
}

.sxp-product-card:hover .sxp-product-name::after {
  width: 60%;
}

.sxp-product-description {
  font-size: 1.1rem;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 30px;
  font-weight: 600;
  flex-grow: 1;
  transition: color 0.3s ease;
}

.sxp-product-card:hover .sxp-product-description {
  color: #2f54a3;
}

/* Learn More Link */
.sxp-product-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2f54a3;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.4s ease;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.sxp-product-link i {
  margin-left: 10px;
  transition: transform 0.4s ease;
  font-weight: bold;
}

.sxp-product-link:hover {
  color: #1851a1;
  border-color: #1851a1;
}

.sxp-product-link:hover i {
  transform: translateX(8px);
}

/* Responsive */

/* Large tablet */
@media (max-width: 992px) {
  .sxp-products-grid {
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .sxp-product-content {
    padding: 0 15px;
  }
}

/* Small tablet */
@media (max-width: 768px) {
  .sxp-products {
    padding: 60px 15px;
  }

  .sxp-product-content {
    padding: 0 12px;
  }

  .sxp-product-name {
    font-size: 1.6rem;
  }

  .sxp-product-description {
    font-size: 1rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .sxp-product-icon {
    width: 90px;
    height: 90px;
    font-size: 36px;
    top: -28px;
  }

  .sxp-product-name {
    font-size: 1.3rem;
  }

  .sxp-product-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
}

/* Animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
