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

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: Georgia, 'Times New Roman', serif;
    overflow: hidden;
    position: relative;
    transition: background 1s ease;
}

.sky {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 30%;
    z-index: 0;
    overflow: hidden;
}

.ground {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    z-index: 1;
    overflow: hidden;
}

/* Animated clouds */
.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    filter: blur(20px);
    animation: cloud-drift linear infinite;
}

@keyframes cloud-drift {
    from { transform: translateX(-200px); }
    to { transform: translateX(calc(100vw + 200px)); }
}

/* Gentle ground waves (grass/water effect) */
.ground::before,
.ground::after {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    right: -10%;
    height: 20px;
    border-radius: 50% 50% 0 0;
    animation: wave 8s ease-in-out infinite;
}

.ground::before {
    background: rgba(255, 255, 255, 0.1);
    animation-delay: 0s;
}

.ground::after {
    background: rgba(0, 0, 0, 0.05);
    animation-delay: -4s;
}

@keyframes wave {
    0%, 100% {
        transform: translateX(0) scaleY(1);
        border-radius: 40% 60% 0 0;
    }
    25% {
        transform: translateX(2%) scaleY(1.2);
        border-radius: 60% 40% 0 0;
    }
    50% {
        transform: translateX(0) scaleY(0.8);
        border-radius: 50% 50% 0 0;
    }
    75% {
        transform: translateX(-2%) scaleY(1.1);
        border-radius: 45% 55% 0 0;
    }
}

/* Sky gradient animation */
.sky::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.3) 0%, transparent 50%);
    animation: sun-glow 12s ease-in-out infinite;
}

@keyframes sun-glow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.container {
    text-align: center;
    z-index: 10;
    padding: 2rem;
    max-width: 600px;
}

h1 {
    font-size: clamp(1.8rem, 6vw, 3rem);
    font-weight: normal;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeIn 2s ease-out 0.5s forwards;
    font-style: italic;
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.3rem);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 2s ease-out 1s forwards;
    line-height: 1.6;
}

.scene {
    font-size: clamp(3rem, 12vw, 6rem);
    margin: 1rem 0;
    opacity: 0;
    animation: fadeIn 2s ease-out 0.3s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Floating elements */
.floating {
    position: absolute;
    pointer-events: none;
    opacity: 0.6;
    z-index: 5;
}

@keyframes drift {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(10px) translateY(-5px); }
    50% { transform: translateX(20px) translateY(0); }
    75% { transform: translateX(10px) translateY(5px); }
}

@keyframes sway {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

@keyframes float-up {
    0% { transform: translateY(100vh) translateX(0); opacity: 0; }
    10% { opacity: 0.7; }
    90% { opacity: 0.7; }
    100% { transform: translateY(-100px) translateX(30px); opacity: 0; }
}

@keyframes float-across {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(calc(100vw + 100px)); }
}

/* Theme: Meadow */
.theme-meadow body {
    background: linear-gradient(180deg, #87CEEB 0%, #E0F4FF 60%, #90C695 60%, #7DB87D 100%);
}
.theme-meadow .sky { background: linear-gradient(180deg, #87CEEB 0%, #E0F4FF 100%); }
.theme-meadow .ground { background: linear-gradient(180deg, #90C695 0%, #7DB87D 100%); }
.theme-meadow h1, .theme-meadow .subtitle { color: #4A5D4A; }
.theme-meadow .cloud { background: rgba(255, 255, 255, 0.5); }
.theme-meadow .grass-blade { background: linear-gradient(to top, #5a8a5a, #7DB87D); }

/* Theme: Sunset */
.theme-sunset body {
    background: linear-gradient(180deg, #FDB99B 0%, #FCE3C5 40%, #D4A574 60%, #C49A6C 100%);
}
.theme-sunset .sky { background: linear-gradient(180deg, #FDB99B 0%, #FCE3C5 100%); }
.theme-sunset .ground { background: linear-gradient(180deg, #D4A574 0%, #C49A6C 100%); }
.theme-sunset h1, .theme-sunset .subtitle { color: #6B4423; }
.theme-sunset .cloud { background: rgba(255, 200, 150, 0.6); }
.theme-sunset .sky::before {
    background: radial-gradient(ellipse at 70% 60%, rgba(255,150,100,0.4) 0%, transparent 50%);
}
.theme-sunset .grass-blade { background: linear-gradient(to top, #a07850, #C49A6C); }

/* Theme: Pond */
.theme-pond body {
    background: linear-gradient(180deg, #B8D4E8 0%, #DCE8F0 50%, #7BA3A8 50%, #5D8A8F 100%);
}
.theme-pond .sky { background: linear-gradient(180deg, #B8D4E8 0%, #DCE8F0 100%); }
.theme-pond .ground { background: linear-gradient(180deg, #7BA3A8 0%, #5D8A8F 100%); }
.theme-pond h1, .theme-pond .subtitle { color: #3D5A5E; }
.theme-pond .cloud { background: rgba(220, 232, 240, 0.6); }
.theme-pond .ground::before,
.theme-pond .ground::after { height: 30px; }

/* Theme: Lavender */
.theme-lavender body {
    background: linear-gradient(180deg, #E8E0F0 0%, #F5F0FA 50%, #9B8AA8 50%, #7D6B8A 100%);
}
.theme-lavender .sky { background: linear-gradient(180deg, #E8E0F0 0%, #F5F0FA 100%); }
.theme-lavender .ground { background: linear-gradient(180deg, #9B8AA8 0%, #7D6B8A 100%); }
.theme-lavender h1, .theme-lavender .subtitle { color: #4A3D5A; }
.theme-lavender .cloud { background: rgba(245, 240, 250, 0.5); }
.theme-lavender .grass-blade { background: linear-gradient(to top, #6a5a7a, #9B8AA8); }

/* Grass blades */
.grass-blade {
    position: absolute;
    bottom: 0;
    width: 3px;
    border-radius: 2px 2px 0 0;
    transform-origin: bottom center;
    animation: grass-sway ease-in-out infinite;
}

@keyframes grass-sway {
    0%, 100% { transform: rotate(-3deg) scaleY(1); }
    50% { transform: rotate(3deg) scaleY(1.02); }
}

/* Pond ripples */
.ripple {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: ripple-expand 4s ease-out infinite;
}

@keyframes ripple-expand {
    0% { transform: scale(0); opacity: 0.6; }
    100% { transform: scale(4); opacity: 0; }
}
