/* Base Styles */
:root {
    --primary-color: #2c5f2d;
    --secondary-color: #97bc62;
    --text-color: #333;
    --white: #fff;
    --section-padding: 4rem 2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden; /* Added */
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden; /* Added */
    width: 100%; /* Added */
}

img {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
.header {
    padding: 1rem;
    background-color: #e7faed;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%; /* Added */
    position: fixed; /* Added */
    top: 0;
    z-index: 1000;
    left: 50%; /* Added */
    right: 50%; /* Added */
    margin-left: -50vw; /* Added */
    margin-right: -50vw; /* Added */
}

.branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 60px;
    height: auto;
}

.company-name {
    font-weight: 700;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    background: linear-gradient(to right, #2c5f2d, #97bc62);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


.nav-list {
    display: flex;
    gap: 1.0rem;
    list-style: none;
    border-radius: 1px;
    transition: transform 0.5s, background-color 0.5s;
    font-size: 16px;
    font-weight: bolder;
}

.nav-list a {
    text-decoration: none;
}

.nav-item {
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-item:hover {
    transform: scale(1.1);
    background-color: rgb(222, 246, 253);
    border-bottom: 5px solid green;
    cursor: pointer;
}


/* Products Section */
.products-section {
    padding: var(--section-padding);
}

.section-title{
    text-align: center;
    background-color: #c2f5c3;
    margin-top: 7rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding: 0 1rem; /* Added */
    box-sizing: border-box; /* Added */
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

/* Footer */
.footer {
    background-color: #a52a2a;
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    width: 100vw; /* Added */
    position: relative; /* Added */
    left: 50%; /* Added */
    right: 50%; /* Added */
    margin-left: -50vw; /* Added */
    margin-right: -50vw; /* Added */
}

.developer{
    text-align: right;
    text-decoration: underline overline;
    font-size: 6px;
}

/* Animations */
@keyframes marquee {
    0% { 
        transform: translateX(100%); 
        left: 100%; /* Added */
    }
    100% { 
        transform: translateX(-100%);
        left: -100%; /* Added */
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }

    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        height: 50vh;
    }

    .about-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-item {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-tagline {
        animation-duration: 25s; /* Added */
    }
}