/* Dream Section Styles */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #fff3f0;
    --secondary: #6b3e26;
    --accent: #f8a5c2;
    --text-dark: #4a3728;
    --text-light: #8b6f5c;
    --white: #ffffff;
    --gradient-warm: linear-gradient(135deg, #fff3f0 0%, #ffe4dc 100%);
    --shadow-soft: 0 4px 20px rgba(107, 62, 38, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--primary);
    color: var(--text-dark);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--secondary);
    margin-bottom: 16px;
}

/* Dream Section */
.dream {
    padding: 100px 24px;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(248, 165, 194, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        var(--secondary);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative Geometric Shapes */
.dream::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 8%;
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(248, 165, 194, 0.2) 0%, rgba(248, 165, 194, 0.05) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(2px);
    z-index: 0;
}

.dream::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    filter: blur(2px);
    z-index: 0;
}

/* Floating Cat Stickers */
.dream-floating-stickers {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.dream-sticker {
    position: absolute;
    width: 90px;
    height: auto;
    opacity: 0.08;
    filter: grayscale(20%) sepia(10%) blur(1px) brightness(1.2);
}

.dream-sticker-1 {
    top: 10%;
    left: 8%;
    width: 85px;
}

.dream-sticker-2 {
    bottom: 12%;
    right: 10%;
    width: 80px;
    transform: scaleX(-1);
}

.dream .container {
    position: relative;
    z-index: 1;
}

.dream .section-title {
    color: var(--white);
}

/* Improved Dream Section */
.dream-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 40px auto 0;
}

.dream-item {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 32px;
    /* Removed glassmorphism for consistent card look */
    border: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    position: relative;
    overflow: hidden;
    color: var(--text-dark);
    /* Ensure text is dark on white card */
}

.dream-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 45px 0 rgba(107, 62, 38, 0.2);
}

.dream-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(248, 165, 194, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    transform: rotate(45deg);
}

.dream-item:hover::before {
    opacity: 1;
}

.dream-emoji {
    font-size: 3.5rem;
    margin-bottom: 24px;
    transition: transform 0.4s ease;
    display: inline-block;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

.dream-item:hover .dream-emoji {
    transform: scale(1.2) rotate(10deg);
}

.dream-text {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--secondary);
}

/* Fade Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .dream {
        padding: 60px 20px;
    }

    .dream-grid {
        /* Keep 2 columns but optimize gap */
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* If screen is very small, switch to 1 column */
    @media (max-width: 400px) {
        .dream-grid {
            grid-template-columns: 1fr;
        }
    }

    .dream-item {
        padding: 24px 20px;
        border-radius: 24px;
    }

    .dream-emoji {
        font-size: 2.5rem;
        margin-bottom: 16px;
    }

    .dream-text {
        font-size: 0.95rem;
    }
}