/* CSS Variables & Roots */
:root {
    --primary-color: #3b8e2b;
    --primary-hover: #2e7a1f;
    --secondary-color: #ffffff;
    --text-dark: #222222;
    --text-light: #555555;
    --accent-yellow: #ffd32a;
    --bg-light: #f9fbf8;
    --font-main: 'Inter', sans-serif;
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    min-height: 48px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    border: none;
    transition: var(--transition);
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 142, 43, 0.4);
}

.btn-secondary {
    background-color: white;
    color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: #f1f1f1;
    transform: translateY(-2px);
}

.btn-white {
    background-color: white;
    color: var(--text-dark);
    padding: 14px 32px;
    border-radius: 30px;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 14px;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 80px;
    width: 280px;
    object-fit: contain;
    object-position: left center;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding: 12px 5px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-yellow);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
}

/* Hero Section with Slider */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.slider-container {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active-slide {
    opacity: 1;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px; height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 5;
    transition: var(--transition);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active, .dot:hover {
    background: var(--accent-yellow);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(20,50,80,0.8) 0%, rgba(20,50,80,0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero h1 {
    font-size: 54px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 28px;
    color: var(--accent-yellow);
    font-weight: 600;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Floating Services */
.services-floating {
    margin-top: -100px;
    position: relative;
    z-index: 10;
    padding-bottom: 60px;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

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

.service-card img {
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 8px;
    object-fit: cover;
    width: 100%;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 25px;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.section-title span {
    color: var(--primary-color);
}

/* About Us Section */
.about-us {
    padding: 80px 0;
    background-color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-intro {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.business-info {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.business-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.business-info p i {
    color: var(--primary-color);
    width: 20px;
}

.business-info p:last-child {
    margin-bottom: 0;
}

.list-style {
    flex-direction: column;
    align-items: flex-start;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.list-style .feature-item {
    background: white;
    width: 100%;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    margin-bottom: 15px;
}

/* Recent Projects */
.recent-projects {
    padding: 80px 0;
    background-color: var(--bg-light);
    background-image: linear-gradient(to bottom, transparent, #faf0dc 100%);
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-title {
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
}

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

/* Footer CTA */
.footer-cta {
    position: relative;
    background-image: url('assets/footer_hd.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0 80px;
    text-align: center;
    color: white;
}

.cta-curve {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 100"><path fill="%23faf0dc" d="M0,0 C480,100 960,100 1440,0 L1440,0 L0,0 Z"></path></svg>') no-repeat top center;
    background-size: cover;
}
.footer-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(30, 90, 20, 0.4);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.footer-cta h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.phone-number {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .cards-container, .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero h1 { font-size: 42px; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    .nav-links.show {
        display: flex;
    }
    .nav-button { display: none; }
    
    .hero { height: auto; padding: 100px 0 60px; }
    .hero h1 { font-size: 32px; }
    .hero-subtitle { font-size: 20px; }
    .cards-container, .projects-grid {
        grid-template-columns: 1fr;
    }
    .services-floating { margin-top: -50px; }
    .features-row {
        flex-direction: column;
        gap: 15px;
    }
    .feature-divider {
        width: 80%;
        height: 1px;
        margin: 10px 0;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); 
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 40px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
    text-decoration: none;
}

.modal-header h2 {
    color: var(--text-dark);
    margin-bottom: 5px;
}

.modal-header p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}


/* Agricultural Slider */
.agri-slider {
    position: relative;
    width: 50%;
    height: 350px;
    border-radius: 12px 0 0 12px;
    overflow: hidden;
    background-color: #eee;
}
.agri-slider img {
    position: absolute;
    top:0; left:0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.agri-slider img.active {
    opacity: 1;
}


section[id] { scroll-margin-top: 100px; }

/* Sticky Mobile CTA */
.sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 10px 15px;
    justify-content: space-between;
    gap: 10px;
}

.sticky-cta .btn {
    flex: 1;
    padding: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    margin: 0;
}

.btn-whatsapp {
    background-color: #25D366 !important;
    color: white !important;
}

@media (max-width: 768px) {
    .sticky-cta {
        display: flex;
    }
    body {
        padding-bottom: 70px; /* Space for sticky bar */
    }
}

/* Enhanced Hover Effects */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

