/* CSS Variables for Green Theme */
:root {
    --dark-green: #1b5e20;
    --medium-green: #2e7d32;
    --light-green: #4caf50;
    --vibrant-green: #66bb6a;
    --bright-green: #81c784;
    --accent-green: #a5d6a7;
    --earth-brown: #5d4037;
    --sky-blue: #4fc3f7;
    --ai-blue: var(--light-green);
    --ai-purple: #04270d;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    --gradient: linear-gradient(135deg, var(--dark-green), var(--light-green));
    --gradient-light: linear-gradient(135deg, var(--light-green), var(--bright-green));
    --ai-gradient: linear-gradient(135deg, var(--ai-blue), var(--ai-purple));
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f8fdf8;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.8rem;
    font-weight: 500;
}

p {
    margin-bottom: 1.5rem;
}

img {
    max-width: 100%;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-light);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.btn-ai {
    background: var(--ai-gradient);
}

.btn-ai::before {
    background: linear-gradient(135deg, var(--ai-purple), var(--ai-blue));
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.text-center {
    text-align: center;
}

/* AI Elements */
.ai-pulse {
    display: inline-block;
    position: relative;
}

.ai-pulse::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(41, 98, 255, 0.7);
    animation: ai-pulse 2s infinite;
}

@keyframes ai-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(41, 98, 255, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(41, 98, 255, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(41, 98, 255, 0);
    }
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

header.scrolled {
    background: rgb(249, 250, 249);
    padding: 0.5rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-green);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    vertical-align: middle;
    margin-right: 20px;
    height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-green);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding:  0;
}

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

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

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

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-green);
}

/* Hero Section - Darker Background with Green Filter */
.hero {
    height: 100vh;
    background: 
        linear-gradient(rgba(27, 94, 32, 0.6), rgba(76, 175, 80, 0.4)), 
        url('images/home-page.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: rgb(255, 255, 255);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero .btn {
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Hero Animation Elements */
.hero-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-animation .particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: float 15s infinite linear;
}

.hero-animation .particle:nth-child(1) {
    width: 20px;
    height: 20px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.hero-animation .particle:nth-child(2) {
    width: 15px;
    height: 15px;
    top: 20%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.hero-animation .particle:nth-child(3) {
    width: 25px;
    height: 25px;
    top: 60%;
    left: 15%;
    animation-delay: 4s;
    animation-duration: 22s;
}

.hero-animation .particle:nth-child(4) {
    width: 18px;
    height: 18px;
    top: 80%;
    left: 70%;
    animation-delay: 6s;
    animation-duration: 19s;
}

.hero-animation .particle:nth-child(5) {
    width: 22px;
    height: 22px;
    top: 40%;
    left: 85%;
    animation-delay: 8s;
    animation-duration: 21s;
}

.hero-animation .particle:nth-child(6) {
    width: 17px;
    height: 17px;
    top: 30%;
    left: 25%;
    animation-delay: 10s;
    animation-duration: 17s;
}

.hero-animation .particle:nth-child(7) {
    width: 19px;
    height: 19px;
    top: 70%;
    left: 40%;
    animation-delay: 12s;
    animation-duration: 23s;
}

.hero-animation .particle:nth-child(8) {
    width: 21px;
    height: 21px;
    top: 50%;
    left: 60%;
    animation-delay: 14s;
    animation-duration: 20s;
}

.hero-animation .particle:nth-child(9) {
    width: 16px;
    height: 16px;
    top: 25%;
    left: 50%;
    animation-delay: 16s;
    animation-duration: 18s;
}

.hero-animation .particle:nth-child(10) {
    width: 23px;
    height: 23px;
    top: 65%;
    left: 20%;
    animation-delay: 18s;
    animation-duration: 24s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-1000%) rotate(360deg);
        opacity: 0;
    }
}

/* AI Chat Assistant */
.ai-assistant {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--ai-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(183, 236, 195);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition);
}

.ai-assistant:hover {
    transform: scale(1.1);
}

.ai-chat-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 450px;
    background: rgb(159, 227, 167);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
}

.ai-chat-container.active {
    display: flex;
}

.ai-chat-header {
    background: var(--ai-gradient);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-chat-close {
    cursor: pointer;
    font-size: 1.2rem;
}

.ai-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-message {
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    font-size: 0.9rem;
}

.ai-message.bot {
    background: #f0f0f0;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.ai-message.user {
    background: var(--ai-gradient);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.ai-chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #eee;
}

.ai-chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

.ai-chat-input button {
    background: var(--ai-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    cursor: pointer;
}

/* About Section - Darker Background */
.about {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3)),
                url('images/about-us.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    color: white;
    /* Ensure the section has proper dimensions */
    width: 100%;
    min-height: 100vh; /* or set a specific height */
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0.1;
    z-index: 1;
    transition: var(--transition);
}

.about-image:hover::before {
    opacity: 0.1;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

/* About Animation */
.about-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.about-animation .leaf {
    position: absolute;
    width: 40px;
    height: 40px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffffff"><path d="M17 8C8 10 5.9 16.17 3.82 21.34l-.25.66.82.47L12 23l7.41-1.53.82-.47-.25-.66C18.1 16.17 16 10 17 8z"/></svg>');
    background-size: contain;
    opacity: 0;
    transition: opacity 0.5s;
}

.about:hover .about-animation .leaf {
    opacity: 0.7;
    animation: leaf-float 8s infinite linear;
}

.about-animation .leaf:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.about-animation .leaf:nth-child(2) {
    top: 20%;
    left: 80%;
    animation-delay: 1s;
}

.about-animation .leaf:nth-child(3) {
    top: 60%;
    left: 10%;
    animation-delay: 2s;
}

.about-animation .leaf:nth-child(4) {
    top: 80%;
    left: 75%;
    animation-delay: 3s;
}

.about-animation .leaf:nth-child(5) {
    top: 30%;
    left: 40%;
    animation-delay: 4s;
}

.about-animation .leaf:nth-child(6) {
    top: 70%;
    left: 60%;
    animation-delay: 5s;
}

@keyframes leaf-float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
    100% {
        transform: translateY(0) rotate(360deg);
    }
}

/* AI Features Section - Darker Background */
.ai-features {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.2)), 
                url('https://images.unsplash.com/photo-1555255707-c07966088b7b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1932&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    min-height: 100vh; /* Ensure it covers full viewport height */
    width: 100%;
    position: relative;
}

/* Alternative approach for better control */
.ai-features {
    position: relative;
    color: white;
    width: 100%;
    min-height: 100vh;
}

.ai-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.2)),
        url('https://images.unsplash.com/photo-1555255707-c07966088b7b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1932&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
}

.ai-features-content {
    position: relative;
    z-index: 1;
}

.ai-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
}

.ai-feature-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(76, 175, 80, 0.2);
    text-align: center;
    color: #333;
}

.ai-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--ai-gradient);
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.ai-feature-card:hover::before {
    opacity: 0.05;
}

.ai-feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--ai-blue);
}

.ai-feature-icon {
    font-size: 3.5rem;
    color: var(--ai-blue);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.ai-feature-card:hover .ai-feature-icon {
    transform: scale(1.2) rotate(5deg);
    color: var(--ai-purple);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ai-features {
        background-attachment: scroll; /* Better performance on mobile */
    }
    
    .ai-features-grid {
        padding: 2rem 1rem;
        grid-template-columns: 1fr;
    }
}

/* AI Features Animation */
.ai-features-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.ai-features-animation .data-node {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--ai-blue);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.5s;
}

.ai-features:hover .ai-features-animation .data-node {
    opacity: 0.7;
    animation: data-flow 6s infinite linear;
}

.ai-features-animation .data-node:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.ai-features-animation .data-node:nth-child(2) {
    top: 20%;
    left: 80%;
    animation-delay: 1s;
}

.ai-features-animation .data-node:nth-child(3) {
    top: 60%;
    left: 15%;
    animation-delay: 2s;
}

.ai-features-animation .data-node:nth-child(4) {
    top: 80%;
    left: 70%;
    animation-delay: 3s;
}

.ai-features-animation .data-node:nth-child(5) {
    top: 40%;
    left: 30%;
    animation-delay: 4s;
}

.ai-features-animation .data-node:nth-child(6) {
    top: 70%;
    left: 50%;
    animation-delay: 5s;
}

@keyframes data-flow {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 0 0 rgba(41, 98, 255, 0.7);
    }
    50% {
        transform: translateY(-20px) scale(1.5);
        box-shadow: 0 0 0 10px rgba(41, 98, 255, 0);
    }
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 0 0 rgba(41, 98, 255, 0);
    }
}

/* Services Section - Darker Background */
.services {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3)), 
                url('https://images.unsplash.com/photo-1574943320219-553eb213f72d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(76, 175, 80, 0.2);
    color: #333;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-light);
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--light-green);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--dark-green);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
    color: var(--light-green);
}

.service-features {
    margin: 1.5rem 0;
}

.service-feature {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.service-card:hover .service-feature {
    transform: translateX(10px);
}

.service-feature i {
    color: var(--medium-green);
    margin-right: 0.8rem;
    font-size: 1.2rem;
    transition: var(--transition);
}

.service-card:hover .service-feature i {
    color: var(--light-green);
    transform: scale(1.2);
}

/* Services Animation */
.services-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.services-animation .water-drop {
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--sky-blue);
    border-radius: 50% 50% 50% 0;
    opacity: 0;
    transition: opacity 0.5s;
}

.services:hover .services-animation .water-drop {
    opacity: 0.7;
    animation: water-drip 5s infinite linear;
}

.services-animation .water-drop:nth-child(1) {
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.services-animation .water-drop:nth-child(2) {
    top: 30%;
    left: 80%;
    animation-delay: 1s;
}

.services-animation .water-drop:nth-child(3) {
    top: 70%;
    left: 10%;
    animation-delay: 2s;
}

.services-animation .water-drop:nth-child(4) {
    top: 85%;
    left: 75%;
    animation-delay: 3s;
}

.services-animation .water-drop:nth-child(5) {
    top: 40%;
    left: 50%;
    animation-delay: 4s;
}

.services-animation .water-drop:nth-child(6) {
    top: 60%;
    left: 30%;
    animation-delay: 5s;
}

@keyframes water-drip {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(30px) scale(0.8);
    }
    100% {
        transform: translateY(60px) scale(0);
    }
}

/* Disease Detection Section */
.disease-detection {
    padding: 100px 0;
    background: url('images/Stawberry\ Farm.png') no-repeat center center/cover;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh; /* Ensure full viewport coverage */
    width: 100%;
}

/* Alternative: Using pseudo-element for better control */
.disease-detection {
    padding: 100px 0;
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

.disease-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.disease-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.disease-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.disease-image:hover img {
    transform: scale(1.05);
}

.disease-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0.2;
    z-index: 1;
    transition: var(--transition);
}

.disease-image:hover::before {
    opacity: 0;
}

.disease-text h2 {
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.disease-text p {
    color: white;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.5;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.disease-text ul {
    color: white;
    margin-bottom: 20px;
    line-height: 1.5;
    opacity: 0.9;
}

.disease-list {
    list-style: none;
    margin: 20px 0;
}

.disease-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.disease-list i {
    color: white;
    margin-right: 10px;
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Add overlay for better text readability */
.disease-detection::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay */
    z-index: 0;
}

.disease-content {
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .disease-detection {
        padding: 60px 0;
        background-attachment: scroll; /* Better mobile performance */
        min-height: auto;
    }
    
    .disease-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }
    
    .disease-text h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .disease-detection {
        padding: 40px 0;
    }
    
    .disease-content {
        gap: 20px;
    }
}


/* Contact Form Section */
.contact-form-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.4)), 
                url('images/contact.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
}

.contact-container {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    background: rgba(126, 159, 129, 0.9);
    padding: 2rem;
    border-radius: 15px;
    color: white;
}

.contact-details {
    margin-top: 2rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-detail i {
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 30px;
}

.form-container {
    flex: 2;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-control {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: white;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--light-green);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Contact Animation */
.contact-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.contact-animation .message {
    position: absolute;
    width: 30px;
    height: 30px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFFFFF"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>');
    background-size: contain;
    opacity: 0;
    transition: opacity 0.5s;
}

.contact-form-section:hover .contact-animation .message {
    opacity: 0.7;
    animation: message-fly 8s infinite linear;
}

.contact-animation .message:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.contact-animation .message:nth-child(2) {
    top: 20%;
    left: 80%;
    animation-delay: 2s;
}

.contact-animation .message:nth-child(3) {
    top: 60%;
    left: 15%;
    animation-delay: 4s;
}

.contact-animation .message:nth-child(4) {
    top: 80%;
    left: 75%;
    animation-delay: 6s;
}

.contact-animation .message:nth-child(5) {
    top: 40%;
    left: 50%;
    animation-delay: 1s;
}

.contact-animation .message:nth-child(6) {
    top: 70%;
    left: 30%;
    animation-delay: 3s;
}

@keyframes message-fly {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }
    25% {
        transform: translateX(100px) translateY(-50px) rotate(90deg);
    }
    50% {
        transform: translateX(0) translateY(-100px) rotate(180deg);
    }
    75% {
        transform: translateX(-100px) translateY(-50px) rotate(270deg);
    }
    100% {
        transform: translateX(0) translateY(0) rotate(360deg);
    }
}

/* Footer */
footer {
    background: var(--dark-green);
    color: rgb(255, 255, 255);
    padding: 2rem 0 1rem 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 1rem;
    align-items: start;
}

.footer-column h3 {
    color: var(--accent-green);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-links li:hover {
    transform: translateX(5px);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-green);
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}
   

/* Service Card Backgrounds */
.service-card:nth-child(1) {
    background: linear-gradient(135deg, #e0f7fa 60%, #b2dfdb 100%);
}
.service-card:nth-child(2) {
    background: linear-gradient(135deg, #fffde7 60%, #ffe082 100%);
}
.service-card:nth-child(3) {
    background: linear-gradient(135deg, #f3e5f5 60%, #ce93d8 100%);
}

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

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text, .about-image {
        flex: none;
        width: 100%;
    }
    
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 0.8rem 0;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .ai-chat-container {
        width: 300px;
        height: 400px;
        right: 20px;
        bottom: 90px;
    }
    
    footer {
        min-height: 0;
        padding: 1.5rem 0 1rem;
    }
    
    .footer-content {
        margin-bottom: 0.5rem;
        gap: 1rem;
    }
}
    
    .footer-content {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 3rem 0;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-chat-container {
        width: calc(100% - 40px);
        right: 20px;
    }
    
    footer {
        padding: 1rem 0 0.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
}
/* AI Feature Card Backgrounds */
.ai-feature-card:nth-child(1) {
    background: linear-gradient(135deg, #e3fcec 60%, #b2f7ef 100%);
}
.ai-feature-card:nth-child(2) {
    background: linear-gradient(135deg, #fffbe7 60%, #ffe29a 100%);
}
.ai-feature-card:nth-child(3) {
    background: linear-gradient(135deg, #f3e7fa 60%, #cbb4d4 100%);
}
/* Farming Solutions Section Background */
.farming-solutions {
    background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.15)),
        url("https://static.vecteezy.com/system/resources/previews/055/091/501/large_2x/lush-green-rice-paddy-field-with-a-forest-background-photo.jpeg ");
      
    background-size:auto;
    background-position: center;
    background-attachment:fixed;
    color: #333;
}
/* Farming Solution Card Backgrounds */
.solution-card:nth-child(1) {
    background: linear-gradient(135deg, #e8f5e9 60%, #b2dfdb 100%);
}
.solution-card:nth-child(2) {
    background: linear-gradient(135deg, #fffde7 60%, #ffe082 100%);
}
.solution-card:nth-child(3) {
    background: linear-gradient(135deg, #f3e5f5 60%, #ce93d8 100%);
}
.solution-card:nth-child(4) {
    background: linear-gradient(135deg, #e1f5fe 60%, #81d4fa 100%);
}
/* Interactive AI Demo Section Background */
.demo-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.4)),
        url('https://static.vecteezy.com/system/resources/previews/031/547/198/large_2x/a-panoramic-view-of-a-lush-green-farm-with-rows-of-crops-stretching-into-the-distance-showcasing-the-vastness-and-productivity-of-modern-agriculture-generative-ai-photo.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
}
/* Fix anchor navigation offset for fixed header */
:target {
    scroll-margin-top: 90px;
}

@media (max-width: 768px) {
    :target {
        scroll-margin-top: 70px;
    }
}
/* Fix Farming Solutions Section Background and Content Layout */
.farming-solutions {
    background: linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.09)),
        url("https://static.vecteezy.com/system/resources/previews/055/091/501/large_2x/lush-green-rice-paddy-field-with-a-forest-background-photo.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #333;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.farming-solutions .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(177, 244, 169, 0.92);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 3rem 2rem;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 992px) {
    .farming-solutions {
        min-height: unset;
        padding: 3rem 0;
        background-attachment: scroll;
    }
    .farming-solutions .container {
        padding: 2rem 1rem;
    }
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}