* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: sans-serif;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

/* KEYFRAMES */
@keyframes fade-in {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  background-color: #000;
  color: white;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

/* HEADER */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 40px;
  background-color: #000;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  width: 50px;
  height: auto;
}

.cart {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-right: 20px;
}

.cart-count {
  background-color: red;
  color: white;
  font-size: 14px;
  font-weight: bold;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.cart-popup {
  display: none;
  position: fixed;
  top: 50px;
  right: 20px;
  background: #000;
  border: 1px solid #ccc;
  padding: 20px;
  width: 250px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.cart-popup.show {
  display: block;
}

.cart-popup h3 {
  margin-bottom: 10px;
}

.cart-items {
  text-align: left;
}

.cart-item {
  font-size: 14px;
  border-bottom: 1px solid #444;
  padding: 5px 0;
}

.checkout-btn {
  width: 100%;
  padding: 10px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  margin-top: 10px;
  cursor: pointer;
  font-weight: bold;
}

.checkout-btn:hover {
  background-color: #218838;
}

.empty-cart {
  text-align: center;
  font-size: 14px;
  color: #ccc;
  padding: 10px 0;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  width: 350px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.modal-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.modal-product-details {
  text-align: left;
  margin: 15px 0;
  list-style: none;
  font-size: 14px;
  color: #555;
}

.modal-product-details li {
  margin: 6px 0;
}

.modal-brand {
  width: 100%;
  padding: 8px;
  margin: 12px 0;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  cursor: pointer;
}

.modal-product-price {
  font-size: 18px;
  font-weight: bold;
  color: #e74c3c;
  margin: 10px 0;
}

.buy-button {
  background: #3498db;
  color: #fff;
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.buy-button:hover {
  background: #2980b9;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
  color: #555;
  transition: color 0.3s;
}

.close:hover {
  color: #e74c3c;
}

/* MAIN */
.main {
  text-align: center;
  margin-top: 0px;
  animation: fade-in 0.4s 0.1s backwards;
}

.heading {
  font-size: 65px;
  font-weight: 700;
  max-width: 800px;
  margin: 0 auto 25px;
  line-height: 0.9;
}

.text {
  max-width: 630px;
  font-size: 25px;
  line-height: 1.4;
  margin: 0 auto;
  opacity: 0.7;
}

/* FORM */
.form {
  margin-top: 40px;
}

.input {
  width: 100%;
  max-width: 500px;
  height: 64px;
  border: none;
  border-radius: 3px;
  font-size: 17px;
  padding-left: 10px;
  transition: opacity 0.3s;
}

.input:focus {
  opacity: 1;
}

.btn {
  height: 64px;
  width: 130px;
  color: white;
  border: none;
  border-radius: 3px;
  background-color: #000;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  transition: background-color 0.3s;
}

.btn:hover {
  cursor: pointer;
  background-color: #353535;
}

/* FOOTER */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 900px;
  margin: 20px auto;
  font-size: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  animation: fade-in 0.4s 0.2s backwards;
}

/* HERO SECTION */
.hero {
  position: relative;
  min-height: 100vh;
  background-image: url('background-web.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: white;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-box {
  position: relative;
  z-index: 1;
  border: 1px solid white;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  margin-bottom: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.hero-box h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero-box p {
  font-size: 1.2rem;
  opacity: 0.8;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.hero-buttons a {
  padding: 12px 24px;
  font-size: 1rem;
  border: 1px solid white;
  border-radius: 6px;
  color: white;
  transition: 0.3s;
}

.hero-buttons a:hover {
  background-color: white;
  color: black;
}

.hero-bg {
  font-size: 100px;
  font-weight: bold;
  color: white;
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
}

@media (max-width: 768px) {
  .hero {
    padding: 20px;
    height: auto;
  }

  .hero-box {
    padding: 30px 20px;
    width: 100%;
    margin-bottom: 30px;
  }

  .hero-box h1 {
    font-size: 2rem;
  }

  .hero-box p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .hero-buttons a {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 1rem;
  }

  .hero-bg {
    font-size: 60px;
    bottom: 20px;
  }
}
