:root {
  --primary-color: #2e7d32;
  --secondary-color: #8bc34a;
  --accent-color: #ffc107;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --header-height: 70px;
  --section-padding: clamp(40px, 8vw, 80px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  scroll-behavior: smooth; /* Added smooth scrolling */
  overflow-x: hidden; /* Add this line */
  width: 100%; /* Add this line */
  position: relative; /* Add this line */
}

.container {
  width: min(90%, 1200px);
  margin: 0 auto;
  padding: 0 clamp(15px, 3vw, 20px);
  overflow: hidden; /* Add this line */
}

/* Header Styles */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(34, 126, 0, 0.6);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  padding: 0 15px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: clamp(40px, 6vw, 50px);
  margin-right: 10px;
}

.logo h1 {
  color: var(--primary-color);
  font-size: clamp(18px, 4vw, 24px);
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  line-height: 0;
  padding: 0;
  margin: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links li {
  margin-left: 30px;
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color);
  bottom: -5px;
  left: 0;
} /* Added missing closing brace */

.mobile-menu {
  display: none;
  cursor: pointer;
  z-index: 1001;
  width: 30px;
  height: 24px;
  position: relative;
  margin-right: 10px;
  background: transparent;
  border: none;
  padding: 0;
}

.bar {
  display: block;
  width: 100%;
  height: 3px;
  margin: 5px 0;
  background-color: var(--primary-color);
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.bar:nth-child(1) {
  top: 0;
}

.bar:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.bar:nth-child(3) {
  bottom: 0;
}

.mobile-menu.active .bar:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.mobile-menu.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu.active .bar:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Responsive Navigation */
@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--white);
    flex-direction: column;
    align-items: center;
    gap: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 20px 0;
    overflow-y: auto;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links li {
    width: 100%;
    margin: 0;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 15px;
    width: 100%;
  }

  .mobile-menu {
    display: block;
  }

  .mobile-menu.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .mobile-menu.active .bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0 10px;
  }

  .nav-links a {
    font-size: 16px;
  }
}

/* Hero Section */
.hero {
  background-image: url("coco-photos/bg.jpg");
  min-height: calc(100vh - var(--header-height));
  background-size: cover;
  background-attachment: fixed; /* Parallax effect */
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
  margin-top: var(--header-height);
  animation: fadeIn 2s ease-in-out; /* Added fade-in animation */
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: clamp(15px, 3vw, 20px);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--text-color);
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  text-decoration: none;
}

.btn:hover {
  background-color: #e0a800;
  transform: scale(1.05); /* Added hover effect */
}

.btn:hover {
  animation: none;
}

/* About Section */
.about {
  padding: var(--section-padding) 0;
  background-color: var(--light-bg);
  animation: slideIn 1.5s ease-in-out; /* Added slide-in animation */
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 20px 0;
}

.about-img {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  aspect-ratio: 4/3;
  margin: 0 auto;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 1;
  min-width: 300px;
  padding: 20px;
}

@media (max-width: 992px) {
  .about-content {
    gap: 30px;
  }

  .about-img {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16/9;
  }
}

@media (max-width: 768px) {
  .about-content {
    gap: 20px;
  }

  .about-img {
    max-width: 100%;
    aspect-ratio: 3/2;
    margin: 0;
  }

  .about-text {
    padding: 10px 0;
  }
}

/* Products Section */
.products {
  padding: var(--section-padding) 0;
  animation: fadeInUp 1.5s ease-in-out; /* Added fade-in-up animation */
}

@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 30px;
  margin-top: 40px;
}

.product-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s; /* Reduced from 0.3s */
}

.product-card:hover {
  transform: translateY(-10px);
}

.product-card:hover {
  animation: none;
}

.product-img {
  height: 200px;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s; /* Reduced from 0.5s */
}

.product-card:hover .product-img img {
  transform: scale(1.1);
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.product-info h3,
.product-info p {
  text-align: center;
  width: 100%;
}

.product-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.product-info p {
  margin-bottom: 15px;
}

.product-info .btn {
  width: 200px;
  margin: 20px auto 0;
}

@media (max-width: 768px) {
  .product-info .btn {
    width: 100%;
    max-width: 200px;
  }
}

.benefits-list {
  list-style: none;
  margin-bottom: 20px;
  width: 100%;
  text-align: left;
}

.benefits-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 8px;
  text-align: left;
}

.benefits-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

/* Benefits Section */
.benefits {
  padding: var(--section-padding) 0;
  background-color: var(--light-bg);
  animation: fadeInUp 1.5s ease-in-out; /* Added fade-in-up animation */
}

.benefits-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 40px;
}

.benefit-box {
  flex: 0 0 calc(33.333% - 20px);
  min-width: 300px;
  margin-bottom: 30px;
  background-color: var(--white);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.benefit-box h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* Testimonials Section */
.testimonials {
  padding: var(--section-padding) 0;
  animation: fadeIn 1.5s ease-in-out; /* Added fade-in animation */
}

.testimonial-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.testimonial-text {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: 600;
  color: var (--primary-color);
}

/* Contact Section */
.contact {
  padding: var(--section-padding) 0;
  background-color: var(--light-bg);
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 40px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
  margin-right: 40px;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.info-icon {
  margin-right: 15px;
  font-size: 1.5rem;
  color: var (--secondary-color);
}

.contact-form {
  flex: 1;
  min-width: 300px;
  background-color: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  max-width: 600px; /* Added max-width */
  width: 100%;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

textarea.form-control {
  resize: vertical;
  min-height: 200px; /* Increased from 120px */
  max-height: 400px;
  line-height: 1.5;
  font-size: 14px;
  padding: 15px;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}

.feedback-message {
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 1rem;
  color: green;
}

.feedback-message.error {
  color: red;
}

/* Character count display */
.char-count {
  font-size: 12px;
  color: #666;
  text-align: right;
  margin-top: 5px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  position: relative;
  padding-right: 20px;
}

.char-count.limit-reached {
  color: #ff4444;
}

.word-limit-alert {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 8px;
  background-color: #ff44441a;
  color: #ff4444;
  text-align: center;
  border-radius: 0 0 4px 4px;
  font-size: 12px;
  animation: fadeIn 0.3s ease-in-out;
  z-index: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.word-limit-alert.show {
  opacity: 1;
}

.validation-message {
  display: none;
}

.btn-wrapper {
  position: relative;
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

/* Footer */
footer {
  background-color: #010f1c;
  color: var(--white);
  padding: 40px 0 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
  gap: 20px;
}

.footer-col {
  flex: 1;
  min-width: 250px;
  margin-bottom: 30px;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
  bottom: 0;
  left: 0;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent-color);
}

/* Social Icons */
.social-links {
  display: flex;
  list-style: none;
  padding: 0;
}

.social-links li {
  margin-right: 15px;
}

.social-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-align: center;
  color: var(--white);
  font-size: 1.2rem;
  transition: background-color 0.3s;
}

.social-links a:hover {
  background-color: var(--accent-color);
}

/* Logo */
.footer-logo img {
  width: 100%;
  height: auto;
  max-width: 200px;
}

/* Copyright */
.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 20px;
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-links {
    justify-content: center;
  }
}

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px); /* Initial transform for scroll effect */
  transition: opacity 0.4s ease-out, transform 0.4s ease-out; /* Reduced from 0.6s */
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: none;
}

/* Modal & Gallery Styles */
.inquiry-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.inquiry-content {
  background: var(--white);
  width: min(95%, 800px);
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(20px, 4vw, 30px);
  border-radius: 10px;
  position: relative;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.thumbnail-strip {
  display: flex;
  gap: 10px;
  justify-content: center;
  max-width: 500px;
  overflow-x: auto;
  padding: 10px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.modal-thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.main-image-container {
  width: 100%;
  aspect-ratio: 4/3;
  height: auto;
  max-height: min(70vh, 600px);
  border-radius: 8px;
  overflow: hidden;
  background: var(--light-bg);
  cursor: fit-zoom-in;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: none; /* Remove transition */
}

.main-image.zoomed {
  transform: scale(2);
  cursor: zoom-out;
}

/* Remove hover effects and animations */
.main-image-container:hover .main-image:not(.zoomed) {
  transform: none;
  filter: none;
}

@keyframes imageLoad {
  from {
    opacity: 1;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .inquiry-content {
    padding: 20px;
  }

  .modal-thumbnail {
    width: 50px;
    height: 50px;
  }

  .main-image-container {
    height: 300px;
  }
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  max-width: 100%;
  padding: clamp(8px, 2vw, 15px) clamp(15px, 3vw, 30px);
  border: none;
  border-radius: 5px;
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  background-color: var(--accent-color);
  color: var(--text-color);
}

/* Button hover effect */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive button adjustments */
@media (max-width: 768px) {
  .btn {
    min-width: 100px;
    width: 100%;
    margin: 10px 0;
    padding: 12px 20px;
  }

  .product-card .btn,
  .modal-content .btn {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .btn {
    font-size: 0.875rem;
    padding: 10px 15px;
  }
}

/* Working Method Section */
.working-method {
  padding: 80px 0;
  background-color: var(--white);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.method-card {
  background-color: var(--light-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.method-card:hover {
  transform: translateY(-10px);
}

.method-number {
  font-size: 4rem;
  font-weight: 800;
  color: rgba(46, 125, 50, 0.1);
  position: absolute;
  top: 10px;
  right: 20px;
  line-height: 1;
}

.method-card h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.method-card p {
  color: var(--text-color);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .method-grid {
    grid-template-columns: 1fr;
  }

  .method-card {
    padding: 25px;
  }

  .method-number {
    font-size: 3rem;
  }
}

/* Method Slider */
.method-slider {
  padding: 40px 0;
  background: var(--white);
}

.slider-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.slide {
  display: none;
  position: relative;
}

.slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--white);
  text-align: center;
  transform: none;
}

/* Remove hover effect */
.slide:hover .slide-caption {
  transform: none;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 16px;
  color: var(--white);
  font-weight: bold;
  font-size: 1.5rem;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  transition: background 0.3s;
  text-decoration: none;
}

.prev:hover,
.next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.prev {
  left: 15px;
}
.next {
  right: 15px;
}

.dot-container {
  text-align: center;
  padding: 15px 0;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #ddd;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active,
.dot:hover {
  background-color: var(--accent-color);
}

.fade {
  animation: fade 0.5s ease-in;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .slide img {
    height: 300px;
  }

  .prev,
  .next {
    padding: 12px;
    font-size: 1.2rem;
  }
}

/* Improved Slider Navigation */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(40px, 5vw, 48px);
  height: clamp(40px, 5vw, 48px);
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 2;
  padding: 0;
}

.slider-nav:hover {
  background: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
}

.slider-nav svg {
  width: clamp(20px, 3vw, 24px);
  height: clamp(20px, 3vw, 24px);
  fill: var(--primary-color);
  transition: fill 0.3s ease;
}

.slider-nav:hover svg {
  fill: white;
}

.slider-nav.prev {
  left: clamp(10px, 2vw, 20px);
}

.slider-nav.next {
  right: clamp(10px, 2vw, 20px);
}

.dot-container {
  padding: clamp(10px, 2vw, 15px) 0;
}

.dot {
  width: clamp(8px, 1.5vw, 12px);
  height: clamp(8px, 1.5vw, 12px);
  margin: 0 clamp(3px, 1vw, 5px);
}

@media (max-width: 480px) {
  .slide-caption {
    padding: 15px;
  }

  .slide-caption h3 {
    font-size: 1rem;
  }

  .slide-caption p {
    font-size: 0.875rem;
  }
}

@media (hover: none) {
  .slider-nav {
    opacity: 0.8;
  }

  .slider-nav:active {
    opacity: 1;
    transform: translateY(-50%) scale(0.95);
  }
}

/* Product Inquiry Modal */
.inquiry-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.inquiry-content {
  background: var(--white);
  width: min(95%, 800px);
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(20px, 4vw, 30px);
  border-radius: 10px;
  position: relative;
}

.thumbnail-strip {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 15px;
}

.modal-thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s;
  border: 2px solid transparent;
}

.modal-thumbnail:hover {
  transform: scale(1.1);
}

.modal-thumbnail.active {
  border-color: var(--primary-color);
}

.main-image-container {
  width: 100%;
  aspect-ratio: 4/3;
  height: auto;
  max-height: min(70vh, 600px);
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: zoom-in;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: none; /* Remove transition */
}

.zoomed {
  transform: scale(2);
  cursor: zoom-out;
}

/* Mobile styles */
@media (max-width: 768px) {
  .modal-thumbnail {
    width: 50px;
    height: 50px;
  }

  .main-image-container {
    height: 300px;
  }
}

/* Enhanced Modal Image Styles */
.main-image-container {
  position: relative;
  width: 100%;
  height: 400px;
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, #e6e6e6, #ffffff);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1),
    inset 0 -3px 8px rgba(0, 0, 0, 0.03);
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.4s ease;
  padding: 10px;
  filter: brightness(1.02) contrast(1.02);
}

.main-image.zoomed {
  transform: scale(2);
  filter: brightness(1.05) contrast(1.05) saturate(1.05);
}

/* Image Hover Effects */
.main-image-container:hover .main-image:not(.zoomed) {
  transform: scale(1.05);
  filter: brightness(1.1) contrast(1.05) saturate(1.1);
}

/* Loading Animation */
@keyframes imageLoad {
  from {
    opacity: 1;
  }
  to {
    opacity: 1;
  }
}

.main-image {
  animation: imageLoad 0.3s ease-out;
}

/* Enhanced Thumbnail Strip */
.thumbnail-strip {
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.modal-thumbnail {
  border: 2px solid transparent;
  transition: all 0.3s ease;
  filter: grayscale(20%);
}

.modal-thumbnail:hover {
  transform: translateY(-2px);
  filter: grayscale(0%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.modal-thumbnail.active {
  border-color: var(--primary-color);
  filter: grayscale(0%);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .main-image-container {
    height: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08),
      inset 0 -2px 6px rgba(0, 0, 0, 0.02);
  }

  .thumbnail-strip {
    padding: 8px;
    margin-bottom: 15px;
  }
}

/* Enhanced Modal Image Container Styles */
.main-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  max-height: min(70vh, 600px);
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, #e6e6e6, #ffffff);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15),
    inset 0 -5px 15px rgba(0, 0, 0, 0.05);
}

.main-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: all 0.4s ease;
  background-color: rgba(255, 255, 255, 0.95);
}

/* Maintain aspect ratio on different screen sizes */
@media (max-width: 1200px) {
  .main-image-container {
    aspect-ratio: 3/2;
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .main-image-container {
    aspect-ratio: 1/1;
    max-height: 400px;
  }

  .main-image {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .main-image-container {
    max-height: 300px;
  }

  .main-image {
    padding: 10px;
  }
}

.product-features {
  margin: 20px 0;
  text-align: left;
  background: var(--light-bg);
  padding: 20px;
  border-radius: 8px;
}

.product-features h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.features-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.features-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: var(--text-color);
}

.features-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

/* Close Button Styles */
.close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 2010;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.close-modal:hover {
  transform: scale(1.1);
  background: #e0a800;
}

@media (max-width: 768px) {
  .close-modal {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 20px;
    transform: scale(0.9);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
}

/* Touch device optimizations */
@media (hover: none) {
  .btn:active {
    transform: scale(0.98);
  }

  .product-card:hover {
    transform: none;
  }

  .main-image-container {
    cursor: default;
  }
}

/* Mobile Optimization Fixes */
@media (max-width: 768px) {
  /* Container width fix */
  .container {
    width: 100%;
    padding: 0 15px;
    margin: 0;
    overflow-x: hidden;
  }

  /* Product cards fix */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0;
  }

  .product-card {
    width: 100%;
    margin: 0;
  }

  /* Benefits section fix */
  .benefits-container {
    padding: 0;
  }

  .benefit-box {
    flex: 0 0 100%;
    margin: 0 0 20px 0;
    padding: 20px;
  }

  /* Contact section fix */
  .contact-container {
    flex-direction: column;
    margin: 0;
  }

  .contact-info,
  .contact-form {
    width: 100%;
    margin: 0 0 30px 0;
  }

  /* Modal fix */
  .inquiry-content {
    width: 100%;
    margin: 0;
    border-radius: 0;
    height: 100vh;
    max-height: 100vh;
  }

  /* Footer fix */
  .footer-container {
    padding: 0;
  }

  .footer-col {
    width: 100%;
    padding: 0;
    margin-bottom: 30px;
  }
}

/* Additional small screen fixes */
@media (max-width: 480px) {
  body {
    overflow-x: hidden;
  }

  .section-title h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.9rem;
  }
}

/* Touch device optimizations */
@media (hover: none) {
  .btn:active {
    transform: scale(0.98);
  }

  .product-card:hover {
    transform: none;
  }
}

/* Map Section */
.map-section {
  margin-top: 40px;
}

.map-container {
  width: 100%;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.directions-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.directions-link:hover {
  color: var(--accent-color);
}

@media (max-width: 768px) {
  .map-container {
    height: 300px;
  }
}

.product-details {
  text-align: center;
  margin-top: 20px;
}

.contact-btn {
  display: block;
  width: 200px;
  margin: 30px auto;
  text-align: center;
  padding: 12px 30px;
  background: var(--accent-color);
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .contact-btn {
    width: 100%;
    max-width: 300px;
  }
}

/* Contact Section Mobile Fixes */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    gap: 30px;
    padding: 0;
  }

  .contact-info {
    order: 2;
    margin-right: 0;
    width: 100%;
    margin-top: 30px;
  }

  .contact-form {
    order: 1;
    width: 100%;
    margin: 0;
    padding: 20px;
  }

  .map-section {
    order: 3;
    margin-top: 30px;
  }

  .contact .container {
    display: flex;
    flex-direction: column;
  }

  .contact-container,
  .map-section {
    width: 100%;
  }

  .info-item {
    background: var(--white);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .info-icon {
    font-size: 1.3rem;
    background: var(--light-bg);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
  }

  .contact-info h3 {
    text-align: center;
    margin-bottom: 25px;
  }
}

@media (max-width: 480px) {
  .contact-form {
    padding: 15px;
  }

  .contact-info h3 {
    font-size: 1.5rem;
  }

  .info-item {
    flex-direction: row;
    align-items: flex-start;
  }

  .info-icon {
    margin-top: 3px;
  }

  .form-group label {
    font-size: 14px;
  }
}

/* Close Button Styles */
.close-modal {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2010;
  width: 40px;
  height: 40px;
  background: var(--white);
  border: none;
  border-radius: 50%;
  color: var(--text-color);
  font-size: 24px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
  touch-action: manipulation; /* Optimize for touch */
}

@media (max-width: 768px) {
  .close-modal {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

/* Form styling updates */
.required-asterisk {
  color: #ff4444;
  margin-left: 4px;
}

.form-control.error {
  border: 2px solid #ff4444;
  box-shadow: 0 0 5px rgba(255, 68, 68, 0.3);
  background-color: rgba(255, 68, 68, 0.05);
}

/* Mobile icon fixes */
@media (max-width: 768px) {
  .info-icon {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    border-radius: 50%;
    margin-right: 15px;
    font-size: 1.2rem;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  background-color: var(--white);
  width: 90%;
  max-width: 500px;
  padding: 30px;
  border-radius: 10px;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #666;
  transition: color 0.3s ease;
}

.close:hover {
  color: #000;
}

.modal-body {
  margin-top: 20px;
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 20px;
    padding: 20px;
  }
}

/* Modal Header */
.modal-header {
  margin-bottom: 20px;
  text-align: center;
}

.modal-header h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin: 0;
  padding: 10px 0;
}

.product-gallery h3,
.product-details h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin: 20px 0 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .modal-header h2 {
    font-size: 1.5rem;
  }

  .product-gallery h3,
  .product-details h3 {
    font-size: 1.2rem;
    margin: 15px 0 10px;
  }
}

/* Media query fixes */
@media (max-width: 768px) {
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
  }

  .about-content,
  .products-grid,
  .benefits-container,
  .contact-container {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .about-img {
    width: 100%;
    margin: 0;
  }

  .inquiry-modal .inquiry-content {
    width: 95%;
    margin: 0 auto;
  }
}
