/* Existing CSS */
body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
}

header {
  background-color: #f8f8f8;
  padding: 15px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: sticky; /* stays on top while scrolling */
  top: 0;
  z-index: 1000; /* ensures it stays above the slider */
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative; /* Make container relative for absolute positioning of hamburger */
}

.logo-container img {
  display: block;
}

.company-name {
  margin-left: 10px;
  font-weight: bold;
  color: #333;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.main-nav ul li {
  margin-left: 20px;
}

.main-nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.main-nav ul li a:hover {
  background-color: #6ad66a;
}

.right-section {
  display: flex;
  align-items: center;
}

.hamburger-icon {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  position: absolute; /* Position for right corner */
  top: 50%;
  right: 5px; /* Changed from left to right */
  transform: translateY(-50%);
  z-index: 20; /* Ensure it's above the navigation */
}

.hamburger-icon .line {
  width: 100%;
  height: 3px;
  background-color: #333;
  transition: all 0.3s ease;
}

/* Media query for smaller screens (e.g., mobile devices) */
@media (max-width: 768px) {
  .main-nav {
    display: none;
    width: 100%;
    position: absolute;
    top: 70px;
    left: 0;
    background-color: #f8f8f8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    text-align: center;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
  }

  .main-nav ul li {
    margin: 10px 0;
    width: 100%;
    text-align: center;
  }

  .main-nav ul li a {
    display: block;
    padding: 15px 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .hamburger-icon {
    display: flex;
  }

  .logo-container {
    margin: 0 auto;
  }
  /* --- Fix for homepage cards on mobile view --- */
  .detail-item,
  .testimonial-card {
    /* Force cards to take up most of the width, creating a single column */
    flex-basis: 90%;
  }
}

/* JavaScript to toggle the navigation menu */
.nav-open .main-nav {
  display: block !important; /* Show the navigation when the 'nav-open' class is added */
}

.nav-open .hamburger-icon {
  /* Style for the X icon */
  position: absolute;
  top: 25px; /* Adjust top position as needed */
  right: 20px; /* Keep right position */
  transform: translateY(0); /* Reset vertical translation */
  cursor: pointer;
}

.nav-open .hamburger-icon .line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-open .hamburger-icon .line:nth-child(2) {
  opacity: 0;
}

.nav-open .hamburger-icon .line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.section {
  padding: 60px 20px;
  text-align: center;
}

.section-heading {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #1a202c;
}

.section-subheading {
  font-size: 1.1em;
  color: #555;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.why-choose-us {
  background-color: #eff2ff;
}

.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("Vedansh/slid2.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 120px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
}

.hero-headline {
  font-size: 3.5em;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subheadline {
  font-size: 1.4em;
  margin-bottom: 30px;
  max-width: 700px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  text-align: center;
}

/* This targets the highlighted words inside the headline */
.hero-headline .highlight {
  color: #fff8e1; /* Pale Gold */
  /* Or use your accent blue: color: #a7b7fd; */
}

.cta-button {
  display: inline-block;
  background-color: #667eea;
  color: #fff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
  background-color: #5a67d8;
  transform: translateY(-2px);
}

/* --- Unique Details & "Why Choose Us" Grid --- */
/* --- OPTION 2: Top Border Card Style --- */

.detail-card {
  background-color: #fff;
  border-radius: 8px;
  border-top: 5px solid #667eea; /* Thick top border with accent color */
  padding: 30px;
  text-align: center;
  flex: 1;
  min-width: 280px;
  max-width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Lighter shadow */
}

.detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* This is the container that arranges the cards horizontally */
.details-grid {
  display: flex; /* This is the most important line */
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 50px;
}

/* This creates the card with the top border */
.detail-card {
  background-color: #fff;
  border-radius: 8px;
  border-top: 5px solid #667eea; /* Thick top border with accent color */
  padding: 30px;
  text-align: center;
  flex: 1;
  min-width: 280px;
  max-width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.detail-item i {
  font-size: 3em;
  color: #667eea; /* Icon color matches the border */
  margin-bottom: 15px;
}

.detail-item h3 {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #1a202c;
}

.detail-item p {
  color: #555;
  line-height: 1.5;
}

/* --- Testimonials Section --- */

.testimonials {
  background-color: #f9f9f9;
}

.testimonial-container {
  display: flex;
  justify-content: center;
  gap: 20px; /* Space between cards */
  flex-wrap: wrap; /* Allows cards to stack on smaller screens */
  max-width: 1400px;
  margin: 0 auto;
}

.testimonial-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: left;
  flex: 1; /* Allows cards to grow */
  min-width: 280px; /* Minimum width before stacking */
  max-width: 350px; /* Maximum width of a card */
  position: relative;
  margin-top: 20px;
}

.testimonial-icon {
  font-size: 2em;
  color: #667eea;
  position: absolute;
  top: -15px;
  left: 20px;
  opacity: 0.2;
}

.testimonial-quote {
  font-size: 1.05em;
  font-style: italic;
  color: #444;
  margin: 15px 0; /* Adjusted margin */
}

.testimonial-author {
  font-weight: bold;
  color: #1a202c;
  text-align: right;
  margin-top: 20px;
}

/* --- Final CTA Section --- */
.final-cta {
  background-color: #ffffff; /* White background */
}

.final-cta .section-heading {
  color: #1a202c; /* Dark text for the heading */
}

.final-cta .section-subheading {
  color: #555; /* Standard dark grey for the subheading */
  margin-bottom: 30px;
}

/* ==========================================================================
   FAQ ACCORDION STYLES (with Colored Active State)
   ========================================================================== */

.faq-section {
  background-color: #f9f9f9; /* Light grey background to stand out */
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #e2e8f0;
}

.faq-question {
  width: 100%;
  background-color: transparent;
  border: none;
  padding: 20px; /* Added padding for a better look */
  text-align: left;
  font-size: 1.1em;
  font-weight: 600;
  color: #1a202c;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease; /* Smooth transition for background */
}

.faq-question span {
  transition: color 0.3s ease;
}

/* This sets the default color of the arrow to your accent blue */
.faq-question i {
  color: #000000;
  font-size: 1.2em;
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  text-align: left;
  background-color: #ffffff; /* Give the answer a clean white background */
}

.faq-answer p {
  margin: 0;
  padding: 25px; /* Add padding to the answer text */
  line-height: 1.6;
  color: #555;
}

/* --- Styles for when the accordion is active/open --- */
.faq-item.active .faq-question {
  background-color: #667eea; /* BRAND ACCENT COLOR */
  color: #ffffff; /* White text for contrast */
}

.faq-item.active .faq-question i {
  color: #ffffff; /* White icon for contrast */
  transform: rotate(180deg); /* Flips the down arrow to point up */
}

.faq-item.active .faq-answer {
  max-height: 200px; /* Adjust if your answers are longer */
}

/* Style for the "OUR PRODUCTS" heading */
.products-heading {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 30px;
  padding: 0 20px;
}

/* Style for the product container */
.products-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* Style for each product item */
.product-item {
  width: calc(33.33% - 20px);
  height: auto;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.product-item img {
  display: block;
  width: 100%;
  height: auto;
}
/* Splash Screen Style */
/* Styles for the loading screen */
#loading-screen {
  position: fixed; /* Cover the entire viewport */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f8f8f8; /* Or any background color you prefer */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Ensure it's on top of everything */
}

#loading-screen img {
  max-width: 200px; /* Adjust logo size as needed */
  height: auto;
  margin-bottom: 20px;
}

#loading-message {
  font-size: 18px;
  color: #555; /* Adjust color as needed */
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* For smaller mobile screens (max-width: 480px) */
@media (max-width: 480px) {
  .main-nav ul li a {
    font-size: 14px;
  }

  .slider-container {
    height: 250px;
  }

  .products-heading {
    font-size: 20px;
  }

  .product-item {
    width: 95%;
  }
}

.site-footer {
  background-color: #545454;
  padding: 20px;
  margin-top: 30px;
  text-align: center;
  font-family: sans-serif;
  color: #ffffff;
}

.site-footer h3 {
  margin-bottom: 10px;
  color: #000000;
}

.products-container .product-item h4 {
  text-align: center;
}

.container h2 {
  text-align: center;
}

.container ul li {
  margin-bottom: 15px; /* Adjust the value (e.g., 10px, 20px) as needed */
}

/* ==========================================================================
   TABLET VIEW FIXES
   ========================================================================== */

@media (max-width: 992px) and (min-width: 769px) {
  .details-grid {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  .detail-item {
    flex-basis: 40%;
  }

  .testimonial-container {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  .testimonial-card {
    flex-basis: 40%;
  }
}

/* Basic styling for product list */
.product-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  justify-content: center; /* Center the product items */
}

.product-item {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  background-color: #fff;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
}

.product-item:hover {
  transform: translateY(-5px);
}

.product-thumbnail {
  width: 150px; /* Adjust size as needed */
  height: auto;
  display: block;
  margin-bottom: 10px;
}

/* Styles for the modal */
.product-details-modal {
  display: none; /* Initially hidden */
  position: fixed;
  z-index: 1000; /* On top of other content */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Enable scrolling if content is too long */
  background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent black overlay */
  justify-content: center; /* Center content horizontally */
  align-items: center; /* Center content vertically */
  padding: 20px; /* Add padding to prevent content touching edges on small screens */
  box-sizing: border-box; /* Include padding in width/height */
}

.modal-content {
  background-color: #fefefe;
  /* --- MODIFIED WIDTHS FOR SMALLER MODAL --- */
  width: 70%; /* Reduced width to 70% */
  max-width: 400px; /* Reduced max-width to 400px */
  /* ----------------------------------------- */
  margin: auto; /* Center the modal */
  padding: 20px;
  border: 1px solid #888;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  animation-name: animatetop;
  animation-duration: 0.4s;
  border-radius: 8px; /* Add some rounded corners */
}

/* Modal Animation */
@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-button:hover,
.close-button:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

#largeProductImage {
  display: block;
  max-width: 80%; /* Adjust image size relative to the smaller modal */
  height: auto;
  margin: 0 auto 20px auto; /* Center image and add space below */
  border: 1px solid #eee; /* Optional: add a light border to the image */
  border-radius: 4px;
}

#productName {
  text-align: center;
  margin-top: 0;
  color: #333;
}

#productDetails {
  text-align: left;
  color: #555;
  line-height: 1.5;
}

/* Basic styling for the body and container */
body {
  font-family: sans-serif;
  background-color: #f8f8f8;
  color: #333;
}

h1 {
  text-align: center;
  color: #0056b3;
  margin-bottom: 30px;
}

/* Styling for the product list grid */
.product-list {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  padding: 20px; /* Adjust padding as needed */
  justify-content: center; /* Center the product items */
}

.product-item {
  border: 1px solid #ccc;
  padding: 15px; /* Increased padding */
  text-align: center;
  cursor: pointer;
  background-color: #fff;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1); /* Softer shadow */
  transition: transform 0.2s ease-in-out;
  border-radius: 8px; /* Rounded corners */
  width: 270px; /* Fixed width for product items */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.product-item:hover {
  transform: translateY(-5px); /* Lift effect on hover */
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

.product-thumbnail {
  width: 100%; /* Make thumbnail fill the item width */
  height: auto;
  display: block;
  margin-bottom: 15px; /* Increased margin */
  border-radius: 4px; /* Slightly rounded corners for thumbnails */
}

.product-item p {
  font-size: 1em;
  color: #555;
  margin: 0; /* Remove default paragraph margin */
}

/* Styles for the modal overlay */
.product-details-modal {
  display: none; /* Initially hidden */
  position: fixed;
  z-index: 1000; /* On top of other content */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Enable scrolling if content is too long */
  background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black overlay */
  justify-content: center; /* Center content horizontally */
  align-items: center; /* Center content vertically */
  padding: 20px; /* Add padding to prevent content touching edges on small screens */
  box-sizing: border-box; /* Include padding in width/height */
}

/* Styles for the modal content box */
.modal-content {
  background-color: #fefefe;
  width: 95%; /* Responsive width */
  max-width: 500px; /* Maximum width */
  margin: auto; /* Center the modal */
  padding: 25px; /* Increased padding */
  border: 1px solid #888;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Enhanced shadow */
  animation-name: animatetop;
  animation-duration: 0.4s;
  border-radius: 10px; /* More rounded corners */
  max-height: 90vh; /* Limit modal height to prevent overflow */
  overflow-y: auto; /* Enable scrolling within modal content if needed */
}

/* Modal Animation */
@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

/* Styling for the close button */
.close-button {
  color: #aaa;
  float: right;
  font-size: 30px; /* Slightly larger */
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease-in-out;
}

.close-button:hover,
.close-button:focus {
  color: #777; /* Darker on hover */
  text-decoration: none;
}

/* Styling for the large product image in the modal */
#largeProductImage {
  display: block;
  max-width: 90%; /* Adjust image size relative to the modal width */
  height: auto;
  margin: 0 auto 20px auto; /* Center image and add space below */
  border: 1px solid #eee; /* Optional: add a light border to the image */
  border-radius: 6px; /* Rounded corners */
}

/* Styling for the product name in the modal */
#productName {
  text-align: center;
  margin-top: 0;
  color: #222; /* Darker color */
  margin-bottom: 20px; /* Add space below name */
}

/* Styling for the container of structured details */
#structuredProductDetails {
  margin-top: 15px; /* Add space above details */
}

/* Styling for elements within structured details */
#structuredProductDetails .detail-section {
  margin-bottom: 15px; /* Space between detail sections */
}

#structuredProductDetails h2 {
  color: #007bff; /* Blue color for subheadings */
  margin-top: 0; /* Remove top margin */
  margin-bottom: 5px;
  border-bottom: 1px solid #eee; /* Subtle separator line */
  padding-bottom: 3px;
  font-size: 1.1em; /* Adjust font size */
}

#structuredProductDetails p {
  margin-bottom: 8px; /* Space between paragraphs */
  font-size: 0.95em; /* Adjust font size */
  line-height: 1.5;
  color: #555; /* Slightly lighter text color */
}

#structuredProductDetails ul {
  margin-top: 5px;
  padding-left: 25px; /* Indent list */
  font-size: 0.95em; /* Adjust font size */
}

#structuredProductDetails li {
  margin-bottom: 5px;
  list-style-type: disc; /* Use bullet points */
  color: #555;
}

/* Styling for the important note within details */
.important-note {
  margin-top: 20px;
  padding: 15px;
  background-color: #fff3cd; /* Light yellow background */
  border: 1px solid #ffeeba; /* Yellow border */
  border-radius: 5px;
  color: #856404; /* Dark yellow text color */
  font-size: 0.9em;
}

.important-note h3 {
  margin-top: 0;
  color: #856404;
  font-size: 1em;
  margin-bottom: 5px;
}
