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

:root {
    --green: #2E7D32;
    --green-light: #43A047;
    --green-pale: #E8F5E9;
    --amber: #F9A825;
    --amber-light: #FFF8E1;
    --dark: #1B2B1C;
    --gray: #555;
    --light: #f9f9f9;
    --white: #ffffff;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    --radius: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
}

/* ── NAVBAR ── */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 6%;
    background: transparent;
    transition: background 0.4s, box-shadow 0.4s;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.09);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--green);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo .logo-icon i {
    color: white;
    font-size: 20px;
}

.nav-logo span {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    transition: color 0.4s;
}

.navbar.scrolled .nav-logo span {
    color: var(--dark);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s;
}

.navbar.scrolled .nav-links a {
    color: var(--dark);
}

.nav-links a:hover {
    color: var(--amber);
}

.nav-cta {
    background: var(--amber);
    color: var(--dark) !important;
    padding: 9px 22px;
    border-radius: 25px;
    font-weight: 600 !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(249, 168, 37, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2.5px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

.navbar.scrolled .hamburger span {
    background: var(--dark);
}

/* ── HERO ── */
#home {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(27, 43, 28, 0.82) 0%, rgba(46, 125, 50, 0.70) 100%),
        url('https://images.unsplash.com/photo-1500937386664-56d1dfef3854?w=1600&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 6% 80px;
}

.hero-content {
    max-width: 780px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(249, 168, 37, 0.18);
    border: 1px solid rgba(249, 168, 37, 0.4);
    color: var(--amber);
    padding: 7px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--amber);
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.18rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 38px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--green);
    color: white;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.97rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--green-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.97rem;
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: white;
}

.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 60px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat .num {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--amber);
}

.stat .label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

/* ── SECTION COMMON ── */
section {
    padding: 90px 6%;
}

.section-tag {
    display: inline-block;
    background: var(--green-pale);
    color: var(--green);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(1.7rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 14px;
    line-height: 1.25;
}

.section-title span {
    color: var(--green);
}

.section-sub {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 580px;
    margin-bottom: 48px;
}

.center {
    text-align: center;
}

.center .section-sub {
    margin-left: auto;
    margin-right: auto;
}

/* ── ABOUT ── */
#about {
    background: var(--light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.about-img img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.about-img .badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: white;
    border-radius: 12px;
    padding: 12px 18px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-img .badge i {
    color: var(--green);
    font-size: 1.4rem;
}

.about-img .badge div {
    font-size: 0.82rem;
}

.about-img .badge strong {
    display: block;
    font-size: 1rem;
    color: var(--dark);
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
}

.mv-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--green);
}

.mv-card h4 {
    font-size: 0.95rem;
    color: var(--green);
    margin-bottom: 6px;
}

.mv-card p {
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.6;
}

/* ── FEATURES ── */
#features {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow);
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--green-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: background 0.3s;
}

.feature-card:hover .feature-icon {
    background: var(--green);
}

.feature-icon i {
    font-size: 1.6rem;
    color: var(--green);
    transition: color 0.3s;
}

.feature-card:hover .feature-icon i {
    color: white;
}

.feature-card h3 {
    font-size: 1.08rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
}

/* ── FARMS ── */
#farms {
    background: var(--light);
}

.farms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.farm-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.farm-card:hover {
    transform: translateY(-6px);
}

.farm-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.farm-card-body {
    padding: 28px;
}

.farm-card-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.farm-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.farm-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    color: var(--gray);
}

.farm-meta i {
    color: var(--green);
}

.farm-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.tag {
    background: var(--green-pale);
    color: var(--green);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
}

.tag.amber {
    background: var(--amber-light);
    color: #B8860B;
}

.farm-crops {
    font-size: 0.88rem;
    color: var(--gray);
}

.farm-crops strong {
    color: var(--dark);
}

/* ── TECHNOLOGY ── */
#technology {
    background: var(--dark);
}

#technology .section-tag {
    background: rgba(249, 168, 37, 0.15);
    color: var(--amber);
}

#technology .section-title {
    color: white;
}

#technology .section-sub {
    color: rgba(255, 255, 255, 0.65);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.tech-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: background 0.3s, transform 0.3s;
}

.tech-card:hover {
    background: rgba(46, 125, 50, 0.25);
    transform: translateY(-6px);
}

.tech-card i {
    font-size: 2.4rem;
    color: var(--amber);
    margin-bottom: 16px;
    display: block;
}

.tech-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
}

.tech-card p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* ── TRAINING ── */
#training {
    background: var(--white);
}

.training-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.training-programs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.program-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--light);
    border-radius: 12px;
    padding: 18px 22px;
    transition: background 0.3s, transform 0.2s;
}

.program-item:hover {
    background: var(--green-pale);
    transform: translateX(6px);
}

.program-item i {
    font-size: 1.3rem;
    color: var(--green);
    width: 24px;
}

.program-item span {
    font-size: 0.95rem;
    font-weight: 500;
}

.audience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
}

.audience-card {
    background: var(--green-pale);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: background 0.3s;
}

.audience-card:hover {
    background: var(--green);
    color: white;
}

.audience-card:hover i,
.audience-card:hover p {
    color: white;
}

.audience-card i {
    font-size: 1.8rem;
    color: var(--green);
    margin-bottom: 8px;
    display: block;
}

.audience-card p {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--dark);
}

/* ── VISIT ── */
#visit {
    background: linear-gradient(135deg, rgba(27, 43, 28, 0.88) 0%, rgba(46, 125, 50, 0.78) 100%),
        url('https://images.unsplash.com/photo-1464226184884-fa280b87c399?w=1600&q=80') center/cover no-repeat;
    text-align: center;
    color: white;
}

#visit .section-tag {
    background: rgba(249, 168, 37, 0.2);
    color: var(--amber);
}

#visit .section-title {
    color: white;
}

#visit .section-sub {
    color: rgba(255, 255, 255, 0.75);
    margin: 0 auto 48px;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.activity-card {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    padding: 28px 20px;
    transition: background 0.3s;
}

.activity-card:hover {
    background: rgba(255, 255, 255, 0.18);
}

.activity-card i {
    font-size: 2rem;
    color: var(--amber);
    margin-bottom: 12px;
    display: block;
}

.activity-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
}

/* ── CONTACT ── */
#contact {
    background: var(--light);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.contact-item .icon {
    width: 44px;
    height: 44px;
    background: var(--green-pale);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item .icon i {
    color: var(--green);
    font-size: 1.1rem;
}

.contact-item h4 {
    font-size: 0.88rem;
    color: var(--gray);
    margin-bottom: 3px;
}

.contact-item p {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark);
}

.contact-form {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.92rem;
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    transition: border-color 0.3s;
    outline: none;
    background: var(--light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--green);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--green);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    background: var(--green-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.35);
}

#formMsg {
    text-align: center;
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 500;
}

#formMsg.success {
    color: var(--green);
}

#formMsg.error {
    color: #c62828;
}

/* ── FOOTER ── */
footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 6% 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-brand .logo-wrap .logo-icon {
    background: var(--green);
}

.footer-brand .logo-wrap span {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: white;
    font-size: 1.1rem;
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.7;
    max-width: 260px;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-socials a:hover {
    background: var(--green);
    color: white;
}

.footer-col h4 {
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.3s;
}

.footer-col ul a:hover {
    color: var(--amber);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.83rem;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom span {
    color: var(--amber);
}

/* ── SCROLL TO TOP ── */
#scrollTop {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--green);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.4);
}

#scrollTop.show {
    opacity: 1;
    transform: translateY(0);
}

#scrollTop:hover {
    background: var(--green-light);
}

/* ── ANIMATIONS ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {

    .about-grid,
    .training-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        gap: 16px;
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        color: var(--dark) !important;
    }

    .hamburger {
        display: flex;
    }

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

    .mission-vision {
        grid-template-columns: 1fr;
    }

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

    section {
        padding: 60px 5%;
    }
}