:root {
    --primary-color: #10b981; /* Premium Emerald */
    --primary-dark: #064e3b;
    --secondary-color: #fbbf24;
    --text-dark: #1f2937;
    --text-light: #ffffff;
    --bg-light: #f3f4f6;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: var(--bg-light);
}

.dashboard-body {
    background: linear-gradient(135deg, #064e3b 0%, #10b981 100%);
    color: var(--text-light);
    min-height: 100vh;
}

html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4 {
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; color: var(--primary-color); }
h3 { font-size: 1.5rem; }

.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.mt-4 { margin-top: 4rem; }

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.bg-light { background-color: var(--bg-light); }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* Buttons */
.cta-btn, .cta-btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.cta-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.cta-btn:hover {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.cta-btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.cta-btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    z-index: 1000;
    transition: var(--transition);
}

nav.sticky {
    background-color: var(--primary-dark);
    padding: 15px 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.logo {
    color: var(--text-light);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.btn-nav {
    background-color: var(--secondary-color);
    color: var(--text-dark) !important;
    padding: 8px 20px;
    border-radius: 20px;
}

.btn-nav:hover {
    background-color: var(--text-light);
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--text-light);
    color: var(--text-light);
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    font-family: inherit;
    font-weight: bold;
}

/* Sections & Parallax */
.section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    padding: 0 20px;
}

/* Hero Slideshow */
.hero-slideshow {
    position: relative;
    overflow: hidden;
}

.slideshow-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 6s linear;
    transform: scale(1);
    z-index: 1;
}

.slideshow-bg.active {
    opacity: 1;
    transform: scale(1.08); /* Subtle zoom effect during display */
}

.onboarding-section {
    align-items: flex-start;
    padding-top: 140px;
    padding-bottom: 60px;
    height: auto;
    min-height: 100vh;
}

.onboarding-section .content {
    width: 100%;
}

.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.info-section {
    padding: 100px 0;
}

/* Content Blocks */
.content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.content h2 {
    color: var(--text-light);
    font-size: 3rem;
}

.content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.card {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.card h3 {
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.card h4 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

/* Glassmorphism Class */
.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    color: var(--text-light);
    max-width: 800px;
    margin: 40px auto;
}

/* Dropdown Menu CSS */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    min-width: 600px;
    z-index: 100;
    margin-top: 10px;
    left: -200px;
}
.dropdown:hover .dropdown-content {
    display: block;
}
.glass-card-menu {
    background: rgba(16, 185, 129, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}
.dropdown-content a {
    color: white !important;
    padding: 8px 12px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: var(--transition);
    border-radius: 8px;
}
.dropdown-content a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-dark) !important;
    transform: translateX(5px);
}

/* Nested Dropdown CSS */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-submenu-content {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    margin-top: -1px;
    min-width: 600px;
    z-index: 101;
}

.dropdown-submenu:hover .dropdown-submenu-content {
    display: block;
}

/* Glowing text for Farmula 1 */
.glowing-product-btn {
    animation: text-pulse 1.5s infinite alternate;
    font-weight: 700 !important;
    color: var(--secondary-color) !important;
}

@keyframes text-pulse {
    from { text-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color); }
    to { text-shadow: 0 0 20px var(--secondary-color), 0 0 30px var(--secondary-color); }
}

.page-title {
    text-align: center;
    margin-top: 150px;
    font-size: 3rem;
    color: var(--text-light);
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.card ul {
    list-style: none;
    margin-bottom: 20px;
}

.card ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid var(--secondary-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
}

.team-member h4 {
    margin-bottom: 5px;
}

.team-member p {
    color: #666;
    font-size: 0.9rem;
}

/* Form */
.form-container {
    background-color: rgba(255,255,255,0.95);
    padding: 20px;
    border-radius: 10px;
    max-width: 750px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.responsive-iframe-container {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 600px;
    overflow-y: auto;
    border-radius: 8px;
}

.responsive-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 30px 0;
}

/* Animations */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translate(0, 0);
}

.slide-up { transform: translateY(50px); }
.slide-left { transform: translateX(-50px); }
.slide-right { transform: translateX(50px); }

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Interactive Split Section */
.interactive-split-section {
    padding: 100px 0;
    overflow: hidden;
}

.split-container {
    display: flex;
    gap: 40px;
    position: relative;
    min-height: 500px;
    align-items: stretch;
}

.split-card {
    flex: 1;
    border-radius: 20px;
    padding: 50px 40px;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: default;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.split-card:hover {
    flex: 1.15;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    z-index: 2;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.split-card:hover .card-image {
    opacity: 0.25;
}

.card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 2;
}

/* Problem Card */
.problem-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,240,240,0.95) 100%);
    border: 1px solid #ffebeb;
}
.problem-card h2 { color: #d32f2f; font-size: 2.2rem; }
.problem-card p { color: #555; font-size: 1.1rem; }

.impact-box {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-top: auto;
    position: relative;
    overflow: hidden;
    border: 1px solid #eee;
}

.impact-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #fbc02d, #ff9800);
}

.impact-box h3 { color: #333; margin-bottom: 10px; font-size: 1.3rem; font-weight: 700; }
.impact-box p { color: #666; margin: 0; font-weight: 400; font-size: 1.05rem; line-height: 1.6; }

/* Solution Card */
.solution-card {
    background: linear-gradient(135deg, rgba(241,248,233,0.95) 0%, rgba(255,255,255,0.95) 100%);
    border: 1px solid #e8f5e9;
}
.solution-card h2 { color: var(--primary-color); font-size: 2.2rem; }
.solution-card p { font-size: 1.1rem; }

.glowing-btn {
    margin-top: auto;
    align-self: flex-start;
    box-shadow: 0 0 15px rgba(46, 125, 50, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(46, 125, 50, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0); }
}

/* VS Badge */
.vs-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: var(--text-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 1.2rem;
    z-index: 10;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border: 5px solid var(--bg-light);
    transition: all 0.4s ease;
}

.split-container:hover .vs-badge {
    transform: translate(-50%, -50%) scale(1.15) rotate(15deg);
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

/* Solutions Showcase */
.solutions-showcase {
    padding: 100px 0;
    overflow: hidden;
}

.showcase-block {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 120px;
}

.showcase-block.reverse-layout {
    flex-direction: row-reverse;
}

.showcase-content {
    flex: 1;
}

.showcase-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.block-label {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    background-color: rgba(46, 125, 50, 0.1);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.finance-label {
    background-color: rgba(251, 192, 45, 0.2);
    color: #f57f17;
}

.showcase-title {
    font-size: 2.8rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.showcase-desc {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 30px;
}

/* Farmer Pills */
.feature-pills {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-pill {
    background: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.feature-pill:hover {
    transform: translateX(10px);
}

/* Phone Mockup */
.phone-mockup {
    width: 300px;
    height: 600px;
    background: #222;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2), inset 0 0 10px rgba(255,255,255,0.2);
    position: relative;
    margin: 0 auto;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

/* Finance Dashboard */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-box h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.feature-box p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.dashboard-mockup {
    width: 100%;
    max-width: 500px;
    height: 350px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dash-header {
    background: #f0f0f0;
    padding: 10px 15px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.dash-body {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dash-overlay {
    display: flex;
    gap: 20px;
    background: rgba(255,255,255,0.2);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

/* Responsive Mobile Styles & Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001; /* Above mobile menu */
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-light);
}

@media (max-width: 900px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        gap: 0;
        flex-direction: column;
        background: rgba(6, 78, 59, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        width: 100%;
        text-align: center;
        transition: 0.4s ease-in-out;
        height: 100vh;
        justify-content: center;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        overflow-y: auto;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0 !important;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    /* Mobile Dropdown Fix */
    .dropdown-content {
        position: relative;
        left: 0;
        min-width: 100%;
        box-shadow: none;
        background: transparent;
        border: none;
    }

    .dropdown-content > div {
        flex-direction: column !important;
    }

    .dropdown-submenu .dropdown-submenu-content {
        position: relative;
        left: 0;
        min-width: 100%;
    }

    /* Global Responsive Adjustments */
    .grid-2, .split-container, .showcase-block {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .page-title { font-size: 2.2rem; margin-top: 100px; }

    .glass-card {
        padding: 20px;
        margin: 20px 10px;
    }

    .phone-mockup {
        width: 100%;
        max-width: 300px;
    }

    .showcase-block.reverse-layout {
        flex-direction: column !important;
    }
}

.stat-card {
    background: rgba(255,255,255,0.9);
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 700;
    color: var(--text-dark);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 900px) {
    .showcase-block, .showcase-block.reverse-layout {
        flex-direction: column;
        gap: 40px;
    }
    .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
    
    .nav-links {
        display: none;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item::after {
        left: 21px !important;
    }
    
    .split-container { 
        flex-direction: column; 
    }
    
    .split-card:hover { 
        flex: 1; 
        transform: translateY(-5px); 
    }
    
    .vs-badge { 
        display: none; 
    }
}