/* ===============================
   Base Styles
================================= */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(180deg, #f4fdf6 0%, #ffffff 100%);
    color: #333;
    position: relative;
    overflow-x: hidden;
}

h1, h2, h3 {
    margin: 0;
}

p {
    margin: 0 0 1rem 0;
}

/* ===============================
   Global Pills Animation
================================= */
.global-pills {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.pill {
    position: absolute;
    background: #1c4438;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    opacity: 0.3;
    animation: floatLoop 12s infinite ease-in-out;
}

.pill-1 { top: 10%; left: 5%; width: 28px; height: 28px; animation-delay: 0s; }
.pill-2 { top: 30%; left: 60%; width: 22px; height: 22px; animation-delay: 1s; }
.pill-3 { top: 60%; left: 90%; width: 32px; height: 32px; animation-delay: 2s; }
.pill-4 { top: 40%; left: 20%; width: 26px; height: 26px; animation-delay: 3s; }
.pill-5 { top: 70%; left: 10%; width: 20px; height: 20px; animation-delay: 4s; }
.pill-6 { top: 80%; left: 75%; width: 36px; height: 36px; animation-delay: 5s; }

@keyframes floatLoop {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.6; }
    100% { transform: translateY(0) rotate(360deg); opacity: 0.3; }
}

/* ===============================
   Header (Hero Section)
================================= */
header.hero {
    position: relative;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 20px 40px;
    margin-bottom: 50px;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-left {
    text-align: center;
}

.hero-text {
    font-size: 2rem;
    font-weight: 700;
    color: #1c4438;
}

.tagline {
    font-size: 1rem;
    color: #555;
    margin-top: 5px;
    max-width: 600px;
    text-align: center;
}

.hero-right img {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
}

/* ===============================
   Header Navigation
================================= */
.hero-nav {
    width: 100%;
    padding: 10px 0;
    background: #f4fdf6;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    margin-top: 20px;
}

.hero-nav .hero-content {
    justify-content: center;
    gap: 20px;
}

.nav-link {
    color: #1c4438;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #43A047;
}

.header-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    animation: waveMove 10s linear infinite;
}

.header-waves svg {
    width: 100%;
    height: 100%;
    display: block;
}

@keyframes waveMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===============================
   Section Styles
================================= */
.section {
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.section:nth-child(even) {
    background: #f4fdf6;
    box-shadow: none;
}

.section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f6e50;
    margin-bottom: 20px;
}

.section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #1f6e50;
    margin: 10px auto 0;
    border-radius: 2px;
}

.section p {
    font-size: 1.05rem;
    color: #3a5f4b;
    max-width: 800px;
    margin: 0 auto 20px;
}

@media (max-width: 768px) {
    .section {
        padding: 40px 15px;
    }
    .section h2 {
        font-size: 1.4rem;
    }
}

/* ===============================
   About Us Section
================================= */
.about-section {
    text-align: center;
}

.about-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.about-item {
    background: #eafaf0;
    color: #1f6e50;
    padding: 16px 24px;
    border-radius: 8px;
    min-width: 150px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.about-item:hover {
    background: #dff5ea;
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* ===============================
   Why Choose Us Section
================================= */
.why-choose-section {
    text-align: center;
    background: transparent;
    box-shadow: none;
}

.why-choose-section p {
    max-width: 800px;
    margin: 0 auto 30px;
    color: #3a5f4b;
}

.why-choose-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.why-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    width: 200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.why-card span {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.why-card h3 {
    font-size: 1.2rem;
    color: #1f6e50;
    margin-bottom: 5px;
}

.why-card p {
    font-size: 0.95rem;
    color: #49745f;
}

/* ===============================
   Products Section
================================= */
.products-section {
    text-align: center;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.product-img {
    max-height: 150px;
    object-fit: contain;
    margin-bottom: 10px;
    width: 100%;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f6e50;
    margin-bottom: 5px;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    min-height: 40px;
}

.product-info a button {
    background: #43A047;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s ease;
    margin-top: auto; /* Pushes button to bottom */
}

.product-info a button:hover {
    background: #2e7d32;
}

/* ===============================
   Testimonials Section
================================= */
.testimonials-section {
    text-align: center;
    background: transparent;
    box-shadow: none;
}

.testimonials-swiper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
    margin-top: 20px;
}

.swiper-slide {
    display: flex;
    justify-content: center;
}

.testimonial-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    max-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-card strong {
    color: #1f6e50;
    display: block;
    margin-top: 10px;
}

/* ===============================
   Contact Us Section
================================= */
.contact-modern {
    background: #f4fdf6;
    padding: 60px 20px;
    text-align: center;
    color: #1c4438;
}

.contact-modern h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact-subtitle {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1rem;
    color: #555;
}

.contact-modern-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
}

.contact-modern-form,
.contact-modern-info {
    flex: 1 1 400px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.contact-modern-form input,
.contact-modern-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.contact-modern-form textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-modern {
    background: #1c4438;
    color: #fff;
    padding: 12px;
    width: 100%;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.btn-modern:hover {
    background: #155f4c;
}

/* ===============================
   Footer
================================= */
footer {
    background: #eaf5ee;
    color: #1c4438;
    font-size: 0.9rem;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
}

/* ===============================
   Responsive Adjustments
================================= */
@media (max-width: 768px) {
    header.hero {
        padding: 15px 20px;
    }
    .hero-text {
        font-size: 1.5rem;
    }
    .tagline {
        font-size: 0.9rem;
    }
    .hero-content {
        text-align: center;
    }
    .hero-right img {
        margin-top: 15px;
    }
    .why-choose-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    .product-img {
        max-height: 120px;
    }
    .product-title {
        font-size: 0.9rem;
    }
    .contact-modern-grid {
        flex-direction: column;
    }
    .contact-modern-form,
    .contact-modern-info {
        flex: 1 1 100%;
    }

    .hero-nav .hero-content {
        flex-direction: column;
        gap: 10px;
    }
    .nav-link {
        margin: 0 5px;
        font-size: 0.9rem;
    }
}

.hero-banner {
  background-color: transparent;
  padding: 60px 0;
  position: relative;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.hero-text-group {
  flex: 1;
  min-width: 280px;
}

.hero-text {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1c4438;
  margin-bottom: 10px;
}

.tagline {
  font-size: 1.2rem;
  color: #4b4b4b;
}

.hero-logo img {
  max-width: 150px;
  height: auto;
}

/* Responsive layout */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-logo {
    margin-top: 20px;
  }
}


/* Pill Navigation */
.hero-pill-nav {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  padding: 10px;
}

.pill-nav-container {
  background-color: #eaf5ee;
  padding: 10px 30px;
  border-radius: 9999px;
  display: flex;
  gap: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.pill-nav-container .nav-link {
  padding: 8px 16px;
  background-color: #ffffff;
  border-radius: 9999px;
  font-weight: 500;
  color: #1c4438;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.pill-nav-container .nav-link:hover {
  background-color: #1c4438;
  color: #fff;
}

/* ===============================
   Chat Button
================================= */
.chat-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #ffffff;
    color: #1c4438;
    text-decoration: none;
    border-radius: 9999px;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: background 0.3s, color 0.3s;
    cursor: pointer;
}

.chat-button:hover, .chat-button:active {
    background-color: #1c4438 !important;
    color: #fff !important;
}

.chat-button span {
    margin-right: 8px;
}


.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    text-align: center;
}

.modal-content h3 {
    margin-bottom: 15px;
    color: #1c4438;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.modal-content button {
    background: #1c4438;
    color: #fff;
    padding: 10px 20px;
    border: none;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 4px;
}

.modal-content .close-btn {
    background: #888;
    margin-left: 10px;
}
