* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow: hidden;
    background-color: #ffffff; /* Initial liminal white */
    font-family: 'Dancing Script', cursive;
    color: #333;
    transition: background-color 2s ease-in-out;
}

body.cinematic-mode {
    background-color: #050505; /* Dark cinematic theater vibe */
    color: #fff;
}

/* Phase 1: 3D Canvas */
#three-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none; /* Let clicks pass through if needed */
}

/* Phase 2: Carousel */
#carousel-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* Let non-interactive parts pass clicks */
}

.carousel-item {
    position: absolute;
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    cursor: pointer;
}

.carousel-item img {
    width: 60vw;
    max-width: 600px;
    height: auto;
    display: block;
    border: 10px solid #fff;
    border-radius: 10px;
}

/* The interactive trigger button */
#shatter-btn {
    position: absolute;
    bottom: 10%;
    padding: 15px 40px;
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff69b4;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #ffb6c1;
    border-radius: 50px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.3);
}

#shatter-btn.visible {
    opacity: 1;
    pointer-events: auto;
    animation: heartbeatBtn 1.5s ease-in-out infinite;
}

#shatter-btn:hover {
    background: #ff69b4;
    color: #fff;
    box-shadow: 0 0 25px rgba(255, 105, 180, 0.8);
    transform: scale(1.1);
}

@keyframes heartbeatBtn {
    0%, 100% { transform: scale(1); box-shadow: 0 0 15px rgba(255, 105, 180, 0.3); }
    15% { transform: scale(1.05); box-shadow: 0 0 25px rgba(255, 105, 180, 0.6); }
    30% { transform: scale(1); box-shadow: 0 0 15px rgba(255, 105, 180, 0.3); }
    45% { transform: scale(1.05); box-shadow: 0 0 25px rgba(255, 105, 180, 0.6); }
}

/* Phase 4: Cinematic Poem */
#poem-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    text-align: center;
    width: 80%;
    max-width: 800px;
}

.poem-line {
    font-size: 4vw; /* Responsive to avoid wrapping */
    white-space: nowrap;
    margin-bottom: 2rem;
    font-family: 'Great Vibes', cursive;
    opacity: 0; /* Hidden initially for Anime.js to reveal */
    
    /* Glistening/Shimmering effect */
    background: linear-gradient(90deg, #fff 0%, #ffcbe0 50%, #fff 100%);
    background-size: 200% auto;
    color: rgba(255,255,255,0.9);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
    text-shadow: 0 0 15px rgba(255, 203, 224, 0.5);
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

.hidden {
    display: none !important;
}

/* Intro Overlay */
#intro-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff; /* Liminal white */
    z-index: 50;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 2s ease, transform 2s ease;
}

#intro-container h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 8vw;
    color: #ff69b4;
    margin-bottom: 1rem;
    font-weight: 400;
    text-shadow: 0 0 20px rgba(255, 105, 180, 0.3);
}

.pulse-text {
    font-size: 1.2rem;
    color: #888;
    animation: pulse 2s infinite ease-in-out;
    font-style: italic;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* The Big Finale Heart */
#big-heart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 15rem;
    z-index: 15; /* Behind the poem but in front of background */
    opacity: 0;
    text-shadow: 0 0 50px rgba(255, 105, 180, 0.8), 0 0 100px rgba(255, 20, 147, 0.6);
}

/* Phase 5: High Speed Drone Images */
#phase5-images-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 5;
    pointer-events: none;
    perspective: 1000px;
}

.flash-image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 400px;
    margin-left: -150px;
    margin-top: -200px;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255,255,255,0.5);
    opacity: 0;
    border: 5px solid #fff;
    object-fit: cover;
}

/* Phase 6: The Cave */
#cave-finale {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 30;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    /* Magical glowing grotto vibe */
    background: radial-gradient(circle at center, rgba(255, 182, 193, 0.2) 0%, rgba(20, 0, 10, 0.95) 100%);
    transition: opacity 3s ease-in;
}

.giant-flower {
    font-size: 15rem;
    filter: drop-shadow(0 0 50px rgba(255, 105, 180, 0.8));
    animation: floatFlower 4s ease-in-out infinite, spinFlower 30s linear infinite;
}

@keyframes floatFlower {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
@keyframes spinFlower {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.glimmering-text {
    font-family: 'Great Vibes', cursive;
    font-size: 8vw;
    white-space: nowrap;
    margin-top: 2rem;
    font-weight: 400;
    text-align: center;
    /* Glimmer effect */
    background: linear-gradient(90deg, #ff69b4 0%, #ffffff 50%, #ff69b4 100%);
    background-size: 200% auto;
    color: rgba(255,255,255,0.9);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite, textPulse 2s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(255, 105, 180, 0.8);
}

@keyframes textPulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.05); filter: brightness(1.2); }
}
