/* ggaji.com - Dopamine Collage Experience */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #FFFDF7;
    color: #2D2D2D;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===== Navigation Pill ===== */
#nav-pill {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    background: rgba(26, 26, 46, 0.9);
    padding: 12px 24px;
    border-radius: 50px;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-dot.active {
    transform: scale(1.5);
}

/* ===== Tape Strips ===== */
.tape-strip {
    position: absolute;
    width: 200px;
    height: 32px;
    opacity: 0.8;
    z-index: 5;
    border-radius: 2px;
}

.tape-tl {
    top: 40px;
    left: -30px;
    transform: rotate(-12deg);
}

.tape-br {
    bottom: 40px;
    right: -20px;
    transform: rotate(15deg);
}

.tape-top-center {
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(-8deg);
}

.tape-left-mid {
    top: 30%;
    left: -40px;
    transform: rotate(18deg);
}

.tape-right-low {
    bottom: 20%;
    right: -30px;
    transform: rotate(-10deg);
}

/* ===== Blob Shapes ===== */
.blob {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 1;
    pointer-events: none;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: #3A86FF;
    opacity: 0.1;
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: #FFBE0B;
    opacity: 0.1;
    bottom: -80px;
    left: -60px;
}

.blob-3 {
    width: 450px;
    height: 450px;
    background: #06D6A0;
    opacity: 0.1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.blob-4 {
    width: 600px;
    height: 600px;
    background: #FF006E;
    opacity: 0.08;
    top: 20%;
    right: -150px;
    border-radius: 70% 30% 50% 50% / 40% 60% 40% 60%;
}

/* ===== Sticker Labels ===== */
.sticker {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 4px;
    transform: rotate(-2deg);
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
    font-weight: 700;
    white-space: nowrap;
}

/* ===== Section 1: The Shout ===== */
.section {
    position: relative;
    overflow: hidden;
}

.section-1 {
    min-height: 100vh;
    background: #FFFDF7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-1-content {
    position: relative;
    z-index: 10;
    text-align: center;
    transform: rotate(-2deg);
}

.hero-title {
    font-family: 'Black Han Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(48px, 10vw, 120px);
    color: #FF006E;
    line-height: 1.0;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #2D2D2D;
    opacity: 0.7;
}

/* Bounce Enter Animation */
.bounce-enter {
    opacity: 0;
    transform: translateY(40px) rotate(-2deg);
    animation: bounce-in 600ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 200ms;
}

@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: translateY(40px) rotate(-2deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(-2deg);
    }
}

/* ===== Section 2: The Grid Smash ===== */
.section-2 {
    background: #1A1A2E;
    padding: 80px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-smash {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
    max-width: 1000px;
    width: 100%;
    position: relative;
    z-index: 10;
}

.smash-card {
    padding: 32px;
    border-radius: 12px;
    color: #F5F5F5;
    position: relative;
}

.smash-card h3 {
    font-family: 'Black Han Sans', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.0;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.smash-card p {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.9;
}

.card-1 {
    background: #FF006E;
    transform: rotate(-3deg);
    grid-column: 1;
    grid-row: 1;
    margin-right: -20px;
    z-index: 5;
}

.card-2 {
    background: #3A86FF;
    transform: rotate(2deg);
    grid-column: 2;
    grid-row: 1;
    margin-top: 30px;
    z-index: 4;
}

.card-3 {
    background: #06D6A0;
    transform: rotate(-1deg);
    grid-column: 3;
    grid-row: 1;
    margin-left: -20px;
    z-index: 3;
    color: #2D2D2D;
}

.card-4 {
    background: #FFBE0B;
    transform: rotate(4deg);
    grid-column: 1 / span 2;
    grid-row: 2;
    margin-top: -30px;
    z-index: 2;
    color: #2D2D2D;
}

.card-5 {
    background: #7B2FF7;
    transform: rotate(-2deg);
    grid-column: 2 / span 2;
    grid-row: 2;
    margin-top: -20px;
    margin-left: -40px;
    z-index: 6;
}

/* Elastic Animation */
.elastic {
    opacity: 0;
    transform: scale(0.8);
}

.elastic.visible {
    animation: elastic-pop 500ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: var(--delay, 0ms);
}

@keyframes elastic-pop {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    70% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1.0);
    }
}

/* Restore rotations after elastic animation */
.card-1.elastic.visible { animation-name: elastic-pop-r1; }
.card-2.elastic.visible { animation-name: elastic-pop-r2; }
.card-3.elastic.visible { animation-name: elastic-pop-r3; }
.card-4.elastic.visible { animation-name: elastic-pop-r4; }
.card-5.elastic.visible { animation-name: elastic-pop-r5; }

@keyframes elastic-pop-r1 {
    0% { opacity: 0; transform: scale(0.8) rotate(-3deg); }
    70% { transform: scale(1.05) rotate(-3deg); }
    100% { opacity: 1; transform: scale(1.0) rotate(-3deg); }
}
@keyframes elastic-pop-r2 {
    0% { opacity: 0; transform: scale(0.8) rotate(2deg); }
    70% { transform: scale(1.05) rotate(2deg); }
    100% { opacity: 1; transform: scale(1.0) rotate(2deg); }
}
@keyframes elastic-pop-r3 {
    0% { opacity: 0; transform: scale(0.8) rotate(-1deg); }
    70% { transform: scale(1.05) rotate(-1deg); }
    100% { opacity: 1; transform: scale(1.0) rotate(-1deg); }
}
@keyframes elastic-pop-r4 {
    0% { opacity: 0; transform: scale(0.8) rotate(4deg); }
    70% { transform: scale(1.05) rotate(4deg); }
    100% { opacity: 1; transform: scale(1.0) rotate(4deg); }
}
@keyframes elastic-pop-r5 {
    0% { opacity: 0; transform: scale(0.8) rotate(-2deg); }
    70% { transform: scale(1.05) rotate(-2deg); }
    100% { opacity: 1; transform: scale(1.0) rotate(-2deg); }
}

/* ===== Section 3: The Breath ===== */
.section-3 {
    min-height: 100vh;
    background: #7B2FF7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.breath-content {
    text-align: center;
    padding: 40px;
}

.breath-text {
    font-family: 'Bagel Fat One', cursive;
    font-size: clamp(32px, 6vw, 48px);
    color: #F5F5F5;
    line-height: 1.3;
}

/* Fade Reveal */
.fade-reveal {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 800ms ease, transform 800ms ease;
}

.fade-reveal.visible {
    opacity: 1;
    transform: scale(1.0);
}

/* ===== Section 4: The Collage ===== */
.section-4 {
    background: #FFFDF7;
    padding: 100px 20px;
    min-height: 100vh;
}

.collage-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    position: relative;
    z-index: 10;
}

.collage-block {
    padding: 32px;
    position: relative;
}

.collage-block h2 {
    font-family: 'Black Han Sans', sans-serif;
    font-weight: 400;
    font-size: 40px;
    line-height: 1.0;
    letter-spacing: -0.02em;
    color: #2D2D2D;
    margin-bottom: 16px;
}

.collage-block h3 {
    font-family: 'Black Han Sans', sans-serif;
    font-weight: 400;
    font-size: 24px;
    color: #2D2D2D;
    margin-bottom: 12px;
}

.collage-block p {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2D2D2D;
}

.block-1 {
    grid-column: 1 / span 2;
    background: rgba(58, 134, 255, 0.08);
    border-radius: 12px;
    transform: rotate(-1deg);
}

.block-2 {
    background: rgba(255, 190, 11, 0.1);
    border-radius: 12px;
    transform: rotate(2deg);
    margin-top: -20px;
}

.block-3 {
    background: rgba(6, 214, 160, 0.1);
    border-radius: 12px;
    transform: rotate(-2deg);
    margin-top: 20px;
}

.block-4 {
    grid-column: 1 / span 2;
    background: rgba(123, 47, 247, 0.08);
    border-radius: 12px;
    transform: rotate(1deg);
}

/* Slide Reveal */
.slide-reveal {
    opacity: 0;
    transition: opacity 400ms ease, transform 400ms ease;
}

.slide-from-left {
    transform: translateX(-60px);
}

.slide-from-right {
    transform: translateX(60px);
}

.slide-from-bottom {
    transform: translateY(60px);
}

.slide-reveal.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Restore rotations for collage blocks after slide */
.block-1.slide-reveal.visible { transform: rotate(-1deg); }
.block-2.slide-reveal.visible { transform: rotate(2deg); }
.block-3.slide-reveal.visible { transform: rotate(-2deg); }
.block-4.slide-reveal.visible { transform: rotate(1deg); }

/* ===== Section 5: The Drop ===== */
.section-5 {
    min-height: 100vh;
    background: #FF006E;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drop-content {
    text-align: center;
}

.drop-title {
    font-family: 'Black Han Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(48px, 10vw, 120px);
    color: #F5F5F5;
    line-height: 1.0;
    letter-spacing: -0.02em;
    margin-bottom: 48px;
}

.drop-dots {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.drop-dot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: relative;
}

/* Ripple Animation */
.ripple {
    opacity: 0;
}

.ripple.visible {
    opacity: 1;
    animation: ripple-pulse 1200ms ease-in-out infinite;
    animation-delay: var(--ripple-delay, 0ms);
}

@keyframes ripple-pulse {
    0% {
        transform: scale(1.0);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.3);
        box-shadow: 0 0 0 16px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(1.0);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* ===== Confetti (Section Backgrounds via pseudo-elements) ===== */
.section-1::before,
.section-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.section-1::before {
    background-image:
        radial-gradient(circle 3px, rgba(255, 0, 110, 0.12) 100%, transparent 100%),
        radial-gradient(circle 4px, rgba(58, 134, 255, 0.1) 100%, transparent 100%),
        radial-gradient(circle 3px, rgba(255, 190, 11, 0.12) 100%, transparent 100%),
        radial-gradient(circle 5px, rgba(6, 214, 160, 0.08) 100%, transparent 100%),
        radial-gradient(circle 3px, rgba(123, 47, 247, 0.1) 100%, transparent 100%);
    background-size: 120px 140px, 180px 160px, 150px 200px, 200px 180px, 140px 120px;
    background-position: 10px 20px, 60px 80px, 30px 110px, 90px 40px, 120px 150px;
}

.section-2::before {
    background-image:
        radial-gradient(circle 2px, rgba(255, 0, 110, 0.15) 100%, transparent 100%),
        radial-gradient(circle 3px, rgba(255, 190, 11, 0.12) 100%, transparent 100%),
        radial-gradient(circle 2px, rgba(6, 214, 160, 0.15) 100%, transparent 100%),
        radial-gradient(circle 4px, rgba(123, 47, 247, 0.1) 100%, transparent 100%);
    background-size: 100px 120px, 160px 140px, 130px 180px, 180px 160px;
    background-position: 20px 30px, 70px 60px, 40px 90px, 100px 50px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .grid-smash {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .smash-card {
        margin: 0 !important;
    }

    .card-4, .card-5 {
        grid-column: 1;
        margin-left: 0;
    }

    .collage-grid {
        grid-template-columns: 1fr;
    }

    .block-1, .block-4 {
        grid-column: 1;
    }

    .tape-strip {
        display: none;
    }

    .blob {
        width: 250px;
        height: 250px;
    }

    #nav-pill {
        padding: 8px 16px;
        gap: 12px;
    }
}
