* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #fff0f5; 
    color: #333;
    overflow-x: hidden;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    color: white;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.scroll-indicator {
    margin-top: 2rem;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

.month-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px dashed #ffb6c1;
}

.content {
    max-width: 800px;
    width: 100%;
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0; /* Hidden by default until JS triggers */
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.month-section:nth-child(even) .content {
    background: #fffcfd;
}

h2 {
    color: #d1495b;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
}

/* Delete this class once you swap in your actual images */
.image-placeholder {
    width: 100%;
    /* height: 300px; */
    background-color: #ffe4e1;
    border: 2px dashed #ffb6c1;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* margin-bottom: 1.5rem; */
    color: #ff69b4;
    font-weight: bold;
}

.finale {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to top, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    color: white;
    text-align: center;
}

.finale .content {
    background: rgba(255, 255, 255, 0.9);
}

/* ====================================================
   SCROLL ANIMATIONS (Triggered by 'is-visible' class)
   ==================================================== */

/* 1. Fade Up */
[data-animation="fade-up"] .content { transform: translateY(100px); }
[data-animation="fade-up"].is-visible .content { opacity: 1; transform: translateY(0); }

/* 2. Slide Left */
[data-animation="slide-left"] .content { transform: translateX(100px); }
[data-animation="slide-left"].is-visible .content { opacity: 1; transform: translateX(0); }

/* 3. Zoom In */
[data-animation="zoom-in"] .content { transform: scale(0.5); }
[data-animation="zoom-in"].is-visible .content { opacity: 1; transform: scale(1); }

/* 4. Flip Up */
[data-animation="flip-up"] .content { transform: perspective(400px) rotateX(90deg); }
[data-animation="flip-up"].is-visible .content { opacity: 1; transform: perspective(400px) rotateX(0); }

/* 5. Rotate In */
[data-animation="rotate-in"] .content { transform: rotate(-90deg) scale(0.5); }
[data-animation="rotate-in"].is-visible .content { opacity: 1; transform: rotate(0) scale(1); }

/* 6. Blur In */
[data-animation="blur-in"] .content { filter: blur(20px); transform: translateY(50px); }
[data-animation="blur-in"].is-visible .content { opacity: 1; filter: blur(0); transform: translateY(0); }

/* 7. Slide Right */
[data-animation="slide-right"] .content { transform: translateX(-100px); }
[data-animation="slide-right"].is-visible .content { opacity: 1; transform: translateX(0); }

/* 8. Bounce In */
@keyframes customBounce {
    0% { opacity: 0; transform: translateY(-200px); }
    60% { opacity: 1; transform: translateY(30px); }
    80% { transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}
[data-animation="bounce-in"].is-visible .content { animation: customBounce 1s forwards; }

/* 9. Flip X */
[data-animation="flip-x"] .content { transform: perspective(400px) rotateY(90deg); }
[data-animation="flip-x"].is-visible .content { opacity: 1; transform: perspective(400px) rotateY(0); }

/* 10. Zoom Out */
[data-animation="zoom-out"] .content { transform: scale(1.5); }
[data-animation="zoom-out"].is-visible .content { opacity: 1; transform: scale(1); }

/* 11. Fade Down */
[data-animation="fade-down"] .content { transform: translateY(-100px); }
[data-animation="fade-down"].is-visible .content { opacity: 1; transform: translateY(0); }

/* 12. Scale Up */
[data-animation="scale-up"] .content { transform: scale(0.1) translateY(200px); }
[data-animation="scale-up"].is-visible .content { opacity: 1; transform: scale(1) translateY(0); }

/* Finale: Heartbeat */
@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.05); }
    28% { transform: scale(1); }
    42% { transform: scale(1.05); }
    70% { transform: scale(1); }
}
[data-animation="heartbeat"].is-visible .content { 
    opacity: 1; 
    animation: heartbeat 1.5s infinite; 
}

/* General Bounce for the arrow */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

/* ====================================================
   MOBILE RESPONSIVENESS (iPhone Mini, Compact Androids)
   ==================================================== */

/* Target standard mobile phones */
@media (max-width: 600px) {
    /* Adjust Hero Section */
    .hero {
        padding: 0 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.5rem; /* Scaled down from 4rem */
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Adjust Content Boxes */
    .month-section {
        padding: 2rem 1rem; /* Less padding on the sides */
        min-height: auto; /* Let the content dictate height instead of forcing 100vh */
        padding-top: 4rem; 
        padding-bottom: 4rem;
    }
    
    .content {
        padding: 1.5rem; /* Thinner inside padding */
        border-radius: 15px;
    }

    /* Adjust Typography */
    h2 {
        font-size: 1.8rem; /* Scaled down from 2.5rem */
        margin-bottom: 1rem;
    }
    
    p {
        font-size: 1rem;
    }

    /* Fix Image Sizing for Small Screens */
    .image-placeholder {
        height: 200px; /* Smaller placeholder */
        margin-bottom: 1rem;
    }

    /* Tame the animations to prevent horizontal scrolling/stretching on small screens */
    [data-animation="slide-left"] .content { transform: translateX(50px); }
    [data-animation="slide-right"] .content { transform: translateX(-50px); }
    [data-animation="fade-up"] .content { transform: translateY(50px); }
    [data-animation="fade-down"] .content { transform: translateY(-50px); }
    [data-animation="scale-up"] .content { transform: scale(0.5) translateY(50px); }
    
    @keyframes customBounce {
        0% { opacity: 0; transform: translateY(-100px); }
        60% { opacity: 1; transform: translateY(15px); }
        80% { transform: translateY(-5px); }
        100% { opacity: 1; transform: translateY(0); }
    }
}

/* Extra optimization specifically for iPhone Mini / small Android displays (~360px - 375px) */
@media (max-width: 380px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .content {
        padding: 1.25rem;
    }
    
    .image-placeholder {
        height: 180px;
    }
}

/* ====================================================
   IMAGE HANDLING (For when you add real photos)
   ==================================================== */
/* Add this rule so that when you replace the placeholders with actual <img> tags, they stay perfectly inside their boxes without stretching */
.content img {
    width: 100%;
    max-height: 400px;
    object-fit: cover; /* Keeps images from looking squished */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}