:root {
    --light-green: #dbf9b3;
    --red: #e11f33;
    --yellow: #fdf787;
    --orange: #FF9000;
    --jungle-green: #5B8E7D;
    --dark-text: #210124;
}

::selection { background-color: var(--red); color: var(--light-green); }

body {
    margin: 0; padding: 0;
    background-color: var(--light-green);
    color: var(--dark-text);
    font-family: "Fiona", sans-serif;
    overflow-x: hidden;
    cursor: none; 
}

a {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}
a:focus, a:active {
    outline: none !important;
}

header {
    min-height: 100vh; 
    width: 100vw;
    max-width: 100%; 
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    padding: 6rem 8vw 8rem 8vw; 
}

section {
    width: 100vw;
    max-width: 100%; 
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    align-items: center; 
    padding: 4rem 8vw 6rem 8vw; 
}

img {
    max-width: 100%;
    height: auto;
}

.bloom-js {
    opacity: 0;
    transform: scale(0);
    transform-origin: center;
    transition: opacity 0.1s ease-out;
}

h1, h2, h3 { 
    font-family: "Grafolita-Script", serif; 
    color: var(--red); 
    text-align: center; 
    margin: 0;
}

section h2 { 
    margin-top: 0;
    font-size: 3.5rem; 
    margin-bottom: 1.5rem; 
}

a, button { cursor: none; }

#bee-cursor {
    position: fixed; top: 0; left: 0;
    width: 60px; 
    height: auto;
    pointer-events: none;
    z-index: 9999; transform: translate(-50%, -50%);
}

#landing {
    position: relative;
    background: radial-gradient(circle at center, #ffffff 0%, var(--light-green) 100%);
    border-bottom: 8px solid var(--jungle-green);
    overflow: hidden;
    padding: 2rem;
}

#landing-text-container { z-index: 10; text-align: center; position: relative; }
#landing h1 {font-size: clamp(4rem, 8vw, 8rem); text-shadow: 4px 4px 0px var(--yellow); }
#landing p { font-size: clamp(1.2rem, 3vw, 2rem); color: var(--orange); font-weight: 600; margin-top: 10px; }

.landing-flower { position: absolute; opacity: 0; transform: scale(0); z-index: 1; }

.f1 { top: 12%; left: 3%; width: clamp(120px, 20vw, 350px); }
.f2 { top: 59%; left: 10%; width: clamp(130px, 22vw, 220px); }
.f3 { top: 4%; left: 42%; width: clamp(100px, 16vw, 250px); }
.f4 { bottom: 12%; right: 39%; width: clamp(100px, 16vw, 190px); }
.f5 { top: 15%; right: 2%; width: clamp(120px, 22vw, 280px); }
.f6 { top: 58%; right: 3%; width: clamp(130px, 20vw, 240px); }

#slideshow-section {
    position: relative;
    background-color: var(--dark-text);
    border-bottom: 8px solid var(--jungle-green);
    min-height: 100vh;
    justify-content: center;
}

#slideshow-section h2 {
    color: var(--light-green); 
    text-shadow: 3px 3px 0px var(--red);
}

#slideshow-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem; 
    width: 100%;
    max-width: 900px;
}

#slideshow-container {
    position: relative;
    width: 95%;
    max-width: 500px;
    aspect-ratio: 6 / 8;
    height: auto;
    overflow: hidden;
    border-radius: 20px;
    border: 6px solid var(--light-green);
    box-shadow: 10px 10px 0px var(--red);
    left: -5px; 
    top: -5px;
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; 
    height: 100%;
    object-fit: cover; 
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active { opacity: 1; }

.slide-btn {
    background: rgba(0, 0, 0, 0.4); 
    color: var(--light-green);
    border: none;
    padding: 0.6rem 0.9rem; 
    font-size: 1.2rem; 
    border-radius: 50%;
    z-index: 10;
    transition: 0.3s;
    cursor: none;
}

.slide-btn:hover { background: var(--red); color: white; }

#scroll-container {
    position: fixed; bottom: 20px; left: 0; width: 100vw;
    display: flex; flex-direction: column; align-items: center;
    z-index: 9998; pointer-events: none; transition: opacity 0.4s ease; 
}
#scroll-butterfly-img { width: 70px; margin-bottom: -1rem;}
#scroll-arrow { font-size: 1rem; color: var(--jungle-green); font-weight: bold; margin-top: 2px; }

@keyframes flutter {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}
#scroll-container.bouncing #scroll-butterfly-img { animation: flutter 0.8s ease-in-out infinite; }

.carousel-wrapper { position: relative; width: 100%; max-width: 100%; margin: 0 auto; user-select: none; }
.carousel { 
    display: flex; 
    overflow-x: auto; 
    scroll-snap-type: x mandatory; 
    gap: 2rem; 
    padding: 1rem calc(50vw - min(40vw, 225px)); 
    scrollbar-width: none; 
    align-items: flex-start;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.carousel::-webkit-scrollbar { display: none; }

.carousel-item {
    flex: 0 0 90%;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.carousel-img { 
    width: 100%;
    aspect-ratio: 4 / 3; 
    object-fit: cover; 
    border-radius: 30px; 
    border: 4px solid var(--red); 
    box-shadow: 8px 8px 0px var(--jungle-green); 
    position: relative;
    left: -4px; 
    top: -4px;
}

.carousel-desc {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-text);
    text-align: center;
    padding: 0 10px;
}

.custom-scrollbar-area { 
    width: 75%; 
    max-width: 800px; 
    height: 12px; 
    background: var(--jungle-green); 
    border-radius: 20px; 
    position: relative; 
    cursor: none; 
    margin: 1.5rem auto 0 auto;
    touch-action: none;
}
.scrollbar-fill { position: absolute; top: 0; left: 0; height: 100%; width: 0%; background: var(--red); border-radius: 20px; }
.hummingbird-thumb { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); width: 65px; z-index: 5; }
.flower-end { position: absolute; top: -9px; left: calc(100% + 5px); transform: translateY(-50%); width: 75px; }

#contribute { background-color: var(--yellow); border-top: 8px solid var(--red); border-bottom: 8px solid var(--red); }
.contribute-wrapper { max-width: 1000px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: center; width: 100%; }

.video-container { 
    flex: 1 1 400px; 
    background: var(--orange); 
    padding: 1rem; border-radius: 20px; 
    box-shadow: 10px 10px 0px var(--light-green); 
    position: relative;
    left: -5px; top: -5px;
}

video { 
    width: 100%; 
    border-radius: 10px; 
    display: block; 
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.instructions { 
    flex: 1 1 300px; 
    background: var(--light-green); 
    padding: 2rem; 
    border-radius: 30px; 
    box-shadow: 8px 8px 0px var(--jungle-green); 
    text-align: left; 
    position: relative;
    left: -4px; top: -4px;
}

.instructions h3 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
}

.instructions ol { font-size: 1.2rem; line-height: 1.8; font-weight: 600; margin: 0; padding-left: 1.5rem; }

#resources { background-color: var(--jungle-green); }
#resources h2 { color: var(--light-green); text-shadow: 3px 3px 0px var(--dark-text); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; width: 100%; justify-content: center; align-items: stretch; }

.card { 
    background: var(--light-green); 
    padding: 2rem; 
    border-radius: 15px 50px 15px 50px; 
    text-align: center; 
    border: 4px solid var(--red); 
    text-decoration: none; 
    color: var(--dark-text); 
    box-shadow: 6px 6px 0px var(--orange); 
    transition: background 0.4s, border-radius 0.4s, transform 0.4s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    left: -3px; top: -3px;
}
.card:hover { background: var(--yellow); border-radius: 50px 15px 50px 15px; transform: translateY(-5px) scale(1.02) !important; }
.card h3 { font-size: 1.7rem; margin: 0.5rem 0; opacity: 1; transform: none; }
.card p { opacity: 1; transform: none; margin: 0.5rem 0; }

footer { 
    padding: 6rem 8vw 8rem 8vw; 
    text-align: center; 
    background: var(--dark-text); 
    color: var(--light-green); 
    width: 100vw;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
footer h2 {
    font-size: 2.5rem; 
    margin-bottom: 1rem;
}
footer p { 
    max-width: 600px; 
    margin: 0 auto 2.5rem auto; 
    line-height: 1.6; 
}
.portfolio-btn { 
    display: inline-block;
    margin-bottom: -1rem; 
    margin-top: .1rem;
    padding: 1rem 3rem; 
    font-size: 1.2rem; 
    font-weight: bold; 
    color: var(--dark-text); 
    background-color: var(--red); 
    text-decoration: none; 
    border-radius: 50px; 
    box-shadow: 5px 5px 0px var(--light-green); 
    transition: 0.3s; 
    position: relative;
    left: -2.5px; top: -2.5px;
}
.portfolio-btn:hover { background-color: var(--yellow); }

@keyframes safeFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.small-back-btn {
    position: absolute;
    top: 20px;
    left: 4vw; 
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--dark-text);
    background-color: var(--light-green);
    text-decoration: none;
    padding: 0.3rem 0.8rem;
    border: 2px solid var(--red);
    border-radius: 20px;
    box-shadow: 2px 2px 0px var(--jungle-green);
    transition: 0.3s;
    z-index: 100;
    cursor: none; 
    opacity: 0;
    animation: safeFadeIn 0.8s ease-out 0.2s forwards;
}

.small-back-btn:hover {
    background-color: var(--yellow);
    transform: translateY(-2px) !important; 
    box-shadow: 4px 4px 0px var(--jungle-green);
}

body.resource-page {
    background-image: url('images/grass.jpg'); 
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-color: var(--jungle-green); 
    display: flex;
    flex-direction: column;
    height: 100vh; 
    overflow: hidden; 
}

.resource-header {
    min-height: auto; 
    flex-shrink: 0; 
    width: 100vw;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5rem 5vw 0rem 5vw; 
}

.resource-header h1 {
    color: #dbf9b3;
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 5px;
}

.flower-scatter-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    align-content: center; 
    gap: clamp(1rem, 5vw, 3rem); 
    padding: 2rem 12vw 6rem 12vw; 
    flex-grow: 1; 
    width: 100vw;
    max-width: 100%;
    box-sizing: border-box;
}

.flower-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--dark-text);
    width: 100%;
    max-width: clamp(100px, 15vw, 240px);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    opacity: 1; 
}

.flower-link img {
    width: 100%;
    height: auto;
    transition: 0.3s ease;
}

.flower-link:nth-child(even) { transform: translateY(-15px) rotate(6deg); }
.flower-link:nth-child(odd) { transform: translateY(-15px) rotate(-4deg); }

.flower-link:hover {
    transform: scale(1.2) translateY(-15px) !important; 
    z-index: 10;
}

@media (pointer: coarse) {
    body, a, button, .small-back-btn, .slide-btn, .custom-scrollbar-area {
        cursor: auto !important;
    }
    #bee-cursor { 
        display: none !important; 
    }
}

@media (max-width: 768px) {
    #landing h1 {
        font-size: clamp(3rem, 12vw, 5rem);
    }
    section h2 {
        font-size: 2.5rem;
    }
    #slideshow-container {
        width: 85vw;
        max-width: 90%;
    }
    .instructions h3 {
        font-size: 1.8rem;
    }
    .card h3 {
        font-size: 1.4rem;
    }
    footer h2 {
        font-size: 2rem;
    }
    .resource-header h1 {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }
}
