/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Times New Roman', serif;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* ================= NAVBAR ================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: #C3DEB0;
    flex-wrap: wrap;
}

.navbar a {
    text-decoration: none;
    margin: 0 10px;
    color: black;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.navbar a:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* HALAMAN AKTIF */
.navbar a.nav-active {
    background: #8fa96b; 
    color: rgb(0, 0, 0);
    font-weight: bold;
    border-radius: 8px;
}

/* ================= HERO ================= */
.hero {
    background: url('Images/background1.png') no-repeat center/cover;
    min-height: 100vh;
    padding: 50px 80px;
    color: black;
    font-family: 'Times New Roman', Times, serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 50px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 25px;
    line-height: 1.6;
}

/* ================= SECTION ================= */
.section {
    background-color: #ffffff;
    padding: 60px 40px;
}

.section h2 {
    text-align: center;
    font-family: 'Times New Roman', serif;
    font-size: 40px;
    margin-bottom: 80px;
}

.card {
    font-size: 20px;
}

/* ================= FLEX ABOUT ================= */
.flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.flex img {
    width: 400px;
    max-width: 100%;
    border-radius: 20px;
}

.flex p {
    max-width: 350px;
    font-size: 25px;
    line-height: 1.6;
    text-align: left;
    font-family: 'Times New Roman', Times, serif;
}

/* ================= PRODUCTS ================= */
.products {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================= CARD ================= */
.card {
    background: #c8d3b0;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    width: 250px;
    height: 320px;
}

.card img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

/* ================= CONTACT BAWAH ================= */
.contact {
    background: #ffffff;
    padding: 30px 40px;
    font-family: 'Times New Roman', Times, serif;
    display: flex;
    justify-content: center;
}

.contact-container {
    background: #8fa96b;
    border-radius: 18px;
    padding: 28px 32px;
    max-width: 1000px;
    width: 100%;
    display: flex;
    gap: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.contact-info {
    flex: 1;
    padding-right: 30px;
    border-right: 1.5px solid rgba(255, 255, 255, 0.35);
}

.contact-info h2 {
    font-size: 28px;
    font-family: 'Times New Roman', serif;
    color: #1e3010;
    margin: 0 0 10px;
    padding-bottom: 10px;
    border-bottom: 3px solid #4a5e3a;
    display: inline-block;
}

.contact-info p {
    font-size: 15px;
    margin-bottom: 10px;
    line-height: 1.5;
    color: #1e3010;
}

.contact-info i {
    font-size: 16px;
    margin-right: 8px;
    color: #2d4a1a;
}

.contact-info a {
    text-decoration: none;
    color: #1e3010;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-map {
    flex: 1;
    padding-left: 30px;
    display: flex;
    flex-direction: column;
}

.map-label {
    font-family: 'Times New Roman', serif;
    font-size: 14px;
    font-weight: bold;
    color: #1e3010;
    margin: 0 0 10px;
}

.contact-map iframe {
    width: 100%;
    height: 220px;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* ================= PRODUCT PAGE ================= */
.product-page .section {
    padding: 60px 40px;
    text-align: center;
    background: #ffffff;
}

.product-page .section h2 {
    font-family: 'Times New Roman', serif;
    font-size: 40px;
    margin-bottom: 40px;
}

/* ================= SLIDER ================= */
.product-page .slider-outer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin: auto;
}

.product-page .slider {
    position: relative;
    overflow: hidden;
    width: 80%;
    border-radius: 16px;
}

.product-page .slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.product-page .slide {
    min-width: 100%;
}

/* ================= PRODUCT GRID ================= */
.product-page .product-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* ================= PRODUCT CARD ================= */
.product-page .card {
    width: 260px;
    height: 260px;
    background: #aeb99a;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.product-page .card img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 20px;
}

.product-page .card p {
    margin-top: 10px;
    font-family: 'Times New Roman', serif;
    font-size: 16px;
}

.product-page .card:hover {
    border: 3px solid #2b7cff;
    transform: translateY(-5px);
}

/* ================= DOTS ================= */
.product-page .dots {
    margin-top: 20px;
}

.product-page .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: gray;
    border-radius: 50%;
    margin: 5px;
    cursor: pointer;
}

.product-page .dot.active {
    background: black;
}

/* ================= PROCESSED ================= */
.product-page .green {
    background: #E9F5DB;
}

.product-page .product-row {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.product-page .card.white {
    background: white;
    height: auto;
    padding: 20px;
    justify-content: flex-start;
}

.card-name {
    font-size: 17px;
    font-weight: bold;
    margin: 12px 0 4px;
    font-family: 'Times New Roman', serif;
}

.card-desc {
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin: 0 0 8px;
}

.card-price {
    font-size: 16px;
    color: #3b6d11;
    font-weight: bold;
    margin: 0;
}

/* ================= SEEDLING ================= */
.product-page .circle-card {
    width: 200px;
    height: 200px;
    background: #8fa96b;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.product-page .circle-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

/* ================= DETAIL BUTTON ================= */
.detail-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 14px 35px;
    background-color: #4a5e3a;
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-family: 'Times New Roman', serif;
    font-size: 18px;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.detail-btn:hover {
    background-color: #3a4d2c;
}

/* ================= TRAINING PAGE ================= */
.training-page {
    background: #ffffff;
}

.training-section {
    padding: 60px 40px 100px;
    text-align: center;
}

.training-section h2 {
    font-size: 55px;
    font-family: 'Times New Roman', serif;
    margin-bottom: 60px;
}

/* ================= TRAINING SLIDER ================= */
.training-slider-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.training-slider {
    width: 85%;
    overflow: hidden;
}

.training-track {
    display: flex;
    transition: transform 0.5s ease;
}

.training-slide {
    min-width: 100%;
}

.training-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: nowrap;
}

.training-card {
    width: 300px;
    height: 580px;
    border-radius: 25px;
    overflow: hidden;
    flex-shrink: 0;
    background: #c5cfb4;
    transition: 0.3s;
}

.training-card:hover {
    transform: scale(1.03);
}

.training-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================= SLIDER BUTTON ================= */
.training-btn,
.prev-btn,
.next-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid black;
    background: white;
    font-size: 40px;
    cursor: pointer;
    transition: 0.3s;
}

.training-btn:hover,
.prev-btn:hover,
.next-btn:hover {
    background: black;
    color: white;
}

/* ================= KATALOG SECTION ================= */
.katalog-page {
    background: #ffffff;
    padding: 50px 40px;
    font-family: 'Times New Roman', serif;
}

.katalog-inner {
    max-width: 900px;
    margin: auto;
}

.katalog-top {
    text-align: center;
    margin-bottom: 28px;
}

.katalog-label {
    background: #3b6d11;
    color: #c0dd97;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 5px 20px;
    border-radius: 20px;
    display: inline-block;
}

.katalog-heading {
    color: #1e3a0a;
    font-size: 32px;
    font-weight: 700;
    margin-top: 12px;
    letter-spacing: 2px;
}

.katalog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.kit-card {
    background: #4a7a1e;
    border-radius: 16px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kit-item {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.kit-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #c0dd97;
    background: #c0dd97;
}

.kit-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.kit-label {
    color: #f0e84a;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin: 0 0 4px;
}

.kit-text span {
    color: #ffffff;
    font-size: 13px;
    line-height: 1.5;
}

.dapat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px 20px;
    border: 1.5px solid #c0dd97;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dapat-title {
    font-size: 14px;
    font-weight: 700;
    color: #27500a;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c0dd97;
}

.dapat-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.dapat-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #eaf3de;
    border: 1.5px solid #3b6d11;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.dapat-dot i {
    font-size: 11px;
    color: #3b6d11;
}

.dapat-item span {
    font-size: 14px;
    color: #1e3a0a;
    line-height: 1.5;
}

.katalog-banner {
    background: #3b6d11;
    border-radius: 14px;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.banner-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.banner-left i {
    font-size: 28px;
    color: #c0dd97;
}

.banner-left p {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.banner-left strong {
    color: #f0e84a;
    font-size: 16px;
    display: block;
    margin-bottom: 2px;
}

.banner-btn {
    background: #f0e84a;
    color: #27500a;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Times New Roman', serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: background 0.3s;
}

.banner-btn:hover {
    background: #d4cc30;
}

/* ================= AWARD ================= */
.award {
    padding: 40px 60px;
    font-family: 'Times New Roman', serif;
    background-color: #ffffff;
}

.award-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
    margin-bottom: 200px;
    margin-top: 200px;
}

.award-text {
    max-width: 500px;
}

.award-text h2 {
    font-size: 45px;
    margin-top: 0;
    margin-bottom: 10px;
}

.award-text p {
    font-size: 20px;
    line-height: 1.6;
    margin-top: 0;
}

.award img {
    width: 450px;
    max-width: 100%;
    border-radius: 10px;
}

/* ================= MISSION VISION ================= */
.mv-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 50px;
    background-color: #ffffff;
}

.mv-box {
    background: #e5e5e5;
    padding: 25px;
    border-radius: 15px;
    width: 350px;
    text-align: center;
    font-family: 'Times New Roman', Times, serif;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* ================= WHY HYDROPONICS ================= */
.why-section {
    background: #ffffff;
    padding: 1px 0;
}

.why {
    background: #8fa96b;
    margin: 50px;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    font-family: 'Times New Roman', Times, serif;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* ================= CONTACT PAGE ================= */
.contact-page {
    padding: 60px 20px;
    background: #ffffff;
}

.contact-page h2 {
    text-align: center;
    font-size: 50px;
    font-family: 'Times New Roman', serif;
    margin-bottom: 50px;
}

.contact-container-box {
    max-width: 1200px;
    width: 100%;
    background: #c7ddb5;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    margin: auto;
    font-family: 'Times New Roman', serif;
    font-size: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.contact-page-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-form,
.contact-detail {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 18px 20px;
    font-size: 18px;
    border-radius: 12px;
    border: 1px solid #999;
    font-family: 'Times New Roman', serif;
    box-sizing: border-box;
}

.contact-form textarea {
    height: 220px;
    resize: none;
}

.contact-form button {
    width: 220px;
    padding: 16px;
    background: #4b6043;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 22px;
    font-family: 'Times New Roman', serif;
    transition: 0.3s;
}

.contact-form button:hover {
    background: #3d5036;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-detail h3 {
    font-size: 38px;
    margin-bottom: 5px;
}

.contact-detail p {
    font-size: 22px;
    line-height: 1.5;
    word-break: break-word;
    margin: 0;
}

.contact-detail a {
    color: black;
    text-decoration: none;
}

.contact-detail a:hover {
    text-decoration: underline;
}

.contact-detail i {
    margin-right: 10px;
    font-size: 24px;
}

.contact-detail .contact-map {
    margin-top: 10px;
    display: block;
}

.contact-detail .contact-map iframe {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 20px;
    box-shadow: none;
    max-width: 100%;
}

/* ================= FLOATING AI ================= */
.ai-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #4a7a1e;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    user-select: none;
    transition: box-shadow 0.3s;
}

.ai-float:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.ai-float img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    pointer-events: none;
}

/* CHAT BOX */
.ai-chatbox {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 320px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    z-index: 9998;
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Times New Roman', serif;
}

.ai-chatbox.open {
    display: flex;
}

/* HEADER */
.ai-chat-header {
    background: #4a7a1e;
    color: white;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
}

.ai-close {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

/* MESSAGES */
.ai-chat-messages {
    padding: 14px;
    height: 260px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f9fdf5;
}

.ai-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.ai-msg.bot {
    background: #e9f5db;
    color: #1e3a0a;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.ai-msg.user {
    background: #4a7a1e;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.ai-msg.loading {
    background: #e9f5db;
    color: #888;
    align-self: flex-start;
    font-style: italic;
}

/* INPUT */
.ai-chat-input {
    display: flex;
    padding: 10px 12px;
    gap: 8px;
    border-top: 1px solid #ddd;
    background: white;
}

.ai-chat-input input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 20px;
    border: 1px solid #c0dd97;
    font-size: 14px;
    font-family: 'Times New Roman', serif;
    outline: none;
}

.ai-chat-input input:focus {
    border-color: #4a7a1e;
}

.ai-chat-input button {
    background: #4a7a1e;
    color: white;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.ai-chat-input button:hover {
    background: #3a6010;
}

/* ================= RESPONSIVE ================= */
@media screen and (max-width: 768px) {

    .navbar {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 20px;
    }

    .navbar div {
        text-align: center;
    }

    .navbar a {
        display: inline-block;
        margin: 5px 10px;
        font-size: 16px;
    }

    .hero {
        min-height: auto;
        padding: 100px 20px;
        text-align: center;
    }

    .hero h1 {
        font-size: 35px;
    }

    .hero p {
        font-size: 18px;
    }

    .section {
        padding: 50px 20px;
    }

    .section h2 {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .flex {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .flex img {
        width: 100%;
        max-width: 320px;
    }

    .flex p {
        max-width: 100%;
        font-size: 18px;
        text-align: center;
    }

    .product-grid,
    .product-row {
        flex-direction: column;
        align-items: center;
    }

    .product-page .card {
        width: 90%;
        max-width: 300px;
        height: auto;
        padding: 20px;
    }

    .product-page .card img {
        width: 100%;
        max-width: 220px;
        height: 220px;
    }

    .training-container {
        flex-direction: column;
        align-items: center;
    }

    .training-card {
        width: 90%;
        max-width: 320px;
        height: auto;
    }

    .training-slider-wrapper {
        gap: 10px;
    }

    .training-btn,
    .prev-btn,
    .next-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .circle-card {
        width: 220px;
        height: 220px;
    }

    .circle-card img {
        width: 160px;
        height: 160px;
    }

    .award {
        padding: 30px 20px;
    }

    .award-text h2 {
        font-size: 34px;
    }

    .award img {
        width: 100%;
    }

    .award-container {
        margin-top: 40px;
        margin-bottom: 40px;
        gap: 30px;
    }

    .mv-container {
        flex-direction: column;
        align-items: center;
        padding: 30px 20px;
        gap: 20px;
    }

    .mv-box {
        width: 100%;
    }

    .why {
        margin: 20px;
        padding: 20px;
    }

    .contact {
        padding: 20px 15px;
    }

    .contact-container {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .contact-info {
        padding-right: 0;
        border-right: none;
        border-bottom: 1.5px solid rgba(255, 255, 255, 0.35);
        padding-bottom: 20px;
    }

    .contact-info h2 {
        font-size: 24px;
    }

    .contact-info p {
        font-size: 14px;
    }

    .contact-map {
        padding-left: 0;
        width: 100%;
    }

    .contact-map iframe {
        height: 200px;
    }

    /* KATALOG RESPONSIVE */
    .katalog-page {
        padding: 30px 20px;
    }

    .katalog-grid {
        grid-template-columns: 1fr;
    }

    .katalog-heading {
        font-size: 24px;
    }

    .katalog-banner {
        flex-direction: column;
        text-align: center;
    }

    .banner-left {
        flex-direction: column;
        text-align: center;
    }

    .banner-btn {
        width: 100%;
        text-align: center;
    }

    .contact-page {
        padding: 30px 15px;
    }

    .contact-page h2 {
        font-size: 38px;
        margin-bottom: 30px;
    }

    .contact-container-box {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .contact-page-container {
        flex-direction: column;
        gap: 30px;
    }

    .contact-form,
    .contact-detail {
        width: 100%;
        min-width: 100%;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 16px;
        padding: 15px;
    }

    .contact-form textarea {
        height: 180px;
    }

    .contact-form button {
        width: 100%;
        font-size: 20px;
    }

    .contact-detail h3 {
        font-size: 30px;
        text-align: center;
    }

    .contact-detail p {
        font-size: 18px;
        line-height: 1.8;
    }

    .contact-detail i {
        font-size: 20px;
    }

    .contact-detail .contact-map iframe {
        height: 250px;
    }
}