:root {
    --primary-color: #B7D7B8;      /* Soft Sage Green */
    --primary-dark: #4F6367;       /* Deep Green-Gray */
    --primary-light: #eef7ee;      /* Very Light Sage */
    --secondary-color: #F7D695;    /* Soft Sandy Gold */
    --accent-color: #E0AFA0;       /* Soft Terracotta */
    --dark-color: #343A40;         /* Charcoal Gray for Text */
    --light-color: #f8f9fa;        /* Off-White */
    --text-color: #343A40;         /* Charcoal Gray */
    --text-light: #6C757D;         /* Muted Gray */
    --white: #ffffff;
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease-in-out;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.navbar {
    transition: var(--transition);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark-color);
}

.navbar.scrolled .navbar-nav .nav-link {
    color: var(--dark-color);
}

.navbar .nav-link {
     color: var(--white);
     font-weight: 500;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark-color);
}

.navbar.scrolled .logo {
    color: var(--dark-color);
}

.navbar .logo {
    color: var(--white);
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.nav-link {
    position: relative;
    padding-bottom: 8px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 60%;
}

.navbar.scrolled .nav-link::after {
    background-color: var(--primary-color);
}

.hero {
    height: 100vh;
    color: var(--white);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(79, 99, 103, 0.6);
    z-index: -1;
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content .lead {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--dark-color);
}
.btn-primary:hover {
    background-color: #a6c9a7;
    border-color: #a6c9a7;
    color: var(--dark-color);
}

.btn.hero-cta {
     background-color: var(--secondary-color);
     border-color: var(--secondary-color);
     color: var(--dark-color);
     padding: 12px 30px;
     font-weight: 600;
     transition: var(--transition);
}

.btn.hero-cta:hover {
    background-color: #f5cf82;
    border-color: #f5cf82;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature-card {
    background: var(--white);
    border: 1px solid #e9ecef;
    border-radius: 15px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(183, 215, 184, 0.4);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--primary-dark);
}

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    font-weight: 600;
    color: var(--dark-color);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

#how-it-works, .bg-light {
    background-color: var(--light-color) !important;
}

.steps-container {
    position: relative;
}
.steps-container::before {
    content: '';
    position: absolute;
    left: 30px; 
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #e0e0e0;
    z-index: 0;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--dark-color);
    font-size: 1.5rem;
    font-weight: 600;
    flex-shrink: 0;
    z-index: 1;
    box-shadow: 0 0 0 6px var(--light-color), 0 4px 6px rgba(0,0,0,0.05);
}

.testimonial-card {
    min-width: 350px;
    scroll-snap-align: start;
    border: 1px solid #e9ecef;
    background-color: var(--white);
}

.testimonial-slider {
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.testimonial-slider::-webkit-scrollbar {
    display: none;
}

.cta-section {
    background: linear-gradient(135deg, rgba(79, 99, 103, 0.9) 0%, rgba(96, 125, 130, 0.9) 100%),
                url('https://images.unsplash.com/photo-1534710961216-75c88202f43e?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center;
    background-size: cover;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(79, 99, 103, 0.0);
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.map-container {
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
}

.map-search {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 1000;
    max-width: 500px;
    margin: auto;
}

.map-search .input-group {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    padding: 5px;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.suggestion-item .suggestion-main {
    font-weight: 500;
    color: #333;
}

.suggestion-item .suggestion-secondary {
    font-size: 0.85em;
    color: #6c757d;
    margin-top: 2px;
}

#map {
    height: 100%;
    width: 100%;
    z-index: 1;
}

.demo-container {
    border-radius: 15px !important;
}

#map {
    height: 100%;
    width: 100%;
}

.analysis-results {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.yield-bar {
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.yield-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 6px;
}

#benefits, #contact {
    background-color: var(--white);
}

.benefits-image {
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefits-image:hover {
    transform: scale(1.03) rotate(1deg);
}

.accordion-button {
    background-color: var(--primary-light);
    color: var(--dark-color);
}
.accordion-button:not(.collapsed) {
    color: var(--dark-color);
    background-color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(183, 215, 184, 0.5);
}

.contact-info {
    background: linear-gradient(135deg, var(--primary-dark), #607d82 100%);
    box-shadow: var(--shadow);
}

footer {
    background-color: var(--primary-dark);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar {
        background-color: rgba(255, 255, 255, 0.98) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    }
    .navbar .nav-link {
        color: var(--dark-color) !important;
        padding: 10px 0;
    }
    .navbar-collapse {
        padding: 20px 0;
        background-color: var(--white);
        margin-top: 10px;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
}

@media (max-width: 767.98px) {
    .hero {
        height: auto;
        padding: 120px 0 80px;
    }
    .hero-content h1 {
        font-size: 2.2rem;
        margin-top: 20px;
    }
    .hero-content .lead {
        font-size: 1rem;
    }
    .hero-cta {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .feature-card {
        margin-bottom: 20px;
    }
    
    .steps-container::before {
        left: 25px;
    }
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    .step-content h3 {
        font-size: 1.1rem;
    }
    
    .demo-container .col-md-7, 
    .demo-container .col-md-5 {
        padding: 15px;
    }
    .map-container {
        height: 300px;
    }
    
    .testimonial-card {
        min-width: 85%;
    }
    
    .cta-section h2 {
        font-size: 2.2rem;
    }
    
    .contact-info {
        margin-bottom: 30px;
    }
}

@media (max-width: 575.98px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .analysis-results .row > div {
        margin-bottom: 15px;
    }
}