:root {
    --primary-green: #508d4e;
    --secondary-green: #1a5319;
    --dark-green: #1ad51d;
    --light-bg: #80af81;
    --text-dark: #2c3e50;
    --bg-color: #d6efd8;
    --btn-color: #f4ce14;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-dark);
    scroll-behavior: smooth;
    background-color: var(--bg-color);
}

/* Modern Navbar */
.navbar {
    position: fixed;
    width: 100%;
    background-color: var(--primary-green);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.navbar-logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

.navbar-logo img:hover {
    transform: scale(1.1);
}

.navbar-links {
    display: flex;
    gap: 30px;
}

.navbar-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--dark-green);
    transition: width 0.3s ease;
}

.navbar-links a:hover::after {
    width: 100%;
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.4s;
}

.navbar-links {
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 5%;
        position: relative;
    }

    .hamburger-menu {
        display: flex;
    }

    .navbar-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--primary-green);
        padding: 1rem 5%;
    }

    .navbar-links.active {
        display: flex;
    }

    .navbar-links a {
        padding: 10px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Hamburger menu animation */
    .hamburger-menu.active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger-menu.active .line2 {
        opacity: 0;
    }

    .hamburger-menu.active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Hero Section with Modern Layout */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url("../../assets/images/Bg.jpeg");
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    padding: 0 5%;
    z-index: 10;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content h1 span {
    color: var(--dark-green);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--btn-color);
    color: var(--secondary-green);
}

.btn-secondary {
    border: 2px solid white;
    color: white;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
/* About Section */

.about-us-modern {
    background-color: var(--bg-color);
    padding: 6rem 0;
}

.about-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 5%;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.about-text {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-green);
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--primary-green);
}

.about-description p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.highlight-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.highlight-icon {
    background-color: var(--primary-green);
    color: white;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 2rem;
}

.highlight-text h4 {
    color: var(--secondary-green);
    margin-bottom: 0.5rem;
}

.about-visual {
    flex: 1;
    position: relative;
}

.visual-grid {
    display: flex;
    flex-wrap: wrap;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
}

.visual-item img {
    width: 400px;
    height: 250px;
    transition: transform 0.4s ease;
    border-radius: 10px;
}

.visual-item:first-child {
    grid-row: span 1;
}

.visual-item img:hover {
    transform: scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
        gap: 2rem;
    }

    .about-text,
    .about-visual {
        flex: 1 0 100%;
    }

    .about-text {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .visual-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Product Section */
.products {
    background: linear-gradient(135deg, var(--bg-color) 0%, #f0f8f0 100%);
    padding: 6rem 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.products .section-title {
    color: var(--secondary-green);
    margin-bottom: 2rem;
    position: relative;
}

.products .section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--primary-green);
}

/* Modern Product Section */
.products-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #7f8c8d;
    line-height: 1.6;
}

.order-info {
    display: block;
    margin-top: 10px;
    font-weight: 600;
    color: #e67e22;
}

/* Product Filters */
.product-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 20px;
    background-color: #f1f2f6;
    border: none;
    border-radius: 30px;
    font-weight: 500;
    color: #34495e;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #e9ecef;
}

.filter-btn.active {
    background-color: #27ae60;
    color: white;
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.3);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Product Card */
.product-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Product Tags */
.product-tags {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tag {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.featured {
    background-color: #8e44ad;
    color: white;
}

.bestseller {
    background-color: #f1c40f;
    color: #2c3e50;
}

.new {
    background-color: #2ecc71;
    color: white;
}

.discount {
    background-color: #e74c3c;
    color: white;
}

/* Product Info */
.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    line-height: 1.3;
}

.product-rating {
    color: #f39c12;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.product-rating span {
    color: #7f8c8d;
    margin-left: 5px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
}

.old-price {
    font-size: 0.9rem;
    color: #95a5a6;
    text-decoration: line-through;
}

.product-description p {
    font-size: 0.9rem;
    color: #7f8c8d;
    line-height: 1.5;
    margin-bottom: 15px;
}

.product-cta {
    margin-top: 15px;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 15px;
    background-color: #25d366;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
}

/* View More Button */
.view-more-container {
    text-align: center;
    margin-top: 20px;
}

.view-all-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    border: 2px solid #27ae60;
    color: #27ae60;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background-color: #27ae60;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .product-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Section Komoditas */
.commodities-modern {
    background: linear-gradient(
        135deg,
        var(--light-bg) 0%,
        var(--bg-color) 100%
    );
    padding: 80px 0;
    font-family: "Inter", "Segoe UI", Roboto, sans-serif;
}

.commodities-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    width: 70%;
    height: 4px;
    bottom: -10px;
    left: 15%;
    background: linear-gradient(
        to right,
        var(--primary-green),
        var(--secondary-green)
    );
    border-radius: 2px;
}

.section-description {
    color: #6c757d;
    max-width: 800px;
    margin: 20px auto;
    line-height: 1.6;
}

.commodities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.commodity-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.commodity-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        145deg,
        transparent 0%,
        rgba(46, 204, 113, 0.1) 50%,
        transparent 100%
    );
    transform: rotate(-45deg);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.commodity-card:hover::before {
    opacity: 1;
}

.commodity-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-green);
}

.commodity-icon {
    font-size: 3.5rem;
    background: linear-gradient(
        to right,
        var(--primary-green),
        var(--secondary-green)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.commodity-card:hover .commodity-icon {
    transform: scale(1.1);
}

.commodity-title {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.commodity-description {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.commodity-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.commodity-list-item {
    background-color: #f1f5f9;
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.commodity-list-item:hover {
    background-color: var(--primary-green);
    color: white;
}

.commodities-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.btn-modern {
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary-modern {
    background: linear-gradient(
        to right,
        var(--primary-green),
        var(--secondary-green)
    );
    color: white;
    border: none;
}

.btn-secondary-modern {
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}

.btn-primary-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3);
}

.btn-secondary-modern:hover {
    background: var(--primary-green);
    transform: translateY(-5px);
    color: white;
}

@media (max-width: 768px) {
    .commodities-grid {
        grid-template-columns: 1fr;
    }

    .commodities-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn-modern {
        width: 100%;
        text-align: center;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 5%;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.service-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        var(--primary-green),
        transparent
    );
    transform: rotate(0deg);
    transition: all 0.6s ease;
    opacity: 0.1;
}

.service-card:hover::before {
    transform: rotate(360deg);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-green);
}

.service-card i {
    font-size: 3.5rem;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease;
}

.service-card:hover i {
    transform: rotate(360deg) scale(1.1);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--secondary-green);
    transition: color 0.4s ease;
}

.service-card p {
    color: var(--text-dark);
    line-height: 1.6;
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.service-card:hover h3 {
    color: var(--primary-green);
}

.service-card:hover p {
    opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 2rem;
    }
}

/* Modern Gallery Section Styles */
.gallery-container {
    background-color: var(--bg-color);
    padding: 6rem 0;
    position: relative;
}

.gallery-title {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--secondary-green);
    position: relative;
    font-size: 2.5rem;
}

.gallery-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--primary-green);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    transform-origin: center;
}

.gallery-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    color: white;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.gallery-overlay p {
    font-size: 1rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.gallery-zoom-btn {
    background-color: white;
    color: var(--secondary-green);
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-zoom-btn:hover {
    background-color: var(--primary-green);
    color: white;
    transform: scale(1.05);
}

/* Modal Styles */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-modal:hover {
    transform: scale(1.2);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .gallery-item img {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 250px;
    }

    .gallery-overlay h3 {
        font-size: 1.2rem;
    }

    .gallery-overlay p {
        font-size: 0.9rem;
    }
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-green);
    padding-bottom: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 1rem;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-green);
}

.footer-section button {
    background-color: var(--primary-green);
    height: 35px;
    cursor: pointer;
}

/* Animasi */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsif */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
    .cta-buttons {
        flex-direction: column;
    }
    .navbar {
        flex-direction: column;
    }
    .navbar-links {
        margin-top: 1rem;
    }
}
