/* HOME PAGE PRODUCT GRID - Professional & Mobile-Friendly */

.products-preview-home {
  position: relative;
  padding: 4rem 2rem;
  background: linear-gradient(180deg, #f8fbfd 0%, #ffffff 50%, #f8fbfd 100%);
  min-height: auto;
}

.products-preview-home h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent) 0%, #0a5f7a 50%, var(--accent-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

.products-preview-home h2::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 2px;
}

/* Professional Grid Layout */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

/* Product Card Styling */
.product-card-static {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 
    0 4px 16px rgba(10, 95, 122, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(10, 95, 122, 0.08);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.product-card-static::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card-static:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 16px 40px rgba(10, 95, 122, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--accent);
}

.product-card-static:hover::before {
  opacity: 1;
}

/* Image Wrapper */
.product-card-static .card-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
}

.product-card-static .card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card-static:hover .card-image-wrapper img {
  transform: scale(1.08);
}

.product-card-static .card-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card-static:hover .card-image-wrapper::after {
  opacity: 1;
}

/* Typography */
.product-card-static h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.product-card-static:hover h3 {
  color: var(--accent);
}

.product-card-static p {
  color: #556;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

/* Features List */
.product-card-static .card-features {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(10, 95, 122, 0.1);
  padding-top: 1rem;
}

.product-card-static .card-features li {
  color: #667;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.product-card-static .card-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
}

/* CTA Button */
.products-preview-home .center {
  text-align: center;
  margin-top: 2rem;
}

/* Tablet Adjustments */
@media (max-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
  }

  .product-card-static .card-image-wrapper {
    height: 200px;
  }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .products-preview-home {
    padding: 3rem 1rem;
  }

  .products-preview-home h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 2rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0;
  }

  .product-card-static {
    padding: 1.25rem;
  }

  .product-card-static .card-image-wrapper {
    height: 180px;
  }

  .product-card-static h3 {
    font-size: 1.125rem;
  }

  .product-card-static p {
    font-size: 0.9rem;
  }

  .product-card-static .card-features li {
    font-size: 0.85rem;
    padding: 0.4rem 0;
    padding-left: 1.25rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .products-preview-home {
    padding: 2.5rem 0.75rem;
  }

  .product-card-static {
    border-radius: 12px;
    padding: 1rem;
  }

  .product-card-static .card-image-wrapper {
    height: 160px;
    border-radius: 8px;
    margin-bottom: 1rem;
  }
}

/* Animation on Scroll */
.products-preview-home.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.products-preview-home.reveal.inview {
  opacity: 1;
  transform: translateY(0);
}

.product-card-static {
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.product-card-static:nth-child(1) { animation-delay: 0.1s; }
.product-card-static:nth-child(2) { animation-delay: 0.2s; }
.product-card-static:nth-child(3) { animation-delay: 0.3s; }
.product-card-static:nth-child(4) { animation-delay: 0.4s; }
.product-card-static:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
