@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background: #f7faf7;
    color: #1f2933;
    overflow-x: hidden;
}

/* =========================
   NAVBAR
========================= */

.navbar {
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 999;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo span {
    color: #2f8f46;
}

.navbar a {
    position: relative;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 0;
}

.navbar a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: #2f8f46;
    left: 0;
    bottom: 3px;
    transition: 0.3s;
}

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

/* =========================
   HERO
========================= */

.hero {
    min-height: 590px;
    display: flex;
    align-items: center;
    padding: 80px 8%;
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            110deg,
            rgba(12, 54, 25, 0.90),
            rgba(35, 108, 53, 0.62)
        ),
        url("image/db.png");

    background-size: cover;
    background-position: center;
    color: white;
}

/* dekorasi lingkaran */

.hero::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    right: -120px;
    top: -100px;
}

.hero::after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(115, 220, 130, 0.10);
    right: 15%;
    bottom: -130px;
}

.hero > div {
    max-width: 700px;
    position: relative;
    z-index: 2;
    animation: heroEnter 0.9s ease forwards;
}

@keyframes heroEnter {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero .label {
    display: inline-block;
    color: #d5f8db;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    padding: 8px 13px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.08;
    margin: 20px 0;
    letter-spacing: -1px;
}

.hero-text {
    max-width: 550px;
    line-height: 1.8;
    margin-bottom: 35px;
    color: rgba(255,255,255,0.84);
    font-size: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: #55a965;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    transition: 0.3s ease;
}

.btn::after {
    content: "→";
    font-size: 18px;
    transition: 0.3s;
}

.btn:hover {
    background: #69bd78;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.btn:hover::after {
    transform: translateX(5px);
}

/* =========================
   PRODUCTS
========================= */

.products {
    padding: 100px 8%;
    position: relative;
}

.products::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(47, 143, 70, 0.05);
    left: -100px;
    top: 100px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.section-title .label {
    color: #2f8f46;
}

.section-title h2 {
    font-family: "Playfair Display", serif;
    font-size: 42px;
    margin: 10px 0;
    color: #183a21;
}

.section-title p:last-child {
    color: #777;
}

/* =========================
   PRODUCT GRID
========================= */

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    position: relative;
    z-index: 2;
}

.product-card {
    background: rgba(255,255,255,0.92);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 8px 30px rgba(24, 60, 32, 0.07);
    transition: all 0.4s cubic-bezier(.2,.8,.2,1);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(24, 60, 32, 0.14);
}

/* IMAGE */

.product-card img {
    width: 100%;
    height: 235px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

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

/* image wrapper effect */

.product-card {
    isolation: isolate;
}

.product-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 235px;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.02),
        transparent
    );
    pointer-events: none;
}

/* INFO */

.product-info {
    padding: 23px;
}

.product-info h3 {
    font-size: 21px;
    margin-bottom: 8px;
    color: #183a21;
}

.product-info p {
    color: #777;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 22px;
    min-height: 48px;
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.product-bottom strong {
    color: #2f8f46;
    font-size: 15px;
}

.product-bottom button {
    border: none;
    background: #2f8f46;
    color: white;
    padding: 11px 18px;
    border-radius: 9px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: 0.3s;
}

.product-bottom button::after {
    content: " →";
}

.product-bottom button:hover {
    background: #236e35;
    transform: translateX(3px);
    box-shadow: 0 7px 18px rgba(47,143,70,0.25);
}

/* =========================
   MODAL
========================= */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7, 25, 12, 0.68);
    backdrop-filter: blur(8px);
    z-index: 1000;
    padding: 30px 15px;
    overflow-y: auto;
}

.modal-content {
    background: white;
    max-width: 520px;
    margin: 20px auto;
    padding: 32px;
    border-radius: 22px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
    animation: modalEnter 0.3s ease;
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    position: absolute;
    right: 18px;
    top: 15px;
    width: 38px;
    height: 38px;
    border: none;
    background: #f3f5f3;
    border-radius: 50%;
    font-size: 25px;
    cursor: pointer;
    transition: 0.25s;
}

.close:hover {
    background: #e5eee7;
    transform: rotate(90deg);
}

.modal-content h2 {
    font-family: "Playfair Display", serif;
    font-size: 30px;
    margin-bottom: 8px;
    color: #183a21;
}

.selected-product {
    color: #777;
    margin-bottom: 25px;
}

/* =========================
   FORM
========================= */

form label {
    display: block;
    font-weight: 600;
    margin: 17px 0 7px;
    color: #34423a;
}

form input,
form textarea,
form select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    background: #fafcfa;
    transition: 0.25s;
}

form input:focus,
form textarea:focus,
form select:focus {
    border-color: #2f8f46;
    background: white;
    box-shadow: 0 0 0 4px rgba(47,143,70,0.08);
}

textarea {
    height: 95px;
    resize: vertical;
}

small {
    display: block;
    color: #888;
    margin-top: 6px;
}

/* =========================
   PAYMENT
========================= */

.payment-box {
    display: none;
    margin-top: 15px;
    padding: 20px;
    border-radius: 13px;
    background: linear-gradient(
        135deg,
        #eff9f1,
        #f8fcf8
    );
    border: 1px solid #dcecdf;
    text-align: center;
    animation: fadePayment 0.3s ease;
}

@keyframes fadePayment {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payment-box h4 {
    margin-bottom: 10px;
    color: #245d31;
}

.payment-box img {
    width: 200px;
    max-width: 100%;
    margin: 10px auto;
    border-radius: 10px;
}

/* =========================
   TOTAL
========================= */

.total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 25px 0;
    padding: 17px;
    background: #f2f7f3;
    border-radius: 12px;
    border: 1px solid #e1ece3;
}

.total span {
    color: #555;
    font-weight: 500;
}

.total strong {
    color: #2f8f46;
    font-size: 21px;
}

/* =========================
   SUBMIT
========================= */

.submit-btn {
    width: 100%;
    border: none;
    padding: 15px;
    background: #25d366;
    color: white;
    font-family: inherit;
    font-weight: 700;
    font-size: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(37,211,102,0.2);
}

.submit-btn:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(37,211,102,0.3);
}

/* =========================
   FOOTER
========================= */

footer {
    text-align: center;
    padding: 35px 20px;
    background: #17351e;
    color: rgba(255,255,255,0.75);
}

footer p {
    font-size: 14px;
}

/* =========================
   SCROLL ANIMATION
========================= */

.product-card {
    animation: cardAppear 0.7s ease both;
}

.product-card:nth-child(1) {
    animation-delay: 0.1s;
}

.product-card:nth-child(2) {
    animation-delay: 0.2s;
}

.product-card:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        min-height: 520px;
    }
}

@media (max-width: 650px) {

    .navbar {
        padding: 0 5%;
    }

    .logo {
        font-size: 21px;
    }

    .hero {
        min-height: 530px;
        padding: 60px 5%;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-text {
        font-size: 14px;
    }

    .products {
        padding: 70px 5%;
    }

    .section-title h2 {
        font-size: 34px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-card img {
        height: 230px;
    }

    .modal-content {
        padding: 25px 20px;
        border-radius: 18px;
    }

    #total {
    display: inline-block;
    transition: transform 0.2s ease;
}
}