@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500&family=Poppins:wght@400;500&display=swap");

:root {

  /*Color mode HSL(hue, saturation, lightness)*/
  --white-color: hsl(0, 0%, 100%);
  --black-color: hsl(0, 0%, 0%);
  /*========== Font and typography ==========*/
  --body-font: "Poppins", sans-serif;
  --h1-font-size: 1.5rem;


  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;

  /* animation for blogs container */
  --first-color: hsl(82, 60%, 28%);
  --title-color: hsl(0, 0%, 15%);
  --text-color: hsl(0, 0%, 35%);
  --body-color: hsl(0, 0%, 95%);
  --container-color: hsl(0, 0%, 100%);
  --h2-font-size: 1.25rem;
  --small-font-size: 0.813rem;

  --secondary-color: #2c3afc;
  --white-color: #ffffff;
  --light-color: #ced6e0;
  --dark-color: #2f3542;
  --box-shadow: rgb(0 0 2 / 35%) 0px 20px 30px -10px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

img {
  width: 100%;
  display: flex;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1650px;
  margin-inline: 1.5rem;
}

/*==================================================== MAIN SECTION ========================================*/
main {
  display: flex;
  flex-direction: column;
}

@media screen and (min-width: 1150px) {
  section {
    padding: 0rem 0;
  }
}

/*==================== PRODUCTS SECTION ====================*/
.products {
  background: linear-gradient(90deg, #fdfdfe, #dcdcfd)
}
.products__container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1rem;
  text-align: center;
}

/* Style for the section title */
.products-section-title {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 3rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

/* Optional: section padding */
.products.section {
  padding: 4rem 2rem;
  margin-top: 80px;
  background-color: #f9f9f9;
}


/* Products details grid */
.products__details {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns */
  gap: 3rem 1.5rem; /* gap between images */
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Product image container */
.product__image {
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Image inside product */
.product__image img {
  width: 100%;
  height: 400px; /* fixed height for equal size */
  display: block;
  transition: transform 0.3s ease;
}

/* Hover effect */
.product__image:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transform: scale(1.05);
}

.product__image:hover img {
  transform: scale(1.1);
}

/* Responsive: 2 columns on small screens */
@media (max-width: 768px) {
  .products-section-title {
    font-size: 2rem;  /* smaller on tablets */
  }
  .products__details {
    grid-template-columns: repeat(2, 1fr);
  }
  .product__image img {
    height: 280px;
  }
}

/* Responsive: 1 column on very small screens */
@media (max-width: 480px) {
  .products-section-title {
    font-size: 1.5rem; /* even smaller on phones */
  }
  .products__details {
    grid-template-columns: 1fr;
  }
  .product__image img {
    height: 250px;
  }
}




