:root {
    --primary-green: #57C67B;
    --dark-green: #3d8b61;
    --light-green: #72db94;
    --bg-green: #f0fdf4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: poppins, sans-serif;
    color: #333;
}

/* Navbar */
.navbar {
    background-color: transparent !important; 
    backdrop-filter: none; 
    box-shadow: none;     
    color: #fff; 
}

.navbar .navbar-brand,
.navbar .nav-link {
    color: #fff !important;
}

.navbar .nav-link:hover {
    color: var(--primary-green) !important;
}


.navbar.scrolled {
    background-color: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar.scrolled .navbar-brand,
.navbar.scrolled .nav-link {
    color: var(--dark-green) !important;
}

.navbar.scrolled .nav-link:hover {
    color: var(--primary-green) !important;
}
.navbar-brand {
    color: var(--dark-green) !important;
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand i {
    color: var(--primary-green);
    font-size: 2rem;
}

.navbar-logo {
    height: 40px;
    width: auto;
    margin-right: 0.5rem;
    display: inline-block;
    vertical-align: middle;
    background: transparent;
}


.nav-link {
    color: #555 !important;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-green) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

/* Carousel Background */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
    height: 100%;
}

.hero-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dark overlay on top of carousel */
.hero-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(14, 100, 46, 0.5));
    z-index: 2;
    pointer-events: none;
}

/* Prev / Next Buttons */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    z-index: 10;
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    opacity: 1;
    pointer-events: all;
}

/* Indicators */
.hero-carousel .carousel-indicators {
    z-index: 10;
    pointer-events: all;
    margin-bottom: 1.5rem;
}

.hero-carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    border: none;
    pointer-events: all;
    transition: background-color 0.3s;
}

.hero-carousel .carousel-indicators button.active {
    background-color: #ffffff;
}


/* Animation definitions */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/farm.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 41, 38, 0.7), rgba(14, 100, 46, 0.5));
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}


.hero-section h1 {
    font-size: 6rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.hero-section p{
    font-family: 'Inter', sans-serif;
    font-style: italic;
    font-weight: bold;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.hero-section h3 {
    margin-top: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.9s forwards;
}



.highlight-green {
    color: var(--light-green);
}

.hero-content h1:hover, span:hover{
    color: var(--dark-green);
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.btn-primary-custom {
    background-color: var(--primary-green);
    border: none;
    padding: 12px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-primary-custom:hover {
    background-color: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}


.hero-section .btn {
    background-color: var(--primary-green);
    color: #fff;
    border-color: var(--primary-green);
    border-radius: 50px;
    padding: 14px 48px;           
    font-size: 1.32rem;           
    transform: scale(1.0);
    transition: background-color 0.3s, transform 0.3s;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.9s forwards;
}
.hero-section .btn:hover {
    background-color: var(--dark-green);
    border-color: var(--dark-green);
    color: #fff;
    transform: scale(1.05);     
}


@media (max-width: 991.98px) {
    .navbar {
        background-color: #fff !important;
    }

    .navbar .navbar-brand,
    .navbar .nav-link {
        color: var(--dark-green) !important;
    }
}

@media (max-width: 1800px) {
      .hero-section {
        height: auto;
        padding: 80px 20px;
    }

    .hero-section h1 {
        font-size: 4.0rem;
    }

    .hero-section p {
        font-size: 0.8rem;
        margin-bottom: 1.3rem;
    }

    .hero-section h3{
        font-size: 1.2rem;
    }
}

@media (max-width: 1200px) {
    .hero-section {
        height: auto;
        padding: 80px 20px;
    }

    .hero-section h1 {
        font-size: 4.0rem;
    }

    .hero-section p {
        font-size: 0.8rem;
        margin-bottom: 1.3rem;
    }

}

@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.8rem;
    }

    .hero-section p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;        
    text-align: center;      
}

/* About Section */
.about-section {
    background-color: white;
}

/* logo within About section */
.about-logo {
    display: block;
    margin: 1rem auto;
    max-width: 200px;
}

.about-card {
    background-color: var(--bg-green);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    height: 100%;
    transition: transform 0.3s;
}

.about-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem auto 0;
    text-align: center;
    display: inline-block; 
}

.about-card ul li {
    margin-bottom: 0.75rem;
    color: #555;
    text-align: left; 
}

.about-card:hover {
    transform: translateY(-5px);
}

.icon-circle {
    width: 80px;
    height: 80px;
    background-color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.icon-circle i {
    font-size: 2.5rem;
    color: white;
}

.vision, .mission{
    text-align: justify;
}

.about-card h3 {
    color: var(--dark-green);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.about-card ul {
    text-align: left;
    list-style: none;
    padding: 0;
}

.about-card ul li {
    margin-bottom: 0.75rem;
    color: #555;
}

 /* Why Choose Us Section */
.why-choose-section {
    background-color: var(--bg-green);
    color: var(--dark-green);
    padding: 80px 0;
}

.why-choose-section .section-title h2 {
    color: var(--dark-green);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.why-choose-section .section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-green);
}

.why-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.why-icon-circle {
    width: 100px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 2px solid var(--primary-green);
}

.why-icon-circle i {
    font-size: 3rem;
    color: var(--dark-green);
}

.why-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-green);
}

.why-card p {
    color: #555;
    line-height: 1.6;
}

.btn-minimum-order {
    /* background-color: #f59e0b; */
    background-color: var(--primary-green);
    color: white;
    border: none;
    padding: 15px 50px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
    margin: 1rem;

}

.btn-minimum-order:hover {
    /* background-color: #d97706; */
    background-color: var(--dark-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}


/* Products Section */
.products-section {
    background-color: var(--dark-green);
    padding: 80px 0;
}

.products-section .section-title h2 {
    color: white;
}

.product-category-container {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-list-section {
    background-color: var(--bg-green);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    max-height: 500px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
    padding-bottom: 3rem; /* space for button */
}

.product-list-section.expanded {
    min-height: 850px; 
    max-height: 1500px; /* large enough to show all items */
}

.show-more-btn {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    background-color: var(--primary-green);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
}

.show-more-btn:hover {
    background-color: var(--dark-green);
}

.product-list-section h3 {
    color: var(--dark-green);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.product-list-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-list-section ul li {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .product-list-section ul {
        columns: 2;
        column-gap: 2rem;
    }
}

 /* Sayur-sayuran Section */
.vegetables-gallery-section {
    background-color: #fafafa;
    padding: 40px 0;
    border-radius: 12px;
}


.vegetable-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.vegetable-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.vegetable-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.vegetable-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

@media (max-width: 1200px) {
    .vegetable-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .vegetable-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .vegetables-header h2 {
        font-size: 2rem;
    }
    
    .vegetable-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .vegetable-item img {
        height: 150px;
    }
}


.product-showcase-section {
    margin-top: 3rem;
}

.showcase-header {
    color: var(--dark-green);
    padding: 1rem;
    text-align: center;
    border-radius: 8px 8px 0 0;
    margin-bottom: 2rem;
}

.showcase-header h4 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
}

.showcase-header p {
    margin: 0.3rem 0 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.product-box {
    background-color: rgba(255, 255, 255, 0.185);
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    height: 100%;
}

.product-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-color: var(--primary-green);
}

.product-box-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.product-box-label {
    /* background-color: var(--light-green); */
    color: var(--dark-green);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 600;
    display: inline-block;
}

/* Modal Styles */
.modal-content {
    border-radius: 12px;
}

.modal-body img {
    width: 100%;
    border-radius: 8px;
}

.cert-section { text-align: center; }

.cert-title {
    color: var(--dark-green);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}


.cert-box {
    background-color: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    height: 100%;
}

.cert-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-color: var(--primary-green);
}

.cert-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

/* Contact Section */
.contact-section {
    background-color: var(--dark-green);
    color: white;
    padding: 100px 0;
}

.contact-section .section-title h2 {
    color: white;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.contact-section .section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-green);
}

.contact-section .section-title p {
    color: #ffffff;
    margin-top: 1.5rem;
}

.contact-box {
    background-color: rgba(255, 255, 255, 0.185);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s;
}

.contact-box:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.contact-box-icon {
    font-size: 3rem;
    color: var(--light-green);
    margin-bottom: 1.5rem;
}

.contact-box h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.contact-box p {
    text-align: center;
}

.contact-box .phone-numbers {
    display: inline-block;
    text-align: left;
}

.contact-box p {
    color: #ffffff;
    margin: 0;
    line-height: 1.6;
}

.contact-box a {
    color: #ffffff;
    text-decoration: none;
}

.contact-box a:hover {
    color: var(--light-green);
}

/* Footer */
.footer {
    background-color: #1a3a2e;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    color: #9ca3af;
    margin: 0;
}


/* Language Toggle Button */
.lang-toggle {
    background-color: var(--primary-green);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 6px 18px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.lang-toggle:hover {
    background-color: var(--dark-green);
    color: white;
}

.navbar.scrolled .lang-toggle {
    background-color: var(--primary-green);
    color: white;
}

@media (max-width: 991.98px) {
    .lang-toggle {
        margin-top: 0.75rem;
        margin-bottom: 0.5rem;
        margin-left: 0 !important;
    }
}
