
/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
@import url('https://fonts.googleapis.com/css2?display=swap&family=Space+Grotesk:wght@400;500;700&family=Work+Sans:wght@400;500;600;700');

:root {
    /* Brand Colors */
    --primary-green: #1d8637; /* Deep Agricultural Green */
    --primary-green-hover: #156b2a;
    --secondary-green: #28a745; /* Vibrant Green */
    --dark-green: #0f3d1a;
    --light-green: #e9f2eb;
    --orange-accent: #fd7e14; /* Saffron Accent */
    --blue-accent: #007bff;
    
    /* Text Colors */
    --text-dark: #1a2e22;
    --text-muted: #6c757d;
    --text-light: #f8f9fa;
    
    /* Backgrounds */
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-dark: #1c1c1c;

    /* Fonts */
    --font-heading: "Space Grotesk", sans-serif;
    --font-body: "Work Sans", sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
.top-bar {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    font-size: 0.9rem;
    position: relative;
    z-index: 1000;
}

.navbar {
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-brand span {
    font-family: var(--font-heading);
    font-weight: 700;
    background: linear-gradient(90deg, #ff9933 0%, var(--primary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 10px;
    font-size: 1.25rem;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    margin: 0 10px;
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-green) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.btn-quote {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
    border: none;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(29, 134, 55, 0.3);
    transition: all 0.3s ease;
}

.btn-quote:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 134, 55, 0.4);
    color: white;
    background: linear-gradient(135deg, var(--secondary-green), var(--primary-green));
}

/* =========================================
   3. HERO SECTIONS
   ========================================= */
/* Hero Carousel */
.hero-carousel-wrapper {
    height: 85vh; /* Responsive height */
    min-height: 600px;
    position: relative;
    background-color: var(--dark-green);
}

.hero-slide {
    position: relative;
}

.hero-slide img {
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 61, 26, 0.85), rgba(15, 61, 26, 0.4), rgba(0,0,0,0.1));
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
    bottom: 0;
    top: 0;
    padding-bottom: 3rem;
    left: 0;
    right: 0;
}

/* Carousel Indicators */
.carousel-indicators {
    margin-bottom: 2rem;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: var(--orange-accent);
    opacity: 0.5;
    border: none;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    opacity: 1;
    transform: scale(1.2);
    background-color: var(--orange-accent);
}

/* Hero Content Animations */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-badge, .animate-title, .animate-desc, .animate-btn {
    opacity: 0; /* Start hidden */
}

.carousel-item.active .animate-badge {
    animation: slideUpFade 0.8s ease forwards 0.2s;
}
.carousel-item.active .animate-title {
    animation: slideUpFade 0.8s ease forwards 0.4s;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.carousel-item.active .animate-desc {
    animation: slideUpFade 0.8s ease forwards 0.6s;
}
.carousel-item.active .animate-btn {
    animation: slideUpFade 0.8s ease forwards 0.8s;
}

/* Inner Page Hero (About, Contact, etc.) */
.hero-section-inner {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #1d8637, #0f3d1a);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section-inner::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, 30%);
}

.breadcrumb-nav {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    display: inline-block;
    backdrop-filter: blur(5px);
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--orange-accent);
    font-weight: 600;
}

/* =========================================
   4. COMMON COMPONENTS
   ========================================= */
/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    display: inline-block;
    position: relative;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--orange-accent));
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Buttons */
.btn-primary-custom {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 134, 55, 0.3);
    color: white;
}

/* Cards (General) */
.custom-card {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    height: 100%;
    overflow: hidden;
}

.custom-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* =========================================
   5. HOME PAGE SECTIONS
   ========================================= */
/* Dark Elements Section */
.elements-section {
    background-color: #1a1a1a;
    padding: 80px 0;
    color: white;
    position: relative;
}

.element-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.element-card:hover {
    border-color: var(--primary-green);
    background: rgba(255,255,255,0.08);
}

.element-card img {
    height: 100%;
    min-height: 200px;
    object-fit: cover;
}

.element-card .card-body {
    padding: 2rem;
}

/* Authorized Dealer (Glassmorphism) */
.authorized-dealer-section {
    padding: 100px 0;
    background: url('https://www.transparenttextures.com/patterns/cubes.png'), linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.authorized-dealer-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(253, 126, 20, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.dealer-badge {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-radius: 24px;
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.dealer-badge:hover {
    transform: scale(1.02);
}

.dealer-logo {
    max-width: 200px;
    margin: 20px 0;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.1));
}

/* Why Choose Us */
.feature-box {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: 100%;
    transition: transform 0.3s ease;
    border-left: 4px solid var(--primary-green);
}

.feature-box:hover {
    transform: translateX(10px);
    background: var(--light-green);
}

.feature-box i {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
    display: block;
}

/* Stats */
.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--orange-accent);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-green);
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* Testimonials (Marquee) */
.marquee-wrapper {
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
    background: var(--bg-light);
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-light), transparent);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-light), transparent);
}

.marquee-content {
    display: flex;
    gap: 2rem;
    animation: marquee-scroll 40s linear infinite;
    width: max-content;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

.testimonial-card {
    width: 350px;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-green);
    object-fit: cover;
}

/* How It Works Timeline */
.timeline-section {
    position: relative;
    padding: 80px 0;
}

.timeline-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 40px;
}

.timeline-steps::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #e9ecef;
    z-index: 1;
}

.timeline-step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 25%;
}

.timeline-icon {
    width: 70px;
    height: 70px;
    background: white;
    border: 3px solid var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-green);
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.timeline-step:hover .timeline-icon {
    background: var(--primary-green);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(29, 134, 55, 0.3);
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    padding: 80px 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    transform: rotate(30deg);
}

/* =========================================
   6. PRODUCTS PAGE
   ========================================= */
.filter-bar {
    background: white;
    padding: 1.5rem;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3rem;
}

.filter-btn {
    border: none;
    background: transparent;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-green);
    color: white;
    box-shadow: 0 4px 10px rgba(29, 134, 55, 0.3);
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.product-image {
    height: 240px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--orange-accent);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-cat {
    color: var(--primary-green);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-footer {
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =========================================
   7. PRODUCT DETAIL & MODAL
   ========================================= */
.product-gallery-main {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.product-specs-table th {
    background-color: #f8f9fa;
    width: 40%;
}

.nav-tabs .nav-link {
    color: var(--text-muted);
    font-weight: 600;
    border: none;
    border-bottom: 3px solid transparent;
}

.nav-tabs .nav-link.active {
    color: var(--primary-green);
    border-bottom-color: var(--primary-green);
    background: transparent;
}

/* Modal Styling */
#productCarousel .carousel-item {
    min-height: 400px;
    height: 100%;
}
#productCarousel .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

@media (min-width: 992px) {
    #productCarousel .carousel-item {
        min-height: 600px;
    }
}
.modal-content {
    border-radius: 20px;
}

/* Clean Spec Table in Modal */
.spec-table {
    border-collapse: separate;
    border-spacing: 0 8px; /* Adds space between rows */
    width: 100%;
}

.spec-table tbody tr {
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    background: white;
    transition: transform 0.2s ease;
}

.spec-table tbody tr:hover {
    transform: translateX(5px);
    background: #fdfdfd;
}

.spec-table th {
    background-color: var(--light-green);
    color: var(--dark-green);
    font-weight: 600;
    padding: 12px 16px;
    border: none;
    border-radius: 8px 0 0 8px;
    width: 35%;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.spec-table td {
    border: none;
    padding: 12px 16px;
    background-color: white;
    border: 1px solid #f0f0f0;
    border-left: none;
    border-radius: 0 8px 8px 0;
    color: var(--text-dark);
    font-size: 0.95rem;
    vertical-align: middle;
}

/* =========================================
   8. CONTACT & QUOTE FORMS
   ========================================= */
.form-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.form-floating > label {
    color: var(--text-muted);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.25rem rgba(29, 134, 55, 0.15);
}

.contact-info-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 5px solid var(--primary-green);
}

/* =========================================
   9. FOOTER
   ========================================= */
.footer-redesigned {
    background: #1a2e22;
    color: rgba(255,255,255,0.8);
    padding-top: 80px;
    margin-top: auto;
}

.footer-redesigned h6 {
    color: white;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.footer-redesigned a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

.footer-redesigned a:hover {
    color: var(--orange-accent);
}

.social-icon-btn {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.social-icon-btn:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    transform: translateY(-3px);
    color: white;
}

/* =========================================
   10. ANIMATIONS & RESPONSIVE
   ========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991px) {
    .hero-content h1 { font-size: 2.5rem; }
    .timeline-steps { flex-direction: column; align-items: center; }
    .timeline-steps::before { display: none; }
    .timeline-step { width: 100%; margin-bottom: 2rem; }
    .dealer-badge { padding: 1.5rem; }
    }

    /* =========================================
   ABOUT PAGE – OUR STORY IMAGE
   Hover + Gradient Overlay (No HTML changes)
   ========================================= */

/* .col-lg-6.fade-in-up .position-relative {
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease;
} */

/* Image animation */
.col-lg-6.fade-in-up .position-relative > img {
    transition: transform 0.6s ease, box-shadow 0.6s ease;
    will-change: transform;
}

/* Gradient overlay */
/* .col-lg-6.fade-in-up .position-relative::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(29, 134, 55, 0.35),
        rgba(253, 126, 20, 0.25)
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
} */

/* Hover effects */
/* .col-lg-6.fade-in-up .position-relative:hover {
    transform: translateY(-10px);
}

.col-lg-6.fade-in-up .position-relative:hover > img {
    transform: scale(1.08);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
} */

/* .col-lg-6.fade-in-up .position-relative:hover::after {
    opacity: 1;
} */

/* Disable hover effects on touch devices */
/* @media (hover: none) {
    .col-lg-6.fade-in-up .position-relative:hover {
        transform: none;
    } */

    /* .col-lg-6.fade-in-up .position-relative:hover > img {
        transform: none;
        box-shadow: none;
    }

    .col-lg-6.fade-in-up .position-relative::after {
        display: none;
    }
} */
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}
