/* General Styling & Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f8f8;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3 {
  color: #444;
  margin-bottom: 20px;
  font-weight: 600;
}

h1 {
  font-size: 3.5em; /* Larger for hero */
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

h2 {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: #ff6600; /* Diwali accent color */
  border-radius: 2px;
}

a {
  text-decoration: none;
  color: #ff6600;
}

a:hover {
  color: #ffffff;
}

ul {
  list-style: none;
}

.btn {
  display: inline-block;
  background-color: #ff6600;
  color: #fff;
  padding: 12px 25px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
}

.btn:hover {
  background-color: #e65c00;
}

.section-padding {
  padding: 80px 0;
}

/* Header */
.fixed-header {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.85); /* Slightly transparent */
  color: #fff;
  padding: 15px 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.fixed-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  color: #fff;
  font-size: 1.8em;
  font-weight: bold;
  letter-spacing: 1px;
}

.logo a:hover {
  color: #ff6600;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: #fff;
  font-size: 1.1em;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #ff6600;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.burger-menu {
  display: none; /* Hidden on desktop */
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.burger-menu div {
  width: 25px;
  height: 3px;
  background-color: #fff;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
  background-image: url("banner-image.jpeg"); /* Use the generated image here */
  background-size: cover;
  background-position: center;
  height: 100vh; /* Adjust height as needed */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  position: relative;
  padding-top: 80px; /* To account for fixed header */
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Dark overlay */
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-content h1 {
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 1.5em;
  margin-bottom: 30px;
  font-weight: 300;
}

/* About Us Section */
.about-section {
  /* background-color: #fff; */
}

.about-content {
  display: flex;
  flex-wrap: wrap; /* Allows wrapping on smaller screens */
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.about-text {
  flex: 2;
  min-width: 300px; /* Minimum width for text */
}

.about-text h3 {
  color: #ff6600;
  margin-top: 20px;
  margin-bottom: 15px;
  font-size: 1.8em;
}

.about-text p {
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.7;
}

.about-text ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.about-text ul li {
  margin-bottom: 8px;
}

.about-image {
  flex: 1;
  min-width: 250px; /* Minimum width for image */
  text-align: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Products Section */
.products-section {
  background-color: #fef5ed; /* Light festive background */
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.product-item {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.product-item h3 {
  font-size: 1.5em;
  color: #ff6600;
  margin-bottom: 10px;
}

.product-item .description {
  font-size: 0.95em;
  color: #666;
  padding: 0 15px;
  margin-bottom: 15px;
  min-height: 45px; /* Ensure consistent height for descriptions */
}

.product-item .price {
  font-size: 1.3em;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

.product-item .add-to-cart {
  background-color: #ff9900;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.product-item .add-to-cart:hover {
  background-color: #e68a00;
}

/* Contact Section */
.contact-section {
  background-color: #fff;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: center;
  align-items: flex-start;
}

.contact-form {
  flex: 2;
  min-width: 300px;
  background-color: #fef5ed;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ff6600;
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.2);
}

.form-group textarea {
  resize: vertical;
}

.error-message {
  color: #d9534f;
  font-size: 0.9em;
  margin-top: 5px;
  display: none; /* Hidden by default, shown by JS */
}

.submit-btn {
  width: 100%;
  padding: 15px;
  font-size: 1.2em;
}

.contact-info {
  flex: 1;
  min-width: 280px;
  padding: 20px;
  line-height: 1.8;
}

.contact-info h3 {
  font-size: 1.8em;
  color: #ff6600;
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 10px;
}

.social-links a {
  font-size: 1.5em;
  margin-right: 15px;
  color: #555;
}

.social-links a:hover {
  color: #ff6600;
}

/* Footer */
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 30px 0;
  font-size: 0.9em;
}

footer p {
  margin: 0;
}

/* Subtle Diwali Elements (Example: Diya icon on sections) */
/* You could add a background image with a subtle diya pattern,
   or use pseudo-elements for icon-like elements. */

/* .about-section::before,
.products-section::before,
.contact-section::before {
    content: url('path/to/small-diya-icon.png');
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.1;
    z-index: -1;
} */

/* Responsive Design */
@media (max-width: 900px) {
  .nav-links {
    gap: 20px;
  }

  h1 {
    font-size: 2.8em;
  }

  h2 {
    font-size: 2.2em;
  }

  .about-content,
  .contact-content {
    flex-direction: column;
    text-align: center;
  }

  .about-text,
  .contact-form,
  .contact-info {
    min-width: unset;
    width: 100%;
  }

  .about-text ul {
    text-align: left;
    margin: 0 auto 20px;
    max-width: 80%; /* Adjust as needed */
  }

  .hero-content p {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    right: 0;
    top: 80px; /* Adjust based on header height */
    height: calc(100vh - 80px); /* Full height below header */
    background-color: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    align-items: center;
    width: 60%;
    transform: translateX(100%);
    transition: transform 0.5s ease-in;
    padding-top: 50px;
    gap: 40px;
  }

  .nav-links.nav-active {
    transform: translateX(0%);
  }

  .nav-links li a {
    font-size: 1.5em;
  }

  .burger-menu {
    display: flex;
    z-index: 1001; /* Ensure burger is above nav links */
  }

  .burger-menu.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  .burger-menu.toggle .line2 {
    opacity: 0;
  }
  .burger-menu.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .fixed-header .container {
    padding: 0 20px;
  }

  .hero-section {
    height: 70vh;
  }

  h1 {
    font-size: 2.2em;
  }

  .hero-content p {
    font-size: 1em;
  }

  .product-grid {
    grid-template-columns: 1fr; /* Single column on very small screens */
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8em;
  }
  h2 {
    font-size: 1.8em;
  }
  .btn {
    padding: 10px 20px;
    font-size: 1em;
  }
  .fixed-header {
    padding: 10px 0;
  }
  .logo a {
    font-size: 1.5em;
  }
}

.main-logo {
  height: 50px; /* Adjust as needed */
  width: auto;
  object-fit: contain;
}
