/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #f0fff0;
  color: #333;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

/* Loading Spinner */
#loading-spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #FF5722;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Logo Styling */
#logo {
  width: 150px;
  display: block;
  margin: 10px auto;
}

/* Header Styling */
.header {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.header-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.header-content {
  position: relative;
  z-index: 1;
  padding: 20px;
}

.header-content h1 {
  font-size: 3rem;
  margin: 0;
}

.header-content p {
  font-size: 1.5rem;
  margin-top: 10px;
}

/* Juice Menu Section */
#juice-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 40px;
  background-color: #fff;
}

#juice-menu h2 {
  grid-column: span 3;
  font-size: 2rem;
  text-align: center;
  color: #FF5722;
  margin-bottom: 30px;
}

/* Juice Item Container */
.juice-item {
  background-color: #FFF3E0;
  border: 1px solid #FFC107;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.juice-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.juice-item img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 10px;
  transition: opacity 0.3s ease;
}

.juice-item:hover img {
  opacity: 0.9;
}

.juice-item h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: #FF9800;
}

.juice-item p {
  font-size: 0.9rem;
  color: #757575;
}

/* Order Button Styling */
.order-button {
  background-color: #FF5722;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.order-button:hover {
  background-color: #E64A19;
}

/* Checkout Section */
#checkout {
  background-color: #FFF;
  padding: 40px;
  text-align: center;
  border-top: 5px solid #FF9800;
  display: none;
}

#checkout h2 {
  font-size: 2rem;
  color: #FF5722;
  margin-bottom: 20px;
}

#checkout label {
  font-size: 1rem;
  color: #757575;
  margin-bottom: 5px;
  display: block;
}

#checkout input[type="text"],
#checkout input[type="number"],
#checkout input[type="tel"] {
  padding: 10px;
  width: 100%;
  max-width: 400px;
  border-radius: 5px;
  border: 1px solid #ddd;
  font-size: 1rem;
  margin-bottom: 15px;
}

#checkout input[type="text"]:focus,
#checkout input[type="number"]:focus,
#checkout input[type="tel"]:focus {
  outline: none;
  border-color: #FF9800;
}

#mpesaPayButton {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#mpesaPayButton:hover {
  background-color: #388E3C;
}

#back-to-menu {
  background-color: #FF5722;
  color: white;
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}

#back-to-menu:hover {
  background-color: #E64A19;
}

/* Payment Modal */
#payment-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

#confirm-payment, #cancel-payment {
  padding: 10px 20px;
  margin: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#confirm-payment {
  background-color: #4CAF50;
  color: white;
}

#cancel-payment {
  background-color: #FF5722;
  color: white;
}

/* Thank You Section */
#thank-you {
  text-align: center;
  padding: 40px;
  background-color: #FFF3E0;
  border-top: 5px solid #FF9800;
}

#thank-you button {
  background-color: #FF5722;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
}

#thank-you button:hover {
  background-color: #E64A19;
}

/* Location Section */
#delivery-location {
  text-align: center;
  margin: 40px 0;
}

#location-status {
  font-size: 18px;
  color: #4CAF50;
  margin: 10px 0;
}

#map {
  width: 80%;
  height: 400px;
  margin: 20px auto;
  border: 2px solid #ddd;
  border-radius: 10px;
}

/* Scroll to Top Button */
#scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #FF5722;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
}

#scroll-to-top:hover {
  background-color: #E64A19;
}

/* Footer Section */
footer {
  background-color: #FF5722;
  color: white;
  padding: 20px;
  text-align: center;
}

footer h3, footer h4 {
  margin-bottom: 10px;
}

footer ul {
  list-style: none;
}

footer li {
  margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
  #juice-menu {
      grid-template-columns: 1fr;
  }

  #juice-menu h2 {
      font-size: 1.8rem;
  }

  .juice-item h3 {
      font-size: 1.5rem;
  }

  .juice-item p {
      font-size: 0.9rem;
  }

  #checkout h2 {
      font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  #juice-menu {
      grid-template-columns: 1fr;
  }

  .juice-item {
      padding: 10px;
  }

  #checkout {
      padding: 20px;
  }

  #checkout input[type="text"],
  #checkout input[type="number"],
  #checkout input[type="tel"] {
      max-width: 90%;
  }
}

@media (max-width: 375px) {
  #juice-menu {
      grid-template-columns: 1fr;
  }

  .juice-item img {
      height: 150px;
  }
}
