/* --- VARIABLES & RESET --- */
:root {
    --primary: #008236;
    --primary-dark: #005632;
    --primary-light: #00A63E;
    --accent-bg: #DCFCE7;
    --text-dark: #101828;
    --text-body: #4A5565;
    --white: #ffffff;
    --gradient-card: linear-gradient(157deg, #DCFCE7 0%, #D0FAE5 100%);
    --shadow-soft: 0px 4px 20px rgba(0, 0, 0, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; scroll-behavior: smooth; }

body { background: #f8f9fa; color: var(--text-dark); overflow-x: hidden; }

/* --- NAVBAR --- */
.navbar {
    width: 100%; height: 80px; background: var(--white);
    display: flex; justify-content: center; align-items: center;
    position: fixed; top: 0; z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.navbar.scrolled {
    background: var(--white);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    height: 70px;
}
.nav-container {
    width: 90%; max-width: 1200px; display: flex; justify-content: space-between; align-items: center;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--primary-dark); font-weight: 600; font-size: 24px; }
.logo-img { width: 40px; border-radius: 10px; }
.nav-links { display: flex; list-style: none; gap: 30px; position: relative; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-size: 16px; transition: 0.3s; padding: 5px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--text-dark); }
.nav-indicator { position: absolute; bottom: 0; height: 3px; background: var(--primary); border-radius: 2px; transition: all 0.3s ease; }


/* --- HERO SECTION --- */
.hero {
    position: relative; height: 100vh; display: flex; align-items: center; justify-content: center;
    background: url('foto/background.jpg') no-repeat center center/cover; /* Masukkan foto kebun */
    padding-top: 80px;
}
.hero-overlay {
    position: absolute; inset: 0; background: rgba(0, 85, 50, 0.6); z-index: 1;
}
.floating-logo {
    position: absolute; top: 20%; right: 10%; width: 150px; z-index: 2;
    animation: float 6s ease-in-out infinite;
}
.container { width: 90%; max-width: 1200px; position: relative; z-index: 2; margin: 0 auto; }
.hero-content { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }

.hero-text { flex: 1; color: white; min-width: 300px; }
.hero-text h1 { font-size: 64px; font-weight: 800; line-height: 1.1; margin-bottom: 20px; text-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.hero-text p { font-size: 20px; margin-bottom: 30px; line-height: 1.6; max-width: 600px; }
.btn-cta {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary-dark); color: white; padding: 15px 40px;
    border-radius: 14px; font-weight: 500; font-size: 20px; text-decoration: none;
    transition: transform 0.3s;
}
.btn-cta:hover { transform: translateY(-5px); background: #004526; }
.hero-image { flex: 1; display: flex; justify-content: flex-end; }
.hero-image img { width: 400px; animation: float 5s ease-in-out infinite; }

/* --- PRODUCTS SECTION (TAB) --- */
.products { padding: 100px 0; background: #D9D9D9; position: relative; overflow: hidden; }
.section-header { text-align: center; margin-bottom: 50px; }
.badge {
    background: #7AF9BA; color: #016630; padding: 5px 15px; border-radius: 8px;
    display: inline-block; font-weight: 600; font-size: 13px; margin-bottom: 10px;
}
.section-header h2 { font-size: 40px; font-weight: 600; margin-bottom: 15px; color: var(--text-dark); }
.section-header p { font-size: 22px; color: var(--text-body); max-width: 700px; margin: 0 auto; }

/* Tabs Navigation */
.tabs-nav {
    display: flex; justify-content: center; gap: 20px; margin-bottom: 40px; flex-wrap: wrap;
}
.tab-btn {
    background: white; border: 1px solid #B9F8CF; color: var(--primary);
    padding: 10px 20px; border-radius: 8px; cursor: pointer;
    font-size: 14px; font-family: 'Inter', sans-serif; display: flex; align-items: center; gap: 8px;
    transition: 0.3s; box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.tab-btn:hover { border-color: var(--primary); }
.tab-btn.active {
    background: var(--primary-light); color: white; border-color: var(--primary-light);
}

/* Tab Content */
.tab-content-wrapper { position: relative; min-height: 450px; }
.tab-panel {
    display: none; /* Hidden by default */
    background: white; border-radius: 16px; padding: 20px;
    gap: 24px; align-items: stretch; animation: fadeIn 0.5s;
}
.tab-panel.active { display: flex; } /* Show when active */

.panel-details {
    flex: 1; background: white; padding: 30px; border-radius: 16px;
    display: flex; flex-direction: column; justify-content: center;
}
.panel-icon-lg {
    width: 50px; height: 50px; background: var(--accent-bg); border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px;
}
.panel-details h3 { font-size: 30px; font-family: 'Inter', sans-serif; font-weight: 700; margin-bottom: 10px; }
.panel-desc { font-family: 'Inter', sans-serif; font-size: 16px; color: var(--text-body); margin-bottom: 25px; }

.feature-list { list-style: none; margin-bottom: 30px; }
.feature-list li {
    display: flex; align-items: center; gap: 12px; margin-bottom: 15px;
    font-family: 'Inter', sans-serif; font-size: 15px; color: #364153;
}
.check-icon { color: var(--primary-light); font-weight: bold; }

.btn-learn-more {
    background: var(--primary-light); color: white; padding: 12px 20px; text-align: center;
    border-radius: 8px; text-decoration: none; font-family: 'Inter', sans-serif; font-size: 14px;
    align-self: flex-start; transition: 0.3s;
}
.btn-learn-more:hover { background: var(--primary); }

.panel-image {
    flex: 1; background: var(--gradient-card); border-radius: 16px;
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.panel-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.deco-leaf { position: absolute; bottom: -50px; right: -50px; width: 300px; opacity: 0.5; transform: rotate(-170deg); pointer-events: none; }

/* Animations */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- ABOUT SECTION --- */
.about { padding: 100px 0; background: var(--white); }
.about-content { display: flex; align-items: center; gap: 60px; flex-wrap: wrap; }
.about-text { flex: 1; min-width: 300px; text-align: center; }
.about-text .badge { margin-bottom: 15px; }
.about-text h2 { font-size: 36px; font-weight: 600; margin-bottom: 20px; color: var(--text-dark); }
.about-text p { font-family: 'Inter', sans-serif; font-size: 16px; line-height: 1.6; margin-bottom: 15px; color: var(--text-body); }
.btn-primary {
    background: var(--primary); color: white; padding: 12px 24px; border-radius: 8px;
    text-decoration: none; font-family: 'Inter', sans-serif; font-weight: 500; display: inline-block;
    transition: 0.3s; margin-top: 20px;
}
.btn-primary:hover { background: var(--primary-dark); }
.about-image { flex: 1; text-align: center; }
.about-image img { width: 100%; max-width: 500px; border-radius: 16px; box-shadow: var(--shadow-soft); }

/* --- ARTICLES SECTION --- */
.articles { padding: 100px 0; background: var(--accent-bg); }
.articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.article-card {
    background: white; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-soft);
    transition: transform 0.3s;
}
.article-card:hover { transform: translateY(-5px); }
.article-card img { width: 100%; height: 200px; object-fit: cover; }
.article-content { padding: 20px; }
.article-content h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; color: var(--text-dark); }
.article-content p { font-family: 'Inter', sans-serif; font-size: 14px; color: var(--text-body); margin-bottom: 15px; }
.read-more {
    color: var(--primary); text-decoration: none; font-family: 'Inter', sans-serif; font-weight: 500;
    transition: 0.3s;
}
.read-more:hover { color: var(--primary-dark); }

/* --- TESTIMONIALS SECTION --- */
.testimonials { padding: 100px 0; background: var(--white); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.testimonial-card {
    background: white; border-radius: 16px; padding: 30px; box-shadow: var(--shadow-soft);
    text-align: center; transition: transform 0.3s, box-shadow 0.3s;
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.testimonial-card p { font-family: 'Inter', sans-serif; font-size: 16px; color: var(--text-body); margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 15px; }
.testimonial-author img { width: 50px; height: 50px; border-radius: 50%; }
.testimonial-author strong { display: block; color: var(--text-dark); font-weight: 600; }
.testimonial-author span { font-size: 14px; color: var(--text-body); }

/* --- CONTACT SECTION --- */
.contact {
    padding: 100px 0; background: linear-gradient(135deg, #00A63E 0%, #005632 100%);
    color: white; position: relative; overflow: hidden;
}
.contact .container { position: relative; z-index: 2; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 50px; }
.contact-card {
    background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border-radius: 16px;
    padding: 30px; text-align: center; transition: transform 0.3s, box-shadow 0.3s;
}
.contact-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.contact-icon { font-size: 48px; margin-bottom: 20px; }
.contact-card h3 { font-size: 24px; font-weight: 600; margin-bottom: 10px; }
.contact-card p { font-family: 'Inter', sans-serif; margin-bottom: 20px; }


/* --- FOOTER --- */
.footer { background: var(--primary-dark); color: white; padding: 60px 0 20px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 30px; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo .logo-img { width: 40px; border-radius: 10px; }
.footer-logo .logo-text { font-weight: 600; font-size: 24px; }
.footer-links h4, .footer-contact h4, .footer-social h4 { font-size: 18px; margin-bottom: 15px; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: white; text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: var(--accent-bg); }
.footer-contact p { margin-bottom: 5px; font-family: 'Inter', sans-serif; }
.footer-social .social-links { display: flex; gap: 15px; }
.social-link { color: white; text-decoration: none; transition: 0.3s; }
.social-link:hover { color: var(--accent-bg); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; }
.footer-bottom p { font-family: 'Inter', sans-serif; font-size: 14px; }

/* Reveal Animations */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
    backdrop-filter: blur(5px); /* Blur effect */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 600px;
    border-radius: 16px;
    text-align: center;
}

.modal-content h2 {
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Close button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .hero-content { flex-direction: column-reverse; text-align: center; }
    .hero-text { margin-top: 30px; padding: 0 20px; }
    .hero-text h1 { font-size: 40px; }
    .nav-links { display: none; } /* Add hamburger logic if needed */
    .tab-panel.active { flex-direction: column; }
    .panel-image { order: -1; min-height: 250px; }
    .about-content { flex-direction: column; text-align: center; }
    .articles-grid, .testimonials-grid, .contact-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; text-align: center; }
    .contact-grid { gap: 20px; }
    .contact-card { padding: 20px; }

    .modal-content {
        width: 90%;
        margin: 20% auto;
    }
}
