* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

#preloader {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-content {
    text-align: center;
}

.navbar {
    transition: all 0.3s ease;
    padding: 0.4rem 0;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.logo-img {
    height: 50px;
    width: auto;
    margin-right: 12px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.brand-font {
    font-family: 'Pacifico', cursive, 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #228B22 0%, #32CD32 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #228B22;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #228B22;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 70%;
}

.nav-cta {
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 139, 34, 0.3);
}

.nav-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(34, 139, 34, 0.4);
}

.dropdown-menu-custom {
    border: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-radius: 12px;
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.7rem 1rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #f0f9f0 0%, #e8f5e8 100%);
    color: #228B22;
    transform: translateX(5px);
}

.offcanvas-header {
    background: linear-gradient(135deg, #228B22 0%, #32CD32 100%);
    color: white;
}

.offcanvas-title {
    color: white;
}

.hero-section {
    min-height: 75vh;
    position: relative;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 0 4rem;
}

.hero-overlay {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    /* Make overlay less opaque for more clarity */
    background: linear-gradient(135deg, rgba(34, 139, 34, 0.5) 0%, rgba(46, 125, 50, 0.35) 100%);
    z-index: 1;
}

.hero-section .container {
    z-index: 2;
    position: relative;
}

.hero-badge {
    animation: fadeInDown 1s ease;
}

.hero-title {
    animation: fadeInUp 1s ease 0.2s both;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    animation: fadeInUp 1s ease 0.4s both;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.3);
}

.hero-text {
    animation: fadeInUp 1s ease 0.6s both;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.2);
}

.hero-cta {
    animation: fadeInUp 1s ease 0.8s both;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.hero-cta:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-section {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(34, 139, 34, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
    color: #228B22;
}

.stat-icon .fa-seedling,
.feature-icon .fa-recycle {
    color: #388e3c;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #228B22;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-weight: 500;
    margin: 0;
}

.search-wrapper {
    max-width: 700px;
}

.search-form .input-group {
    border-radius: 50px;
    overflow: hidden;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.search-form .input-group:focus-within {
    border-color: #228B22;
    box-shadow: 0 0 0 0.2rem rgba(34, 139, 34, 0.15);
}

.search-form .input-group-text {
    border: none;
    padding-left: 1.5rem;
}

.search-form .form-control {
    border: none;
    padding: 0.8rem 1rem;
}

.search-form .form-control:focus {
    box-shadow: none;
}

.search-form .btn {
    border-radius: 0 50px 50px 0;
    padding: 0.8rem 2rem;
    font-weight: 600;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #228B22 0%, #32CD32 100%);
    border-radius: 2px;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
}

.category-slider-center {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.category-wrapper {
    width: 220px;
    flex: 0 0 auto;
}

.category-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    background: white;
}

.category-card:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: 0 15px 40px rgba(34, 139, 34, 0.2);
}

.category-image-wrapper {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1.5rem;
}

.category-card img {
    height: 160px;
    object-fit: contain;
    width: 100%;
    transition: transform 0.4s ease;
}

.category-card:hover img {
    transform: scale(1.1) rotate(2deg);
}

.category-card .card-body {
    padding: 1.5rem;
}

.category-card .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.category-desc {
    color: #228B22;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

.product-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    background: white;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(34, 139, 34, 0.15);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.product-badge .badge {
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem;
}

.product-card img {
    height: 180px;
    object-fit: contain;
    width: 100%;
    transition: transform 0.4s ease;
}

.product-card:hover img {
    transform: scale(1.15);
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-card .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.8rem;
}

.product-card .card-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.product-price-info {
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #484733;
    background: linear-gradient(135deg, #fef9e7 0%, #fcf3cf 100%);
    border-radius: 25px;
    padding: 0.6rem 1.2rem;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(72,71,51,0.1);
    border: 1px solid rgba(180, 138, 44, 0.2);
}

.product-price {
    color: #b48a2c;
    font-weight: 700;
    font-size: 1.1em;
    margin-left: 3px;
}

.product-card .btn-outline-success {
    display: none;
}

.product-card .btn-outline-success:hover {
    display: none;
}

.features-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.features-section .row {
    align-items: stretch;
}

.feature-box {
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    /* Ensures all boxes have the same min height */
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #228B22;
}

.feature-icon {
    font-size: 3rem;
    color: #228B22;
    transition: all 0.3s ease;
}

.feature-box:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-box h5 {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.feature-box p {
    color: #666;
    font-size: 0.9rem;
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(135deg, #228B22 0%, #32CD32 100%);
    border-radius: 15px;
    z-index: -1;
}

.about-content h2 {
    color: #333;
}

.about-features .fas {
    font-size: 1.5rem;
}

.about-features h6 {
    font-weight: 600;
    color: #333;
}

.contact-form {
    border: 1px solid rgba(0,0,0,0.08);
}

.contact-form .form-label {
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: #228B22;
    box-shadow: 0 0 0 0.2rem rgba(34, 139, 34, 0.15);
}

#contact {
    /* Reduce vertical padding */
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

#contact .section-header {
    margin-bottom: 1.5rem;
}

#contact .contact-form {
    padding: 1.2rem 1rem !important;
}

#contact .form-label {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

#contact .form-control,
#contact textarea.form-control {
    padding: 0.5rem 0.8rem;
    font-size: 1rem;
}

#contact textarea.form-control {
    min-height: 80px;
    max-height: 120px;
}

#contact .btn-success.btn-lg {
    font-size: 1rem;
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
}

#contact .alert {
    font-size: 1rem;
    padding: 0.6rem 1rem;
    margin-bottom: 1rem;
}

.cta-section {
    background: #e6f7ea !important;
    color: #222 !important;
    box-shadow: none;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.cta-section h2 {
    margin-bottom: 1rem !important;
    font-size: 1.7rem;
}

.cta-section .lead {
    margin-bottom: 1.5rem !important;
    font-size: 1.08rem;
}

.cta-section a.btn {
    font-size: 1rem;
    padding: 0.6rem 2rem;
    margin-top: 0.5rem;
}

.cta-section a.btn {
    background: #219150;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 1.15rem;
    font-weight: 500;
    padding: 0.7rem 2.5rem;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(34,139,34,0.08);
    transition: background 0.2s, color 0.2s;
}

.cta-section a.btn:hover {
    background: #17643a;
    color: #fff !important;
}

.cta-section .lead a {
    color: #219150 !important;
    font-weight: 700;
    text-decoration: underline;
}

.cta-section .lead a:hover {
    color: #17643a !important;
}

.scroll-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #228B22 0%, #32CD32 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s, box-shadow 0.2s;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(34, 139, 34, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    outline: none;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #32CD32 0%, #228B22 100%);
    color: #fff;
    box-shadow: 0 8px 25px rgba(34, 139, 34, 0.35);
    transform: translateY(-4px) scale(1.08);
}

.scroll-to-top i {
    font-size: 1.4rem;
    margin: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fullscreen product image modal */
#imageModal .modal-content {
    background: rgba(20,40,20,0.92);
    box-shadow: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

#imageModal .btn-close {
    filter: invert(1) grayscale(1);
    opacity: 0.8;
    z-index: 10;
}

#imageModal img {
    max-width: 95vw;
    max-height: 90vh;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
    background: #fff;
}

@media (max-width: 991px) {
    .navbar-collapse {
        display: none;
    }

    .brand-font {
        font-size: 1.5rem;
    }

    .category-slider-center {
        gap: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .stats-section {
        margin-top: 0;
    }

    .feature-box {
        min-height: 160px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 60vh;
        padding: 6rem 1rem 3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .stat-icon {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .category-slider-center {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .category-wrapper {
        width: 100%;
        max-width: 350px;
    }

    .category-card img,
    .product-card img {
        height: 140px;
    }

    .product-price-info {
        font-size: 0.95rem;
        padding: 0.5rem 1rem;
    }

    .about-image-wrapper::before {
        top: -10px;
        left: -10px;
        right: 10px;
        bottom: 10px;
    }

    .feature-box {
        padding: 2rem 1.5rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-badge .badge {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .category-wrapper {
        max-width: 100%;
    }

    .product-price-info {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}