:root {
  --primary: #1B5E20;
  --secondary: #2E7D32;
  --accent: #81C784;
  --light: #F8FAF8;
  --gray: #EDF2F0;
  --dark: #1A1A1A;
}

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

html {
  scroll-behavior: smooth;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* NAVBAR */
header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
}

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

/* Add this right below your existing .logo CSS */
.logo img {
  max-height: 55px; /* Keeps the logo visually balanced with the nav links */
  width: auto;      /* Maintains the exact proportions without stretching */
  object-fit: contain;
  display: block;   /* Removes any weird spacing below the image */
}

nav {
  display: flex;
  gap: 35px;
}

nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  transition: color 0.3s;
}

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

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  font-size: 28px;
  color: var(--primary);
  cursor: pointer;
}

/* HERO */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: 
    linear-gradient(rgba(27,94,32,.85), rgba(46,125,50,.85)),
    url('https://images.unsplash.com/photo-1532996122724-e3c354a0b15b?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
  color: white;
  padding: 80px 0;
}

.hero-content {
  max-width: 850px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 700;
  animation: slideDown 1s ease;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  margin-bottom: 40px;
  color: #E8F5E9;
  animation: fadeIn 1.5s ease;
}

.btn {
  display: inline-block;
  padding: 16px 40px;
  background: white;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border-radius: 50px;
  transition: 0.3s ease;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0,0,0,.2);
  background: var(--gray);
}

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

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

/* SECTION COMMONS */
section {
  padding: 100px 0;
}

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

.section-title h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--primary);
  margin-bottom: 15px;
}

.section-title p {
  color: #666;
  font-size: 1.1rem;
  font-weight: 400;
}

.email-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: 0.3s;
}

.email-link:hover {
  color: var(--secondary);
  text-decoration: underline;
}

/* ABOUT */
.about {
  background: var(--light);
}

.about p {
  max-width: 850px;
  margin: auto;
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #555;
}

/* PRODUCTS */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,.05);
  transition: 0.4s ease;
  border: 1px solid rgba(0,0,0,0.02);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(27,94,32,.1);
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: 0.5s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card h3 {
  padding: 20px;
  text-align: center;
  color: var(--primary);
  font-weight: 600;
  font-size: 1.2rem;
}

/* PROCESS */
.process {
  background: var(--gray);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.process-box {
  background: white;
  padding: 30px 15px;
  text-align: center;
  border-radius: 16px;
  font-weight: 600;
  color: var(--primary);
  box-shadow: 0 5px 15px rgba(0,0,0,.04);
  transition: 0.3s ease;
  
  /* Flexbox additions for perfect label alignment */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 220px;
}

.process-box:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-5px);
}

.process-box .icon-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  width: 100%;
}
.industry .icon-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  width: 100%;
}

.process-box img {
  max-height: 90px;
  width: auto;
  object-fit: contain;
}
.industry img {
  max-height: 90px;
  width: auto;
  object-fit: contain;
}

.process-box span.emoji {
  display: block;
  font-size: 2.5rem;
  line-height: 1;
}

/* INDUSTRIES */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.industry {
  background: white;
  padding: 25px 15px;
  text-align: center;
  border-radius: 16px;
  border: 1px solid var(--gray);
  box-shadow: 0 5px 15px rgba(0,0,0,.03);
  font-weight: 500;
  transition: 0.3s;
}

.industry:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 25px rgba(129, 199, 132, 0.2);
}

.industry span {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 10px;
}

/* CONTACT */
.contact {
  background: var(--light);
}

form {
  max-width: 700px;
  margin: auto;
  background: white;
  padding: clamp(20px, 5vw, 40px);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

input, textarea {
  width: 100%;
  padding: 16px;
  border: 2px solid #EEE;
  border-radius: 12px;
  font-size: 16px; /* Prevents iOS zoom */
  font-family: inherit;
  transition: 0.3s;
  background: #FAFAFA;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
}

textarea {
  height: 150px;
  resize: vertical;
}

button {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 5px;
}

button:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46,125,50,.3);
}

/* FOOTER */
footer {
  background: #0B250E;
  color: #A5D6A7;
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.95rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  text-decoration: underline;
}

/* WHATSAPP */
.whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25D366;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  text-decoration: none;
  font-size: 30px;
  color: white;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  transition: 0.3s;
  z-index: 100;
}

.whatsapp:hover {
  transform: scale(1.1);
}

/* INSTAGRAM */
.instagram {
  position: fixed;
  bottom: 100px; /* 25px (bottom padding) + 60px (WhatsApp height) + 15px (gap) */
  right: 25px;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  text-decoration: none;
  color: white;
  box-shadow: 0 10px 25px rgba(214, 36, 159, 0.4);
  transition: 0.3s;
  z-index: 100;
}

.instagram:hover {
  transform: scale(1.1);
}

/* MOBILE RESPONSIVENESS */
@media(max-width:768px) {
  section {
    padding: 60px 0;
  }
  
  .section-title {
    margin-bottom: 40px;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    text-align: center;
    gap: 0;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
  }

  nav.active {
    max-height: 300px;
  }

  nav a {
    padding: 15px 0;
    display: block;
    border-bottom: 1px solid #F3F4F6;
  }

  nav a::after {
    display: none; /* Remove hover line on mobile */
  }

  .products {
    grid-template-columns: repeat(2, 1fr); /* Shows 2 products per row */
    gap: 15px; /* Reduces gap slightly so they fit nicely on small screens */
  }

  /* Optional but recommended: Scale down the card contents for mobile */
  .card img {
    height: 150px; /* Keeps images well-proportioned on phones */
  }

  .card h3 {
    font-size: 0.95rem; /* Slightly smaller text */
    padding: 12px 8px;
  }
  /* ================= MAXIMIZED PRODUCT CARDS ================= */
.card {
  cursor: pointer; /* Shows a pointing finger so users know it's clickable */
  z-index: 1;
}

/* The dark background overlay */
.card-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  cursor: pointer;
}

.card-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* The centered, maximized state */
.card.maximized {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.1); /* Centers and enlarges slightly */
  z-index: 2000;
  width: 90%;
  max-width: 400px;
  margin: 0;
  cursor: default;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

/* Override the normal hover effect when the card is maximized */
.card.maximized:hover {
  transform: translate(-50%, -50%) scale(1.1); 
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

/* Make the image larger when maximized */
.card.maximized img {
  height: 320px;
}

/* Mobile adjustments for the maximized card */
@media(max-width: 768px) {
  .card.maximized {
    transform: translate(-50%, -50%) scale(1.05);
  }
  .card.maximized:hover {
    transform: translate(-50%, -50%) scale(1.05);
  }
  .card.maximized img {
    height: 250px;
  }
  .logo img {
    max-height: 45px; /* Reduced from 55px */
  }
}
  
}
