/* === General Reset === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* === HEADER & NAVIGATION === */
header {
    background-color: #2e8b57;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Pastikan navbar selalu di atas */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #1e6844;
}

/* === HERO SECTION === */
#hero {
    background: url('hero-bg.jpg') no-repeat center center/cover;
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    color: #ffffff;
    width: 100%;
}

/* Overlay GELAP untuk meningkatkan kontras */
#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5));
    z-index: -1;
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

#hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

#hero .btn {
    background-color: #2e8b57;
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s;
}

#hero .btn:hover {
    background-color: #1e6844;
}

/* === RECOMMENDED PRODUCTS === */
#featured-products {
    padding: 4rem 2rem;
    background-color: #fff;
    text-align: center;
}

#featured-products h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2e8b57;
}

/* FIX: Atur ukuran produk agar tidak terlalu besar */
.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.product {
    background-color: #f4f4f4;
    border-radius: 10px;
    padding: 1rem;
    width: 250px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.product:hover {
    transform: scale(1.05);
}

.product img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.product h3 {
    margin-bottom: 0.5rem;
    color: #2e8b57;
    font-size: 1.2rem;
}

.product p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product a {
    display: inline-block;
    background-color: #2e8b57;
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.product a:hover {
    background-color: #1e6844;
}

/* === ABOUT US SECTION === */
#about {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
    text-align: center;
}

#about h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2e8b57;
}

#about p {
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #555;
}

/* === TESTIMONIALS SECTION === */
#testimonials {
    padding: 4rem 2rem;
    background-color: #fff;
    text-align: center;
}

#testimonials h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2e8b57;
}

.testimonial {
    background-color: #f4f4f4;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.testimonial blockquote {
    margin-bottom: 1rem;
    font-style: italic;
    color: #555;
}

.testimonial cite {
    font-weight: bold;
    color: #2e8b57;
}

/* === CONTACT SECTION === */
#contact {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
    text-align: center;
}

#contact h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2e8b57;
}

/* === FOOTER === */
footer {
    background-color: #2e8b57;
    color: #fff;
    text-align: center;
    padding: 1rem;
}

footer p {
    font-size: 0.875rem;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        text-align: center;
    }

    #hero h1 {
        font-size: 2rem;
    }

    #hero p {
        font-size: 1rem;
    }

    /* Navbar mobile tetap di atas */
    header {
        position: fixed;
        width: 100%;
    }

    .product-list {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    #hero {
        height: 80vh;
    }

    #hero h1 {
        font-size: 1.8rem;
    }

    #hero p {
        font-size: 0.9rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }
}
