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

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    background: linear-gradient(180deg, #F4EDE0 0%, #E8DDD0 25%, #DDD2C0 50%, #C8B8A0 75%, #B0A890 100%);
    font-family: 'Lora', serif;
    color: #4A4238;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

h1 {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.02em;
    color: #4A4238;
}

h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.015em;
    color: #4A4238;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4A4238;
    margin-bottom: 1rem;
}

p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #4A4238;
    letter-spacing: 0.01em;
}

/* Sections */
.section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.morning {
    background: linear-gradient(180deg, #F4EDE0 0%, #E8DDD0 100%);
}

.midday {
    background: linear-gradient(180deg, #E8DDD0 0%, #DDD2C0 100%);
}

.afternoon {
    background: linear-gradient(180deg, #DDD2C0 0%, #C8B8A0 100%);
}

.evening {
    background: linear-gradient(180deg, #C8B8A0 0%, #B0A890 100%);
}

.night {
    background: linear-gradient(180deg, #B0A890 0%, #8A8278 100%);
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
    max-width: 1000px;
}

.hero-title {
    text-align: center;
    animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    text-align: center;
    font-style: italic;
    color: #8A8278;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.morning-bubble {
    width: clamp(150px, 30vw, 300px);
    height: auto;
    animation: float 6s ease-in-out infinite, fadeIn 1s ease-out 0.4s backwards;
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    font-size: 0.9rem;
    color: #8A8278;
    letter-spacing: 0.05em;
    animation: pulse 2s ease-in-out infinite;
}

/* Bubbles Grid */
.bubbles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 3rem;
}

.bubble-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bubble {
    cursor: pointer;
    transition: all 0.3s ease;
}

.scene-bubble {
    width: clamp(150px, 25vw, 250px);
    height: auto;
}

.bubble-container:hover .scene-bubble {
    transform: scale(1.05) translateY(-10px);
    filter: drop-shadow(0 10px 20px rgba(74, 66, 56, 0.15));
}

/* Section Text */
.section-heading {
    text-align: center;
}

.section-text {
    text-align: center;
    max-width: 600px;
    font-style: italic;
    color: #6A6258;
}

/* Gradient Showcase */
.gradient-showcase {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 800px;
    margin-bottom: 3rem;
}

.gradient-bar {
    height: 80px;
    border-radius: 10px;
    border: 1px solid rgba(106, 98, 88, 0.2);
}

.gradient-bar-1 {
    background: linear-gradient(90deg, #F4EDE0 0%, #E8DDD0 100%);
}

.gradient-bar-2 {
    background: linear-gradient(90deg, #DDD2C0 0%, #C8B8A0 100%);
}

.gradient-bar-3 {
    background: linear-gradient(90deg, #B0A890 0%, #8A8278 100%);
}

/* Feature Text */
.feature-text {
    max-width: 700px;
    text-align: center;
}

.feature-text h3 {
    margin-bottom: 1.5rem;
}

/* Floating Elements */
.floating-elements {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1000px;
    margin-bottom: 3rem;
}

.float-item {
    animation: floatAround 8s ease-in-out infinite;
}

.float-item-1 {
    animation-delay: 0s;
}

.float-item-2 {
    animation-delay: 1s;
}

.float-item-3 {
    animation-delay: 2s;
}

.small-bubble {
    width: clamp(80px, 15vw, 150px);
    height: auto;
    opacity: 0.8;
}

.float-item:hover .small-bubble {
    transform: scale(1.1);
}

/* Night Content */
.night-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    max-width: 900px;
}

.closing-text {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    text-align: center;
    color: #FFFBF4;
    font-style: italic;
}

.closing-bubbles {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.closing-bubble {
    width: clamp(100px, 20vw, 180px);
    height: auto;
    opacity: 0.7;
}

.closing-bubble:hover {
    opacity: 1;
    transform: scale(1.08);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes floatAround {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-15px) translateX(10px);
    }
    50% {
        transform: translateY(-30px) translateX(-10px);
    }
    75% {
        transform: translateY(-15px) translateX(10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .section {
        padding: 3rem 1.5rem;
        min-height: auto;
        padding-top: 10rem;
        padding-bottom: 5rem;
    }

    .bubbles-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .floating-elements {
        gap: 2rem;
    }

    .hero {
        gap: 1.5rem;
    }

    h2 {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1rem;
    }

    .section {
        padding: 2rem 1rem;
        padding-top: 8rem;
        padding-bottom: 4rem;
    }

    .bubbles-grid {
        gap: 1.5rem;
    }

    .floating-elements {
        gap: 1rem;
    }

    .morning-bubble,
    .scene-bubble {
        width: 120px !important;
    }

    .small-bubble {
        width: 70px !important;
    }

    .closing-bubble {
        width: 100px !important;
    }
}
