/*------------------------------------*\
  #VARIABLES
\*------------------------------------*/
:root {
    /* Primary Colors - Based on New Brand Colors */
    --primary: #086a6d;      /* Main teal-green color */
    --primary-dark: #065457; /* Darker shade for hover states */
    --primary-light: #0a8084; /* Lighter shade for accents */

    /* Secondary Colors - Complementary */
    --secondary: #7eb44c;    /* Bright green */
    --secondary-dark: #6a9940; /* Darker shade of secondary */
    --accent: #9bc970;       /* Light green for highlights */

    /* Text & Backgrounds */
    --background: #f8f9fa;   /* Light background */
    --text: #2c3e3f;        /* Dark teal-gray for text */
    --text-light: #5a7778;  /* Lighter text color */
    --white: #ffffff;       
    --gray: #5a665b;        /* Muted green-gray */
    --light-gray: #eef2f2;  /* Very light teal-tinted gray */
    --border-color: #d6e1e1; /* Light teal border */

    /* Add to existing variables */
    --border-radius-sm: 8px;
    --border-radius-md: 15px;
    --border-radius-lg: 25px;
    --spacing-sm: 0.75rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;

    /* Box shadows */
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.1);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
}

/*------------------------------------*\
  #RESET & BASE STYLES
\*------------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
}

/*------------------------------------*\
  #LAYOUT
\*------------------------------------*/
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 6rem 0;
}

/*------------------------------------*\
  #TYPOGRAPHY
\*------------------------------------*/
h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

p {
    margin-bottom: 1rem;
    color: var(--gray);
}

/*------------------------------------*\
  #COMPONENTS
\*------------------------------------*/
/* Buttons & Links */
a, button {
    transition: all 0.25s ease-in-out;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease-out;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.cta-button.primary {
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    color: var(--white);
}

.cta-button.secondary {
    background: var(--white);
    border: 2px solid var(--primary-light);
    color: var(--primary-dark);
    box-shadow: none;
}

.cta-button.secondary:hover {
    background: var(--primary-light);
    color: var(--white);
    border-color: var(--primary-light);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    opacity: 1;
}

/* Combine similar transitions */
.cta-button, .strategy-item, .member, .partner-logo, .social-links a {
    transition: all 0.3s ease;
}

/* Navigation */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    z-index: 1000;
    box-shadow: 0 1px 15px rgba(0,0,0,0.08);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

/* Default logo for desktop */
.logo {
    height: 50px;
    width: auto;
}

.nav-cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.75rem 1.75rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 40px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero {
    margin-top: 70px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/greenField.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 6rem 0;
    text-align: left;
    position: relative;
}
.hero img {
    aspect-ratio: 3 / 2;
    width: 100%;
    height: auto;
}
/* Use @supports for modern browsers that support WebP */
@supports (background-image: url('../images/greenField.webp')) {
    .hero {
        background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/greenField.webp');
        background-size: cover;
        background-position: center;

    }

    .hero img {
        aspect-ratio: 3 / 2;
        width: 100%;
        height: auto;
    }
}

.hero-content {
    max-width: 700px;
    background: rgba(255, 255, 255, 0.78);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    color: var(--text);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.hero p {
    color: var(--gray);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

/* Business Section */
.business {
    background: var(--white);
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    align-items: center;
    margin-top: 3rem;
}

.business-content {
    background: none;
    box-shadow: none;
    border-radius: 0;
}

.business-content h2 {
    text-align: left;
    margin-bottom: 1rem;
}

.business-content p {
    margin-bottom: 1.5rem;
}

.business-content ul {
    margin: 1.5rem 0;
    list-style-position: inside;
    padding-left: 0;
}

.business-content li {
    margin-bottom: 0.75rem;
    color: var(--gray);
    list-style-type: '🌿 ';
}

.business-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Strategy Section */
.strategy {
    background: var(--light-gray);
    text-align: center;
}

.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin: 3rem 0;
}

.strategy-item {
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.strategy-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.strategy-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: drop-shadow(2px 2px 5px rgba(0,0,0,0.1));
}

.strategy-item h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.strategy-item p {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 0;
}

/* Team Section */
.team {
    background: var(--white);
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 3rem 0;
}

.member {
    background: var(--light-gray);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.member:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.member img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 4px solid var(--primary-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.member h3 {
    margin: 0.5rem 0 0.25rem;
    color: var(--primary-dark);
    font-size: 1.3rem;
}

.member p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Partners Section */
.partners {
    background: var(--light-gray);
    text-align: center;
    padding: 4rem 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    align-items: center;
    justify-items: center;
    margin-top: 3rem;
    padding: 2rem;
}

.partner-logo {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1) contrast(1);
    transition: filter 0.3s ease;
}

.partner-logo:hover img {
    filter: brightness(1.05) contrast(1.1);
}

.partner-logo a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.partner-logo a:hover {
    opacity: 0.9;
}

/* Contact Section */
.contact {
    background: var(--white);
    text-align: center;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    margin-top: 3rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.contact-info strong {
    color: var(--primary-dark);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.social-links i {
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer h4 {
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.footer p, .footer a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;

    margin-bottom: 0.5rem;
}

.footer a:last-child {
    margin-bottom: 0;
}

.footer a:hover {
    color: var(--white);
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

/*------------------------------------*\
  #MEDIA QUERIES
\*------------------------------------*/
/* Large devices (992px and below) */
@media (max-width: 992px) {
    .business-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-grid {
       display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;  
    }
    
    .footer-about {
        grid-column: auto;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-content {
        padding: 2rem;
    text-align: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .strategy-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
    }
    
    .footer-about, .footer-contact, .footer-social, .footer-address {
        text-align: center;
    }
    
    .footer-logo {
        margin-left: auto;
        margin-right: auto;
        content: url("../images/AgriTech_Logo_Solo.png");
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .partner-logo {
        height: 100px;
        padding: 1rem;
    }
    
    .logo {
        height: 40px;
        width: 120px;
        object-fit: contain;
        content: url("../images/AgriTech - Logo.png");
        margin: 0.5rem 0;
    }
    
    .main-nav {
        flex-direction: column;
        align-items: center;
        padding: 0.5rem 0;
    }
}

/* Small devices (480px and below) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .strategy-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        justify-content: center;
    }
    
   
    
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .logo {
               width: 160px;
        height: 40px;
        object-fit: contain;
        /* align-items: center; */
        display: flex
;
        align-content: center;
        flex-wrap: wrap;
        justify-content: center;
    }
}