/* --- Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Scroll Container --- */
#scroll-container {
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}


/* --- Header --- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Increased padding slightly for taller logo */
    padding: 15px 5%; /* Example: Adjusted top/bottom */
    background-color: rgba(255, 255, 255, 0.85); /* Slightly less transparent */
    backdrop-filter: blur(8px); /* Slightly stronger blur */
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center; /* Center on mobile */
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Slightly increased shadow */
    /* Add transition for potential future height changes */
    transition: padding 0.3s ease;
}

#main-header .logo {
    height: 55px; /* INCREASED logo height */
    width: auto;
    transition: height 0.3s ease; /* Smooth transition if needed */
}

/* --- General Section Styling --- */
.full-screen-section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Increased top padding to account for taller header */
    padding: 100px 5% 40px; /* Example: Adjusted top padding */
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Style to apply when section is intersecting */
.full-screen-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}


.content {
    max-width: 1100px;
    width: 100%;
    z-index: 2;
    position: relative;
    background-color: rgba(255, 255, 255, 0.75); /* Slightly adjusted transparency */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.section-image {
    max-width: 80%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 10px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: #E65100;
}

p {
    font-size: 1rem;
    margin-bottom: 15px;
}

.highlight {
    color: #4CAF50;
    font-weight: 600;
}

/* --- Section 1: Carnaval e Emoção --- */
#section1 {
    background: linear-gradient(135deg, #FFCA28, #FFA726, #FF7043);
}

#section1 .content {
   background-color: rgba(255, 255, 255, 0.6);
}


#section1 .carnaval-girl {
    max-width: 300px;
}

#section1 .tagline {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Confetti Container */
#confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.confetto {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #fff;
    opacity: 0.9;
    border-radius: 50%;
    animation: fall 5s linear infinite;
}

@keyframes fall {
    to {
        transform: translateY(105vh) rotate(360deg);
        opacity: 0;
    }
}

/* --- Section 2: Doe seu Abadá --- */
#section2 {
    background-color: #FFF8E1;
}

#section2 .donation-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

#section2 .donation-girl {
    max-width: 320px;
    order: 1;
}

#section2 .donation-text {
     order: 2;
}

.small-print {
    font-size: 0.9rem;
    color: #555;
    margin-top: 15px;
}

/* --- Section 3: Impacto Social --- */
#section3 {
    background: linear-gradient(135deg, #A5D6A7, #81C784, #66BB6A);
}

#section3 .impact-content {
     display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#section3 .impact-kid {
    max-width: 300px;
     order: 1;
}

#section3 .impact-text {
    order: 2;
}

#section3 h2 {
    color: #1B5E20;
}

#section3 .highlight {
    color: #FF8F00;
    font-weight: bold;
}

.impact-examples {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 20px 0 25px;
    flex-wrap: wrap;
}

.impact-examples img.clickable-backpack {
    width: 140px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    border: 3px solid white;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.impact-examples img.clickable-backpack:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}


.cta-button {
    display: inline-block;
    background-color: #FF7043;
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
    background-color: #F4511E;
    transform: translateY(-2px);
}

.logo-footer {
    display: block;
    height: 35px;
    width: auto;
    margin: 30px auto 0;
    opacity: 0.8;
}

/* --- Modal Styles --- */
#modal-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#modal-image {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 5px;
}

#modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    line-height: 1;
    transition: 0.3s;
    cursor: pointer;
}

#modal-close:hover,
#modal-close:focus {
    color: #bbb;
    text-decoration: none;
}


/* --- Responsiveness --- */

/* Tablet Styles */
@media (min-width: 768px) {
    h2 {
        font-size: 2.5rem;
    }

    p {
        font-size: 1.1rem;
    }


    #main-header {
        padding: 15px 5%; /* Adjust padding as needed */
        justify-content: flex-start; /* Align logo left */
    }

     #main-header .logo {
        height: 65px; /* INCREASED logo height for tablet+ */
    }

    .full-screen-section {
       /* Increased top padding for taller header */
       padding: 120px 5% 50px; /* Example: Adjusted top padding */
    }

    #section1 .tagline {
        font-size: 2.2rem;
    }

    #section1 .carnaval-girl {
        max-width: 350px;
    }

    #section2 .donation-content,
    #section3 .impact-content {
        flex-direction: row;
        text-align: left;
        gap: 50px;
    }

     #section2 .donation-girl,
     #section3 .impact-kid {
        max-width: 40%;
        order: 0;
        margin-bottom: 0;
    }

     #section2 .donation-text,
     #section3 .impact-text {
        flex: 1;
        order: 0;
    }

     .impact-examples {
        justify-content: flex-start;
        gap: 30px;
    }

    .impact-examples img.clickable-backpack {
        width: 160px;
    }

     .logo-footer {
         margin: 30px 0 0 0;
     }

     .cta-button {
        font-size: 1.1rem;
     }
}

/* Desktop Styles (UPDATED HEADER/PADDING) */
@media (min-width: 1024px) {
    h2 {
        font-size: 2.8rem;
    }

    p {
        font-size: 1.2rem;
    }

     .content {
        padding: 40px 50px;
     }

    #main-header .logo {
        height: 70px; /* INCREASED logo height for desktop */
    }

     .full-screen-section {
       /* Increased top padding for taller header */
       padding: 130px 5% 60px; /* Example: Adjusted top padding */
    }


    #section1 .carnaval-girl {
        max-width: 400px;
    }

     #section2 .donation-girl {
         max-width: 45%;
     }
     #section3 .impact-kid {
        max-width: 40%;
     }

    .impact-examples img.clickable-backpack {
        width: 180px;
    }
}

/* Adjust close button size/position on smaller screens if needed */
@media (max-width: 767px) {
    #modal-close {
        top: 10px;
        right: 25px;
        font-size: 35px;
    }
     #modal-image {
         max-width: 95%;
         max-height: 80vh;
    }
     /* Adjust section padding specifically for mobile if needed */
     .full-screen-section {
         padding-top: 90px; /* Fine-tune mobile top padding */
     }
     #main-header .logo {
         height: 50px; /* Slightly smaller logo on smallest screens */
     }
}