:root {
  --primary-color: #8CC63F;
  --primary-hover: #7ab332;
  --text-dark: #242122;
  --text-light: #ffffff;
  --bg-light: #f5f8f2; /* slightly greenish tint for light grey */
  --bg-white: #ffffff;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 300;
  color: #555;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(140, 198, 63, 0.4);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(140, 198, 63, 0.5);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-dark);
  border: 2px solid var(--text-dark);
}

.btn-outline:hover {
  background-color: var(--text-dark);
  color: var(--text-light);
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}

header.scrolled {
  padding: 5px 0;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo img {
  height: 80px;
  width: auto;
  transition: var(--transition);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  font-size: 1.05rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

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

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.menu-toggle span {
  width: 30px;
  height: 3px;
  background-color: var(--text-dark);
  transition: var(--transition);
  border-radius: 3px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(245,248,242,1) 100%);
}

.hero .container {
  display: flex;
  align-items: center;
  width: 100%;
}

.hero-content {
  flex: 1;
  padding-right: 2rem;
  z-index: 2;
}

.hero-image {
  flex: 1;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 90%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background-color: rgba(140, 198, 63, 0.15);
  color: var(--primary-hover);
  border-radius: 30px;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* Features Section */
.features {
  padding: 6rem 0;
  background-color: var(--bg-white);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  background: var(--bg-white);
  padding: 3rem 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(140, 198, 63, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}

.feature-icon svg {
  width: 40px;
  height: 40px;
  fill: currentColor;
}

.feature-card:hover .feature-icon {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* Product Section */
.product-showcase {
  padding: 6rem 0;
  background-color: var(--bg-light);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.product-card {
  background: var(--bg-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

.product-card-image {
  position: relative;
  width: 100%;
  padding-top: 80%; /* adjusted aspect ratio to not crop too much */
  background: var(--bg-light);
}

.product-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-content {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-content h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.weight-badge {
  display: inline-block;
  padding: 5px 12px;
  background-color: rgba(140, 198, 63, 0.15);
  color: var(--primary-hover);
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: block;
}

.product-card-content p {
  margin-bottom: 2rem;
  flex: 1;
}

.product-card-content .btn {
  text-align: center;
  width: 100%;
}

/* Call to Action */
.cta {
  padding: 6rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--text-dark) 0%, #1a1819 100%);
  color: var(--text-light);
}

.cta h2 {
  color: var(--text-light);
}

.cta p {
  color: #ccc;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Footer */
footer {
  background-color: #151314;
  color: var(--text-light);
  padding: 5rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 50px;
}

.footer-desc {
  color: #aaa;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

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

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-links h4 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

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

.footer-links ul li {
  margin-bottom: 1rem;
}

.footer-links ul a {
  color: #aaa;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links ul a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.newsletter-form {
  display: flex;
  margin-top: 1.5rem;
}

.newsletter-form input {
  padding: 12px 15px;
  border: none;
  border-radius: 8px 0 0 8px;
  outline: none;
  flex: 1;
  font-family: 'Outfit', sans-serif;
}

.newsletter-form button {
  padding: 12px 20px;
  border: none;
  background-color: var(--primary-color);
  color: white;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background-color: var(--primary-hover);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #777;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero .container {
    flex-direction: column-reverse;
    text-align: center;
  }
  
  .hero-content {
    padding-right: 0;
    margin-top: 4rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .product-container {
    flex-direction: column;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-white);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 3rem;
    transition: var(--transition);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links .btn {
    margin-top: 1rem;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Animation utilities */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
