/* ---------- GLOBAL STYLES ---------- */
:root {
  --primary-green: #103d23;
  --dark-green: #064e3b;
  --text-color: #333;
  --light-bg: #f6f6f4;
  --white-bg: #ffffff;
  --light-green-bg: #edf0ed;
  --font-heading: "Poppins", sans-serif;
  --font-body: "Lato", sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--primary-green);
  background: var(--light-bg);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://www.shutterstock.com/image-vector/named-world-map-outline-vector-260nw-2490083441.jpg")
    center/cover no-repeat;
  opacity: 0.7;
  z-index: -2;
  background-attachment: fixed;
}

/* ---------- PRE-LOADER ---------- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--light-bg);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.75s ease;
}

#preloader h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 32px;
  color: var(--primary-green);
  letter-spacing: 1px;
  animation: pulse 1.5s infinite ease-in-out;
}

#preloader.fade-out {
  opacity: 0;
}

#preloader.hidden {
  display: none;
}

@keyframes pulse {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}


/* ---------- HEADER (With Shrinking Effect) ---------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(16, 61, 35, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 1000;
  transition: padding 0.3s ease, background-color 0.3s ease;
}

header.scrolled {
  padding: 10px 60px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 26px;
  color: var(--primary-green);
  letter-spacing: 1px;
  margin: 0;
}

/* Logo Icon Styling */
header h1 a {
  display: flex; /* Aligns icon and text */
  align-items: center; /* Vertically centers them */
  gap: 10px; /* Space between icon and text */
  text-decoration: none;
  color: inherit;
}

nav {
  display: flex;
}

/* ---------- NAVIGATION & DROPDOWN STYLES ---------- */
nav .nav-item {
  position: relative;
}

nav a {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--primary-green);
  text-decoration: none;
  margin: 0 15px;
  transition: all 0.3s ease;
  position: relative;
  padding: 10px 5px;
}

nav a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--dark-green);
  transition: width 0.3s ease;
}

nav a:hover,
nav a.active {
  color: var(--dark-green);
}

nav a:hover::before,
nav a.active::before {
  width: 100%;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white-bg);
  min-width: 280px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 10px 0;
  z-index: 1001;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.nav-item:hover .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-menu a {
  color: var(--text-color);
  font-weight: 500;
  padding: 12px 20px;
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  margin: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
  background-color: var(--light-green-bg);
  color: var(--dark-green);
}
.dropdown-menu a::before {
  display: none;
}
/* -------------------------------------------------- */


/* ---------- HERO SECTION ---------- */
.hero {
  text-align: center;
  padding: 150px 20px 140px;  /* Pushed up */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h2 {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 700;
  color: var(--primary-green);
  animation: fadeInUp 1.2s ease forwards;
  max-width: 650px;
  line-height: 1.3;
}

.hero p {
  font-size: 19px;
  margin-top: 10px;
  animation: fadeInUp 1.8s ease forwards;
}

.cta-button {
  font-family: var(--font-heading);
  background: var(--dark-green);
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 25px;
  display: inline-block;
  transition: all 0.3s ease;
  animation: fadeInUp 2.1s ease forwards;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.cta-button:hover {
  background: var(--light-bg);
  color: var(--dark-green);
  border-color: var(--dark-green);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ---------- STATS BAR ---------- */
.stats-bar {
  background: var(--dark-green);
  color: var(--white-bg);
  display: flex;
  justify-content: space-around;
  padding: 30px 20px;
  margin-top: -60px; 
  position: relative;
  z-index: 10;
  border-radius: 12px;
  width: 80%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.stat-item {
  text-align: center;
}

.stat-item h3 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin: 0 0 5px 0;
  color: #fff;
}

.stat-item p {
  font-family: var(--font-body);
  font-size: 1rem;
  margin: 0;
  color: var(--light-green-bg);
  opacity: 0.9;
}

/* ---------- SHARED STYLES ---------- */
.section-container {
  max-width: 1100px;
  margin: 80px auto;
  padding: 60px 40px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.section-container h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--dark-green);
  margin-top: 0;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ---------- BREADCRUMBS & PAGE TITLES ---------- */
.breadcrumbs {
  padding: 20px 60px;
  background: var(--light-green-bg);
  border-bottom: 1px solid rgba(16, 61, 35, 0.1);
  font-family: var(--font-body);
  font-weight: 500;
  color: #555;
  margin-top: 80px;
}

.breadcrumbs a {
  color: var(--primary-green);
  text-decoration: none;
  font-weight: 700;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.breadcrumbs span {
  color: #777;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--dark-green);
  text-align: center;
  margin: 60px 0 40px 0;
}
/* ---------------------------------------------------- */


/* ---------- PRODUCT SECTION (for products.html) ---------- */
.products-section {
  padding: 0 40px 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.product {
  background: var(--white-bg);
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  padding: 20px;
  transition: all 0.5s ease;
  overflow: hidden;
}

.product:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.product img {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

.product:hover img {
  transform: scale(1.1);
}

.product h3 {
  font-family: var(--font-heading);
  margin: 15px 0 5px;
  color: var(--primary-green);
  font-size: 1.4rem;
}

.product-origin {
  color: var(--dark-green);
  font-size: 0.95rem;
  font-weight: 500;
  font-style: normal;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
  line-height: 1.4;
  min-height: 40px;
}

.product-origin svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
}

/* Staggered Product Grid Animation */
.product.fade-in-section:nth-child(1) { transition-delay: 0.1s; }
.product.fade-in-section:nth-child(2) { transition-delay: 0.2s; }
.product.fade-in-section:nth-child(3) { transition-delay: 0.3s; }
.product.fade-in-section:nth-child(4) { transition-delay: 0.4s; }
.product.fade-in-section:nth-child(5) { transition-delay: 0.5s; }
.product.fade-in-section:nth-child(6) { transition-delay: 0.6s; }
.product.fade-in-section:nth-child(7) { transition-delay: 0.7s; }
.product.fade-in-section:nth-child(8) { transition-delay: 0.8s; }

/* ---------- SERVICE PAGE CONTENT ---------- */
.service-content {
  max-width: 800px;
  margin: 40px auto;
  padding: 40px;
  background: var(--white-bg);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  text-align: left;
}
.service-content p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-color);
}
/* ------------------------------------------------- */

/* --- Service Page Button Container --- */
.button-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
}
/* The .cta-button-secondary style is now REMOVED */


/* ---------- BENTO GRID STYLES (Homepage) ---------- */
.bento-grid-container {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 40px; 
  text-align: center;
}

.bento-grid-container h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--dark-green);
  margin-top: 0;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 20px;
}

.bento-box {
  background: var(--white-bg);
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.bento-box:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(4deg) scale3d(1.02, 1.02, 1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.bento-box.span-2 { grid-column: span 2; }
.bento-box.span-row-2 { grid-row: span 2; }

.bento-box h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary-green);
  margin-top: 0;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.bento-box h3 svg {
  width: 24px;
  height: 24px;
  color: var(--dark-green);
  flex-shrink: 0;
}
.bento-box p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
  margin: 0;
}

.bento-box.testimonial {
  background-color: var(--dark-green);
  color: var(--light-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bento-box.testimonial p {
  font-size: 1.3rem;
  line-height: 1.7;
  color: var(--white-bg);
  font-style: italic;
  margin: 0 0 15px 0;
}
.bento-box.testimonial span {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--light-bg);
  opacity: 0.9;
}

.bento-box.link-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  background-color: var(--light-green-bg);
}
.bento-box.link-box:hover {
  background-color: var(--white-bg);
  border: 1px solid var(--dark-green);
}
.bento-box.link-box h3 {
  font-size: 1.6rem;
  color: var(--dark-green);
}
.bento-box.link-box .arrow {
  font-size: 2rem;
  font-weight: bold;
  color: var(--dark-green);
  align-self: flex-end;
  transition: transform 0.3s ease;
}
.bento-box.link-box:hover .arrow {
  transform: translateX(5px);
}
/* -------------------------------------------------- */


/* ---------- ABOUT SECTION (DEDICATED PAGE) ---------- */
.about-section p.intro { /* about.html */
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--dark-green);
  font-size: 1.4rem;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 40px;
}
.statement-boxes-container { max-width: 800px; margin: 40px auto; }
.statement-box {
  background: var(--white-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  border-left: 5px solid var(--dark-green);
}
.statement-box:first-child { margin-bottom: 30px; }
.statement-box h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--primary-green);
  margin-top: 0;
  margin-bottom: 10px;
}
.statement-box p { font-size: 1.1rem; line-height: 1.8; color: var(--text-color); margin: 0; }
.values-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--primary-green);
  text-align: center;
  margin-top: 50px;
  margin-bottom: 30px;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  text-align: left;
  margin-top: 20px;
}
.value-item {
  padding: 15px;
  background: #fdfdfd;
  border-radius: 8px;
  border-left: 4px solid var(--dark-green);
}
.value-item h4 {
  font-family: var(--font-heading);
  color: var(--primary-green);
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 1.2rem;
}
.value-item p { font-size: 0.95rem; line-height: 1.6; color: var(--text-color); margin: 0; }

/* Compact Page Styles for About Page */
.about-page-body .breadcrumbs {
  margin-top: 80px;
}
.about-page-body .compact-page {
  margin: 40px auto;
  padding: 40px;
}
.about-page-body .compact-page .intro {
  margin-bottom: 30px;
}
.about-page-body .compact-page .statement-boxes-container {
  margin: 30px auto;
}
.about-page-body .compact-page .statement-box:first-child {
  margin-bottom: 20px;
}
.about-page-body .compact-page .values-title {
  margin-top: 30px;
  margin-bottom: 20px;
}
.about-page-body .compact-page .values-grid {
  margin-top: 10px;
}
.about-page-body footer {
  margin-top: 40px;
  padding: 30px;
}

/* ---------- Smart Contact Form 2x2 ---------- */
.contact-form {
  max-width: 800px;
  margin: 40px auto 0;
  text-align: left;
}

.contact-form form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form .form-group {
  margin-bottom: 0;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--primary-green);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: 1rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--dark-green);
  box-shadow: 0 0 5px rgba(6, 78, 59, 0.3);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .submit-btn {
  font-family: var(--font-heading);
  background: var(--dark-green);
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}
.contact-form .submit-btn:hover { background: var(--primary-green); transform: translateY(-3px); }

/* Button Shine Effect */
.cta-button::before,
.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: all 0.6s ease;
}
.cta-button:hover::before,
.submit-btn:hover::before { left: 100%; }

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  padding: 40px;
  color: var(--primary-green);
  background: var(--light-green-bg);
  margin-top: 60px;
}
footer p { margin: 10px 0; }
footer strong { font-weight: 700; }
/* Footer links */
footer a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}
footer a:hover {
  text-decoration: underline;
  color: var(--dark-green);
}

/* NEW: LinkedIn Icon Style */
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 10px 0;
}
.footer-socials a {
  color: var(--primary-green);
  transition: color 0.3s ease, transform 0.3s ease;
}
.footer-socials a:hover {
  color: var(--dark-green);
  transform: scale(1.1);
}
.footer-socials svg {
  width: 28px;
  height: 28px;
}


/* ---------- ANIMATIONS (Global) ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-section {
  transform: translateY(40px);
  opacity: 0;
  transition: all 1s ease;
}
.fade-in-section.visible { transform: translateY(0); opacity: 1; }

/* ---------- RESPONSIVENESS ---------- */
@media (max-width: 1024px) {
  nav { flex-wrap: wrap; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .products-section { max-width: 1100px; }
  
  /* Bento Grid on Tablet */
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-box.span-2,
  .bento-box.span-row-2 {
    grid-column: span 1;
    grid-row: span 1;
  }
  .bento-box.bento-main,
  .bento-box.testimonial {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  header { flex-direction: column; padding: 20px; }
  header.scrolled { padding: 15px 20px; }
  nav { 
    margin-top: 15px; 
    width: 100%; 
    justify-content: space-around;
    flex-wrap: wrap;
  }
  nav a { margin: 0 5px; font-size: 0.9rem; }
  html { scroll-padding-top: 140px; }

  .hero { padding: 150px 20px 80px; }
  .hero h2 { font-size: 32px; }
  
  .stats-bar {
    flex-direction: column;
    gap: 25px;
    width: 90%;
    margin-top: -40px;
  }
  .stat-item h3 {
    font-size: 2rem;
  }

  .section-container { width: 90%; padding: 40px 20px; margin: 40px auto; }
  .section-container h2 { font-size: 2rem; }
  .page-title { font-size: 2.2rem; }
  .breadcrumbs { margin-top: 120px; padding: 15px 20px; }
  .products-section { padding: 40px 20px; }
  .products { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .statement-box h3 { font-size: 1.5rem; }
  .service-content { padding: 25px; }

  /* Stack new contact form */
  .contact-form form {
    grid-template-columns: 1fr;
  }
  
  /* Bento Grid on Mobile */
  .bento-grid-container {
    padding: 0 20px;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-box.span-2,
  .bento-box.span-row-2,
  .bento-box.bento-main,
  .bento-box.testimonial {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* --- SCROLLER CONTAINER (The Viewport) --- */
.scroller {
    overflow: hidden; 
    width: 100%;
    padding: 20px 0; 
}

/* --- SCROLLER INNER (The Animated Strip) --- */
.scroller-inner {
    /* KEY 1: Make sure all products stay on one line */
    display: flex; 
    white-space: nowrap; 
    
    /* KEY 2: Apply the animation */
    /* Adjust '40s' for speed (shorter time = faster scroll) */
    animation: scroll-left-to-right 5s linear infinite; 
}

/* Stop the scroll on hover for better UX */
.scroller:hover .scroller-inner {
    animation-play-state: paused;
}

/* --- PRODUCT ITEM (Width defines the scroll jump point) --- */
.product {
    /* KEY 3: Must set a fixed, non-percentage width for calculation */
    flex-shrink: 0; 
    width: 250px; /* IMPORTANT: Use a fixed unit like px */
    margin-right: 20px;
    padding: 15px;
    border: 1px solid #eee;
    text-align: center;
    /* (rest of your product styling...) */
}

/* --- KEYFRAMES (The seamless loop definition) --- */
@keyframes scroll-left-to-right {
    from {
        /* Starts at the beginning of the first set */
        transform: translateX(0%);
    }
    to {
        /* Ends at the beginning of the second set, which looks seamless */
        transform: translateX(-50%); 
        /* This -50% equals the exact length of your original 8 products */
    }
}