/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-image: url('bg.webp');
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top Bar */
.top-bar {
  background: rgba(255, 235, 59, 0.5);
  backdrop-filter: blur(8px);
  padding: 10px 20px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: #222;
}

/* Navigation */
.nav-bar {
  background-color: #fff;
  border-bottom: 1px solid #eee;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex; /* Add this */
  justify-content: space-between; /* Add this */
  align-items: center; /* Add this */
}

.nav-tabs {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.nav-tabs li a {
  text-decoration: none;
  color: #555;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-tabs li a:hover {
  color: #222;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 24px;
}

/* Main Content */
main {
  flex: 1;
  padding: 40px 20px;
}

.container-1 {
  background-color: rgba(255, 255, 255, 0.85);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  max-width: 1200px;
  margin: 0 auto;
}

/* Product Section */
.product-section {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
}

.product-left {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.product-right {
  flex: 2;
  min-width: 300px;
}

.energypro-logo {
  max-width: 350px;
  width: 100%;
  padding: 20px 0;
}

.product-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 15px auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.product-price {
  margin-bottom: 5px;
  font-size: 1.5rem;
  font-weight: bold;
  width: 100%;
  text-align: left;
}

.product-origin {
  font-size: 12px;
  color: rgb(90, 90, 90);
}

.product-price-description {
  color: #555;
  font-size: 0.8rem;
  width: 100%;
  text-align: left;
  margin-bottom: 15px;
}

.product-description {
  background-color: rgb(200, 154, 62);
  color: white;
  padding: 12px;
  margin: 15px 0;
  border-radius: 10px;
  width: 100%;
  font-size: 0.9rem;
  line-height: 1.4;
}

.product-cashback-guarantee, 
.tos {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  text-align: left;
  color: #555;
  margin: 5px 0;
}

.my-num {
  font-size: 20px;
  padding-top: 15px;
  margin-top: 10px;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.benefit-item {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.benefit-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: #222;
  display: block;
  margin-bottom: 10px;
}

.benefit-desc {
  font-size: 14px;
  line-height: 1.5;
}

.further-info {
  font-size: 16px;
  margin-top: 20px;
  text-align: center;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
  text-align: center;
  margin-bottom: 20px;
  font-family: 'Playfair Display', serif;
  color: #222;
}

.contact-form label {
  display: block;
  margin: 15px 0 5px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 15px;
  font-family: 'Inter', sans-serif;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  background-color: #222;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
  font-size: 16px;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #444;
}

/* Footer */
.footer {
  background-color: #f1f1f1;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  color: #555;
  margin-top: auto;
}

/* Animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 1.2s ease-out forwards;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    display: none !important;
    cursor: pointer;
    font-size: 24px;
    /* Remove 'position: absolute' and manual positioning */
    /* Add this instead: */
    order: 2; /* Puts it on the right side */
    margin-left: auto; /* Pushes it to the right */
  }

  .nav-tabs {
    display: flex !important;
    display: none;
    width: 100%; /* Full width dropdown */
    order: 3; /* Puts below brand and toggle */
  }

  
  .nav-tabs.active {
    display: flex;
  }
  
  .container-1 {
    padding: 20px;
  }
  
  .product-section {
    flex-direction: column;
    gap: 20px;
  }
  
  .product-left, 
  .product-right {
    width: 100%;
    max-width: 100%;
  }
  
  .product-price, 
  .product-price-description,
  .product-description,
  .product-cashback-guarantee,
  .tos {
    text-align: center;
  }
  
  .contact-form {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .top-bar {
    padding: 8px 10px;
  }
  
  .brand-name {
    font-size: 20px;
  }
  
  .container-1 {
    padding: 15px;
  }
  
  .contact-form {
    padding: 15px;
  }
  
  .product-img, 
  .energypro-logo {
    max-width: 100%;
  }
}