:root {
    --primary-green: #2d5a27;
    --secondary-green: #4a7c59;
    --accent-green: #7fb069;
    --light-green: #e8f5e8;
    --text-dark: #333333;
    --text-light: #666666;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-green) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 15px;
    transition: all 0.3s ease;
    position: relative;
}

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

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

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

/* Hero Section */
.hero {
    background: linear-gradient(
        135deg,
        var(--primary-green) 0%,
        var(--secondary-green) 100%
    );
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 50px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

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

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: slideInUp 1s ease forwards;
}

.hero .lead {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    opacity: 0;
    animation: slideInUp 1s ease 0.3s forwards;
}

.btn-hero {
    background: var(--accent-green);
    border: none;
    color: white;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    opacity: 0;
    animation: slideInUp 1s ease 0.6s forwards;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-hero:hover {
    background: #6fa054;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(127, 176, 105, 0.4);
    color: white;
}

.hero-image {
    opacity: 0;
    animation: slideInRight 1s ease 0.9s forwards,
        floating 6s ease-in-out 1.9s infinite;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about {
    padding: 120px 0;
    background: var(--light-green);
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.value-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 10px 40px rgba(45, 90, 39, 0.1);
    margin-bottom: 40px;
    height: 100%;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(45, 90, 39, 0.2);
}

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

.value-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 15px;
}

/* Services Section */
.services {
    padding: 120px 0;
    background: white;
}

.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 40px;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}

.service-image {
    height: 250px;
    background: linear-gradient(
        135deg,
        var(--primary-green),
        var(--secondary-green)
    );
    position: relative;
    overflow: hidden;
}

.service-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="servicePattern" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M0 20h40M20 0v40" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="200" height="200" fill="url(%23servicePattern)"/></svg>');
}

.service-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: white;
    opacity: 0.9;
}

.service-content {
    padding: 30px;
}

.service-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
}

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

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

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.form-control:focus {
    background: white;
    box-shadow: 0 0 0 0.2rem rgba(127, 176, 105, 0.25);
    border: none;
}

.contact-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-green);
    margin-right: 20px;
    width: 30px;
}

/* Insights Section */
.insights {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, var(--light-green) 100%);
    position: relative;
    overflow: hidden;
}

.insights::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="insightPattern" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="rgba(45,90,39,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23insightPattern)"/></svg>');
    opacity: 0.5;
}

.insight-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.insight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--primary-green),
        var(--accent-green)
    );
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}

.insight-card:hover::before {
    transform: scaleX(1);
}

.insight-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 10px;
    display: block;
}

.insight-label {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.insight-card h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.insight-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

.stats-row {
    margin-bottom: 60px;
}

.blog-preview {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.blog-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.12);
}

.blog-image {
    height: 200px;
    background: linear-gradient(
        135deg,
        var(--secondary-green),
        var(--accent-green)
    );
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-image i {
    font-size: 3rem;
    color: white;
    opacity: 0.8;
}

.blog-content {
    padding: 25px;
}

.blog-date {
    color: var(--accent-green);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.blog-preview h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-preview p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-green);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--accent-green);
    text-decoration: none;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 50px 0 30px;
    text-align: center;
}

.footer .navbar-brand {
    color: white !important;
    margin-bottom: 20px;
}

.social-links {
    margin: 30px 0;
}

.social-links a {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    color: white;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    margin: 0 10px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-green);
    transform: translateY(-3px);
    color: white;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Floating elements */
.floating {
    /* animation: floating 6s ease-in-out infinite; */
}

@keyframes floating {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .lead {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .contact-form,
    .contact-info {
        padding: 30px;
    }

    .navbar-nav .nav-link {
        margin: 0 5px;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-green);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Products Section */
.products {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="productPattern" width="60" height="60" patternUnits="userSpaceOnUse"><polygon points="30,10 50,25 30,40 10,25" fill="rgba(45,90,39,0.02)" stroke="rgba(45,90,39,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23productPattern)"/></svg>');
    opacity: 0.6;
}

.product-card {
    background: white;
    border-radius: 15px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(127, 176, 105, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-green);
    box-shadow: 0 20px 50px rgba(45, 90, 39, 0.15);
}

.product-card:hover::before {
    left: 100%;
}

.product-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(
        135deg,
        var(--primary-green),
        var(--secondary-green)
    );
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: white;
    position: relative;
    z-index: 2;
}

.product-card h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 15px;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

.product-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

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