.hero {
    background-image: url('hero.jpeg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-family: 'Georgia', serif;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 30px;
}

.cta-button {
    padding: 15px 30px;
    background-color: #64c969;
    color: white;
    border: none;
    border-radius: 25px;
    text-transform: uppercase;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 30px;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background-color: #4caf50;
}

section {
    padding: 50px 20px;
    text-align: center;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        height: 80vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 70vh;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}

.sub-section {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    padding: 50px 10%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.about {
    background-image: url('about.jpeg');
}

.products {
    background-image: url('products.jpeg');
}

.sustainability {
    background-image: url('sustainability.jpeg');
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.text-background {
    position: relative;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    z-index: 1;
}

h2 {
    margin: 0;
    font-size: 2.5em;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

p {
    margin-top: 10px;
    font-size: 1.2em;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.about h2, .products h2, .sustainability h2 {
    font-family: 'Georgia', serif;
    color: white;
    margin-bottom: 20px;
}

.about p, .products p, .sustainability p {
    font-size: 1.2rem;
    color: white;
}

.parallax {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

html {
    scroll-behavior: smooth;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .sub-section {
        height: 50vh;
        padding: 40px 5%;
    }

    .text-background h2 {
        font-size: 2rem;
    }

    .text-background p {
        font-size: 1rem;
    }

    .parallax {
        background-attachment: scroll; /* Disable parallax on mobile for smoother scrolling */
    }
}

@media (max-width: 480px) {
    .sub-section {
        height: 40vh;
        padding: 30px 5%;
    }

    .text-background h2 {
        font-size: 1.8rem;
    }

    .text-background p {
        font-size: 0.9rem;
    }

    .text-background {
        padding: 15px;
    }
}