/* ? */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9fafb;
    color: #1f2937;
    line-height: 1.6;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #15803d 0%, #14532d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.seed-loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Navbar */
.navbar {
    position: fixed;
    height: 70px;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #459763 0%, #28a158 100%);
    padding: 1rem 2rem;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    padding: 0.75rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.95rem;

}

.nav-logo-circle {
    width: 98px;
    height: 48px;
    background-color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo-image {
    max-height: 60px;
    width: auto;
}


.nav-logo-circle span {
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
}

/* .nav-logo-text h1 {
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
}

.nav-logo-text p {
    color: #bbf7d0;
    font-size: 0.75rem;
} */

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

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #86efac;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background-color: #166534;
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
}

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

.mobile-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    }

.mobile-menu a:hover {
    color: #86efac;
    }


.hero-bg {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* --- Fullscreen Background Image --- */
.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* keeps the image proportionally filled */
    z-index: 0;
    transition: transform 20s ease-in-out;
    /* optional zoom animation */
    filter: blur(1px) brightness(0.9);
}

.hero-bg:hover .hero-bg-img {
    transform: scale(1.05);
}

/* --- Overlay Gradient --- */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(21, 128, 61, 0.5), rgba(20, 83, 45, 0.5));
    /* backdrop-filter: blur(5px);  this adds the subtle blur */
    z-index: 1;
}

/* --- Content Styling --- */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 1.5rem;
    max-width: 800px;
}

/* --- Typography --- */
.hero-title {
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 2rem);
    margin-bottom: 0.5rem;
}

.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    margin-bottom: 2rem;
}

/* --- Buttons --- */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
}

.btn-primary {
    background-color: #16a34a;
    color: white;
}

.btn-secondary {
    background-color: white;
    color: #14532d;
}

.btn-primary:hover {
    background-color: #15803d;
}

.btn-secondary:hover {
    background-color: #e5e5e5;
}


/* .hero-bg {
    position: relative;
    background: linear-gradient(rgba(21, 128, 61, 0.5), rgba(20, 83, 45, 0.5)),
    url("{% static 'images/farmland.jpg' %}") no-repeat center center/cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6rem 1.5rem 4rem;
    height: 100vh;
    width: 100%;
} */


/* .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
} */

/* .leaf {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(7, 205, 79, 0.3);
    border-radius: 0 50% 50% 50%;
    animation: float 25s infinite ease-in-out;
} */

/* .leaf:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.leaf:nth-child(2) {
    left: 30%;
    animation-delay: 3s;
}

.leaf:nth-child(3) {
    left: 50%;
    animation-delay: 6s;
}

.leaf:nth-child(4) {
    left: 70%;
    animation-delay: 9s;
} */

/* .leaf:nth-child(5) {
    left: 90%;
    animation-delay: 12s;
} */

@keyframes float {

    0%,
    100% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.particle {
    position: absolute;
    bottom: 0;
    width: 10px;
    height: 10px;
    background: rgba(187, 247, 208, 0.6);
    border-radius: 50%;
    animation: rise 8s infinite ease-in;
}

@keyframes rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) scale(0);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

.grow-animation {
    animation: growIn 0.8s ease-out;
}

@keyframes growIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.hero-logo {
    width: 128px;
    height: 128px;
    margin: 0 auto 1.5rem;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hero-logo span {
    color: #15803d;
    font-weight: bold;
    font-size: 3rem;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

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

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

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #d1fae5;
    margin-bottom: 1rem;
    font-family: 'Merriweather', serif;
}

.hero-description {
    font-size: 1.125rem;
    color: #bbf7d0;
    margin-bottom: 2rem;
    max-width: 672px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.btn-primary {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background-color: white;
    color: #15803d;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #f0fdf4;
}

/* About Section */
.section {
    padding: 5rem 1.5rem;
}

.section-white {
    background-color: white;
}

.container {
    max-width: 1152px;
    margin: 0 auto;
}

.section-header {
    text-align: center;

    margin-bottom: 2rem;
}

.category-badge {
    display: inline-block;
    background-color: #dcfce7;
    color: #15803d;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.title-underline {
    width: 96px;
    height: 4px;
    background-color: #16a34a;
    margin: 0 auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.875rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background-color: #f0fdf4;
    border-radius: 0.5rem;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: bold;
    color: #16a34a;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #4b5563;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
}

.feature-card.green {
    background-color: #dcfce7;
}

.feature-card.yellow {
    background-color: #fef3c7;
    margin-top: 1.5rem;
}

.feature-card:nth-child(3) {
    margin-top: 0;
}

.feature-card:nth-child(4) {
    margin-top: 1.5rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.feature-desc {
    color: #4b5563;
    font-size: 0.875rem;
}

/* Products Section */
.products-section {
    background: linear-gradient(to bottom, #f9fafb 0%, #f0fdf4 100%);
}

.section-desc {
    font-size: 1.125rem;
    color: #4b5563;
    max-width: 768px;
    margin: 1.5rem auto 0;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-header {
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    color: white;
}

.product-header.green {
    background: linear-gradient(135deg, #4ade80 0%, #16a34a 100%);
}

.product-header.yellow {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.product-header.red {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
}

.product-formula {
    font-size: 2.25rem;
    font-weight: bold;
}

.product-type {
    font-size: 0.875rem;
    opacity: 0.9;
}

.product-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.product-desc {
    color: #4b5563;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.625;
}

.product-specs {
    margin-bottom: 1rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}


.spec-label {
    color: #4b5563;
}

.spec-value {
    font-weight: 600;
    color: #1f2937;
}

.product-footer {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.product-info {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

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

.text-center p {
    color: #4b5563;
    margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #15803d 0%, #14532d 100%);
}

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

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: white;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-icon {
    width: 48px;
    height: 48px;
    background-color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.info-content h4 {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: white;
}

.info-content p {
    color: #d1fae5;
    line-height: 1.75;
}

.info-content a {
    color: #d1fae5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-content a:hover {
    color: #86efac;
}

.contact-form-wrapper {
    border-radius: 1rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.contact-form-wrapper h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: white;
}

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

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #86efac;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-family: 'Poppins', sans-serif;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #bbf7d0;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #86efac;
}

.form-submit {
    width: 100%;
    background-color: #16a34a;
    color: white;
    font-weight: 600;
    padding: 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    background-color: #15803d;
    transform: scale(1.02);
}

/* Footer */
.footer {
    background-color: #111827;
    color: #9ca3af;
    padding: 3rem 1.5rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand h3 {
    color: white;
    font-weight: bold;
    font-size: 1.125rem;
}

.footer-brand p {
    color: #4ade80;
    font-size: 0.75rem;
}

.footer-desc {
    font-size: 0.875rem;
    color: #9ca3af;
    line-height: 1.625;
}

.footer-section h4 {
    color: white;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4ade80;
}

.business-hours {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.hours-row {
    display: flex;
    justify-content: space-between;
}

.hours-open {
    color: #4ade80;
}

.hours-closed {
    color: #ef4444;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #16a34a;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top.show {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top:hover {
    background-color: #15803d;
}

.scroll-top svg {
    width: 24px;
    height: 24px;
}

/* Responsive */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

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

    .hero-title {
        font-size: 4.5rem;
    }

    .hero-subtitle {
        font-size: 1.875rem;
    }

    .hero-buttons {
        flex-direction: row;
    }

    .section-title {
        font-size: 3rem;
    }

    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .nav-links {
        display: none;
    }

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

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* === Agriculture Themed Product Grid === */
.products-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 5rem;
    margin-top: 25px;
    font-family: 'Poppins', sans-serif;
}

.products-header {
    text-align: center;
    color: #14532d;
    /* deep green */
    margin-bottom: 2rem;
}

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

.product-card {
    background-color: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 1rem;
    text-align: center;
}

.product-info h3 {
    color: #166534;
    margin: 0.5rem 0;
}

.product-info p {
    color: #4b5563;
    font-size: 0.9rem;
}

.product-info button {
    margin-top: 0.75rem;
    padding: 0.5rem 1.25rem;
    background-color: #16a34a;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.product-info button:hover {
    background-color: #15803d;
}