/* Modern AgTech Theme */
:root {
    --primary: #29755e;
    --primary-light: #3c8870;
    --primary-dark: #1b5142;
    --secondary: #ffd54f;
    --text-dark: #263238;
    --text-light: #ffffff;
    --background: #f5f5f5;
    --card-bg: #ffffff;
    --success: #4caf50;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--background);
    margin: 0;
    padding: 0;
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    text-align: center;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary);
}

/* Navigation */
.navbar {
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar-brand {
    padding: 0;
}

.navbar-brand img {
    height: 60px;
    width: 180px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.02);
}

/* Adjust navbar padding to accommodate larger logo */
.navbar {
    padding: 10px 0;
}

@media (max-width: 768px) {
    .navbar-brand img {
        height: 50px;
        width: 150px;
    }
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 15px;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover:after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/agric-background.jpeg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--text-light);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* Buttons */
.btn-custom {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-primary-custom {
    background: var(--primary);
    color: var(--text-light);
    border: 2px solid var(--primary);
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline-custom {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-outline-custom:hover {
    background: var(--text-light);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Features */
.features-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.features-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.features-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 2rem;
}

.features-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* About Us Section */
.about-content {
    padding-right: 40px;
}

.about-content .section-title {
    margin-bottom: 1.5rem;
}

.about-content .section-title:after {
    left: 0;
    transform: none;
}

.impact-badge {
    margin-bottom: 2rem;
}

.impact-badge .badge {
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 50px;
    background: var(--primary);
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.8;
}

.impact-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.impact-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.impact-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1;
}

.impact-card .stat-title {
    font-size: 1rem;
    color: var(--text-dark);
    opacity: 0.8;
}

/* Map Section */
.map-container {
    position: relative;
    height: 600px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

#map {
    height: 100%;
    width: 100%;
}

.map-info {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: var(--border-radius);
    position: absolute;
    top: 20px;
    right: 20px;
    max-width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Truck marker styles */
.truck-marker {
    transition: transform 0.3s ease;
}

.truck-marker i {
    transform-origin: center;
    transition: transform 0.3s ease;
}

/* Rotate truck based on direction */
.truck-marker.moving-right i {
    transform: rotate(90deg);
}

.truck-marker.moving-left i {
    transform: rotate(-90deg);
}

/* Contact Section */
.contact-info {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--text-light);
    padding: 80px 0 30px;
}

.footer-title {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-light);
    opacity: 0.8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary);
}

.copyright {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-padding {
        padding: 70px 0;
    }
    
    .features-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .map-container {
        height: 400px;
    }
    
    .map-info {
        position: relative;
        top: -50px;
        right: 0;
        max-width: 100%;
        margin: 0 15px;
    }
}

/* Animation Classes */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.scale-up {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-up.visible {
    opacity: 1;
    transform: scale(1);
}