/* ================================
   SERVICES PREVIEW SECTION
================================ */
.services-preview {
  text-align: center;
}

.services-preview h2 {
  font-size: 2.2rem;
  font-weight: bold;
  color: #252522;
  margin: 0 0 3rem 0;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

/* --- Service Grid Layout --- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  justify-items: center;
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card img {
  width: 550px;
  height: 500px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.service-card:hover img {
  transform: scale(1.05);
  filter: brightness(0.8);
}

.service-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  text-align: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  left: 9rem;
}

.service-card p {
  font-size: 1rem;
  line-height: 1.4;
}

.service-card:hover .service-card-content {
  transform: translateY(-5px);
}

/* ================================
   PRODUCTS PREVIEW SECTION
================================ */
.products-preview {
  background: url("../assets/images/5.jpg") no-repeat center center / cover;
  padding: 60px 20px;
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  text-align: center;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-card img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.product-card h3 {
  color: #DF1024;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.product-card p {
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ================================
   BUTTONS
================================ */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
}

/* ================================
   ANIMATIONS
================================ */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatUp {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.animate-in {
  animation: floatUp 0.8s ease forwards;
}

/* Stagger animation delays */
.service-grid .service-card:nth-child(1).animate-in { animation-delay: 0.2s; }
.service-grid .service-card:nth-child(2).animate-in { animation-delay: 0.4s; }
.service-grid .service-card:nth-child(3).animate-in { animation-delay: 0.6s; }
.product-grid .product-card:nth-child(1).animate-in { animation-delay: 0.2s; }
.product-grid .product-card:nth-child(2).animate-in { animation-delay: 0.4s; }
.product-grid .product-card:nth-child(3).animate-in { animation-delay: 0.6s; }

/* Shared hover effects */
.service-card:hover, .product-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Glow outline on hover */
.service-card::after, .product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(131, 178, 65, 0.4);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::after, .product-card:hover::after {
  opacity: 1;
}
