*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1;
}

@import url('https://fonts.googleapis.com/css2?family=Rancho&family=Source+Sans+Pro:wght@400;600&display=swap');
h1, h2, .section-title, .section-title-contact, .hero-title {
    font-family: 'Rancho', sans-serif;
    font-weight: 400; 
}
p, li, .text-block, .contact-text, .footer-text, a {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400; 
}

ul li {
    list-style-type: none;
}

.hero {
    background: radial-gradient(circle, rgba(13, 189, 50, 0.1) 0%, rgba(255, 255, 255, 0) 70%); 
    position: relative;
    overflow: hidden;
}

.fridgeTapeLogo {
    animation: bounceIn 1s ease-out; 
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.hero-title {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); 
    animation: fadeIn 1.2s ease-out; 
}

@keyframes bounceIn {
    0% { transform: scale(0.8); opacity: 0; }
    60% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}


.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mt-8 {
    padding-top: 9rem;
    padding-bottom: 7.5rem;
}

.nav-bar {
    background: linear-gradient(to right, #0dbd32, #00941e);
    width: 100%;
    min-height: 3.5rem;
    position: fixed;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navA {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.35rem;
    cursor: pointer;
    transition: opacity 0.23s ease-in-out;
}

.navA:hover {
    opacity: 0.6;
}

.navList {
    display: flex;
}

.navList li:first-child {
    margin-right: 8.5rem;
}

.navList li:last-child {
    margin-left: 8.5rem;
}

.body-bg {
    background: linear-gradient(to bottom right, #ffffff, rgb(240, 240, 240));
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 2rem;
}

.section-title-contact {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.contact-container {
    text-align: center;
    padding: 1.5rem 2rem 2rem 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.contact-link {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0dbd32;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.contact-link:hover {
    color: #00941e;
}

.text-block {
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.5;
}

#concept_section {
    background: linear-gradient(to bottom, #232a31, #2e363f);
    color: white;
    padding: 0rem 0.5rem 16.5rem 0.5rem;
}

.concept-title {
    padding-top: 9rem;
    margin-bottom: 3rem;
    font-size: 2.25rem;
}

#prototype_section {
    display: flex;
    justify-content: center;
}

#prototype_section .grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 900px;
    gap: 2rem;
}

#prototype_section img {
    max-width: 90%;
    height: auto;
    border-radius: 1rem;
}

#prototype_section .text-container {
    display: flex;
    justify-content: flex-start;
}

#prototype-img {
    cursor: pointer;
    width: 100%;
    max-width: 500px;
    transition: transform 0.3s ease-in-out;
}

#prototype-img:hover {
    transform: scale(1.05);
}

#feature_section {
    padding: 10rem 0.5rem 16rem 0.5rem;
    background: linear-gradient(to bottom, rgba(13, 189, 50, 0.1), rgba(255, 255, 255, 0.5));
}

.feature-title {
    padding-top: 10rem;
}

.food-underline {
    border-bottom: 4px solid rgba(0, 128, 0, 0.1);
}

#contact_section {
    padding: 10rem 1rem 11rem 1rem;
   
}

#feature_section .features-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    margin-left: 0rem;
    gap: 0.25rem;
}

#feature_section .feature-list {
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.5;
}

.feature-list li {
    margin-bottom: 1.2rem;
    list-style-type: none;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    line-height: 1.6;
}

.features-container {
    background: #fff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 325px;
}

.hero-title {
    margin-top: 0.75rem;
    font-size: 2.25rem;
    font-weight: 600;
}

.top-button {
    position: fixed;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    right: 2rem;
    display: none;
    opacity: 0;
    z-index: 1000; /* Ensure above other elements */
}
.top-button button {
    border: none;
    outline: none;
    font-size: 1rem;
    font-weight: 600;
    background-color: #0dbd32;
    padding: 0.45rem 0.8rem;
    color: white;
    border-radius: 8px;
    cursor: pointer;
}
.top-button button:focus {
    outline: 2px solid #00941e;
}

footer {
    text-align: center;
    padding: 1rem;
    background: #f0f0f0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: block;
}

.modal-content {
    position: relative;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 90%;
    max-width: 565px;
    text-align: center;
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}



.close-btn:hover,
.close-btn:focus {
    color: #f44336;
}

.close-btn svg {
    display: block;
}

.cheese-broccoli-area {
    max-width: 1000px;
    margin: 0 auto;
    margin-top: -17.25rem;
}

.footer {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(to right, #0dbd32, #00941e);  
    color: #fff;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.footer-text {
    font-size: 1rem; 
    font-weight: 500;
    line-height: 1.5;
    margin: 0.5rem 0 0;
}

.footer-icon {
    max-width: 24px;
    opacity: 0.9;
}

.baconImg {
    width: 50px;
}

.food-icon {
    transition: transform 0.3s ease-in-out;
}    

.food-icon:hover {
    animation: wiggle 0.6s ease-in-out 2; 
}

.food-uses-area img {
    width: 130px;
    z-index: 1000;
}

.food-icon-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.contact-section {
     background: linear-gradient(to bottom, rgba(13, 189, 50, 0.15), rgba(255, 255, 255, 0.7));
}

.mailPic {
    opacity: 0.95;
    margin-bottom: 0.75rem;
}

.hero-cta {
    margin-top: 1.5rem;
}

.cta-button {
    display: inline-block;
    background: #0aa74c;
    color: #ffffff;
    padding: 0.45rem 1.35rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.45rem;
    opacity: 1; 
    transition: opacity 0.28s ease-in-out;
    border: 3px solid #0f6e36;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.cta-button:hover {
    opacity: 0.8;
    color: #ffffff;
    border: 3px solid black;
}

@keyframes wiggle {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

@media screen and (max-width: 876px) {
    .concept-title {
        padding-top: 3rem;
    }

    .cheese-broccoli-area img {
        width: 120px;
    }

    .cheese-broccoli-area {
        margin-top: -8.35rem;
    }

    #prototype_section .grid-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0rem 0.7rem;
    }

    #prototype_section img {
        width: 90%;
        border-radius: 20px;
    }

    #prototype_section .text-container {
        margin-left: 0;
    }

    #feature_section {
        padding: 3rem 1rem 13rem 1rem;
    }

    #concept_section {
        padding: 1rem 0.5rem 10rem 0.5rem;
    }

    .feature-title {
        padding-top: 5rem;
    }

    #feature_section .features-container {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 1.25rem 0.7rem 0.75rem 0.7rem;
        
    }

    .hero-title {
        font-size: 1.95rem;
    }

    @media screen and (max-width: 876px) {
        .top-button {
            bottom: calc(3rem + env(safe-area-inset-bottom));
            right: 0rem;
        }
        .top-button button {
            border-radius: 0;
            border-top-left-radius: 4px;
            border-bottom-left-radius: 4px;
        }
    }
}

@media screen and (max-width: 768px) {
    .navList li:first-child {
        margin-right: 2.2rem;
    }

    .navList li:last-child {
        margin-left: 2.2rem;
    }

    .navList {
        display: flex;
        width: 100%;
        padding: 0 0.25rem;
        justify-content: space-around;
    }

    .nav-bar {
        min-height: 2.5rem;
    }

    .navA {
        font-size: 1.1rem; 
    }

    .fridgeTapeLogo {
        width: 275px;
    }

   .feature-list li {
        font-size: 1rem;
        line-height: 1.9;
    }
    
    .footer-text {
        font-size: 0.875rem;
    }
    
    .top-button button {
        border-radius: 0px;
        border-top-left-radius: 4px;
        border-bottom-left-radius: 4px;
    }
}

#uses_section {
    padding: 10rem 0.5rem 13rem 0.5rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), #ffffff); /* Light gradient for contrast */
}

.uses-title {
    padding-top: 10rem;
}

.food-uses-area {
    max-width: 1000px;
    margin: 0 auto;
    margin-top: -17.25rem;
}

/* Define the jumping animation */
@keyframes jump {
    0% { transform: translateY(0); }
    50% { transform: translateY(-1rem); }
    100% { transform: translateY(0); }
}

/* Apply jumping animation to bacon and carrot on hover */
.bacon, .carrot, .broccoli {
    transition: transform 0.3s ease-in-out;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.bacon:hover, .carrot:hover, .broccoli:hover {
    animation: jump 0.5s ease-in-out 3;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.bacon {
    margin-bottom:-0.55rem;
    rotate: 5deg; 
}

.broccoli {
    rotate: -2deg;
}

.carrot {
    rotate: -2deg; 
    margin-bottom: -0.7rem;
}

@media screen and (max-width: 876px) {
    #uses_section {
        padding: 3rem 0.5rem 10rem 0.5rem;
    }
   
    .uses-title {
        padding-top: 5rem;
    }
   
    .food-uses-area {
        margin-top: -9.35rem;
    }
   
    .food-uses-area img {
        width: 110px;
    }

    .bacon:hover, .carrot:hover, .broccoli:hover {
        animation: jump 0.5s ease-in-out 3;
    }

    .bacon {
        margin-bottom:-0.55rem;
        rotate: 5deg; 
    }

    .carrot {
        rotate: -2deg; 
        margin-bottom: -0.575rem;
    }
}

@media screen and (max-width: 768px) {
    .mt-8 {
        padding-top: 6rem;
        padding-bottom: 4rem;
    }
}