* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 80px; 
  padding-top: 20px;
}



body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f7f7f7;
}

header {
  background: #111;
  color: #fff;
  padding: 1rem 0;
  position: sticky;  
  z-index: 1000;
  top: 0;
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: auto;
  padding: 0 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

nav.active {
  display: block; 
}

.nav-link {
  color: #fff;
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 0%;
  height: 2px;
   background-color: #ffffffcc;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
   color: #ffd700;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: auto;
  height: 660px;
}

.hero-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-text p {
  margin-bottom: 1.5rem;
}

.hero-img img {
  width: 100%;
  max-width: 400px;
}

.btn {
  text-decoration: none;
  padding: 10px 24px;
  background: linear-gradient(to right, #000000, #333333);
  color: white;
  border: none;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.btn:hover {
  background: linear-gradient(to right, #333333, #000000);
}


.featured-products {
  text-align: center;
  padding: 60px 20px;
  background: #f9f9f9;
}

.featured-products h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 40px;
}

.products-container {
  display: grid;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.product-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  width: 280px;
  padding: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
  
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.product-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 20px;
}

.product-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.product-card p {
  font-size: 1.1rem;
  font-weight: 500;
  color: #009688;
}

.featured-products {
  padding: 60px 10%;
  background-color: #fff;
  display: grid;
  justify-content: space-around;

  
}

.featured-products h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #222;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 90px;
  justify-content: space-evenly;
}

.product-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
}

.product-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.product-card h3 {
  font-size: 1.2rem;
  margin: 10px 0;
}

.product-card p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 15px;
}

.buy-button {
  background-color: #ff6a00;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.buy-button:hover {
  background-color: #e65c00;
}

.why-us {
  background: #fff;
  padding: 4rem 2rem;
  text-align: center;
}

.why-us h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: auto;
}

.contact {
  padding: 4rem 2rem;
  text-align: center;
  background: #eee;
}

.contact h3 {
  margin-bottom: 1rem;
}

.contact form {
  margin-top: 1rem;
}

.contact input {
  padding: 0.8rem;
  width: 250px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact button {
  padding: 0.8rem 1.2rem;
  border: none;
  background: #ff6b00;
  color: #fff;
  border-radius: 4px;
  /* margin-left: 0.5rem; */
}

footer {
  text-align: center;
  padding: 1rem;
  background: #111;
  color: #fff;
}

/*Responsive */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  nav {
    position: absolute;
    top: 70px;
    right: 20px;
    background-color: #111;
    width: 200px;
    border-radius: 8px;
    display: none;
    padding: 1rem;
    z-index: 10;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  nav.nav-open {
    display: block;
  }

  .container {
    flex-wrap: wrap;
  }

}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    height: 776px;
  }

  .hero-img {
    margin-top: 2rem;
  }

  .hero-img img {
    max-width: 300px;
    width: 100%;
  }
}

@media (max-width: 1024px) {

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

@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    height: auto;
    padding: 2rem;
  }

  .hero-img {
    margin-top: 1.5rem;
  }

  .hero-img img {
    max-width: 280px;
    width: 100%;
  }
}


@media (max-width: 700px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    margin: 0 auto;
  }
}


@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    margin: 0 auto;
  }
}


@media (max-width: 500px) {
  .contact form {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .contact input,
  .contact button {
    width: 100%;
  }
  
}


