/* Base & Layout */
:root {
  --primary-dark: #153E27; /* Deep Green */
  --primary-light: #2e7d32;
  --bg-light: #f8f9fa; /* Light Grey */
  --text-main: #333333;
  --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
}

html {
  scroll-behavior: smooth; 
  /* This adds an invisible buffer so the navbar doesn't cover your titles */
  scroll-padding-top: 50px; 
  scroll-behavior: smooth; }

/* Typography */
h1, h2, h3 { color: var(--primary-dark); margin-bottom: 15px; }
h2 { font-size: 2rem; border-bottom: 2px solid var(--primary-light); display: inline-block; padding-bottom: 5px; }
p { margin-bottom: 15px; text-align: justify; }
ul { margin-left: 20px; margin-bottom: 15px; }

/* Sections */
.section-container {
  width: 100%;
  padding: 40px 30px; 
  margin: 20px auto;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  animation: fadeIn 0.6s ease forwards;
}

/* Navigation Bar */
/* =========================================
   SCROLLING NAV BAR (SHRINK EFFECT)
   ========================================= */
nav {
  transition: all 0.4s ease;
}

nav img {
  transition: all 0.4s ease;
  transform-origin: top;
  overflow: hidden;
}

/* This class gets added by JavaScript when you scroll */
nav.scrolled {
  padding: 10px 20px; /* Makes the bar much thinner */
  box-shadow: 0 4px 15px rgba(0,0,0,0.15); /* Slightly darker shadow for contrast */
}

nav.scrolled img {
  height: 0 !important; /* Shrinks the image to 0 */
  opacity: 0; /* Fades it out */
  margin: 0; 
}
nav {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--white);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 5px;
  transition: background 0.3s, color 0.3s;
}
.nav-links a:hover {
  background: var(--primary-dark);
  color: var(--white);
}

/* =========================================
   HERO SECTION (LEFT-ALIGNED & DROPLET)
   ========================================= */
.hero {
background-color: var(--primary-dark);
  background-image: linear-gradient(rgba(21, 62, 39, 0.7), rgba(21, 62, 39, 0.7)), url('images/back-hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 60px 50px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  width: 100%;
}

/* Left Side: Text Alignment */
.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Forces everything to snap to the left */
}

.hero-text h1 { 
  color: var(--white); 
  font-size: 3rem; 
  text-align: left;
  margin-bottom: 10px;
}

.hero-text p {
  text-align: left;
  margin: 0 0 20px 0; /* Removes auto-margins */
  max-width: 650px; 
  font-size: 1.15rem;
  line-height: 1.6;
}

/* The highlighted slogan */
.hero-slogan {
  align-self: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem !important; 
  font-weight: 800; 
  color: #2ecc71 !important; /* Dark green text */
  padding: 8px 25px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 5px !important;
}

.hero-slogan i {
  font-style: italic; /* Removes italics */
}

/* Right Side: The Water Droplet */
.hero-image-wrapper {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.droplet-shape {
  width: 380px; 
  height: 380px;
  border-radius: 0 50% 50% 50%;
  transform: rotate(45deg);
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.384);
  box-shadow: 10px 10px 30px rgba(0,0,0,0.3);
  background-color: #ffffff; /* White background for the image */
}

.droplet-shape img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Prevents chopping off the pumps */
  padding: 25px; /* Adds breathing room around the edges */
  transform: rotate(-45deg) scale(1.4); /* Re-orients and scales image */
}

/* =========================================
   PRODUCT CARDS & DETAILS
   ========================================= */
.product-card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  background: var(--white);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  align-items: flex-start; 
  justify-content: space-between;
  gap: 25px; 
}

.product-card:hover { 
  transform: translateY(-5px); 
  box-shadow: 0 15px 30px rgba(0,0,0,0.15); 
}

.product-info {
  flex: 1; 
}

.product-image {
  width: 250px; 
  flex-shrink: 0; 
}

.product-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Dropdowns (Details/Summary) */
details {
  background: #f1f1f1;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 12px;
}

summary {
  font-weight: 600;
  cursor: pointer;
  outline: none;
  padding: 5px;
  color: var(--primary-dark);
}

.detail-list {
  padding-left: 20px;
  margin-top: 15px;
  font-size: 0.95rem;
}

.detail-list li {
  margin-bottom: 8px;
}

.grid-list {
  display: grid;
  grid-template-columns: 1fr 1fr; 
  gap: 10px;
}

/* =========================================
   SMOOTH HOVER LIGHTBOX (MODEL GALLERY)
   ========================================= */
.model-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
  gap: 15px;
  margin-top: 15px;
  padding: 15px;
  background: #f4f7f5;
  border-radius: 8px;
}

.model-item {
  background: white;
  padding: 15px 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  text-align: center;
  position: relative; 
  z-index: 1;
  
  /* Extremely smooth, cinematic transition for the ENTIRE card */
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
  cursor: zoom-in;
}

.model-item:hover {
  /* Scales the whole card (Image + Text) up smoothly */
  transform: scale(2.3); 
  z-index: 10000;
  
  /* 3000px shadow creates the dark background, 40px shadow makes the card 3D */
  box-shadow: 0 0 0 3000px rgba(0,0,0,0.7), 0 20px 40px rgba(0,0,0,0.5);
}

.model-item img {
  width: 100%;
  max-width: 180px;  
  height: 140px;     
  object-fit: contain;
  margin: 0 auto;
}

.model-item p {
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #153E27; /* Matches your Harvin Green */
  text-align: center;
  /* Text remains visible during the hover zoom! */
}

/* Mobile Safety Limit */
@media screen and (max-width: 768px) {
  .model-item:hover {
      transform: scale(1.6); /* Prevents the massive card from stretching off a phone screen */
  }
}

/* Tables */
table { width: 100%; border-collapse: collapse; margin-top: 15px; font-size: 0.95rem; }
table, th, td { border: 1px solid #ccc; }
th, td { padding: 12px; text-align: left; }
th { background-color: var(--primary-dark); color: white; width: 30%; }

/* Footer */
footer {
  width: 100%;
  background: #1A1A1A;
  color: #919191;
  text-align: center;
  padding: 30px;
  margin-top: auto;
}
footer p { text-align: center; }

/* =========================================
   MOBILE RESPONSIVE RULES
   ========================================= */
@media screen and (max-width: 768px) {
  
  nav {
      flex-direction: column;
      padding: 15px;
      height: auto;
  }
  
  .nav-links {
      margin-top: 15px;
      gap: 15px;
      font-size: 0.9rem;
  }

  /* Stack Hero Section */
  .hero-content {
      flex-direction: column-reverse; /* Puts droplet on top of text */
      text-align: center;
      gap: 20px;
  }

  .hero-text {
      align-items: center; /* Centers items on mobile */
  }

  .hero-text h1, .hero-text p {
      text-align: center; /* Center text on small screens */
  }

  .droplet-shape {
      width: 250px;
      height: 250px;
      margin-bottom: 10px;
  }

  .hero-text h1 {
      font-size: 2rem;
  }

  .hero-slogan {
      font-size: 1.2rem !important;
  }

  /* Stack Product Cards */
  .product-card {
      flex-direction: column-reverse;
      padding: 15px;
  }

  .product-info, .product-image {
      width: 100% !important;
      max-width: 100%;
  }

  .product-image img {
      margin-bottom: 20px;
      height: auto;
      max-height: 250px;
  }

  /* Scrollable Tables */
  table {
      display: block;
      overflow-x: auto;
      white-space: nowrap;
  }

  /* Stack Contact Section */
  section#contact > div {
      flex-direction: column !important;
  }

  .contact-info, iframe {
      width: 100% !important;
  }

  /* 1-Column Lists */
  .grid-list {
      grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes fadeIn { 
  from { opacity: 0; transform: translateY(20px); } 
  to { opacity: 1; transform: translateY(0); } 
}