﻿/* Home Page Variables */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #388E3C;
    --accent-color: #8BC34A;
    --dark-green: #2E7D32;
    --light-green: #C8E6C9;
    --text-color: #333;
    --light-text: #fff;
    --gray-bg: #f9f9f9;
    --transition-speed: 0.3s;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --card-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
.home-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

.section-title {
    font-size: 2.2rem;
    color: var(--dark-green);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background-color: var(--accent-color);
    }

.section-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Hero Section Variables */
:root {
    --transition-speed: 1.5s; /* Slower transition for better visibility */
}

/* Hero Section Base Styles */
.hero-section {
    height: 100vh;
    width: 100vw;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin: 0;
    padding: 0;
}

/* Background Images Container */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Full-Screen Background Images */
.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity var(--transition-speed) ease-in-out;
    z-index: 1;
    /* Ensure perfect coverage */
    background-attachment: fixed;
    /* Maintain original image quality */
    image-rendering: optimizeQuality;
    /* Prevent any color alteration */
    filter: none !important;
}

    .bg-image.active {
        opacity: 1;
    }

/* Content Styling */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    backdrop-filter: blur(3px);
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2rem, 2.5vw, 2rem); /* reduced overall size */
    margin-bottom: 0.6rem; /* tighter spacing */
    line-height: 1.1; /* compact height */
    font-weight: 700;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5); /* lighter shadow */
}


.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 2rem); /* reduced overall size */
    margin-bottom: 0.6rem; /* tighter spacing */
    line-height: 1.1; /* compact height */
    font-weight: 700;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5); /* lighter shadow */
}


.hero-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    border: 2px solid white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

    .hero-button:hover {
        background-color: white;
        color: #4CAF50;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: white;
    font-size: 0.9rem;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid white;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    margin: 5px auto;
    position: relative;
}

.wheel {
    width: 6px;
    height: 8px;
    background-color: white;
    border-radius: 3px;
    position: absolute;
    top: 5px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(10px);
        opacity: 0.7;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-content {
        width: 90%;
        padding: 1.5rem;
    }

    .bg-image {
        background-attachment: scroll; /* Disable parallax on mobile */
    }
}


  








   

/* Technology Section */
.technology-section {
    padding: 5rem 0;
    background-color: var(--gray-bg);
}

.technology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tech-card {
    background-color: var(--light-text);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    opacity: 0;
    transform: translateY(20px);
}

    .tech-card:nth-child(1) {
        animation: fadeInUp 1s ease 0.2s forwards;
    }

    .tech-card:nth-child(2) {
        animation: fadeInUp 1s ease 0.4s forwards;
    }

    .tech-card:nth-child(3) {
        animation: fadeInUp 1s ease 0.6s forwards;
    }

    .tech-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    }

.tech-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.tech-card:hover .tech-image {
    transform: scale(1.05);
}

.veg-seeds {
    background-image: url('/images/veg-seeds.jpg');
}

.field-crops {
    background-image: url('/images/field-crops.jpg');
}

.consulting {
    background-image: url('/images/consulting.jpg');
}

.tech-content {
    padding: 1.5rem;
}

    .tech-content h3 {
        color: var(--dark-green);
        margin-bottom: 0.5rem;
        font-size: 1.4rem;
    }

    .tech-content p {
        color: #666;
        margin-bottom: 1.5rem;
    }

.tech-button {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: var(--light-text);
    text-decoration: none;
    border-radius: 4px;
    transition: all var(--transition-speed) ease;
}

    .tech-button:hover {
        background-color: var(--secondary-color);
    }

/* Products Section */
.products-section {
    padding: 5rem 0;
    background-color: var(--light-text);
}

.products-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-card {
    background-color: var(--light-text);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) ease;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}

    .product-card:nth-child(1) {
        animation: fadeInUp 1s ease 0.3s forwards;
    }

    .product-card:nth-child(2) {
        animation: fadeInUp 1s ease 0.5s forwards;
    }

    .product-card:nth-child(3) {
        animation: fadeInUp 1s ease 0.7s forwards;
    }

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-color);
    color: var(--light-text);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.product-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-1 {
    background-image: url('/images/tomato-seeds.jpg');
}

.product-2 {
    background-image: url('/images/wheat-seeds.jpg');
}

.product-3 {
    background-image: url('/images/maize-seeds.jpg');
}

.product-info {
    padding: 1.5rem;
}

    .product-info h3 {
        color: var(--dark-green);
        margin-bottom: 0.5rem;
        font-size: 1.3rem;
    }

    .product-info p {
        color: #666;
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }

.product-rating {
    color: #FFC107;
    margin-bottom: 1rem;
}

    .product-rating .far {
        color: #ddd;
    }

.product-button {
    display: inline-block;
    padding: 8px 20px;
    background-color: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    transition: all var(--transition-speed) ease;
}

    .product-button:hover {
        background-color: var(--primary-color);
        color: var(--light-text);
    }

.view-all-container {
    text-align: center;
    margin-top: 3rem;
}

.view-all-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--light-text);
    text-decoration: none;
    border-radius: 30px;
    transition: all var(--transition-speed) ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

    .view-all-button:hover {
        background-color: var(--secondary-color);
        transform: translateY(-3px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background-color: var(--gray-bg);
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonial-card {
    background-color: var(--light-text);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed) ease;
    opacity: 0;
}

    .testimonial-card:nth-child(1) {
        animation: fadeInLeft 1s ease 0.3s forwards;
    }

    .testimonial-card:nth-child(2) {
        animation: fadeInRight 1s ease 0.5s forwards;
    }

    .testimonial-card:hover {
        transform: translateY(-5px);
    }

.quote-icon {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-content p {
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin-right: 1rem;
}

.author-1 {
    background-image: url('/images/farmer-1.jpg');
}

.author-2 {
    background-image: url('/images/farmer-2.jpg');
}

.author-info h4 {
    color: var(--dark-green);
    margin-bottom: 0.2rem;
}

.author-info p {
    color: #777;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    height: 400px;
    background: url('/images/cta-bg.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    overflow: hidden;
}

    .cta-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
    }

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: all var(--transition-speed) ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

    .cta-button.primary {
        background-color: var(--accent-color);
        color: var(--light-text);
    }

    .cta-button.secondary {
        background-color: transparent;
        color: var(--light-text);
        border: 2px solid var(--light-text);
    }

    .cta-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    }

    .cta-button.primary:hover {
        background-color: var(--light-text);
        color: var(--primary-color);
    }

    .cta-button.secondary:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 250px;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .technology-grid, .products-slider, .testimonials-container {
        grid-template-columns: 1fr;
    }
}
