/* --- VARIABLES & RESET --- */
:root {
    --primary: #2E7D32;
    /* Hijau Daun Alami */
    --primary-dark: #1B5E20;
    --accent: #F9A825;
    /* Kuning Emas Bulir Sorgum */
    --text-dark: #2D3436;
    --text-light: #636E72;
    --bg-light: #F7F9F7;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(249, 168, 37, 0.4);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(249, 168, 37, 0.6);
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-header span {
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
}

.section-header .line {
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* --- NAVBAR --- */
nav {
    background: var(--white);
    padding: 24px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1;
    display: inline-block;
}

.nav-links a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* --- HERO SECTION --- */
#hero {
    height: 100vh;
    /* GAMBAR BARU: Landscape Ladang Hijau */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1711530388583-04a3a17be96f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text p {
    color: #eee;
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 40px;
    font-family: 'Lora', serif;
}

/* --- PLANT ANATOMY --- */
#anatomy {
    background: var(--white);
}

.anatomy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.plant-stats .stat-item {
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 4px solid var(--accent);
}

.stat-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.stat-item p {
    margin: 0;
    font-size: 0.95rem;
}

/* Container Image */
.plant-img {
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #eee;
}

.plant-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- ABOUT & PURPOSE --- */
#about {
    background-color: var(--bg-light);
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.purpose-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border-bottom: 4px solid transparent;
}

.purpose-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--primary);
}

.purpose-icon {
    width: 60px;
    height: 60px;
    background: #E8F5E9;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

/* --- 4 PILLARS --- */
#pillars {
    background: var(--primary-dark);
    color: var(--white);
    position: relative;
}

#pillars .section-header h2 {
    color: var(--white);
}

#pillars .section-header span {
    color: var(--accent);
}

#pillars p {
    color: #ccc;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.pillar-item {
    display: flex;
    gap: 20px;
}

.pillar-item i {
    font-size: 2.5rem;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 5px;
}

.pillar-content h3 {
    color: var(--white);
    margin-bottom: 10px;
}

/* --- PRODUCTS --- */
#products {
    background: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
}

.p-img {
    height: 250px;
    width: 100%;
    overflow: hidden;
    background: #ddd;
}

.p-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.product-card:hover .p-img img {
    transform: scale(1.1);
}

.p-content {
    padding: 25px;
    flex-grow: 1;
}

.p-tag {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.p-content ul li {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* --- SWOT ANALYSIS --- */
#swot {
    background: var(--bg-light);
}

.swot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.swot-box {
    padding: 40px;
    border-radius: 15px;
    color: var(--white);
}

.swot-s {
    background: #4CAF50;
}

.swot-w {
    background: #FF9800;
}

.swot-o {
    background: #2196F3;
}

.swot-t {
    background: #f44336;
}

.swot-box h3 {
    color: var(--white);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 15px;
    display: flex;
    justify-content: space-between;
}

.swot-box ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.swot-box ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- TECHNICAL & DAIRY --- */
#technical {
    background: var(--white);
}

.tech-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.dairy-highlight {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #FFD54F;
}

.layout-highlight {
    background: #E8F5E9;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #C8E6C9;
}

/* --- ROADMAP --- */
#roadmap {
    background: #263238;
    color: var(--white);
    padding-bottom: 60px;
}

#roadmap .section-header h2 {
    color: var(--white);
}

.timeline {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 5px 40px;
    /* Space for shadow/scroll */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    margin: 0;
}

/* Hide Scrollbar but keep functionality */
.timeline::-webkit-scrollbar {
    height: 8px;
}

.timeline::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.timeline::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

.timeline-item {
    min-width: 300px;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.timeline-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

/* Decorative number/icon or just simpler styling */
.time-content h3 {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.time-content span {
    font-weight: 700;
    display: inline-block;
    margin-bottom: 10px;
    color: var(--white);
    background: var(--primary);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
}

.time-content p {
    color: #ddd;
    margin: 0;
    font-size: 0.95rem;
}

/* Roadmap Controls */
.roadmap-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.slider-btn {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--accent);
    color: var(--white);
}

.slider-progress {
    width: 200px;
    /* Max width for the bar */
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    /* JS will update this */
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.1s;
}

@media (max-width: 768px) {
    .timeline {
        padding: 20px 20px 40px 20px;
        /* Add side padding */
        gap: 20px;
    }

    .timeline-item {
        min-width: 12%;
        /* Smaller width to show next card clearly */
    }

    .slider-progress {
        width: 120px;
    }

    .roadmap-controls {
        display: flex !important;
        /* Force visibility just in case */
        margin-top: 30px;
    }
}

/* --- FOOTER --- */
footer {
    background: #1a1a1a;
    color: #888;
    padding: 60px 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--accent);
}

.copyright {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 992px) {

    .anatomy-grid,
    .tech-wrapper,
    .swot-grid,
    .pillars-grid,
    .about-cards,
    .footer-top {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    /* Smaller Logo on Mobile */
    .logo img {
        height: 35px;
    }

    /* Mobile Menu - Side Drawer */
    .menu-toggle {
        display: block;
        z-index: 1002;
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 80px 20px 20px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateX(100%);
        z-index: 1001;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 25px;
        text-align: left;
        width: 100%;
    }

    .nav-links a {
        font-size: 1.1rem;
        display: block;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 15px;
    }
}