@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Montserrat:wght@600;700;800&display=swap');

:root {
    --primary: #0F5F58;
    /* Deep Teal Green - More sophisticated/modern */
    --secondary: #F6AA1C;
    /* Vibrant Golden Amber - High energy/contrast */
    --accent: #BC4B51;
    /* Muted Brick Red for subtle accents */
    --bg-light: #F4F7F6;
    /* Cool Minty Gray */
    --bg-dark: #1A2625;
    /* Dark Jungle Green-Black */
    --text-main: #2C3E50;
    /* Deep Blue-Gray Text */
    --text-muted: #7F8C8D;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.9);
    /* More opaque glass */
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Softer, spread-out shadow */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.7;
    /* Improved readability */
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Click to Copy Utility --- */
.copyable {
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.copyable:hover {
    color: var(--secondary) !important;
    transform: scale(1.02);
}

.copy-feedback {
    position: absolute;
    background: var(--bg-dark);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10;
}

.copy-feedback.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* --- Form Status Messages --- */
#form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    font-weight: 500;
    display: none;
    text-align: center;
    animation: fadeInUp 0.4s ease;
}

.status-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block !important;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block !important;
}


/* --- Header & Nav --- */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--primary);
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info span {
    margin-right: 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
}

.logo {
    font-size: 1.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}



.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary);
    transition: var(--transition);
}

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

.nav-links a:hover:after {
    width: 100%;
}

/* --- Hero Section --- */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('agri_hero_bg.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    padding: 0 10%;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 30px;
    animation: fadeInUp 1.2s ease;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 15px rgba(246, 170, 28, 0.4);
    /* Glow effect */
}

.btn-primary:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* --- Features Section --- */
.section {
    padding: 80px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-title div {
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 0 auto;
    border-radius: 2px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

/* --- Footer --- */
footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: 60px 5% 20px;
}

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

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: var(--secondary);
}

.footer-col p,
.footer-col li {
    color: #ADB5BD;
    margin-bottom: 10px;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Nav Toggle Implied CSS Classes for JS */
/* Mobile Nav Toggle */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0px;
        height: 100vh;
        top: 0;
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        padding-top: 0;
        z-index: 998;
        /* Below toggle button (999 implied?) - Wait, toggle needs to be z-index 1000 */
    }

    .nav-links li {
        opacity: 0;
        margin: 20px 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-main);
    }

    /* Ensure toggle button is above the menu */
    .mobile-menu-btn {
        display: block;
        z-index: 1001;
        /* High z-index to sit on top of menu */
        position: relative;
    }

    .nav-links li {
        opacity: 0;
        margin-bottom: 30px;
    }

    .mobile-menu-btn {
        display: block;
    }
}

.nav-active {
    transform: translateX(0%);
    display: flex !important;
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-active li {
    animation: navLinkFade 0.5s ease forwards 0.3s;
}