* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}



body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  background-color: #fefcf5;
  position: relative;
}

h1,
h2,
h3,
.font-display {
  font-family: 'Playfair Display', serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #e9e5d5;
}

::-webkit-scrollbar-thumb {
  background: #b8860b;
  border-radius: 10px;
}

/* Glassmorphism card effect */
.glass-card {
  background: rgba(255, 255, 245, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(218, 165, 32, 0.25);
  border-radius: 32px;
  transition: all 0.4s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 250, 0.85);
  border-color: #d4af37;
  transform: translateY(-6px);
  box-shadow: 0 25px 35px -12px rgba(0, 0, 0, 0.15);
}

.btn-gold {
  background: linear-gradient(105deg, #c9a03d 0%, #e6c468 100%);
  transition: all 0.3s ease;
  box-shadow: 0 8px 18px rgba(184, 134, 11, 0.2);
}

.btn-gold:hover {
  transform: scale(1.02);
  background: linear-gradient(105deg, #b8860b 0%, #d4af37 100%);
  box-shadow: 0 12px 24px rgba(184, 134, 11, 0.35);
}

/* floating particles animation */
.floating-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: radial-gradient(circle, #e6c468, #b8860b);
  border-radius: 50%;
  opacity: 0.5;
  animation: floatParticle 12s infinite ease-in-out;
  filter: blur(1px);
}

@keyframes floatParticle {
  0% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.3;
  }

  50% {
    transform: translateY(-70px) rotate(180deg);
    opacity: 0.8;
  }

  100% {
    transform: translateY(0px) rotate(360deg);
    opacity: 0.3;
  }
}

/* cow silhouette parallax */
.cow-silhouette {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 150" opacity="0.1"><path fill="%23336633" d="M80,80 L70,110 L90,110 L85,80 Z M120,80 L110,110 L130,110 L125,80 Z M100,60 Q110,50 120,60 L125,70 L75,70 L80,60 Q90,50 100,60 Z M50,90 L30,90 L35,70 L55,70 Z M150,90 L170,90 L165,70 L145,70 Z M60,110 L140,110 L145,130 L55,130 Z"/></svg>') repeat;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  opacity: 0.08;
  pointer-events: none;
  background-size: 180px;
  overflow: hidden;
}

.hero-parallax {
  background: linear-gradient(135deg, #1e3b1a 0%, #2d5e2a 100%);
  position: relative;
  overflow: hidden;
  isolation: isolate; /*VERY IMPORTANT */

}

.hero-parallax::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(/image/banner.jpeg) center/cover no-repeat;
  opacity: 0.2;
  animation: slowZoom 20s infinite alternate;
  pointer-events: none;

    /* IMPORTANT FIX */
  transform-origin: center;
  will-change: transform;
}

@keyframes slowZoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.05);
  }
}

.floating-icon {
  transition: transform 0.3s ease;
}

.floating-icon:hover {
  transform: translateY(-8px);
}

/* card 3d tilt effect simple */
.hover-lift {
  transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.hover-lift:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 40px -20px rgba(0, 0, 0, 0.25);
}

/* Sticky navbar */
.sticky-nav {
  transition: all 0.3s ease;
}

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  background-color: #25D366;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #128C7E;
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 48px;
    height: 48px;
    bottom: 20px;
    right: 20px;
  }
}



#backToTop {
  transition: all 0.3s ease;
  
  right: 16px;

}

#backToTop:hover {
  transform: translateY(-5px);
}


/* Mobile Menu Background */
#mobileMenu {
  background: linear-gradient(135deg, #065f46, #16a34a);
  /* dark → light green */
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  padding: 15px 0;
}

/* Menu Links */
#mobileMenu a {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  padding: 12px 20px;
  margin: 5px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* 🔥 Hover Background Effect */
#mobileMenu a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #facc15;
  /* light yellow highlight */
  transform: translateX(5px);
}

/* Active click feel */
#mobileMenu a:active {
  background: rgba(255, 255, 255, 0.25);
}

/* Smooth dropdown animation */
#mobileMenu.show {
  display: flex !important;
  flex-direction: column;
  animation: smoothDrop 0.4s ease;
}

@keyframes smoothDrop {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.hover\:shadow-xl:hover {
  transform: translateY(-5px);
}


/* Gallery */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;

}

.gallery-img {
  width: 100%;
  /* height: 100%; */
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.1);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
  transition: 0.4s;
  z-index: 9999;
}

.lightbox.active {
  visibility: visible;
  opacity: 1;
}

#lightbox-img {
  max-width: 90%;
  max-height: 75%;
  border-radius: 12px;
  transform: scale(0.8);
  transition: 0.4s;
}

.lightbox.active #lightbox-img {
  transform: scale(1);
}

/* Caption */
#lightbox-caption {
  color: #fff;
  margin-top: 15px;
  font-size: 18px;
}

/* Close */
.close-btn {
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* Navigation */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 8px;
}

.prev {
  left: 30px;
}

.next {
  right: 30px;
}

.nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 🔥 GLOBAL FIX (MOST IMPORTANT) */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

/* BODY */
body {
  font-family: 'Inter', sans-serif;
  background-color: #fefcf5;
  position: relative;
}

/* FONTS */
h1, h2, h3, .font-display {
  font-family: 'Playfair Display', serif;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #e9e5d5;
}
::-webkit-scrollbar-thumb {
  background: #b8860b;
  border-radius: 10px;
}

/* GLASS CARD */
.glass-card {
  background: rgba(255, 255, 245, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(218, 165, 32, 0.25);
  border-radius: 32px;
  transition: all 0.4s ease;
}
.glass-card:hover {
  background: rgba(255, 255, 250, 0.85);
  border-color: #d4af37;
  transform: translateY(-6px);
  box-shadow: 0 25px 35px -12px rgba(0, 0, 0, 0.15);
}

/* BUTTON */
.btn-gold {
  background: linear-gradient(105deg, #c9a03d 0%, #e6c468 100%);
  transition: all 0.3s ease;
  box-shadow: 0 8px 18px rgba(184, 134, 11, 0.2);
}
.btn-gold:hover {
  transform: scale(1.02);
  background: linear-gradient(105deg, #b8860b 0%, #d4af37 100%);
  box-shadow: 0 12px 24px rgba(184, 134, 11, 0.35);
}

/* 🔥 FLOATING PARTICLES FIXED */
.floating-particles {
  position: fixed;   /* FIXED */
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: radial-gradient(circle, #e6c468, #b8860b);
  border-radius: 50%;
  opacity: 0.5;
  animation: floatParticle 12s infinite ease-in-out;
  filter: blur(1px);
}

@keyframes floatParticle {
  0% { transform: translateY(0px); opacity: 0.3; }
  50% { transform: translateY(-70px); opacity: 0.8; }
  100% { transform: translateY(0px); opacity: 0.3; }
}

/* 🔥 HERO FIX */
.hero-parallax {
  background: linear-gradient(135deg, #1e3b1a 0%, #2d5e2a 100%);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* 🔥 HERO BACKGROUND FIXED */
.hero-parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: url("/image/hero-bg.jpg") center/cover no-repeat; /* rename image */
  opacity: 0.2;
  pointer-events: none;
}

/* COW SILHOUETTE SAFE */
.cow-silhouette {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  opacity: 0.08;
  pointer-events: none;
  background-size: 180px;
  overflow: hidden;
}

/* HOVER EFFECTS */
.floating-icon:hover {
  transform: translateY(-8px);
}

.hover-lift {
  transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
.hover-lift:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 40px -20px rgba(0, 0, 0, 0.25);
}

/* NAVBAR */
.sticky-nav {
  transition: all 0.3s ease;
}

/* BACK TO TOP */
#backToTop {
  right: 16px;
  transition: all 0.3s ease;
}
#backToTop:hover {
  transform: translateY(-5px);
}

/* 🔥 MOBILE MENU (GREEN STYLE) */
#mobileMenu {
  background: linear-gradient(135deg, #065f46, #16a34a);
  backdrop-filter: blur(10px);
  padding: 15px 0;
}

#mobileMenu a {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  padding: 12px 20px;
  margin: 5px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

#mobileMenu a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #facc15;
  transform: translateX(5px);
}

/* GALLERY */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.gallery-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.1);
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
  transition: 0.4s;
  z-index: 9999;
}
.lightbox.active {
  visibility: visible;
  opacity: 1;
}

#lightbox-img {
  max-width: 90%;
  max-height: 75%;
  border-radius: 12px;
}

/* FINAL SAFETY */
section, div, img {
  max-width: 100%;
}


.hero-parallax {
  background: 
    linear-gradient(rgba(30, 59, 26, 0.8), rgba(45, 94, 42, 0.8)),
    url(../image/banner.jpeg) ;
    
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  position: relative;
  overflow: hidden;
}
.hero-parallax-2 {
  background: 
    linear-gradient(rgba(30, 59, 26, 0.8), rgba(45, 94, 42, 0.8));
    
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  position: relative;
  overflow: hidden;
}






/* ===== LEGACY IMAGE FIX (NO CROP EVER) ===== */
.legacy-image-box {
  width: 100%;
  background: #ffffff;
  padding: 12px;
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

/* IMAGE BEHAVIOR */
.legacy-img {
  width: 100%;
  height: auto;

  object-fit: contain;   /* 🔥 KEY: NO CROPPING */
  max-height: 500px;

  border-radius: 16px;
}

/* MOBILE FIX */
@media (max-width: 768px) {
  .legacy-img {
    max-height: 300px;
  }
}
