/* --- ROOT VARIABLES --- */
:root {
    --primary: #0b201a;
    --accent: #74c69d;
    --white: #ffffff;
    --dark-bg: #050a08;
    --footer-bg: #0a0a0a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--white);
    overflow-x: hidden;
}

/* --- 1. TORN NAVIGATION --- */
nav {
    background: rgba(11, 32, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 25px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    clip-path: polygon(0 0, 100% 0, 100% 88%, 96% 100%, 88% 90%, 80% 100%, 72% 91%, 64% 100%, 53% 92%, 40% 100%, 28% 92%, 15% 100%, 0 88%);
}

.logo {
    font-weight: 800;
    letter-spacing: 3px;
    font-size: 1.4rem;
    background: linear-gradient(to right, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 35px; }
.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    transition: 0.5s;
    letter-spacing: 1px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent);
    transition: 0.5s;
}

.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* --- 2. HERO & KEN BURNS --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 8%;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.8)), 
                url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    z-index: -1;
    animation: zoomBg 20s infinite alternate;
}

@keyframes zoomBg {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.hero-content p {
    max-width: 500px;
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.7);
}

/* --- 3. GLASS BLUR PULSE BUTTON --- */
.btn-pulse {
    position: relative;
    background: rgba(116, 198, 157, 0.2);
    color: var(--white);
    padding: 20px 50px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 800;
    display: inline-block;
    border: 1px solid rgba(116, 198, 157, 0.5);
    backdrop-filter: blur(12px);
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 3s ease-in-out infinite;
    z-index: 10;
}

.btn-pulse:hover {
    background: var(--accent);
    color: var(--primary);
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 40px rgba(116, 198, 157, 0.6);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- 4. FEATURE CARDS --- */
.features {
    padding: 120px 8%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    background: var(--dark-bg);
}

.card {
    height: 320px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: 0.5s ease;
}

.card-main {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.card i { font-size: 3.5rem; margin-bottom: 15px; filter: drop-shadow(0 0 10px var(--accent)); }
.card h3 { font-size: 1.3rem; margin-bottom: 5px; color: var(--accent); }
.card p { font-size: 0.9rem; color: rgba(255,255,255,0.6); }

.info-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 32, 26, 0.95);
    backdrop-filter: blur(15px);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.card:hover .info-overlay { top: 0; }

/* --- 5. SCROLL REVEAL --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- 6. PROFESSIONAL MULTI-COLUMN FOOTER --- */
.main-footer {
    background: var(--footer-bg);
    color: #ffffff;
    padding: 80px 8% 30px;
    border-top: 2px solid rgba(116, 198, 157, 0.3);
    margin-top: 50px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-col h4 {
    margin-bottom: 25px;
    position: relative;
    font-size: 1.1rem;
}

.footer-col h4::after {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--accent);
    position: absolute;
    bottom: -8px;
    left: 0;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
    color: #bbb;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover { color: var(--accent); padding-left: 5px; }

.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: 0.3s;
}

.social-links img { width: 20px; filter: invert(1); }
.social-links a:hover { background: var(--accent); transform: translateY(-5px); }

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #666;
    font-size: 0.8rem;
}

/* --- 7. WHATSAPP FLOAT --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.whatsapp-float:hover { transform: scale(1.1); }

/* --- 8. MOBILE RESPONSIVENESS (FIXED) --- */
@media (max-width: 768px) {
    nav { 
        clip-path: none !important; 
        height: 80px; 
        background: var(--primary) !important; 
        z-index: 10001 !important; /* Higher than the list */
    }
    
    .menu-toggle { 
        display: flex !important; 
        flex-direction: column; 
        cursor: pointer; 
        z-index: 10002 !important; /* Highest priority to keep it clickable */
    }
    
    .bar { background: #fff; height: 3px; width: 25px; margin: 3px 0; }

    .nav-links {
        position: fixed;
        right: -100%; /* Hidden by default */
        top: 0; /* Align to the very top */
        height: 100vh;
        width: 75%;
        background: #0b201a !important; /* Solid color to prevent see-through issues */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease-in-out;
        z-index: 10000 !important; /* Sits right under the main nav bar */
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        display: flex !important;
    }

    /* This class is added by JS - It makes the menu stay! */
    .nav-links.active { 
        right: 0 !important; 
    }

    .nav-links li { 
        margin: 20px 0; 
        margin-left: 0; 
    }
    
    .main-footer { text-align: center; }
    .footer-col h4::after { left: 50%; transform: translateX(-50%); }
    .social-links { justify-content: center; }
}

/* --- ABOUT & FARMER CARDS --- */
.farmers-section { padding: 80px 8%; display: flex; flex-direction: column; gap: 80px; }
.farmer-card { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.farmer-card.reverse { direction: rtl; }
.farmer-card.reverse .farmer-info { direction: ltr; }
.farmer-card img { width: 100%; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
@media (max-width: 900px) { .farmer-card { grid-template-columns: 1fr; text-align: center; } }
/* --- FOUNDER TITLE STYLING --- */
.farmer-info span {
    color: var(--accent) !important; /* This turns the text Green (#74c69d) */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    display: block;
    margin-top: 5px;
    margin-bottom: 15px;
    opacity: 1 !important; /* Ensures it is fully visible */
}

/* Optional: Make the Name (H3) stand out more next to it */
.farmer-info h3 {
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 2px;
}