/* Products Page Styles */

/* CSS Variables */
:root {
  --primary-color: #0066cc;
  --accent-color: #00aaff;
  --white-color: #ffffff;
  --background-color: #f8f9fa;
  --text-color: #333333;
  --light-text-color: #666666;
  --border-color: #e9ecef;
  --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.2);
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  --gradient-light: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
}

/* Products Hero Section */
.products-hero {
  background: linear-gradient(135deg, #04518e 0%, #00a6fb 50%, #04518e 100%);
  color: var(--white-color);
  padding: 140px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.products-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("./assects/banner-1.webp") center/cover;
  opacity: 0.15;
  z-index: 1;
  animation: slowZoom 20s ease-in-out infinite alternate;
}

.products-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.products-hero .container {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

.products-hero .hero-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Ensure h1 stays visible after AOS animation */
.products-hero .hero-content h1 {
  animation: heroContentSlideIn 1s ease-out forwards;
}

.products-hero .hero-content p {
  animation: heroContentSlideIn 1s ease-out 0.3s both;
}

@keyframes slowZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

@keyframes heroContentSlideIn {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.products-hero h1 {
  font-size: 4rem;
  margin-bottom: 25px;
  color: var(--white-color);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
  position: relative;
  z-index: 2;
}

.products-hero h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--white-color),
    transparent
  );
  border-radius: 2px;
}

.products-hero p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 40px;
  opacity: 0.95;
  line-height: 1.6;
  font-weight: 300;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 50px;
  flex-wrap: wrap;
  align-items: stretch;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  width: 200px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
}

.stat-item i {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* Product Features */
.product-features {
  padding: 80px 0;
  background: var(--white-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  text-align: center;
  padding: 40px 30px;
  background: var(--gradient-light);
  border-radius: 20px;
  box-shadow: var(--shadow-light);
  border: 1px solid rgba(0, 123, 255, 0.1);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

/* .feature-icon i {
  font-size: 1.8rem;
  color: var(--white-color);
} */

.feature-card img {
  width: 70%;
  height: 70%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
  line-height: normal;
}

.feature-card p {
  color: var(--text-color);
  line-height: 1.6;
}

/* Products CTA */
.products-cta {
  background: var(--gradient-primary);
  color: var(--white-color);
  padding: 80px 0;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--white-color);
}

.cta-content p {
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--white-color);
  color: var(--primary-color);
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary:hover {
  background: #f8f9fa;
  transform: translateY(-3px);
  box-shadow: var(--shadow-light);
}

.btn-secondary {
  background: transparent;
  color: var(--white-color);
  border: 2px solid var(--white-color);
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-secondary:hover {
  background: var(--white-color);
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 992px) {
  .products-hero h1 {
    font-size: 3rem;
  }

  .hero-stats {
    gap: 40px;
  }

  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .products-hero h1 {
    font-size: 2.5rem;
  }

  .products-hero p {
    font-size: 1.1rem;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-item {
    padding: 15px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .filter-controls {
    gap: 10px;
  }

  .filter-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .products-hero h1 {
    font-size: 2rem;
  }

  .products-hero p {
    font-size: 1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 15px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-content p {
    font-size: 1rem;
  }
}

@media (max-width: 900px) {
  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }
  .stat-item {
    width: 45%;
    min-width: 160px;
    min-height: 140px;
    margin-bottom: 12px;
  }
}

@media (max-width: 600px) {
  .hero-stats {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .stat-item {
    width: 100%;
    min-width: 0;
    min-height: 100px;
    padding: 14px 8px;
    margin-bottom: 0;
  }
  .stat-item i {
    font-size: 1.5rem;
    margin-bottom: 6px;
  }
  .stat-number {
    font-size: 1.5rem;
  }
  .stat-label {
    font-size: 1rem;
  }
}
