/* ===== PRODUCTS SECTION ===== */

.products-section {
  background-color: var(--light-gray);
  position: relative;
  overflow: hidden;
  padding: var(--spacing-xxl) 0;
}

.products-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  z-index: 0;
}

/* Product Category Tabs */
.product-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: center;
  margin-bottom: var(--spacing-xl);
}

.category-tab {
  padding: 0.75rem 1.5rem;
  background-color: var(--white);
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.category-tab:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.category-tab.active {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
}

/* Products Showcase */
.products-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xxl);
}

.product-card {
  background-color: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(0, 102, 204, 0.15);
}

.product-badge {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: var(--secondary-gradient);
  color: var(--white);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.25);
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}

.product-image {
  height: 380px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.product-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.product-card:hover .product-image::after {
  opacity: 1;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

/* Product Overlay */
.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 2;
  backdrop-filter: blur(2px);
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.overlay-content {
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .overlay-content {
  transform: translateY(0);
}

.product-content {
  padding: var(--spacing-xl);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  background: linear-gradient(to bottom, var(--white), rgba(255,255,255,0.95));
}

.product-content h3 {
  font-size: 1.35rem;
  margin-bottom: var(--spacing-md);
  color: var(--dark);
  position: relative;
  padding-bottom: var(--spacing-sm);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.product-content h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 45px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.product-card:hover .product-content h3::after {
  width: 70px;
}

.product-specs {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.spec {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  background-color: rgba(0, 102, 204, 0.08);
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: all 0.3s ease;
}

.spec:hover {
  background-color: rgba(0, 102, 204, 0.12);
  transform: translateX(4px);
}

.spec i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.product-description {
  font-size: 0.9rem;
  color: var(--medium-gray);
  margin-bottom: var(--spacing-lg);
  line-height: 1.7;
  flex-grow: 1;
}

.product-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: var(--spacing-md);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--medium-gray);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.btn-download:hover {
  color: var(--primary-color);
  transform: translateX(4px);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .products-showcase {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }
  
  .product-image {
    height: 340px;
  }
}

@media (max-width: 768px) {
  .product-category-tabs {
    gap: var(--spacing-xs);
  }
  
  .category-tab {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
  }
  
  .product-content {
    padding: var(--spacing-lg);
  }
}

@media (max-width: 576px) {
  .products-showcase {
    grid-template-columns: 1fr;
  }
  
  .product-image {
    height: 300px;
  }
  
  .product-content h3 {
    font-size: 1.25rem;
  }
}
