@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --light-sage: #9CB080;
    --moss-green: #618764;
    --forest-green: #2B5748;
    --dark-charcoal: #273338;
    --white: #ffffff;
    --light-bg: #f4f6f3;
}

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
    transition: all .2s linear;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
    overflow-x: hidden;
}

body {
    background-color: var(--light-bg);
    color: var(--dark-charcoal);
}

section {
    padding: 3rem 9%;
}

.heading {
    text-align: center;
    font-size: 3rem;
    color: var(--dark-charcoal);
    padding: 1rem;
    margin-bottom: 2rem;
    background: rgba(156, 176, 128, 0.15);
    border-radius: .5rem;
    text-transform: uppercase;
}

.heading span {
    color: var(--forest-green);
}

.btn {
    display: inline-block;
    margin-top: 1rem;
    border-radius: .5rem;
    background: var(--forest-green);
    color: var(--white);
    padding: .8rem 3rem;
    font-size: 1.7rem;
    cursor: pointer;
    font-weight: 500;
}

.btn:hover {
    background: var(--moss-green);
}

/* Header & Navbar */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: var(--dark-charcoal);
    padding: 2rem 9%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.1);
}

header .logo {
    font-size: 2.5rem;
    color: var(--white);
    font-weight: 700;
}

header .logo span {
    color: var(--light-sage);
}

header .navbar a {
    font-size: 1.7rem;
    padding: 0 1.5rem;
    color: var(--white);
}

header .navbar a:hover {
    color: var(--light-sage);
}

header .icons a {
    font-size: 2.2rem;
    color: var(--white);
    margin-left: 1.5rem;
}

header .icons a:hover {
    color: var(--light-sage);
}

#toggler {
    display: none;
}

header .fa-bars {
    font-size: 2.5rem;
    color: var(--white);
    border-radius: .5rem;
    padding: .5rem 1.5rem;
    cursor: pointer;
    border: .1rem solid rgba(255,255,255,.3);
    display: none;
}

/* Home Section */
.home {
    display: flex;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--light-bg) 60%, var(--light-sage) 100%);
    gap: 2rem;
    padding-top: 10rem;
}

.home .content {
    flex: 1 1 42rem;
}

.home .content h3 {
    font-size: 4.5rem;
    color: var(--dark-charcoal);
    line-height: 1.2;
}

.home .content span {
    font-size: 2.2rem;
    color: var(--moss-green);
    padding: 1rem 0;
    display: block;
    font-weight: 600;
}

.home .content p {
    font-size: 1.5rem;
    color: var(--dark-charcoal);
    padding: 1rem 0;
    line-height: 1.8;
}

.home .gambar {
    flex: 1 1 42rem;
    text-align: center;
}

.home .gambar img {
    width: 100%;
    max-width: 500px;
    border-radius: 1rem;
    box-shadow: 0 1rem 2rem rgba(39, 51, 56, 0.15);
}

/* About Section */
.about .row {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.about .row .image-container {
    flex: 1 1 40rem;
    position: relative;
}

.about .row .image-container img {
    width: 100%;
    border-radius: .5rem;
    box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.1);
}

.about .row .image-container h3 {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    background: var(--dark-charcoal);
    color: var(--white);
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    opacity: 0.9;
}

.about .row .content {
    flex: 1 1 40rem;
}

.about .row .content h3 {
    font-size: 2.8rem;
    color: var(--dark-charcoal);
}

.about .row .content p {
    font-size: 1.4rem;
    color: #555;
    padding: 1rem 0;
    line-height: 1.8;
}

/* Features Container */
.icons-container {
    background: var(--forest-green);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.icons-container .icons {
    background: var(--dark-charcoal);
    border: .1rem solid rgba(255,255,255,.1);
    padding: 2rem;
    display: flex;
    align-items: center;
    border-radius: .5rem;
    gap: 1.5rem;
    flex: 1 1 22rem;
}

.icons-container .icons i {
    font-size: 4rem;
    color: var(--light-sage);
}

.icons-container .icons h3 {
    color: var(--white);
    font-size: 1.7rem;
    padding-bottom: .5rem;
}

.icons-container .icons span {
    color: var(--light-sage);
    font-size: 1.3rem;
}

/* Products Section */
.products .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 2rem;
}

.products .box-container .box {
    text-align: center;
    padding: 2rem;
    border: .1rem solid rgba(39, 51, 56, 0.1);
    border-radius: .5rem;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.05);
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.products .box-container .box .discount {
    position: absolute;
    top: 1rem; left: 1rem;
    padding: .7rem 1rem;
    font-size: 1.4rem;
    color: var(--white);
    background: var(--moss-green);
    z-index: 1;
    border-radius: .5rem;
    font-weight: 600;
}

.products .box-container .box .image {
    position: relative;
    text-align: center;
    padding-top: 2rem;
    overflow: hidden;
}

.products .box-container .box .image img {
    height: 20rem;
    object-fit: contain;
}

.products .box-container .box:hover .image img {
    transform: scale(1.05);
}

.products .box-container .box .image .icons {
    position: absolute;
    bottom: -7rem; left: 0; right: 0;
    display: flex;
    justify-content: center;
}

.products .box-container .box:hover .image .icons {
    bottom: 0;
}

.products .box-container .box .image .icons a {
    height: 4.5rem;
    line-height: 4.5rem;
    font-size: 1.6rem;
    width: 4.5rem;
    background: var(--forest-green);
    color: var(--white);
    margin: .3rem;
}

.products .box-container .box .image .icons a:hover {
    background: var(--dark-charcoal);
}

.products .box-container .box .image .icons .cart-btn {
    border-radius: 0;
    width: auto;
    padding: 0 2rem;
}

.products .box-container .box .content {
    padding: 1.5rem 0;
}

.products .box-container .box .content h3 {
    font-size: 1.8rem;
    color: var(--dark-charcoal);
}

.products .box-container .box .content .price {
    font-size: 2rem;
    color: var(--forest-green);
    font-weight: bold;
    padding-top: 1rem;
}

.products .box-container .box .content .price span {
    font-size: 1.4rem;
    color: #888;
    font-weight: normal;
    text-decoration: line-through;
    margin-left: .5rem;
}

/* Reviews Section */
.review .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 2rem;
}

.review .box-container .box {
    border: .1rem solid rgba(0,0,0,.1);
    border-radius: .5rem;
    background: var(--white);
    padding: 2rem;
    position: relative;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.05);
}

.review .box-container .box .fa-quote-right {
    position: absolute;
    bottom: 2rem; right: 2rem;
    font-size: 4rem;
    color: var(--light-sage);
    opacity: 0.4;
}

.review .box-container .box .stars i {
    color: #f39c12;
    font-size: 1.5rem;
}

.review .box-container .box p {
    color: #555;
    font-size: 1.4rem;
    line-height: 1.6;
    padding: 1.5rem 0;
}

.review .box-container .box .user {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.review .box-container .box .user img {
    height: 5rem;
    width: 5rem;
    border-radius: 50%;
    object-fit: cover;
}

.review .box-container .box .user h3 {
    font-size: 1.6rem;
    color: var(--dark-charcoal);
}

.review .box-container .box .user span {
    font-size: 1.2rem;
    color: var(--moss-green);
}

/* Contact Section */
.contact .row {
    display: flex;
    flex-wrap: wrap-reverse;
    gap: 2rem;
    align-items: center;
}

.contact .row form {
    flex: 1 1 40rem;
    padding: 2rem;
    border: .1rem solid rgba(0,0,0,.1);
    border-radius: .5rem;
    background: var(--white);
}

.contact .row form .box {
    padding: 1rem;
    font-size: 1.6rem;
    color: var(--dark-charcoal);
    text-transform: none;
    border: .1rem solid rgba(0,0,0,.1);
    border-radius: .5rem;
    margin: .7rem 0;
    width: 100%;
}

.contact .row form .box:focus {
    border-color: var(--forest-green);
}

.contact .row form textarea {
    height: 15rem;
    resize: none;
}

.contact .row .image {
    flex: 1 1 40rem;
}

.contact .row .image img {
    width: 100%;
    border-radius: .5rem;
}

/* Footer Section */
.footer {
    background: var(--dark-charcoal);
}

.footer .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 2rem;
}

.footer .box-container .box h3 {
    color: var(--light-sage);
    font-size: 2rem;
    padding: 1rem 0;
}

.footer .box-container .box a {
    display: block;
    color: var(--white);
    font-size: 1.4rem;
    padding: .8rem 0;
}

.footer .box-container .box a:hover {
    color: var(--light-sage);
    padding-left: .5rem;
}

.footer .credit {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 2rem;
    font-size: 1.5rem;
    color: var(--white);
    border-top: .1rem solid rgba(255,255,255,.1);
}

.footer .credit span {
    color: var(--light-sage);
}

/* Responsive Media Queries */
@media (max-width: 991px) {
    html { font-size: 55%; }
    header { padding: 2rem; }
    section { padding: 2rem; }
}

@media (max-width: 768px) {
    header .fa-bars { display: block; }
    header .navbar {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--dark-charcoal);
        border-top: .1rem solid rgba(255,255,255,.2);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }
    
    #toggler:checked ~ .navbar {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    header .navbar a {
        margin: 1.5rem;
        padding: 1.5rem;
        background: rgba(255,255,255,.05);
        border-radius: .5rem;
        display: block;
    }

    .home {
        flex-direction: column;
        padding-top: 12rem;
    }
}

@media (max-width: 450px) {
    html { font-size: 50%; }
}