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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Poppins", sans-serif;
  color: #333;
  background-color: black;
  overflow-x: hidden;
  overflow-y: scroll;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar,
html::-webkit-scrollbar {
  display: none;
}

header {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 60vh;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #fff;
  overflow: hidden;
}

.header-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1rem;
  color: #e3e7ed;
}

.header-content h1 {
  font-size: 2rem;
  font-weight: bold;
  text-shadow: 0px 4px 6px rgba(24, 20, 6, 0.5);
}

.header-content .tagline {
  font-size: 1rem;
  font-style: italic;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.subscribe-btn {
  padding: 0.6rem 1rem;
  font-size: 1rem;
  color: #fff;
  border: 2px solid goldenrod;
  background-color: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.subscribe-btn:hover {
  background-color: #eba708fd;
  transform: scale(0.9);
}

.slide {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: url("/assets/static/images/cc.webp") no-repeat center;
  background-size: cover;
  z-index: 0;
}

nav {
  width: 100%;
  overflow-x: hidden;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin-bottom: 1rem;
  gap: 1rem;
  padding: 0 1rem;
}

nav ul li {
  flex-shrink: 0;
}

nav ul li a {
  position: relative;
  color: #eba708fd;
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-weight: 600;
  white-space: nowrap;
}

nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #fffffffd;
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

main {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

main h2 {
  color: #dcdde1;
  text-align: center;
  font-size: 1.4rem;
}

.product-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0 1rem;
}

.product {
  max-width: 100%;
  background-color: rgb(9, 13, 18);
  border: 1px solid white;
  border-radius: 5px;
  overflow: hidden;
  margin: auto;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.5);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product img {
  width: 100%;
  height: 250px;
  object-fit: fill;
}

.product:hover {
  transform: translateY(-8px);
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
}

.product::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.833);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 5px;
}

.product:hover::before {
  opacity: 1;
}

.icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 1rem;
  left: 1rem;
  opacity: 0;
  gap: 0.5rem;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.product:hover .icons {
  opacity: 1;
}

.icons a i {
  color: goldenrod;
  font-size: 1.2rem;
  padding: 0.4rem;
  border: 2px solid rgb(210, 205, 192);
  border-radius: 10%;
  transition: color 0.3s ease, transform 0.3s ease;
}

.icons a i:hover {
  color: #fbfaff;
  border-color: #fbfaff;
  transform: scale(1.1);
}

.context {
  padding: 1rem;
  text-align: center;
}

.product h2 {
  color: #f5f6fa;
  font-size: 1rem;
  font-weight: 600;
}

.product p {
  color: #dcdde1;
  font-size: 0.8rem;
}

.product h3 {
  font-size: 1rem;
  font-weight: bold;
  color: #d0a702;
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: transparent;
  color: #c8d6e5;
  font-size: 0.9rem;
  margin-top: 2rem;
  box-shadow: 10px 4px 17px rgba(79, 80, 80, 0.499);
}

@media (min-width: 568px) {
  header {
    flex-direction: row;
    height: 50vh;
  }

  .header-content {
    width: 50%;
    padding: 1rem;
    text-align: left;
  }

  .slide {
    width: 50%;
  }

  .product {
    max-width: 300px;
  }

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

  .product img {
    height: 250px;
  }
}

@media (min-width: 1024px) {
  header {
    height: 80vh;
  }

  .header-content {
    width: 40%;
    margin-right: 50%;
  }

  .header-content h1 {
    font-size: 3.5rem;
  }

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

  .product {
    max-width: 300px;
  }

  .product img {
    height: 350px;
  }
}
