/* CSS Reset and Variables */
:root {
  --primary-color: #0c3a21;
  --primary-light: #165634;
  --primary-dark: #062212;
  --accent-color: #e8c547;
  --accent-light: #f3dc84;
  --text-dark: #1f2937;
  --text-light: #ffffff;
  --text-muted: #6b7280;
  --bg-light: #fbfbf8;
  --bg-white: #ffffff;
  --bg-dark: #0a0d0a;
  --card-bg: rgba(255, 255, 255, 0.85);
  --border-radius: 16px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 30px;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(232, 197, 71, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 197, 71, 0.5);
}

.btn-secondary {
  background-color: var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 4px 14px rgba(12, 58, 33, 0.25);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(12, 58, 33, 0.4);
}

.btn-full {
  width: 100%;
  margin-top: 15px;
}

/* Preloader Screen */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--primary-color);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.preloader-content {
  text-align: center;
  color: var(--text-light);
  max-width: 400px;
  padding: 20px;
}

.preloader-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.leaf-logo-large {
  width: 80px;
  height: 80px;
}

.logo-path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: drawStroke 2.5s infinite alternate ease-in-out;
}

@keyframes drawStroke {
  0% {
    stroke-dashoffset: 300;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.logo-text-large {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--accent-color);
}

.preloader-title {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 10px;
  font-weight: 400;
  letter-spacing: 1px;
}

.preloader-subtitle {
  color: var(--accent-light);
  opacity: 0.8;
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.progress-container {
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background-color: var(--accent-color);
  border-radius: 10px;
  transition: width 0.1s linear;
}

.progress-percent {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-color);
}

/* Header & Navigation */
nav {
  opacity: 0;
  transform: translateY(-30px);
  pointer-events: none;
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              padding 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}



nav:not(.nav-scrolled) .nav-link {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

nav:not(.nav-scrolled) button {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

nav.nav-scrolled {
  background-color: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  color: var(--text-dark) !important;
}

.dark nav.nav-scrolled {
  background-color: rgba(18, 18, 18, 0.85) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  color: var(--text-light) !important;
}

/* Adjust nav links when scrolled */
nav.nav-scrolled .nav-link {
  color: rgba(15, 23, 42, 0.7); /* dark gray text */
}

.dark nav.nav-scrolled .nav-link {
  color: rgba(255, 255, 255, 0.7);
}

nav.nav-scrolled .nav-link:hover,
nav.nav-scrolled .nav-link.active {
  color: var(--primary-color) !important;
}

.dark nav.nav-scrolled .nav-link:hover,
.dark nav.nav-scrolled .nav-link.active {
  color: var(--accent-color) !important;
}

/* Align active bar color */
nav.nav-scrolled .nav-link::after {
  background-color: var(--primary-color);
}

.dark nav.nav-scrolled .nav-link::after {
  background-color: var(--accent-color);
}

/* Handle search, cart, hamburger buttons in scrolled state */
nav.nav-scrolled button {
  color: var(--text-dark) !important;
}

.dark nav.nav-scrolled button {
  color: var(--text-light) !important;
}

nav.nav-scrolled button:hover {
  color: var(--primary-color) !important;
}

.dark nav.nav-scrolled button:hover {
  color: var(--accent-color) !important;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  transition: var(--transition-smooth);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-color);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Global scroll margin for target sections */
section[id], main[id] {
  scroll-margin-top: 80px; /* height of navigation bar */
}

/* Scroll Container & Canvas Setup */
.scroll-container {
  position: relative;
  width: 100%;
  background-color: var(--bg-dark);
}

.scroll-height {
  height: 450vh; /* Determines scroll length/duration */
  position: relative;
}

.sticky-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#scroll-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vignette-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0,0,0,0) 40%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Scroll Overlay Content Cards */
.overlay-text-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none; /* Let scrolls go through to the main body */
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.text-card {
  position: absolute;
  left: 24px;
  max-width: 480px;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  pointer-events: auto; /* Enable buttons inside card */
  opacity: 0;
  transform: translateY(30px);
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
              transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
              visibility 0.6s;
}

/* Active card state */
.text-card.active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* Responsive adjustment: center overlays on mobile */
@media (max-width: 768px) {
  .overlay-text-container {
    justify-content: center;
    align-items: center;
    padding: 0 16px;
  }
  .text-card {
    left: auto;
    max-width: 90%;
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

.tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--primary-light);
  background-color: rgba(22, 86, 52, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.card-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.card-title .highlight {
  color: var(--primary-light);
  background: linear-gradient(120deg, var(--primary-color), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card-description {
  color: var(--text-dark);
  font-size: 1.05rem;
  margin-bottom: 24px;
  opacity: 0.9;
}

.card-meta {
  display: flex;
  gap: 20px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
}

.meta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 800;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}

.spec-box {
  background-color: rgba(12, 58, 33, 0.05);
  border: 1px solid rgba(12, 58, 33, 0.1);
  padding: 12px;
  border-radius: 12px;
  text-align: center;
}

.spec-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
}

.spec-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

/* Mouse Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.8;
  transition: var(--transition-smooth);
}

.mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--text-light);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.wheel {
  width: 4px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 2px;
  animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(12px);
    opacity: 0;
  }
}

.scroll-label {
  font-family: var(--font-heading);
  color: var(--text-light);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.scroll-indicator.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Benefits Section */
.benefits-section {
  padding: 100px 24px;
  background-color: var(--bg-light);
  position: relative;
  z-index: 3;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px auto;
}

.tag-accent {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary-light);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

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

.benefit-card {
  background-color: var(--bg-white);
  padding: 40px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(12, 58, 33, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(12, 58, 33, 0.08);
  border-color: rgba(12, 58, 33, 0.15);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(12, 58, 33, 0.05);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.benefit-card:hover .benefit-icon {
  background-color: var(--primary-color);
  color: var(--accent-color);
  transform: rotate(360deg);
}

.benefit-icon svg {
  width: 28px;
  height: 28px;
}

.benefit-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.benefit-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Shop / Product Section */
.shop-section {
  padding: 100px 24px;
  background-color: var(--bg-white);
  position: relative;
  z-index: 3;
  border-top: 1px solid rgba(0,0,0,0.03);
}

.products-flex {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 992px) {
  .products-flex {
    grid-template-columns: 1fr;
  }
}

.product-item {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.03);
  transition: var(--transition-smooth);
}

.product-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.product-img-wrapper {
  height: 280px;
  position: relative;
  background-color: #e3ebec;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-img-wrapper.bg-spicy {
  background-color: #f7e6e3;
}

.product-img-wrapper.bg-cheese {
  background-color: #fcf1de;
}

.product-circle-bg {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.4);
  z-index: 1;
  transition: var(--transition-smooth);
}

.product-item:hover .product-circle-bg {
  width: 220px;
  height: 220px;
}

.product-art {
  z-index: 2;
  width: 140px;
  height: 190px;
  background-color: var(--primary-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  transform: rotate(-5deg);
  transition: var(--transition-smooth);
  border: 2px solid var(--accent-color);
}

.product-item:hover .product-art {
  transform: rotate(0deg) scale(1.05);
}

.pack-label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  border: 1px solid var(--accent-color);
  padding: 8px;
  background-color: var(--primary-dark);
}

.product-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: var(--primary-color);
  color: var(--accent-color);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 3;
}

.product-badge.accent {
  background-color: #d13d2a;
  color: #fff;
}

.product-info {
  padding: 28px;
}

.product-info h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.product-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  height: 60px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 12px;
}

.price {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
}

.original-price {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Elegant Footer */
footer {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 80px 24px 30px 24px;
  position: relative;
  z-index: 3;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 60px;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 40px;
  }
}

.footer-brand {
  max-width: 400px;
}

.footer-brand .logo {
  margin-bottom: 20px;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.social-icons {
  display: flex;
  gap: 16px;
}

.social-link {
  font-size: 0.85rem;
  color: var(--accent-color);
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.social-link:hover {
  color: var(--accent-light);
  border-color: var(--accent-light);
}

.footer-links {
  display: flex;
  gap: 60px;
}

@media (max-width: 480px) {
  .footer-links {
    flex-direction: column;
    gap: 30px;
  }
}

.link-column h4 {
  color: var(--accent-color);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.link-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-column a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  transition: var(--transition-smooth);
}

.link-column a:hover {
  color: var(--text-light);
  transform: translateX(3px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 576px) {
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* Transparent navbar overrides */
nav {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

nav .nav-link {
  position: relative;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease;
}

nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

nav .nav-link:hover::after {
  width: 100%;
}

nav.nav-scrolled {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(229, 231, 235, 0.6) !important;
  color: #1f2937 !important;
  box-shadow: 0 4px 20px -10px rgba(0, 0, 0, 0.08) !important;
}

nav.nav-scrolled .nav-link {
  color: #4b5563 !important;
}

nav.nav-scrolled .nav-link:hover {
  color: #0B5B3E !important; /* Khatus primary emerald green */
}

nav.nav-scrolled .nav-link::after {
  background-color: #0B5B3E !important;
}

/* Scroll status for header action buttons and search/cart */
nav.nav-scrolled button {
  color: #4b5563 !important;
}

nav.nav-scrolled button:hover {
  color: #0B5B3E !important;
}



