/* Basic Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4CAF50; /* Green */
    --primary-dark: #388E3C; /* Darker Green */
    --primary-light: #E8F5E9; /* Light Green for backgrounds */
    --secondary-color: #FFC107; /* Amber/Yellow */
    --text-color: #333;
    --light-text-color: #f8f8f8;
    --bg-light: #f9f9f9;
    --border-color: #ddd;
    --box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    scroll-behavior: smooth;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Removes extra space below images */
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 0.8em;
    color: var(--primary-dark);
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.5em; }

p {
    margin-bottom: 1em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    position: relative;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1em;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-primary-light {
    background-color: var(--primary-light);
}

/* Header */
header {
    background-color: #fff;
    color: var(--text-color);
    padding: 15px 0;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    height: 100px;
    width: 50%;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--primary-dark);
}

.logo img {
    margin-right: 10px;
    border-radius: 5px;
    height: 100px;
    width: 50%;
}

.logo h1 {
    margin: 0;
    font-size: 1.8em;
    color: var(--primary-dark);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none; /* Hidden by default for desktop */
    background: none;
    border: none;
    font-size: 1.8em;
    cursor: pointer;
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
}

.text-link {
    font-weight: 600;
}

.text-link i {
    margin-right: 5px;
}

/* Home Page - Hero Banner */
.hero-banner {
    background: url('https://via.placeholder.com/1920x800?text=Farmland+Banner') no-repeat center center/cover;
    color: var(--light-text-color);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    position: relative;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay for readability */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 0.2em;
    color: var(--light-text-color);
}

.hero-content h2 {
    font-size: 1.8em;
    margin-bottom: 1em;
    color: var(--light-text-color);
    font-weight: 400;
}

.hero-content p {
    font-size: 1.1em;
    margin-bottom: 2em;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 180px;
}

/* Home Page - Highlights */
.highlights {
    padding: 60px 0;
    text-align: center;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.highlight-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
}

.highlight-item i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.highlight-item h3 {
    font-size: 1.3em;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

/* Home Page - Product Preview */
.product-preview {
    text-align: center;
}

.product-preview h2 {
    margin-bottom: 50px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
    text-align: left;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.product-card h3 {
    margin: 15px 15px 5px;
    font-size: 1.3em;
    color: var(--primary-dark);
}

.product-card p {
    margin: 0 15px 15px;
    font-size: 0.95em;
    color: #666;
}

.product-card .btn {
    display: block;
    margin: 0 15px 15px;
    width: calc(100% - 30px);
}

/* About Us */
.about-content {
    display: grid;
    gap: 40px;
}

.company-profile, .mission-vision, .directors-message, .milestones, .infrastructure {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.mission-vision .item {
    margin-bottom: 25px;
}

.mission-vision .item h3 {
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.mission-vision .item h3 i {
    font-size: 1.2em;
    color: var(--primary-color);
    margin-right: 10px;
}

.mission-vision ul {
    list-style-type: none;
    padding-left: 0;
}

.mission-vision ul li {
    margin-bottom: 8px;
}

.milestones ul {
    list-style: none;
    padding-left: 0;
}

.milestones li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.milestones li::before {
    content: '\2022'; /* Bullet point */
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    position: absolute;
    left: 0;
}

.directors-message blockquote {
    font-style: italic;
    margin: 20px 0;
    padding: 15px 20px;
    border-left: 5px solid var(--primary-color);
    background-color: var(--bg-light);
    border-radius: 0 8px 8px 0;
}

.directors-message cite {
    display: block;
    text-align: right;
    margin-top: 10px;
    font-weight: 600;
    color: var(--primary-dark);
}

.infrastructure .image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.infrastructure .image-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: var(--box-shadow);
}

/* Products Section */
.product-category {
    margin-bottom: 60px;
}

.product-category h3 {
    font-size: 1.8em;
    color: var(--primary-dark);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.product-category h3 i {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 1.2em;
}

.product-category .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.product-card-lg {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.product-card-lg:hover {
    transform: translateY(-5px);
}

.product-card-lg img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.product-card-lg h4 {
    margin: 15px 20px 5px;
    font-size: 1.4em;
    color: var(--primary-dark);
}

.product-card-lg p {
    margin: 0 20px 10px;
    font-size: 1em;
    color: #555;
    flex-grow: 1; /* Makes sure description takes available space */
}

.product-card-lg p.application,
.product-card-lg p.packaging {
    font-size: 0.9em;
    color: #777;
}

.product-card-lg .enquire-btn {
    display: block;
    margin: 15px 20px 20px;
    width: calc(100% - 40px);
}


/* Services Section */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item i {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.4em;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

/* Dealer/Distributor Section */
.dealer-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: flex-start;
}

.dealer-info {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.dealer-info h3 {
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.dealer-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.dealer-info ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.dealer-info ul li i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.1em;
}

.dealer-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.dealer-form h3 {
    color: var(--primary-dark);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Roboto', sans-serif;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

/* Gallery Section */
.image-gallery.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.image-gallery.grid-3 img {
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    object-fit: cover;
    height: 250px; /* Consistent height for gallery images */
}

.image-gallery.grid-3 img:hover {
    transform: scale(1.03);
}

.video-gallery.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.video-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    padding: 15px;
    text-align: center;
}

.video-item iframe {
    border-radius: 5px;
    margin-bottom: 10px;
    max-height: 315px; /* Standard YouTube embed height */
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    position: relative;
    font-style: italic;
    text-align: center;
}

.testimonial-card .quote-icon {
    font-size: 2.5em;
    color: var(--primary-light);
    position: absolute;
    top: 15px;
    left: 15px;
    opacity: 0.5;
}

.testimonial-card p {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #444;
}

.testimonial-card cite {
    display: block;
    margin-top: 15px;
    font-weight: 600;
    color: var(--primary-dark);
    font-style: normal;
}

/* Contact Us */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: flex-start;
}

.contact-info, .contact-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.contact-info h3, .contact-form h3 {
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.contact-info p i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 1.1em;
    min-width: 20px; /* Align icons */
}

.contact-info .timings {
    margin-top: 20px;
    font-weight: 600;
}

.google-map {
    margin-top: 25px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.google-map iframe {
    width: 100%;
    height: 350px;
    border: none;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--light-text-color);
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-grid h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.3em;
}

.footer-grid p, .footer-grid ul li {
    font-size: 0.95em;
    line-height: 1.8;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
}

.footer-grid ul li a {
    color: var(--light-text-color);
    transition: color 0.3s ease;
}

.footer-grid ul li a:hover {
    color: var(--secondary-color);
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--secondary-color);
    font-size: 1.1em;
}

.social-icons {
    margin-top: 15px;
}

.social-icons a {
    color: var(--light-text-color);
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.3em; }

    .hero-content h1 { font-size: 3em; }
    .hero-content h2 { font-size: 1.5em; }

    .product-category .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .dealer-content, .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap;
    }

    .logo {
        width: 100%;
        justify-content: center;
        margin-bottom: 15px;
    }

    .logo h1 {
        font-size: 1.5em;
    }

    nav {
        width: 100%;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        display: none; /* Hide menu by default on small screens */
        width: 100%;
        background-color: #fff;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        padding: 10px 0;
    }

    nav ul.active {
        display: flex; /* Show menu when active */
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul li a {
        padding: 10px 0;
        display: block;
    }

    .nav-toggle {
        display: block; /* Show toggle button */
        position: absolute;
        right: 20px;
        top: 25px; /* Adjust as needed based on logo height */
    }

    .hero-banner {
        min-height: 60vh;
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content h2 {
        font-size: 1.2em;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .highlight-grid, .product-grid, .service-grid, .testimonial-grid, .image-gallery, .video-gallery, .footer-grid {
        grid-template-columns: 1fr;
    }

    .infrastructure .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    section {
        padding: 50px 0;
    }

    .section-intro {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.3em;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content h2 {
        font-size: 1em;
    }

    .highlight-item, .product-card, .service-item, .testimonial-card, .dealer-info, .dealer-form, .contact-info, .contact-form {
        padding: 20px;
    }
}