/* ggoomimi.com - Eclectic Collage Mix */
/* Palette: #fefce8, #f472b6, #60a5fa, #4ade80, #fb923c, #1a1a1a */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #fefce8;
    color: #1a1a1a;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===== ANIMATIONS ===== */
@keyframes wiggle {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

@keyframes bounce-in {
    0% { opacity: 0; transform: translateY(40px) scale(0.9); }
    60% { opacity: 1; transform: translateY(-8px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes float-in {
    0% { opacity: 0; transform: scale(0) rotate(-20deg); }
    70% { transform: scale(1.1) rotate(5deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes wink {
    0%, 40%, 100% { transform: scaleY(1); }
    45%, 55% { transform: scaleY(0.1); }
}

@keyframes star-twinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.2) rotate(20deg); }
}

@keyframes settle {
    0% { transform: translateY(-10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.wiggle {
    animation: wiggle 2s ease-in-out infinite;
    display: inline-block;
}

.bounce-in {
    animation: bounce-in 0.8s ease-out both;
}

/* ===== SHAPES ===== */
.shape {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.shape.circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #1a1a1a;
}

.shape.rect {
    width: 50px;
    height: 50px;
    border: 3px solid #1a1a1a;
    border-radius: 4px;
}

.shape.squiggle {
    border: none;
}

.shape.pink { background: #f472b6; }
.shape.blue { background: #60a5fa; }
.shape.green { background: #4ade80; }
.shape.orange { background: #fb923c; }

/* ===== FACE BADGES ===== */
.face-badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #1a1a1a;
    background: #fefce8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    position: absolute;
    z-index: 2;
}

.face-badge.face-small {
    width: 28px;
    height: 28px;
}

.face-badge.face-big {
    width: 60px;
    height: 60px;
    position: relative;
    margin: 0 auto 1.5rem;
    border-width: 3px;
}

.face-eyes {
    display: flex;
    gap: 6px;
    align-items: center;
}

.face-badge.face-big .face-eyes {
    gap: 12px;
}

.eye {
    width: 4px;
    height: 4px;
    background: #1a1a1a;
    border-radius: 50%;
    display: block;
}

.face-badge.face-big .eye {
    width: 7px;
    height: 7px;
}

.eye-wink {
    animation: wink 3s ease-in-out infinite;
    transform-origin: center;
}

.smile {
    width: 10px;
    height: 5px;
    border-bottom: 2px solid #1a1a1a;
    border-radius: 0 0 50% 50%;
}

.face-badge.face-big .smile {
    width: 20px;
    height: 10px;
    border-bottom-width: 3px;
}

.smile-open {
    width: 8px;
    height: 8px;
    border: 2px solid #1a1a1a;
    border-radius: 50%;
    background: transparent;
}

/* ===== SQUIGGLY UNDERLINE ===== */
.squiggle-underline {
    text-decoration: underline wavy #f472b6;
    text-underline-offset: 4px;
}

/* ===== HERO SECTION (Bounce: 0-100vh) ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    gap: 0.8rem;
}

.hero .shape {
    animation: float-in 0.6s ease-out both;
}

.hero .shape:nth-child(1) { animation-delay: 0.1s; }
.hero .shape:nth-child(2) { animation-delay: 0.2s; }
.hero .shape:nth-child(3) { animation-delay: 0.3s; }
.hero .shape:nth-child(4) { animation-delay: 0.4s; }
.hero .shape:nth-child(5) { animation-delay: 0.5s; }
.hero .shape:nth-child(6) { animation-delay: 0.6s; }
.hero .shape:nth-child(7) { animation-delay: 0.7s; }
.hero .shape:nth-child(8) { animation-delay: 0.8s; }
.hero .shape:nth-child(9) { animation-delay: 0.9s; }

.hero .face-badge.hero-face {
    width: 40px;
    height: 40px;
}

.hero .face-badge.hero-face .face-eyes {
    gap: 8px;
}

.hero .face-badge.hero-face .eye {
    width: 5px;
    height: 5px;
}

.hero .face-badge.hero-face .smile {
    width: 14px;
    height: 7px;
}

.brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 10vw, 6rem);
    color: #1a1a1a;
    text-decoration: underline wavy #f472b6;
    text-underline-offset: 8px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
    cursor: default;
}

.tagline {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    color: #1a1a1a;
    opacity: 0.6;
    position: relative;
    z-index: 1;
    letter-spacing: 0.1em;
}

.wiggle-label {
    font-family: 'Fira Code', monospace;
    font-weight: 700;
    font-size: 0.75rem;
    background: #fb923c;
    color: #1a1a1a;
    padding: 4px 12px;
    border: 2px solid #1a1a1a;
    border-radius: 4px;
    position: relative;
    z-index: 1;
    margin-top: 0.5rem;
}

/* ===== COLLAGE SECTION (100-280vh) ===== */
.collage-section {
    min-height: 180vh;
    position: relative;
    padding: 4rem 1rem;
}

.collage-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    min-height: 160vh;
}

.collage-block {
    position: absolute;
    padding: 1.8rem 1.6rem;
    border: 3px solid #1a1a1a;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.collage-block:hover {
    z-index: 10;
    transform: rotate(0deg) scale(1.03) !important;
}

.block-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.block-text {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Collage block variants */
.b-pink {
    background: #f472b6;
    color: #ffffff;
    border-radius: 10px;
}

.b-blue {
    background: #60a5fa;
    color: #ffffff;
    border-radius: 14px;
}

.b-green {
    background: #4ade80;
    color: #1a1a1a;
    border-radius: 6px;
}

.b-orange {
    background: #fb923c;
    color: #1a1a1a;
    border-radius: 12px;
}

.b-pink-outline {
    background: #fefce8;
    border-color: #f472b6;
    border-width: 4px;
    color: #1a1a1a;
    border-radius: 10px;
}

.b-blue-fill {
    background: #60a5fa;
    color: #ffffff;
    border-radius: 16px;
}

.b-green-light {
    background: #4ade80;
    color: #1a1a1a;
    border-style: dashed;
    border-radius: 8px;
}

.wiggle-tag {
    font-family: 'Fira Code', monospace;
    font-weight: 700;
    font-size: 0.65rem;
    background: #fefce8;
    color: #1a1a1a;
    padding: 2px 8px;
    border: 2px solid #1a1a1a;
    border-radius: 4px;
    position: absolute;
    top: -12px;
    right: 14px;
    z-index: 3;
}

.badge-code {
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    color: #f472b6;
    display: block;
    margin-bottom: 0.3rem;
    opacity: 0.8;
}

/* ===== PLAY SECTION (280-360vh) ===== */
.play-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    cursor: crosshair;
}

.play-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.play-text {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: #1a1a1a;
    opacity: 0.6;
    margin-bottom: 2rem;
}

.play-items {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.play-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: #1a1a1a;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.play-item:nth-child(1) { background: #f472b6; }
.play-item:nth-child(2) { background: #60a5fa; }
.play-item:nth-child(3) { background: #4ade80; }
.play-item:nth-child(4) { background: #fb923c; }
.play-item:nth-child(5) { background: #f472b6; }

.play-item:hover {
    transform: scale(1.2) rotate(10deg);
}

.play-emoji {
    pointer-events: none;
}

/* Stars confetti */
.star {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #fb923c;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: star-twinkle 2s ease-in-out infinite;
    z-index: 0;
}

.s1 { top: 10%; left: 15%; animation-delay: 0s; background: #fb923c; }
.s2 { top: 20%; right: 20%; animation-delay: 0.3s; background: #f472b6; }
.s3 { bottom: 30%; left: 40%; animation-delay: 0.6s; background: #60a5fa; }
.s4 { top: 40%; left: 8%; animation-delay: 0.9s; background: #4ade80; }
.s5 { bottom: 15%; right: 12%; animation-delay: 0.15s; background: #fb923c; }
.s6 { top: 15%; left: 55%; animation-delay: 0.45s; background: #f472b6; width: 12px; height: 12px; }
.s7 { bottom: 40%; right: 30%; animation-delay: 0.75s; background: #4ade80; width: 10px; height: 10px; }
.s8 { top: 60%; right: 45%; animation-delay: 1.05s; background: #60a5fa; width: 14px; height: 14px; }

/* Spawned shapes from clicking */
.spawned-shape {
    position: absolute;
    pointer-events: none;
    z-index: 5;
    animation: float-in 0.5s ease-out both;
}

.spawned-shape.circle-spawn {
    border-radius: 50%;
    border: 2px solid #1a1a1a;
}

.spawned-shape.rect-spawn {
    border: 2px solid #1a1a1a;
    border-radius: 3px;
}

.spawned-shape.star-spawn {
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* ===== BYE SECTION (360vh+) ===== */
.bye-section {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.bye-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.bye-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: #1a1a1a;
    opacity: 0.5;
    margin-bottom: 1.5rem;
}

.bye-brand {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: #1a1a1a;
    opacity: 0.3;
    letter-spacing: 0.05em;
}

/* ===== FADE IN (scroll reveal) ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .collage-container {
        min-height: 200vh;
    }

    .collage-block {
        width: 80% !important;
        left: 10% !important;
        right: auto !important;
    }

    .collage-block:nth-child(1) { top: 2% !important; }
    .collage-block:nth-child(2) { top: 16% !important; }
    .collage-block:nth-child(3) { top: 30% !important; }
    .collage-block:nth-child(4) { top: 44% !important; }
    .collage-block:nth-child(5) { top: 58% !important; }
    .collage-block:nth-child(6) { top: 72% !important; }
    .collage-block:nth-child(7) { top: 86% !important; }

    .hero .shape.circle {
        width: 40px;
        height: 40px;
    }

    .hero .shape.rect {
        width: 35px;
        height: 35px;
    }

    .play-item {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .brand {
        font-size: clamp(2rem, 12vw, 3.5rem);
    }

    .collage-block {
        padding: 1.2rem 1rem;
    }

    .block-title {
        font-size: 1.05rem;
    }

    .block-text {
        font-size: 0.8rem;
    }
}
