:root {
    --primary-color: #1e7e5a;
    --secondary-color: #f4a127;
    --dark-color: #0d5940;
    --light-bg: #f8f9fa;
    --text-dark: #333;
    --accent-green: #7ec850;
    --cream-bg: #e8e4d4;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    padding-top: 80px;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: white !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo-image {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
    filter: brightness(1.1);
}

.navbar.scrolled .logo-image {
    height: 50px;
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.btn-download {
    background: var(--secondary-color);
    border-radius: 25px;
    padding: 8px 20px !important;
    margin-left: 15px;
}

.btn-download:hover {
    background: #d88f1f;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(30, 126, 90, 0.85) 0%, rgba(13, 89, 64, 0.9) 100%),
                var(--cream-bg);
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(126, 200, 80, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, transparent, rgba(13, 89, 64, 0.3));
}

.farmer-illustration {
    position: absolute;
    right: 5%;
    bottom: 0;
    height: 85%;
    max-height: 550px;
    width: auto;
    opacity: 0.9;
    animation: fadeInRight 1s ease;
    z-index: 1;
    pointer-events: none;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 0.9;
        transform: translateX(0);
    }
}

@media (max-width: 1200px) {
    .farmer-illustration {
        height: 75%;
        right: 2%;
        opacity: 0.7;
    }
}

@media (max-width: 992px) {
    .farmer-illustration {
        height: 65%;
        right: -5%;
        opacity: 0.5;
    }
    
    .hero-content {
        max-width: 550px;
        background: rgba(13, 89, 64, 0.85);
        padding: 30px;
        border-radius: 15px;
        backdrop-filter: blur(10px);
    }
}

@media (max-width: 768px) {
    .farmer-illustration {
        height: 50%;
        max-height: 350px;
        right: -10%;
        bottom: 10%;
        opacity: 0.4;
    }
    
    .hero-content {
        max-width: 100%;
        background: rgba(13, 89, 64, 0.9);
        padding: 25px;
        border-radius: 12px;
    }
    
    .hero-section {
        padding: 100px 0 60px;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-section h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
}

.hero-section p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s backwards;
}

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

.btn-primary-custom {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 161, 39, 0.4);
    animation: fadeInUp 1s ease 0.4s backwards;
}

.btn-primary-custom:hover {
    background: #d88f1f;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(244, 161, 39, 0.6);
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--light-bg), white);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: white;
    margin-bottom: 50px;
    font-size: clamp(1rem, 2vw, 1.1rem);
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(47, 124, 49, 0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: white;
}

.feature-card h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.feature-card p {
    color: #666;
    line-height: 1.7;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

/* Products Section */
.products-section {
    padding: 80px 0;
    background: white;
}

.product-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.tab-btn {
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.tab-btn:hover, .tab-btn.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(47, 124, 49, 0.3);
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
    border: 1px solid #e0e0e0;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.product-image {
    height: 250px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(30, 126, 90, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(126, 200, 80, 0.05) 0%, transparent 50%);
    z-index: 1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.product-body {
    padding: 20px;
    background: white;
}

.product-card h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.product-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.product-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.size-badge {
    background: var(--light-bg);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: white;
}

.contact-section .section-title {
    color: white;
}

.contact-form {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.form-control {
    background: rgba(255,255,255,0.9);
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(244, 161, 39, 0.3);
    outline: none;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-text h5 {
    margin-bottom: 5px;
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-section p, .footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* Mobile Menu Toggle */
.navbar-toggler {
    border-color: rgba(255,255,255,0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.scroll-top.show {
    display: flex;
}

/* Loading animation */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success/Error Messages */
.alert {
    border-radius: 10px;
    padding: 15px 20px;
}

.alert-success {
    background: rgba(40, 167, 69, 0.9);
    color: white;
    border: none;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
}

/* Responsive Design */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(26, 58, 27, 0.98);
        padding: 20px;
        border-radius: 10px;
        margin-top: 15px;
    }

    .nav-link {
        padding: 10px 0;
    }

    .btn-download {
        margin-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px;
    }

    .why-choose-us, .products-section, .contact-section {
        padding: 60px 0;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .farmer-illustration {
        height: 50%;
        max-height: 350px;
        right: -10%;
        bottom: 10%;
        opacity: 0.4;
    }
    
    .hero-content {
        max-width: 100%;
        background: rgba(13, 89, 64, 0.9);
        padding: 25px;
        border-radius: 12px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 90px 0 50px;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .product-tabs {
        gap: 10px;
    }

    .tab-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .logo-image {
        height: 50px;
    }

    .farmer-illustration {
        height: 40%;
        max-height: 280px;
        right: -15%;
        bottom: 15%;
        opacity: 0.3;
    }
    
    .hero-content {
        padding: 20px;
        background: rgba(13, 89, 64, 0.92);
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section p {
        font-size: 0.95rem;
    }
}