/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Header & Navigation */
header {
  background: #333;
  color: #fff;
  padding: 1rem 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar {
  display: flex;  
  align-items: center;
  width: 100%;
}

.nav-links {
  list-style: none;
  display: flex;
  margin-right: auto;
}

.nav-links li {
  margin: 0 1rem;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #f4b400;
}

.logo img {
  width: 200px;
  height: auto;
}

.order-now {
  background-color: #f4b400;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.order-now:hover {
  background-color: #e69500;
}

/* Hero Section */
#hero {
  position: relative;
  color: #fff;
  padding: 2rem 1rem;
}

.carousel-container {
  width: 80%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  transition: opacity 1s ease-in-out;
}

.carousel-slide img {
  width: 100%;
  display: block;
}

@keyframes popIn {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}

section {
  animation: popIn 2  s ease-out forwards;
}

/* Custom styles for the About section */
#about {
  position: relative;
  padding: 3rem 1rem;
  color: #fff;
  overflow: hidden;
}

#about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/images/banner1.png');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 0;
}

#about h2 {
  color: #000000;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  position: relative;
  z-index: 1;
  text-align: center;
}

#about p {
  color: #000000;
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Products Section */
#products {
  padding: 2rem 1rem;
  background: #fff;
  animation: fadeIn 1s ease-out forwards;
}

#products h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  /* no default color here, since each span has its own color */
}

#products h2 .hyper {
  color: #0e1033; /* White */
}

#products h2 .lube {
  /* A lime‑green close to what appears in the logo */
  color: #C4D708;
}


/* Product Grid */
.product-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

/* Product Card */
.product {
  background: #fff;
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 10px;
  width: 250px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.product:hover {
  transform: translateY(-10px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Product Image Flip Effect */
.product-image {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  display: block;
  /* Remove the static transition when using animation */
}

/* Default state: front image visible, back hidden */
.product-image img.front {
  opacity: 1;
}

.product-image img.back {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

/* Keyframe animations for flip effect */
@keyframes flipFront {
  0%, 45% { opacity: 1; }
  55%, 100% { opacity: 0; }
}

@keyframes flipBack {
  0%, 45% { opacity: 0; }
  55%, 100% { opacity: 1; }
}

/* Apply the animations on hover */
.product:hover .product-image img.front {
  animation: flipFront 6s infinite;
}

.product:hover .product-image img.back {
  animation: flipBack 6s infinite;
}


/* Product Name */
.product h3 {
  margin: 1rem 0;
  font-size: 1.2rem;
  color: #333;
}

/* Enquire Button */
.enquire-button {
  background-color: #f49f00;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.enquire-button:hover {
  background-color: #e69500;
}

/* Modal Overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  /* Remove or change overflow if you want background to scroll differently */
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

/* Modal Content Box */
.modal-content {
  position: relative;
  margin: 5% auto; 
  max-width: 700px; 
  background: #fff;
  padding: 20px;
  border-radius: 8px;
}

/* Close (X) Button */
.close-button {
  float: right;
  font-size: 1.5rem;
  cursor: pointer;
}

.product-details {
  display: flex;
  justify-content: space-between; /* name+SKU on the left, image on the right */
  align-items: flex-start;
  margin-bottom: 1rem;
}

/* Force name & SKU to stack in one column */
.text-details {
  display: flex;        /* Make this a flex container */
  flex-direction: column;
  flex: 1;              /* So it uses remaining space */
  margin-right: 1rem;   /* Space between text and image */
}

/* Style the product name and SKU */
#modalProductName {
  margin: 0;             /* Remove default h3 margin if you want tighter spacing */
  font-size: 1.4rem;     /* Adjust as desired */
  font-weight: bold;
}

#modalProductSku {
  margin: 0.4rem 0 0;    /* A bit of space above the SKU text */
  font-size: 1rem;       /* Slightly smaller than product name */
  color: #000000;  /* Or normal if you prefer */
}

/* Right column for image */
.product-details img {
  width: 120px;    /* Increase or decrease to enlarge/reduce the product image */
  height: auto;
  margin-left: 10px;
}

/* Enquiry Form Styles */
#enquiryForm {
  display: flex;
  flex-direction: column;
}

#enquiryForm label {
  margin: 10px 0 5px;
  font-weight: bold;
}

#enquiryForm input {
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Submit Button */
#enquiryForm button[type="submit"] {
  background-color: #f49f00;
  color: #fff;
  border: none;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

#enquiryForm button[type="submit"]:hover {
  background-color: #e69500;
}

/* Phone Input (India Flag + +91 + Input) */
.phone-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}


/* Professional Footer Styles */
footer {
  background: #1e1e1e;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  font-family: 'Arial', sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-content {
  width: 100%;
  text-align: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.company-info {
  max-width: 600px;
  margin: auto;
}

.company-info h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #ffd700;
}

.company-info h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: #f0f0f0;
}

.company-info p {
  font-size: 16px;
  margin: 5px 0;
  line-height: 1.6;
}

.company-info a {
  color: #ffd700;
  text-decoration: none;
  transition: color 0.3s;
}

.company-info a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  font-size: 14px;
  margin-top: 10px;
  opacity: 0.8;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .navbar {
    flex-direction: column;
  }

  .logo img {
    width: 150px;
  }

  .order-now {
    margin-top: 10px;
  }

  .product-list {
    flex-direction: column;
    align-items: center;
  }

  .product {
    width: 90%;
  }

  .carousel-container {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .contact-info, .app-links {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .navbar {
    flex-direction: column;
  }

  .logo img {
    width: 100px;
  }

  .order-now {
    font-size: 1rem;
  }

  #about h2, #products h2 {
    font-size: 1.5rem;
  }

  #about p {
    font-size: 1rem;
  }

  .enquire-button {
    font-size: 1rem;
    padding: 0.3rem 0.7rem;
  }

  .social-links img {
    width: 30px;
    height: 30px;
  }

  .app-links img {
    width: 80px;
    height: 80px;
  }
}

/* Smooth Fade In Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
