:root {
  --green: #2e8b57;           /* Rich sea green - natural and vibrant */
  --green-dark: #1e5c3a;      /* Deep green for accents */
  --green-light: #d9f0e0;     /* Soft mint for backgrounds */
  --green-leafy: #3d8b57;     /* Leafy green for Why Us right side */
  --brown: #5d4037;          /* Warm brown for subtitle, button effects, and section titles */
  --text: #1a1a1a;
  --white: #ffffff;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  --transition: 0.4s ease;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* Prevent horizontal scroll on body */
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(to bottom, #ffffff 0%, #f0faf4 50%, #d9f0e0 100%);
  min-height: 100vh;
  overflow-x: hidden; /* Double safety */
}

img {
  max-width: 100%;
  display: block;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  position: relative;
  padding: 0 15px; /* Prevent edge overflow */
}

.logo-link {
  display: block;
  line-height: 0;
  align-self: center;
}

.logo {
  height: 150px;
  margin-top: 20px;
  width: auto;
}

/* Hamburger Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.hamburger span {
  width: 100%;
  height: 4px;
  background: var(--green-dark);
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(9px, -9px);
}

/* Navigation - Desktop */
.nav {
  display: flex;
  align-items: center;
}

.nav a {
  margin-left: 35px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 1.05rem;
  transition: color var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--green);
}

/* Mobile & Tablet Menu - Fixed Overflow Issues */
@media (max-width: 992px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;                    /* Changed from right to left for smoother entry */
    width: 100vw;               /* Full width instead of fixed 280px */
    height: 100vh;
    background: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(-100%); /* Hidden off-screen left */
    transition: transform 0.4s ease;
    z-index: 999;
    padding: 0;
    overflow-y: auto;
  }

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

  .nav a {
    margin: 25px 0;
    font-size: 1.8rem;
    font-weight: 600;
  }

  .header-flex {
    height: 90px;
    padding: 0 20px;
  }

  .logo {
    height: 100px;
  }
}

/* Hero Section */
.hero {
  height: 95vh;
  min-height: 600px;
  background: url('../assets/hero-bg.jpg') center/cover no-repeat fixed;
  position: relative;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
}

.hero-content {
  position: relative;
  max-width: 750px;
  width: 90%;
  margin: 0 auto;
}

.hero h1 {
  font-size: 4.5rem;
  color: var(--green-dark);
  margin-bottom: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-subtitle {
  font-size: 2.2rem;
  color: var(--brown);
  margin-bottom: 25px;
  font-weight: 600;
}

.hero p {
  margin: 30px 0 50px;
  font-size: 1.2rem;
  color: var(--text);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
  justify-content: center;
}

/* Buttons */
.btn {
  padding: 16px 38px;
  border-radius: 32px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  display: inline-block;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white;
  box-shadow: 0 6px 18px rgba(46, 139, 87, 0.4);
}

.btn-primary:hover {
  background: var(--brown);
  transform: translateY(-5px);
  box-shadow: 0 14px 35px rgba(93, 64, 55, 0.5);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:active::after {
  width: 350px;
  height: 350px;
}

.btn-outline {
  border: 2.5px solid var(--green);
  color: var(--green);
  background: transparent;
  box-shadow: 0 6px 18px rgba(46, 139, 87, 0.2);
}

.btn-outline:hover {
  background: var(--green);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 14px 35px rgba(46, 139, 87, 0.4);
}

/* Sections */
.section { padding: 100px 0; }
.gradient-section { background: linear-gradient(to bottom, #ffffff, var(--green-light)); }

/* Section Titles */
.section-title {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 70px;
  color: var(--brown);
  font-weight: 700;
}

/* Product Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.product-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.4s ease;
}

.product-card:hover,
.product-card:focus { transform: translateY(-10px); outline: none; }

.product-card h3 {
  padding: 24px;
  text-align: center;
  font-size: 1.4rem;
  color: var(--green-dark);
}

.image-box {
  position: relative;
  overflow: hidden;
  height: 260px;
}

.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(46,139,87,0.9));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-card:hover .overlay { opacity: 1; }
.overlay span { color: white; font-weight: 600; font-size: 1.2rem; }

/* Why Us Section */
.why-us-section {
  background: #f8fff9;
  overflow: hidden;
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 680px;
  opacity: 0;
  transition: opacity 1.6s ease;
}

.why-us-grid.show {
  opacity: 1;
}

.why-us-left {
  background: white;
  padding: 120px 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: translateX(-100%);
  transition: transform 1.4s cubic-bezier(0.76, 0, 0.24, 1.2);
}

.why-us-right {
  background: var(--green-leafy);
  position: relative;
  transform: translateX(100%);
  transition: transform 1.4s cubic-bezier(0.76, 0, 0.24, 1.2);
}

.why-us-grid.show .why-us-left,
.why-us-grid.show .why-us-right {
  transform: translateX(0);
}

.why-us-title {
  font-size: 3rem;
  color: var(--green-dark);
  margin-bottom: 35px;
  text-align: left;
  line-height: 1.2;
  font-weight: 700;
}

.why-us-desc {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: #444;
  max-width: 560px;
  line-height: 1.8;
}

.why-us-btn {
  margin-top: 50px;
  align-self: flex-start;
}

.why-us-image-box {
  height: 100%;
  overflow: hidden;
}

.why-us-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none;
}

/* Testimonials Section - Infinite Carousel */
.testimonials-section {
  padding: 120px 0;
  overflow: hidden;
}

.testimonials-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scroll 40s linear infinite;
}

.testimonial-card {
  min-width: 320px;
  max-width: 380px;
  background: white;
  padding: 40px 30px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  text-align: center;
  flex-shrink: 0;
}

.testimonial-card .quote {
  font-size: 1.15rem;
  font-style: italic;
  color: #444;
  margin-bottom: 25px;
  line-height: 1.7;
}

.testimonial-card .author {
  font-weight: 600;
  color: var(--green-dark);
  font-size: 1.1rem;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pause on hover */
.testimonials-carousel:hover .carousel-track {
  animation-play-state: paused;
}

/* Testimonials Responsive */
@media (max-width: 992px) {
  .testimonial-card {
    min-width: 280px;
    max-width: 340px;
    padding: 30px 25px;
  }
}

@media (max-width: 768px) {
  .testimonials-section {
    padding: 80px 0;
  }

  .carousel-track {
    gap: 20px;
  }

  .testimonial-card {
    min-width: 260px;
    max-width: 300px;
    padding: 25px 20px;
  }

  .testimonial-card .quote {
    font-size: 1.05rem;
  }

  .testimonial-card .author {
    font-size: 1rem;
  }
}

/* Modal - Mobile-Friendly */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 3000;
  padding: 20px 10px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.85);
}

.modal.open {
  display: flex;
}

.modal-content {
  position: relative;
  background: white;
  padding: 60px 30px 40px;
  border-radius: 24px;
  max-width: 720px;
  width: 100%;
  max-height: 92vh;
  margin: 90px auto 20px;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  animation: modalFadeIn 0.4s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.close:hover {
  background: var(--green-dark);
  color: white;
  transform: scale(1.1) rotate(90deg);
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 30px;
  margin-top: 10px;
}

.modal-gallery img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.5s ease;
}

.modal-gallery img:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

#modalTitle {
  font-size: 2.4rem;
  color: var(--green-dark);
  margin: 20px 0 15px;
  text-align: center;
  font-weight: 700;
}

#modalDesc {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: center;
  color: #444;
}

.modal-info {
  margin: 25px 0;
  padding: 20px;
  background: var(--green-light);
  border-radius: 16px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--green-dark);
}

.modal-info h4 {
  margin-bottom: 12px;
  color: var(--green-dark);
  font-size: 1.3rem;
}

.modal-footer {
  text-align: center;
  margin-top: 30px;
}

/* Mobile-Specific Fixes */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }

  .header-flex {
    height: 80px;
    padding: 0 15px;
  }

  .logo {
    height: 80px;
  }

  .hamburger {
    width: 34px;
    height: 34px;
  }

  .hamburger span {
    height: 3px;
  }

  .nav a {
    font-size: 1.6rem;
    margin: 20px 0;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.7rem;
  }

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

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .btn {
    width: 85%;
    max-width: 320px;
  }

  .modal {
    padding: 10px;
  }

  .modal-content {
    width: 96%;
    max-height: 94vh;
    margin: 80px auto 20px;
    padding: 50px 18px 30px;
    border-radius: 20px;
  }

  .modal-gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .modal-gallery img {
    height: 240px;
  }

  #modalTitle {
    font-size: 2rem;
  }

  .modal-info {
    padding: 16px;
    font-size: 1.05rem;
  }

  .close {
    width: 38px;
    height: 38px;
    font-size: 26px;
    top: 10px;
    right: 10px;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 4000;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lightbox[style*="flex"] {
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 38px;
  color: white;
  cursor: pointer;
  transition: 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

#lightboxImg {
  max-width: 95%;
  max-height: 95%;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: lightboxImgFade 0.4s ease;
}

@keyframes lightboxImgFade {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Footer */
.footer {
  background: var(--green-dark);
  color: white;
  padding: 100px 0 40px;
  margin-top: 120px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
  justify-items: start;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo-img {
  height: 200px;
  margin-bottom: 15px;
  margin-top: -60px;
  object-fit: contain;
}

.footer-logo p {
  font-size: 1.05rem;
  margin-top: -55px;
  line-height: 1.8;
  opacity: 0.95;
  max-width: 340px;
}

.footer-contact h4,
.footer-social h4 {
  font-size: 1.5rem;
  margin-bottom: 32px;
  font-weight: 600;
}

.footer-contact ul {
  list-style: none;
}

.footer-contact li {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-contact a {
  color: #e0ffe0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: white;
  text-decoration: underline;
}

.footer-social .social-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
}

.footer-social img {
  width: 44px;
  height: 44px;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
}

.footer-social a:hover img {
  transform: translateY(-5px) scale(1.15);
  opacity: 0.9;
}

.footer-qr {
  text-align: center;
}

.footer-qr img {
  width: 100px;
  height: 100px;
  background: white;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  margin-bottom: 8px;
}

.footer-qr p {
  font-size: 0.95rem;
  opacity: 0.9;
}

.footer-bottom {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 50px;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Responsive Footer */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }
  
  .footer-logo {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
  }
  
  .footer-logo p {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 80px 0 40px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
    justify-items: center;
  }
  
  .footer-logo,
  .footer-contact,
  .footer-social {
    align-items: center;
    text-align: center;
  }
  
  .footer-social .social-links {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .footer-qr {
    margin-top: 20px;
  }
}

/* About Page Styles */
.about-subtitle {
  font-size: 2.2rem;
  color: var(--green-dark);
  margin-bottom: 30px;
  text-align: center;
  font-weight: 600;
}

.about-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 70px;
  background: white;
  border-radius: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}

.about-card p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: #444;
  line-height: 1.8;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 50px;
}

.about-text {
  text-align: left;
}

.about-text p {
  margin-bottom: 25px;
  font-size: 1.2rem;
  line-height: 1.8;
}

.about-image {
  text-align: center;
}

.about-image img {
  border-radius: 24px;
  box-shadow: var(--shadow);
  max-width: 100%;
}

/* How to Order */
.order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  justify-items: center;
  text-align: center;
  margin: 50px 0;
}

.order-list {
  list-style: none;
  font-size: 1.2rem;
  max-width: 450px;
}

.order-list li {
  margin-bottom: 20px;
  padding-left: 30px;
  position: relative;
  text-align: left;
}

.order-list li:before {
  content: "✓";
  color: var(--green);
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 1.4rem;
}

.qr-box {
  text-align: center;
}

.qr-box img {
  width: 240px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 15px;
  background: white;
}

.qr-box figcaption {
  margin-top: 15px;
  font-size: 1.2rem;
  color: var(--green-dark);
  font-weight: 600;
}

/* Mobile Responsiveness for About Page */
@media (max-width: 992px) {
  .about-grid,
  .order-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-text {
    text-align: center;
  }

  .order-list li {
    text-align: center;
    padding-left: 0;
  }

  .order-list li:before {
    position: static;
    margin-right: 12px;
  }
}

@media (max-width: 768px) {
  .about-card {
    padding: 50px 20px;
  }

  .about-subtitle {
    font-size: 2rem;
  }

  .qr-box img {
    width: 200px;
  }

  .order-grid {
    gap: 40px;
  }

  .order-list {
    max-width: 90%;
  }
}

/* Animations */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }

/* Why Us Responsive */
@media (max-width: 992px) {
  .why-us-grid { grid-template-columns: 1fr; }
  .why-us-left,
  .why-us-right {
    transform: translateY(80px) !important;
    transition: transform 1.2s ease;
  }
  .why-us-grid.show .why-us-left,
  .why-us-grid.show .why-us-right {
    transform: translateY(0) !important;
  }
  .why-us-left { padding: 80px 40px; text-align: center; }
  .why-us-title { text-align: center; font-size: 2.6rem; }
  .why-us-desc { margin: 0 auto 25px; max-width: 90%; }
  .why-us-btn { margin: 40px auto 0; align-self: center; }
}