/* ggoomimi.com - Dopamine Neon Burst Design */

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

:root {
    --bg-lavender: #f5f0ff;
    --pink: #ff6b9d;
    --mint: #6fdfb8;
    --orange: #ffb347;
    --text-primary: #3d2352;
    --sparkle: #c387ff;
    --peach: #ffd4d4;
    --sky: #b8e6ff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: var(--bg-lavender);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY & HEADINGS
   ============================================ */

h1, h2, h3 {
    font-family: 'Baloo 2', sans-serif;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
}

h3 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
}

p {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.7;
}

/* ============================================
   BLOBS & MORPHING ANIMATIONS
   ============================================ */

@keyframes morph1 {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 40% 60% 30% 70%;
    }
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

@keyframes morph2 {
    0% {
        border-radius: 40% 60% 70% 30% / 30% 70% 40% 60%;
    }
    50% {
        border-radius: 70% 30% 40% 60% / 70% 40% 60% 30%;
    }
    100% {
        border-radius: 40% 60% 70% 30% / 30% 70% 40% 60%;
    }
}

@keyframes morph3 {
    0% {
        border-radius: 70% 30% 40% 60% / 40% 60% 30% 70%;
    }
    50% {
        border-radius: 40% 60% 30% 70% / 60% 30% 70% 40%;
    }
    100% {
        border-radius: 70% 30% 40% 60% / 40% 60% 30% 70%;
    }
}

@keyframes float-slow {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    33% {
        transform: translateY(-30px) translateX(20px);
    }
    66% {
        transform: translateY(-10px) translateX(-15px);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.blob {
    position: absolute;
    filter: blur(0px);
}

.blob-primary {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--pink), #ff8ab8);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph1 8s ease-in-out infinite;
    opacity: 0.8;
}

.blob-secondary {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--mint), #5fd9a8);
    border-radius: 40% 60% 70% 30% / 30% 70% 40% 60%;
    animation: morph2 8s ease-in-out infinite 1s;
    opacity: 0.6;
    top: 100px;
    right: 100px;
}

.blob-accent {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--orange), #ffcc99);
    border-radius: 70% 30% 40% 60% / 40% 60% 30% 70%;
    animation: morph3 8s ease-in-out infinite 2s;
    opacity: 0.5;
    bottom: 150px;
    left: 80px;
}

.blob-philosophy {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--sparkle), #d9a5ff);
    opacity: 0.3;
    z-index: 0;
}

.blob-footer {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--pink), var(--mint));
    opacity: 0.15;
    bottom: -100px;
    right: -100px;
}

/* ============================================
   SPARKLE SYSTEM
   ============================================ */

.sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--sparkle);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f0ff, #ede8ff);
}

.hero-blobs {
    position: absolute;
    inset: 0;
    z-index: 1;
}

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

.hero-title {
    background: linear-gradient(135deg, var(--pink), var(--orange), var(--mint), var(--sparkle));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.3em;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.hero-tagline {
    font-family: 'Pacifico', cursive;
    font-size: 1.5rem;
    color: var(--mint);
    font-weight: 400;
    margin-top: 1.5rem;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.section-header h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #6b5b8c;
    font-size: 1rem;
    opacity: 0.8;
}

/* ============================================
   BENTO GRID & STICKER SECTION
   ============================================ */

.sticker-grid-section {
    position: relative;
    padding: 80px 5%;
    background: linear-gradient(180deg, #f5f0ff, #faf7ff);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.bento-cell {
    background: var(--peach);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 24px rgba(61, 35, 82, 0.08);
    position: relative;
}

.bento-cell::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    mask-image: radial-gradient(circle at 20% 50%, transparent 8px, black 8px);
    -webkit-mask-image: radial-gradient(circle at 20% 50%, transparent 8px, black 8px);
}

.bento-cell:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(61, 35, 82, 0.15);
}

.bento-cell:active {
    transform: scale(0.95);
}

.cell-1x1 {
    grid-column: span 1;
    grid-row: span 1;
}

.cell-2x1 {
    grid-column: span 2;
    grid-row: span 1;
}

.cell-1x2 {
    grid-column: span 1;
    grid-row: span 2;
}

.cell-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cell-content h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.cell-icon {
    display: block;
    font-size: 3rem;
}

/* ============================================
   PLAYGROUND SECTION
   ============================================ */

.playground-section {
    position: relative;
    padding: 80px 5%;
    background: linear-gradient(180deg, #faf7ff, #f5f0ff);
}

.playground-canvas {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 400px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.05), rgba(111, 223, 184, 0.05));
    border-radius: 32px;
    overflow: hidden;
    border: 2px dashed rgba(61, 35, 82, 0.1);
    z-index: 2;
    position: relative;
}

@keyframes float-around {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -40px) rotate(90deg);
    }
    50% {
        transform: translate(0, -50px) rotate(180deg);
    }
    75% {
        transform: translate(-30px, -20px) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

.floating-element {
    position: absolute;
    left: var(--x);
    top: var(--y);
    animation: float-around var(--duration) ease-in-out infinite;
}

.decoration {
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.2s;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.decoration:hover {
    transform: scale(1.2);
}

.collection-counter {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 700;
}

#catch-count {
    color: var(--pink);
    font-size: 1.5rem;
}

@keyframes bounce-pop {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.decoration.caught {
    animation: bounce-pop 0.6s ease-out forwards;
}

/* ============================================
   SHOWCASE RIBBON
   ============================================ */

.showcase-section {
    position: relative;
    padding: 80px 5%;
    background: linear-gradient(180deg, #f5f0ff, #faf7ff);
}

.showcase-ribbon {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    scroll-padding: 20px;
}

.showcase-ribbon::-webkit-scrollbar {
    height: 6px;
}

.showcase-ribbon::-webkit-scrollbar-track {
    background: transparent;
}

.showcase-ribbon::-webkit-scrollbar-thumb {
    background: var(--pink);
    border-radius: 3px;
}

.showcase-item {
    flex: 0 0 180px;
    text-align: center;
}

.showcase-frame {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 24px rgba(61, 35, 82, 0.12);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.showcase-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent);
    pointer-events: none;
}

.showcase-frame:hover {
    transform: scale(1.08);
}

.frame-emoji {
    font-size: 3.5rem;
    display: block;
}

.showcase-label {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* ============================================
   PHILOSOPHY SECTION
   ============================================ */

.philosophy-section {
    position: relative;
    padding: 80px 5%;
    background: linear-gradient(180deg, #faf7ff, #f5f0ff);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.philosophy-blob {
    animation: morph1 8s ease-in-out infinite;
}

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

.philosophy-content h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.philosophy-quote {
    font-family: 'Pacifico', cursive;
    font-size: 1.8rem;
    color: var(--pink);
    margin-bottom: 2rem;
    font-weight: 400;
}

.philosophy-text {
    color: #6b5b8c;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    position: relative;
    padding: 60px 5%;
    background: #ede8ff;
    text-align: center;
    overflow: hidden;
    border-top: 2px solid rgba(61, 35, 82, 0.08);
}

.footer-blob {
    animation: morph2 8s ease-in-out infinite;
    z-index: 0;
}

.footer-text {
    position: relative;
    z-index: 2;
    font-family: 'Baloo 2', sans-serif;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-subtext {
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
    color: #8b7aaa;
    font-weight: 400;
}

/* ============================================
   INTERACTIVE STATES & TRANSITIONS
   ============================================ */

button, [role="button"], a {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

button:hover, [role="button"]:hover {
    transform: scale(1.05);
}

button:active, [role="button"]:active {
    transform: scale(0.95);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .cell-2x1 {
        grid-column: span 2;
    }

    .cell-1x2 {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .cell-2x1 {
        grid-column: span 1;
    }

    .playground-canvas {
        height: 300px;
    }

    .showcase-frame {
        width: 140px;
        height: 140px;
    }

    .frame-emoji {
        font-size: 2.5rem;
    }

    .blob-primary {
        width: 300px;
        height: 300px;
    }

    .blob-secondary {
        width: 200px;
        height: 200px;
    }

    .blob-accent {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 480px) {
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .cell-2x1 {
        grid-column: span 1;
    }

    .bento-cell {
        min-height: 150px;
    }

    .cell-content h3 {
        font-size: 1rem;
    }

    .cell-icon {
        font-size: 2rem;
    }

    .playground-canvas {
        height: 250px;
    }

    .section-header {
        margin-bottom: 2rem;
    }
}
