/* 
   AgriFinance Enriched System
   Updated with More Professional Layout & Colors
*/

:root {
    --primary: #10B981;
    --primary-dark: #065F46;
    --primary-deep: #064E3B;
    --secondary: #1E3A8A;
    --accent: #F59E0B;
    --text: #111827;
    --text-light: #4B5563;
    --white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-dark: #0F172A;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background: var(--bg-light);
}

.bg-dark {
    background: var(--bg-dark);
}

.highlight {
    color: var(--primary);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
}

/* Buttons & Elements */
.btn {
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 700;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary-deep);
    color: var(--primary-deep);
}

.btn-header {
    background: var(--primary-deep);
    color: white;
    padding: 10px 20px;
    font-size: 0.9rem;
}

.badge {
    background: #ECFDF5;
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.top-bar {
    background: var(--primary-deep);
    color: white;
    padding: 8px 0;
    font-size: 0.8rem;
    font-weight: 600;
}

.d-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-status {
    background: var(--accent);
    color: var(--primary-deep);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
}

.ms-3 {
    margin-left: 1rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 80px;
    padding: 0 20px;
}

.logo-icon {
    color: var(--primary);
    font-size: 1.5rem;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
}

.logo-text span {
    color: var(--primary);
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

/* Dropdown System */
.nav-item-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    list-style: none;
    border: 1px solid #f0f0f0;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li .nav-link {
    padding: 10px 25px;
    display: block;
    width: 100%;
    border: none;
    font-size: 0.9rem;
}

.dropdown-menu li .nav-link:hover {
    background: #f8fafc;
    color: var(--primary);
}

.dropdown-toggle i {
    font-size: 0.7rem;
    margin-left: 5px;
    transition: 0.3s;
}

.nav-item-dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #F0FDF4 0%, #E0F2FE 100%);
    padding-top: 80px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-stats {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.stat-items {
    display: flex;
    gap: 30px;
}

.stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-txt {
    font-size: 0.85rem;
    color: var(--text-light);
}

.divider {
    width: 1px;
    background: #E5E7EB;
}

/* Vision & ECO */
.check-item {
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    gap: 10px;
    align-items: center;
}

.check-item i {
    color: var(--primary);
}

.concept-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    border-bottom: 5px solid var(--primary);
    text-align: center;
}

.concept-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.eco-card {
    background: white;
    padding: 35px;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid #F1F5F9;
}

.eco-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.eco-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
    width: 60px;
    height: 60px;
    background: #ECFDF5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modules */
.modules-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 50px;
}

.module-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.module-info {
    background: #F8FAFC;
    padding: 30px;
    border-radius: 20px;
    border-left: 4px solid var(--secondary);
}

.module-info h3 {
    margin-bottom: 15px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Investor CTA */
.investor-cta {
    background: var(--primary-deep);
    padding: 70px 40px;
    border-radius: 30px;
    text-align: center;
    color: white;
}

.investor-cta h2 {
    font-size: 2.5rem;
    margin: 20px 0;
    color: white;
}

.invest-perks {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.invest-perks span {
    font-weight: 600;
    display: flex;
    gap: 8px;
    align-items: center;
}

.invest-perks i {
    color: var(--accent);
}

.white-text {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    background: #0F172A;
    color: #94A3B8;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.footer-bottom {
    border-top: 1px solid #1E293B;
    padding-top: 30px;
    margin-top: 50px;
    text-align: center;
}

.logo-text.white {
    color: white;
}

.white {
    color: white;
}

/* Nav Mobile - REFACTORED FOR TOP DROPDOWN */
.nav-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text);
}

.nav-close {
    display: none;
}

@media (max-width: 992px) {
    .section {
        padding: 60px 0;
    }

    .grid-2,
    .module-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .d-none-mobile {
        display: none;
    }

    .top-status {
        display: none;
    }

    .header {
        height: auto;
        background: white !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .navbar {
        height: 70px;
        position: relative;
    }

    .nav-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        background: #f1f5f9;
        color: var(--primary-deep) !important;
        border-radius: 10px;
        font-size: 1.3rem;
        z-index: 1100;
        cursor: pointer;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #f8fafc;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 999;
        border-bottom: 3px solid var(--primary);
    }

    .nav-menu.show {
        max-height: 450px;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
        padding: 18px 0;
        border-bottom: 1px solid #edf2f7;
        color: var(--text);
        display: block;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link.active {
        background: white;
        color: var(--primary);
    }

    .nav-item-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f1f5f9;
        border: none;
        border-radius: 0;
        max-height: 0;
        padding: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-item-dropdown.active .dropdown-menu {
        max-height: 300px;
        padding: 10px 0;
    }

    .dropdown-menu li .nav-link {
        padding: 12px 0 12px 40px;
        text-align: left;
        font-size: 1rem;
    }

    .nav-link.btn-header {
        background: var(--primary);
        color: white;
        margin: 20px auto;
        width: 85%;
        max-width: 300px;
        border-radius: 12px;
        border-bottom: none;
        padding: 15px 0;
    }

    .hero {
        padding-top: 100px;
        height: auto;
        min-height: 100vh;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        margin-left: 0 !important;
        margin-bottom: 10px;
    }

    .hero-stats {
        position: static;
        margin-top: 50px;
        width: 100%;
        margin-bottom: 40px;
    }

    .stat-items {
        justify-content: space-around;
        gap: 15px;
    }

    .investor-cta {
        padding: 50px 25px;
    }

    .investor-cta h2 {
        font-size: 1.8rem;
    }

    .invest-perks {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .stat-items {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .divider {
        width: 50px;
        height: 1px;
        margin: 10px 0;
        background: #E5E7EB;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .stat-num {
        font-size: 1.5rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.85rem;
    }
}