/* ==========================================================================
   eesugi.com - Candy-Bright Playground Stylesheet
   ========================================================================== */

:root {
    --pink: #FF87B2;
    --yellow: #FFD93D;
    --mint: #6BCB77;
    --blue: #4FC3F7;
    --purple: #9B59B6;
    --orange: #FF8A65;
    --teal: #00BCD4;
    --cream: #FFF8F0;
    --charcoal: #4A4A5A;
    --lavender: #8E8EA0;

    --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --soft-shadow: 0 8px 24px rgba(74, 74, 90, 0.08);
    --lift-shadow: 0 16px 40px rgba(74, 74, 90, 0.16);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', 'Nunito', sans-serif;
    font-weight: 500;
    color: var(--charcoal);
    background: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
}

section {
    position: relative;
    padding: clamp(4rem, 8vw, 8rem) 0;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    position: relative;
    z-index: 2;
}

.section-heading {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    color: var(--purple);
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.section-sub {
    text-align: center;
    color: var(--lavender);
    font-weight: 500;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    font-size: clamp(1rem, 1.6vw, 1.1rem);
}

/* ==========================================================================
   Wavy Section Dividers
   ========================================================================== */

.wave {
    position: absolute;
    left: 0;
    width: 100%;
    height: 60px;
    display: block;
    z-index: 3;
    pointer-events: none;
}

.wave-bottom {
    bottom: -1px;
}

/* ==========================================================================
   Section 1: Hero - Bubble Field
   ========================================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 135, 178, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(79, 195, 247, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 60% 30%, rgba(255, 217, 61, 0.16) 0%, transparent 35%),
        var(--cream);
    overflow: hidden;
    padding: 6rem 1.5rem 8rem;
}

.bubble-field {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0.55;
    filter: blur(0.5px);
    will-change: transform;
}

.bubble-1  { width: 120px; height: 120px; top: 10%;  left: 8%;  background: var(--pink);    animation: float-orbit 14s ease-in-out infinite; }
.bubble-2  { width: 80px;  height: 80px;  top: 20%;  left: 80%; background: var(--yellow);  animation: float-orbit 12s ease-in-out infinite reverse; animation-delay: -3s; }
.bubble-3  { width: 160px; height: 160px; top: 60%;  left: 5%;  background: var(--mint);    animation: float-orbit 18s ease-in-out infinite; animation-delay: -2s; opacity: 0.4; }
.bubble-4  { width: 100px; height: 100px; top: 75%;  left: 85%; background: var(--blue);    animation: float-orbit 15s ease-in-out infinite reverse; animation-delay: -6s; }
.bubble-5  { width: 60px;  height: 60px;  top: 35%;  left: 50%; background: var(--purple);  animation: float-orbit 11s ease-in-out infinite; animation-delay: -1s; opacity: 0.45; }
.bubble-6  { width: 90px;  height: 90px;  top: 12%;  left: 60%; background: var(--orange);  animation: float-orbit 13s ease-in-out infinite reverse; animation-delay: -4s; }
.bubble-7  { width: 50px;  height: 50px;  top: 55%;  left: 40%; background: var(--pink);    animation: float-orbit 10s ease-in-out infinite; animation-delay: -5s; }
.bubble-8  { width: 140px; height: 140px; top: 80%;  left: 50%; background: var(--yellow);  animation: float-orbit 16s ease-in-out infinite reverse; animation-delay: -7s; opacity: 0.35; }
.bubble-9  { width: 70px;  height: 70px;  top: 5%;   left: 35%; background: var(--mint);    animation: float-orbit 12s ease-in-out infinite; animation-delay: -8s; }
.bubble-10 { width: 110px; height: 110px; top: 45%;  left: 90%; background: var(--blue);    animation: float-orbit 17s ease-in-out infinite reverse; animation-delay: -2s; opacity: 0.4; }
.bubble-11 { width: 40px;  height: 40px;  top: 28%;  left: 25%; background: var(--purple);  animation: float-orbit 9s  ease-in-out infinite; animation-delay: -3s; }
.bubble-12 { width: 85px;  height: 85px;  top: 88%;  left: 22%; background: var(--orange);  animation: float-orbit 14s ease-in-out infinite reverse; animation-delay: -6s; opacity: 0.5; }

@keyframes float-orbit {
    0%   { transform: translate(0, 0) scale(1); }
    25%  { transform: translate(30px, -20px) scale(1.05); }
    50%  { transform: translate(10px, -40px) scale(0.95); }
    75%  { transform: translate(-20px, -15px) scale(1.02); }
    100% { transform: translate(0, 0) scale(1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-logotype {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(3.5rem, 10vw, 7rem);
    letter-spacing: -0.02em;
    line-height: 1.0;
    color: var(--cream);
    -webkit-text-stroke: 3px var(--pink);
    text-stroke: 3px var(--pink);
    margin-bottom: 1.5rem;
    animation: pop-in 800ms var(--bounce) both;
}

@keyframes pop-in {
    0%   { opacity: 0; transform: scale(0.4); }
    60%  { opacity: 1; transform: scale(1.08); }
    80%  { transform: scale(0.96); }
    100% { opacity: 1; transform: scale(1); }
}

.hero-tagline {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.35rem);
    color: var(--purple);
    background: rgba(255, 248, 240, 0.65);
    display: inline-block;
    padding: 0.7rem 1.6rem;
    border-radius: 100px;
    box-shadow: var(--soft-shadow);
}

.hero-mascots {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2.5rem);
    flex-wrap: wrap;
}

.mascot {
    width: clamp(70px, 10vw, 110px);
    height: clamp(70px, 10vw, 110px);
    filter: drop-shadow(0 6px 12px rgba(74, 74, 90, 0.12));
    animation: mascot-bob 3s ease-in-out infinite;
    transition: transform 0.3s var(--bounce);
}

.mascot-pink { animation-delay: 0s; }
.mascot-mint { animation-delay: 0.4s; }
.mascot-blue { animation-delay: 0.8s; }

.mascot:hover {
    transform: scale(1.15) rotate(-6deg);
}

@keyframes mascot-bob {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-12px) rotate(2deg); }
}

@media (max-width: 600px) {
    .hero-logotype {
        -webkit-text-stroke: 2px var(--pink);
        text-stroke: 2px var(--pink);
    }
}

/* ==========================================================================
   Section 2: Candy Grid - Organic Blob Cluster
   ========================================================================== */

.candy-grid {
    background:
        radial-gradient(circle, rgba(255, 135, 178, 0.08) 1px, transparent 1px) 0 0 / 24px 24px,
        var(--yellow);
    padding-top: 6rem;
    padding-bottom: 8rem;
}

.candy-grid .section-heading {
    color: var(--purple);
}

.gallery-heading-alt {
    color: var(--teal);
}

.blob-cluster {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(1rem, 2.5vw, 2rem);
    padding: 2rem 0;
}

.blob {
    background: var(--cream);
    border-radius: 30%;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-shadow: var(--soft-shadow);
    flex: 1 1 280px;
    max-width: 360px;
    min-height: 320px;
    transform: rotate(var(--rot, 0deg));
    transition: transform 0.45s var(--bounce), box-shadow 0.45s ease;
    text-align: center;
    position: relative;
}

.blob:nth-child(odd) {
    margin-top: clamp(1rem, 3vw, 2.5rem);
}

.blob:nth-child(3n) {
    margin-top: 0;
    margin-bottom: clamp(1rem, 3vw, 2rem);
}

.blob:hover {
    transform: rotate(0deg) scale(1.04) translateY(-6px);
    box-shadow: var(--lift-shadow);
}

.blob-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blob-icon svg {
    width: 100%;
    height: 100%;
}

.blob h3 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    color: var(--charcoal);
    margin-bottom: 0.75rem;
}

.blob p {
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    color: var(--charcoal);
}

.blob-pink   { background: linear-gradient(135deg, rgba(255, 135, 178, 0.18) 0%, rgba(255, 217, 61, 0.18) 100%), var(--cream); }
.blob-yellow { background: linear-gradient(135deg, rgba(255, 217, 61, 0.22) 0%, rgba(255, 138, 101, 0.18) 100%), var(--cream); }
.blob-mint   { background: linear-gradient(135deg, rgba(79, 195, 247, 0.18) 0%, rgba(107, 203, 119, 0.22) 100%), var(--cream); }
.blob-blue   { background: linear-gradient(135deg, rgba(79, 195, 247, 0.22) 0%, rgba(155, 89, 182, 0.18) 100%), var(--cream); }
.blob-purple { background: linear-gradient(135deg, rgba(155, 89, 182, 0.20) 0%, rgba(255, 135, 178, 0.18) 100%), var(--cream); }
.blob-orange { background: linear-gradient(135deg, rgba(255, 138, 101, 0.20) 0%, rgba(255, 217, 61, 0.18) 100%), var(--cream); }

/* ==========================================================================
   Section 3: Bouncing Gallery - Sine-Wave Ribbon
   ========================================================================== */

.gallery {
    background: var(--blue);
    background:
        radial-gradient(circle, rgba(255, 248, 240, 0.18) 1px, transparent 1px) 0 0 / 28px 28px,
        var(--blue);
    padding-bottom: 9rem;
}

.gallery .section-heading {
    color: var(--cream);
    -webkit-text-stroke: 2px var(--teal);
    text-stroke: 2px var(--teal);
}

.gallery .section-sub {
    color: var(--cream);
}

.ribbon {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(1rem, 3vw, 2.5rem);
    padding: 2rem 0;
}

.ribbon-circle {
    width: clamp(110px, 14vw, 160px);
    height: clamp(110px, 14vw, 160px);
    background: var(--cream);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-shadow: var(--soft-shadow);
    cursor: pointer;
    animation: sine-bob 4s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    transition: transform 0.4s var(--bounce), box-shadow 0.4s ease;
    flex-shrink: 0;
}

.ribbon-circle svg {
    width: 70%;
    height: 70%;
}

.ribbon-circle.is-hover {
    transform: scale(1.18) translateY(-8px);
    box-shadow: var(--lift-shadow);
    z-index: 5;
}

.ribbon-circle.is-pushed-left {
    transform: translateX(-14px) scale(0.96);
}

.ribbon-circle.is-pushed-right {
    transform: translateX(14px) scale(0.96);
}

.ribbon-label {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--charcoal);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.4rem;
}

@keyframes sine-bob {
    0%, 100% { transform: translateY(0); }
    25%      { transform: translateY(-12px); }
    50%      { transform: translateY(0); }
    75%      { transform: translateY(12px); }
}

/* ==========================================================================
   Section 4: Sticker Wall
   ========================================================================== */

.sticker-wall {
    background: var(--cream);
    background:
        radial-gradient(circle, rgba(155, 89, 182, 0.07) 1px, transparent 1px) 0 0 / 22px 22px,
        var(--cream);
    padding-bottom: 9rem;
}

.sticker-wall .section-heading {
    color: var(--orange);
}

.sticker-canvas {
    position: relative;
    min-height: clamp(420px, 55vw, 540px);
    margin-top: 2rem;
}

.sticker {
    position: absolute;
    transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
    background: var(--bg, var(--yellow));
    color: var(--charcoal);
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.55rem 1.1rem;
    border-radius: 100px;
    box-shadow: 0 2px 8px rgba(74, 74, 90, 0.08);
    cursor: pointer;
    transition: transform 0.4s var(--bounce), box-shadow 0.4s ease;
    white-space: nowrap;
    user-select: none;
}

.sticker.sticker-shape {
    padding: 0;
    background: transparent;
    box-shadow: none;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 10px rgba(74, 74, 90, 0.15));
}

.sticker.sticker-shape svg {
    width: 100%;
    height: 100%;
}

.sticker:hover {
    transform: translate(-50%, -50%) rotate(0deg) scale(1.18);
    box-shadow: 0 12px 28px rgba(74, 74, 90, 0.16);
    z-index: 10;
}

.sticker.sticker-shape:hover {
    box-shadow: none;
    filter: drop-shadow(0 12px 24px rgba(74, 74, 90, 0.22));
}

/* ==========================================================================
   Section 5: Goodbye Wobble
   ========================================================================== */

.goodbye {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(165deg, var(--pink) 0%, var(--orange) 100%);
    padding: 8rem 1.5rem;
    overflow: hidden;
    position: relative;
}

.confetti-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.confetti {
    position: absolute;
    top: -10vh;
    width: 8px;
    height: 12px;
    border-radius: 2px;
    animation: confetti-drift linear infinite;
    will-change: transform;
}

@keyframes confetti-drift {
    from { transform: translateY(-10vh) rotate(0deg); }
    to   { transform: translateY(110vh) rotate(720deg); }
}

.goodbye-circle {
    position: relative;
    z-index: 2;
    width: clamp(280px, 60vw, 480px);
    height: clamp(280px, 60vw, 480px);
    background: var(--cream);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: 0 20px 60px rgba(74, 74, 90, 0.18);
    transform: scale(0);
    opacity: 0;
}

.goodbye-circle.is-revealed {
    animation: goodbye-bounce 800ms var(--bounce) forwards;
}

@keyframes goodbye-bounce {
    0%   { transform: scale(0); opacity: 0; }
    40%  { transform: scale(1.1); opacity: 1; }
    65%  { transform: scale(0.95); }
    85%  { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}

.goodbye-mascot {
    width: clamp(80px, 14vw, 130px);
    height: clamp(80px, 14vw, 130px);
    margin-bottom: 1rem;
}

.goodbye-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    color: var(--pink);
    -webkit-text-stroke: 2px var(--purple);
    text-stroke: 2px var(--purple);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.goodbye-text {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    color: var(--charcoal);
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    margin-bottom: 1.25rem;
    max-width: 30ch;
}

.goodbye-pill {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cream);
    background: var(--purple);
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
}

/* ==========================================================================
   Reveal animations (IntersectionObserver triggered)
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: scale(0.6) translateY(30px);
    transition: opacity 0.6s var(--bounce), transform 0.6s var(--bounce);
}

.reveal.is-revealed {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.blob.reveal.is-revealed {
    transform: rotate(var(--rot, 0deg)) translateY(0) scale(1);
}

.blob.reveal {
    transform: rotate(var(--rot, 0deg)) scale(0.6) translateY(30px);
}

/* Stagger reveals inside blob-cluster for popcorn cascade */
.blob-cluster .blob:nth-child(1) { transition-delay: 0ms; }
.blob-cluster .blob:nth-child(2) { transition-delay: 100ms; }
.blob-cluster .blob:nth-child(3) { transition-delay: 200ms; }
.blob-cluster .blob:nth-child(4) { transition-delay: 300ms; }
.blob-cluster .blob:nth-child(5) { transition-delay: 400ms; }
.blob-cluster .blob:nth-child(6) { transition-delay: 500ms; }

/* ==========================================================================
   Responsive Tweaks
   ========================================================================== */

@media (max-width: 768px) {
    .blob {
        flex: 1 1 100%;
        max-width: 100%;
        margin-top: 0 !important;
        margin-bottom: 1.5rem;
    }

    .ribbon {
        gap: 1rem;
    }

    .ribbon-circle {
        width: 100px;
        height: 100px;
    }

    .hero-mascots {
        gap: 1rem;
    }
}
