/* Apply the custom font */
body {
    font-family: 'Be Vietnam Pro', sans-serif;
}

/* --- General Section Styling --- */
section {
    position: relative;
    overflow: hidden; /* Contain particles */
    padding-top: 7rem;
    padding-bottom: 7rem;
    /* Default for mobile: content-driven height */
    display: flex; /* Use flexbox for mobile */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
}

@media (min-width: 768px) { /* md breakpoint */
    section {
        min-height: 50vh;
        flex-direction: row; /* Revert to row for desktop */
        align-items: center;
    }
}

.section-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
}

@media (min-width: 768px) { /* md breakpoint */
    .scene-background {
        opacity: 0.3; /* Reduce opacity to make it less of an "overlay" */
    }
}

/* --- Scroll Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Seasonal Backgrounds --- */
#wellbeing { /* Summer */
    background: linear-gradient(135deg, #ffe082 0%, #ebb2a1 100%); /* Darker shades of yellow/orange */
}
#asana { /* Summer */
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}
#anywhere { /* Autumn */
    background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
}
#cta { /* Winter */
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
}

/* --- Scene Elements for Section 1 --- */
.scene-background {
    position: absolute;
    inset: 0;
    z-index: 5;
}
.scene-background .wall {
    position: absolute;
    inset-x: 0;
    top: 0;
    height: 75%;
    background-color: #ffe082; /* Lighter amber */
}
.scene-background .floor {
    position: absolute;
    inset-x: 0;
    bottom: 0;
    height: 25%;
    background-color: #b45309; /* amber-800 */
}
/* Hide scene elements on small screens to reduce blank space */
@media (max-width: 767px) { /* sm breakpoint */
    #yoga-mat,
    #window-scene,
    #plant1,
    #plant2 {
        display: none;
    }
}

/* Desktop styles for scene elements */
@media (min-width: 768px) { /* md breakpoint */
    #yoga-mat {
        position: absolute;
        bottom: 155px; /* Adjusted to move higher with the character */
        left: 75%;
        transform: translateX(-50%);
        width: 400px;
        height: 1rem;
        background-color: #6366f1; /* indigo-500 */
        border-radius: 9999px;
        box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    }
    #window-scene {
        position: absolute;
        top: 25%;
        right: 4rem;
        width: 16rem;
        height: 12rem;
        background-color: #d97706; /* amber-600 */
        border-radius: 0.5rem;
        box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
        padding: 0.5rem;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
        border-width: 4px;
        border-color: rgb(180 83 9 / 0.5);
    }
    #window-scene > div {
        background-color: rgb(224 242 254 / 0.5);
        border-radius: 0.25rem;
    }
    #summer-sun {
        position: absolute;
        top: -1rem;
        right: -1rem;
        width: 4rem;
        height: 4rem;
        background-color: #fcd34d; /* yellow-300 */
        border-radius: 9999px;
        filter: blur(4px);
        animation: sun-pulse 3s infinite alternate;
    }

    @keyframes sun-pulse {
        0% { transform: scale(1); opacity: 1; }
        100% { transform: scale(1.1); opacity: 0.9; }
    }
    #plant1 {
        position: absolute;
        bottom: 9rem;
        right: 30rem;
        z-index: 6;
    }
    #plant1 .pot { width: 4rem; height: 5rem; background-color: #7f1d1d; border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1); }
    #plant1 .leaf { position: absolute; background-color: #16a34a; border-radius: 9999px; }
    #plant2 {
        position: absolute;
        bottom: 7rem;
        right: 24rem;
        z-index: 6;
    }
    #plant2 .pot { width: 5rem; height: 6rem; background-color: #7f1d1d; border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1); }
    #plant2 .leaf { position: absolute; background-color: #15803d; border-radius: 9999px; }
}


/* --- Particle Animations --- */
.particle-container { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; }
.particle { position: absolute; animation: fall linear infinite; }

@keyframes fall {
    0% { transform: translateY(-10vh) translateX(0); opacity: 1; }
    100% { transform: translateY(110vh) translateX(var(--x-drift)); opacity: 0; }
}

.leaf { background-color: #c8877a; width: 12px; height: 12px; clip-path: polygon(50% 0%, 83% 12%, 100% 43%, 94% 78%, 68% 100%, 32% 100%, 6% 78%, 0% 43%, 17% 12%); animation-name: fall, spin; animation-timing-function: linear, ease-in-out; animation-iteration-count: infinite, infinite; animation-direction: normal, alternate; }
.snowflake { background-color: rgba(255, 255, 255, 0.9); border-radius: 50%; }
.shimmer { position: absolute; background: white; opacity: 0; border-radius: 50%; animation: shimmer-effect 4s ease-in-out infinite; }
.firefly {
    background-color: #ffeb3b; /* Yellow */
    box-shadow: 0 0 8px 4px rgba(255, 235, 59, 0.7);
    border-radius: 50%;
    animation: firefly-glow 2s infinite alternate, firefly-move 10s linear infinite;
}

@keyframes shimmer-effect { 0%, 100% { transform: scale(0.5); opacity: 0; } 50% { transform: scale(1.2); opacity: 0.1; } }
@keyframes spin { from { transform: rotate(0deg) translateX(5px) rotate(0deg); } to { transform: rotate(360deg) translateX(5px) rotate(-360deg); } }
@keyframes firefly-glow {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

@keyframes firefly-move {
    0% { transform: translate(0, 0); }
    25% { transform: translate(20vw, 10vh); }
    50% { transform: translate(50vw, 5vh); }
    75% { transform: translate(30vw, 15vh); }
    100% { transform: translate(0, 0); }
}

/* --- Asana Animation Styles --- */
.character-container {
    position: absolute;
    bottom: 50px;
    width: 300px;
    height: 300px;
    z-index: 4; /* Changed to put character behind plants */
}
/* Positioning for each section's character */
/* Default for mobile */
.character-container {
    position: absolute; /* Default to absolute for desktop */
    bottom: 50px;
    width: 300px;
    height: 300px;
    z-index: 5;
}

/* Positioning for each section's character */
/* Default for mobile */
@media (max-width: 767px) { /* sm breakpoint */
    .character-container {
        position: relative; /* Make it flow with content */
        left: auto; /* Remove absolute positioning */
        transform: none; /* Remove absolute positioning transform */
        bottom: auto; /* Remove absolute positioning */
        margin-top: 2rem; /* Add some space below content */
    margin-left: auto; /* Center horizontally */
    margin-right: auto; /* Center horizontally */
}

#wellbeing .character-container {
    left: 25%; /* Move it to 40% from the left */
    transform: translateX(-50%); /* Keep it centered relative to the new left position */
    margin-left: 0; /* Reset auto margins */
    margin-right: 0; /* Reset auto margins */
}
}

@media (min-width: 768px) { /* md breakpoint */
    .character-container { /* Re-apply absolute positioning for desktop */
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 0;
    }
    #wellbeing .character-container { left: 75%; transform: translateX(-50%); bottom: 150px; } /* Move higher for desktop */
    #asana .character-container { left: 25%; transform: translateX(-50%) translateY(-50%); top: 50%; }
    #anywhere .character-container { left: 75%; transform: translateX(-50%) translateY(-50%); top: 50%; }
    #cta .character-container { left: 25%; transform: translateX(-50%); bottom: 50px; }
}

@media (min-width: 768px) { /* md breakpoint */
    #wellbeing .character-container { left: 75%; transform: translateX(-50%); bottom: 150px; } /* Move higher for desktop */
    #asana .character-container { left: 25%; transform: translateX(-50%) translateY(-50%); top: 50%; }
    #anywhere .character-container { left: 75%; transform: translateX(-50%) translateY(-50%); top: 50%; }
    #cta .character-container { left: 25%; transform: translateX(-50%); bottom: 50px; }
}

.character { position: relative; width: 100%; height: 100%; }
.body-part { position: absolute; border: none; border-radius: 0.25rem; }

/* Universal Transform Origins */
.torso { transform-origin: bottom center; }
.head { transform-origin: bottom center; }
.upper-arm { transform-origin: top center; }
.forearm { transform-origin: top center; }
.upper-leg { transform-origin: top center; }
.lower-leg { transform-origin: top center; }
.foot { transform-origin: 10% center; }

/* --- Character 1: Downward Dog (Spring) --- */
#char1 .torso { width: 3rem; height: 5rem; bottom: 9rem; left: 50%; transform: translateX(-50%); background-color: #f472b6; /* Pink */ }
#char1 .head { width: 2rem; height: 2.5rem; bottom: 100%; left: 40%; transform: translateX(-50%); background-color: #fce7d7; /* Skin tone */ border-radius: 50%; }
#char1 .head::before { /* Hair */
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    width: 100%;
    height: 1rem;
    background-color: #6b4423; /* Dark brown hair */
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    z-index: -1;
}
#char1 .head::after { /* Face elements */
    content: '';
    position: absolute;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0.25rem;
    height: 0.25rem;
    background-color: #1e293b; /* Dark color for eyes */
    border-radius: 50%;
    box-shadow: 0.5rem 0 #1e293b; /* Second eye */
}
#char1 .torso::before { /* Yoga top */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f472b6; /* Pink */
    border-radius: 0.25rem;
    z-index: 1;
}
#char1 .torso::after { /* Yoga bottom */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%; /* Adjust as needed */
    background-color: #f472b6; /* Pink */
    border-radius: 0.25rem;
    z-index: 1;
}
#char1 .upper-arm { width: 1.5rem; height: 3rem; top: 0; background-color: #f472b6; /* Skin tone */ }
#char1 .left-upper-arm { left: 0; }
#char1 .right-upper-arm { right: 0; }
#char1 .forearm { width: 1.25rem; height: 3rem; top: 100%; left: 50%; transform: translateX(-50%); background-color: #fce7d7; /* Skin tone */ }
#char1 .hand { width: 1rem; height: 1rem; top: 100%; left: 50%; transform: translateX(-50%); background-color: #fce7d7; /* Skin tone */ border-radius: 50%; }
#char1 .upper-leg { width: 1.75rem; height: 3.5rem; top: 100%; background-color: transparent; }
#char1 .left-upper-leg { left: -0.25rem; }
#char1 .right-upper-leg { right: -0.25rem; }
#char1 .upper-leg::before { /* Yoga pants */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f472b6; /* Pink */
    border-radius: 0.25rem;
    z-index: 1;
}
#char1 .lower-leg { width: 1.5rem; height: 3.5rem; top: 100%; left: 50%; transform: translateX(-50%); background-color: #fce7d7; /* Skin tone */ }
#char1 .hand { width: 1rem; height: 1rem; top: 100%; left: 50%; transform: translateX(-50%); background-color: #fce7d7; /* Skin tone */ border-radius: 50%; }
#char1 .foot { width: 2rem; height: 1.25rem; top: 100%; background-color: #6b4423; /* Skin tone */ border-radius: 0.25rem; }

/* --- Character 2: Warrior II (Summer) --- */
#char2 .torso { width: 3rem; height: 5rem; bottom: 9rem; left: 50%; transform: translateX(-50%); background-color: #3b82f6; /* Blue */ }
#char2 .head { width: 2rem; height: 2.5rem; bottom: 100%; left: 40%; transform: translateX(-50%); background-color: #fce7d7; /* Skin tone */ border-radius: 50%; }
#char2 .head::before { /* Hair */
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    width: 100%;
    height: 1rem;
    background-color: #6b4423; /* Dark brown hair */
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    z-index: -1;
}
#char2 .head::after { /* Face elements */
    content: '';
    position: absolute;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0.25rem;
    height: 0.25rem;
    background-color: #1e293b; /* Dark color for eyes */
    border-radius: 50%;
    box-shadow: 0.5rem 0 #1e293b; /* Second eye */
}
#char2 .upper-arm { width: 1.5rem; height: 3rem; top: 0; background-color: #3b82f6; /* Blue */ }
#char2 .left-upper-arm { left: 0; }
#char2 .right-upper-arm { right: 0; }
#char2 .forearm { width: 1.25rem; height: 3rem; top: 100%; left: 50%; transform: translateX(-50%); background-color: #fce7d7; /* Skin tone */ }
#char2 .hand { width: 1rem; height: 1rem; top: 100%; left: 50%; transform: translateX(-50%); background-color: #fce7d7; /* Skin tone */ border-radius: 50%; }
#char2 .upper-leg { width: 1.75rem; height: 3.5rem; top: 100%; background-color: transparent; }
#char2 .left-upper-leg { left: -0.25rem; }
#char2 .right-upper-leg { right: -0.25rem; }
#char2 .upper-leg::before { /* Yoga pants */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #3b82f6; /* Blue */
    border-radius: 0.25rem;
    z-index: 1;
}
#char2 .lower-leg { width: 1.5rem; height: 3.5rem; top: 100%; left: 50%; transform: translateX(-50%); background-color: #fce7d7; /* Skin tone */ }
#char2 .foot { width: 2rem; height: 1.25rem; top: 100%; background-color: #6b4423; /* Dark brown */ }

/* --- Character 3: Tree Pose (Autumn) --- */
#char3 .torso { width: 3rem; height: 5rem; bottom: 9rem; left: 50%; transform: translateX(-50%); background-color: #facc15; /* Yellow */ }
#char3 .head { width: 2rem; height: 2.5rem; bottom: 100%; left: 40%; transform: translateX(-50%); background-color: #fce7d7; /* Skin tone */ border-radius: 50%; }
#char3 .head::before { /* Hair */
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    width: 100%;
    height: 1rem;
    background-color: #6b4423; /* Dark brown hair */
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    z-index: -1;
}
#char3 .head::after { /* Face elements */
    content: '';
    position: absolute;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0.25rem;
    height: 0.25rem;
    background-color: #1e293b; /* Dark color for eyes */
    border-radius: 50%;
    box-shadow: 0.5rem 0 #1e293b; /* Second eye */
}
#char3 .upper-arm { width: 1.5rem; height: 3rem; top: 0; background-color: #facc15; /* Yellow */ }
#char3 .left-upper-arm { left: 0; }
#char3 .right-upper-arm { right: 0; }
#char3 .forearm { width: 1.25rem; height: 3rem; top: 100%; left: 50%; transform: translateX(-50%); background-color: #fce7d7; /* Skin tone */ }
#char3 .hand { width: 1rem; height: 1rem; top: 100%; left: 50%; transform: translateX(-50%); background-color: #fce7d7; /* Skin tone */ border-radius: 50%; }
#char3 .upper-leg { width: 1.75rem; height: 3.5rem; top: 100%; background-color: transparent; }
#char3 .left-upper-leg { left: -0.25rem; }
#char3 .right-upper-leg { right: -0.25rem; }
#char3 .upper-leg::before { /* Yoga pants */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #facc15; /* Yellow */
    border-radius: 0.25rem;
    z-index: 1;
}
#char3 .lower-leg { width: 1.5rem; height: 3.5rem; top: 100%; left: 50%; transform: translateX(-50%); background-color: #fce7d7; /* Skin tone */ }
#char3 .foot { width: 2rem; height: 1.25rem; top: 100%; background-color: #6b4423; /* Dark brown */ }

/* --- Character 4: Seated Meditation (Winter) --- */
#char4 .torso { width: 3rem; height: 5rem; bottom: 9rem; left: 50%; transform: translateX(-50%); background-color: #f472b6; /* Pink */ }
#char4 .head { width: 2rem; height: 2.5rem; bottom: 100%; left: 40%; transform: translateX(-50%); background-color: #fce7d7; /* Skin tone */ border-radius: 50%; }
#char4 .head::before { /* Hair */
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    width: 100%;
    height: 1rem;
    background-color: #6b4423; /* Dark brown hair */
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    z-index: -1;
}
#char4 .head::after { /* Face elements */
    content: '';
    position: absolute;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0.25rem;
    height: 0.25rem;
    background-color: #1e293b; /* Dark color for eyes */
    border-radius: 50%;
    box-shadow: 0.5rem 0 #1e293b; /* Second eye */
}
#char4 .upper-arm { width: 1.5rem; height: 3rem; top: 0; background-color: #f472b6; /* Pink */ }
#char4 .left-upper-arm { left: 0; }
#char4 .right-upper-arm { right: 0; }
#char4 .forearm { width: 1.25rem; height: 3rem; top: 100%; left: 50%; transform: translateX(-50%); background-color: #fce7d7; /* Skin tone */ }
#char4 .hand { width: 1rem; height: 1rem; top: 100%; left: 50%; transform: translateX(-50%); background-color: #fce7d7; /* Skin tone */ border-radius: 50%; }
#char4 .upper-leg { width: 1.75rem; height: 3.5rem; top: 100%; background-color: transparent; }
#char4 .left-upper-leg { left: -0.25rem; }
#char4 .right-upper-leg { right: -0.25rem; }
#char4 .upper-leg::before { /* Yoga pants */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f472b6; /* Pink */
    border-radius: 0.25rem;
    z-index: 1;
}
#char4 .lower-leg { width: 1.5rem; height: 3.5rem; top: 100%; left: 50%; transform: translateX(-50%); background-color: #fce7d7; /* Skin tone */ }
#char4 .foot { width: 2rem; height: 1.25rem; top: 100%; background-color: #6b4423; /* Dark brown */ }
