/* ggoomimi.com - Blobitecture Botanical Dreamscape */

/* Custom Properties */
:root {
    --cream: #fdf6ee;
    --cream-warm: #f8efe4;
    --rose-milk: #f0d4c8;
    --sage-whisper: #d4e4d1;
    --lavender-haze: #dbd0e6;
    --blush-stem: #e8c4b8;
    --soft-charcoal: #3a3535;
    --dusty-mauve: #8a7b7b;
    --peach-glow: #f5c6a8;
    --fern-ink: #6b8f71;
    --blob-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    line-height: 1.72;
    color: var(--soft-charcoal);
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-warm) 50%, var(--cream) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Noise Texture Overlay */
#noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
}

/* Floating Petals */
#floating-petals {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.floating-petal {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50% 50% 50% 0;
    opacity: 0.25;
    animation: drift linear infinite;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(40px, 25vh) rotate(90deg);
    }
    50% {
        transform: translate(-20px, 50vh) rotate(180deg);
    }
    75% {
        transform: translate(60px, 75vh) rotate(270deg);
    }
    100% {
        transform: translate(10px, 100vh) rotate(360deg);
    }
}

/* Background Decorative Blobs */
#bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.bg-blob {
    position: absolute;
    opacity: 0.08;
    animation: blobFloat 20s ease-in-out infinite;
}

.bg-blob-1 {
    width: 40vw;
    height: 40vw;
    top: 10vh;
    left: -10vw;
    background: var(--sage-whisper);
    border-radius: 40% 60% 65% 35% / 45% 35% 65% 55%;
    animation-delay: 0s;
}

.bg-blob-2 {
    width: 35vw;
    height: 35vw;
    top: 30vh;
    right: -8vw;
    background: var(--lavender-haze);
    border-radius: 65% 35% 40% 60% / 55% 65% 35% 45%;
    animation-delay: -5s;
}

.bg-blob-3 {
    width: 30vw;
    height: 30vw;
    top: 60vh;
    left: 5vw;
    background: var(--rose-milk);
    border-radius: 50% 50% 35% 65% / 60% 40% 60% 40%;
    animation-delay: -10s;
}

.bg-blob-4 {
    width: 45vw;
    height: 45vw;
    top: 120vh;
    right: -5vw;
    background: var(--sage-whisper);
    border-radius: 35% 65% 55% 45% / 50% 60% 40% 50%;
    animation-delay: -3s;
}

.bg-blob-5 {
    width: 38vw;
    height: 38vw;
    top: 200vh;
    left: -8vw;
    background: var(--lavender-haze);
    border-radius: 60% 40% 45% 55% / 35% 55% 45% 65%;
    animation-delay: -7s;
}

.bg-blob-6 {
    width: 42vw;
    height: 42vw;
    top: 300vh;
    right: -12vw;
    background: var(--rose-milk);
    border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%;
    animation-delay: -12s;
}

@keyframes blobFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(15px, -20px) scale(1.03);
    }
    66% {
        transform: translate(-10px, 15px) scale(0.97);
    }
}

/* Vine Spine SVG */
#vine-spine {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

#vine-path {
    stroke-dasharray: 20000;
    stroke-dashoffset: 20000;
    transition: stroke-dashoffset 0.05s linear;
}

.vine-leaf {
    animation: leafSway 6s ease-in-out infinite;
}

.vine-leaf:nth-child(2n) {
    animation-delay: -2s;
}

.vine-leaf:nth-child(3n) {
    animation-delay: -4s;
}

@keyframes leafSway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(5deg); }
}

/* Typography */
h1, h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--soft-charcoal);
}

h1 {
    font-size: clamp(3rem, 7vw, 5rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 0.5em;
}

p {
    max-width: 38ch;
    margin-bottom: 0.8em;
}

.bloom-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dusty-mauve);
    display: block;
    margin-bottom: 0.8em;
}

.kr-text {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 300;
}

.quote-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-style: italic;
    color: var(--dusty-mauve);
    max-width: 30ch;
}

/* Scenes */
.scene {
    position: relative;
    z-index: 3;
}

/* Scene 1: Seed (Hero) */
#scene-seed {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

#seed-dot {
    width: 4px;
    height: 4px;
    background: var(--blush-stem);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: seedPulse 2s ease-in-out infinite;
    z-index: 5;
    opacity: 0;
}

#seed-dot.visible {
    opacity: 1;
}

@keyframes seedPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
}

.seed-svg {
    position: absolute;
    top: calc(50% - 200px);
    left: calc(50% - 100px);
    width: 200px;
    height: 400px;
    z-index: 4;
}

.seed-svg .draw-line {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
}

.seed-svg.animate .draw-line {
    animation: drawLine 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.seed-svg.animate .leaf-detail {
    animation-delay: 0.8s;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

#hero-blob {
    position: relative;
    z-index: 6;
    text-align: center;
    padding: 3rem 4rem;
    transform: scale(0);
    opacity: 0;
}

#hero-blob.visible {
    animation: blobInflate 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes blobInflate {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.hero-title {
    margin-bottom: 0.2em;
}

.hero-subtitle {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 400;
    color: var(--dusty-mauve);
    font-size: clamp(1rem, 2vw, 1.3rem);
    max-width: 100%;
}

/* Content Blobs */
.content-blob {
    background: rgba(253, 246, 238, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem 3rem;
    position: relative;
    transition: border-radius 4s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.content-blob:hover {
    transform: scale(1.02);
}

.blob-large {
    width: min(60vw, 700px);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.blob-medium {
    width: min(40vw, 480px);
    border-radius: 60% 40% 55% 45% / 45% 60% 40% 55%;
}

.blob-small {
    width: min(25vw, 320px);
    border-radius: 45% 55% 40% 60% / 55% 35% 65% 45%;
    padding: 2rem;
}

.blob-tiny {
    width: min(15vw, 240px);
    border-radius: 50% 50% 45% 55% / 55% 45% 55% 45%;
    padding: 1.5rem;
}

.blob-circle {
    border-radius: 50%;
    width: min(40vw, 400px);
    height: min(40vw, 400px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.blob-lavender {
    background: rgba(219, 208, 230, 0.35);
}

/* Bloom containers - layout */
.bloom-container {
    display: flex;
    padding: 4vh 0;
    position: relative;
}

.bloom-left {
    justify-content: flex-start;
    padding-left: 8vw;
}

.bloom-right {
    justify-content: flex-end;
    padding-right: 8vw;
}

.bloom-left:nth-child(2n) {
    padding-left: 12vw;
}

.bloom-right:nth-child(2n) {
    padding-right: 5vw;
}

/* Blur-focus depth-of-field effect */
.content-blob {
    filter: blur(6px);
    opacity: 0.4;
    transform: scale(0.92);
    transition: filter 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-radius 4s ease;
}

.content-blob.in-view {
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
}

.content-blob.in-view:hover {
    transform: scale(1.02);
}

/* Botanical Illustrations */
.botanical-illustration {
    width: 80px;
    height: 80px;
    display: block;
    margin-bottom: 1rem;
}

.botanical-illustration .draw-line {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.in-view .botanical-illustration .draw-line {
    stroke-dashoffset: 0;
}

.botanical-small {
    width: 60px;
    height: 60px;
}

/* Greenhouse Scene */
.greenhouse-scene {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10vh 0;
}

.greenhouse-container {
    width: 90vw;
    min-height: 80vh;
    background: var(--sage-whisper);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: greenhouseMorph 20s ease-in-out infinite;
    border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
}

@keyframes greenhouseMorph {
    0% { border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%; }
    25% { border-radius: 55% 45% 40% 60% / 45% 55% 45% 55%; }
    50% { border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%; }
    75% { border-radius: 60% 40% 45% 55% / 40% 60% 40% 60%; }
    100% { border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%; }
}

.greenhouse-content {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 70vh;
    padding: 5rem;
}

.greenhouse-botanical {
    width: min(60vw, 400px);
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

.greenhouse-botanical .draw-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 3s cubic-bezier(0.4, 0, 0.2, 1);
}

.greenhouse-container.in-view .greenhouse-botanical .draw-line {
    stroke-dashoffset: 0;
}

.greenhouse-text-block {
    position: absolute;
    max-width: 300px;
}

.greenhouse-text-1 {
    top: 15%;
    left: 10%;
}

.greenhouse-text-2 {
    top: 35%;
    right: 10%;
    text-align: right;
}

.greenhouse-text-3 {
    bottom: 15%;
    left: 15%;
}

.greenhouse-text-block h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--soft-charcoal);
}

.greenhouse-text-block p {
    color: var(--soft-charcoal);
}

.greenhouse-kr {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 300;
    color: var(--soft-charcoal);
    margin-bottom: 0.5em;
}

/* Scene Bloom Finale */
#scene-bloom {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bloom-finale {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.finale-flower {
    width: min(50vw, 300px);
    height: min(50vw, 300px);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.25;
    z-index: 1;
}

.finale-flower .draw-line {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bloom-finale.in-view .finale-flower .draw-line {
    stroke-dashoffset: 0;
}

.bloom-finale .content-blob {
    position: relative;
    z-index: 2;
}

.finale-text {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 300;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--soft-charcoal);
    max-width: 100%;
    text-align: center;
    margin-bottom: 0.3em;
}

.finale-subtext {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    color: var(--dusty-mauve);
    max-width: 100%;
    text-align: center;
}

.finale-subtext-small {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(0.75rem, 1.2vw, 0.9rem);
    color: var(--dusty-mauve);
    max-width: 100%;
    text-align: center;
    opacity: 0.7;
}

/* Navigation Bloom */
#nav-bloom {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    width: 40px;
    height: 40px;
}

#nav-seed {
    width: 40px;
    height: 40px;
    background: var(--rose-milk);
    border-radius: 50%;
    opacity: 0.5;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.3s ease;
    position: absolute;
    bottom: 0;
    right: 0;
}

#nav-bloom:hover #nav-seed,
#nav-bloom.open #nav-seed {
    transform: scale(1.2);
    opacity: 0.8;
}

.nav-petal {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 60px;
    height: 30px;
    background: var(--rose-milk);
    border-radius: 50% 50% 50% 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--soft-charcoal);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0;
    transform: scale(0) rotate(0deg);
    transform-origin: bottom right;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.3s ease;
    pointer-events: none;
}

#nav-bloom:hover .nav-petal,
#nav-bloom.open .nav-petal {
    opacity: 1;
    pointer-events: auto;
}

#nav-bloom:hover .nav-petal-1,
#nav-bloom.open .nav-petal-1 {
    transform: translate(-70px, -10px) scale(1) rotate(-15deg);
    transition-delay: 0ms;
}

#nav-bloom:hover .nav-petal-2,
#nav-bloom.open .nav-petal-2 {
    transform: translate(-55px, -50px) scale(1) rotate(-5deg);
    transition-delay: 80ms;
}

#nav-bloom:hover .nav-petal-3,
#nav-bloom.open .nav-petal-3 {
    transform: translate(-25px, -85px) scale(1) rotate(10deg);
    transition-delay: 160ms;
}

#nav-bloom:hover .nav-petal-4,
#nav-bloom.open .nav-petal-4 {
    transform: translate(10px, -110px) scale(1) rotate(20deg);
    transition-delay: 240ms;
}

.nav-petal:hover {
    background: var(--peach-glow);
}

/* Radial gradient depth inside blobs */
.content-blob::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: radial-gradient(ellipse at 30% 40%, rgba(240, 212, 200, 0.4), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Responsive */
@media (max-width: 768px) {
    .bloom-left,
    .bloom-right {
        justify-content: center;
        padding-left: 5vw;
        padding-right: 5vw;
    }

    .bloom-left:nth-child(2n) {
        padding-left: 5vw;
    }

    .bloom-right:nth-child(2n) {
        padding-right: 5vw;
    }

    .blob-large {
        width: min(85vw, 700px);
    }

    .blob-medium {
        width: min(75vw, 480px);
    }

    .blob-small {
        width: min(65vw, 320px);
    }

    .blob-tiny {
        width: min(55vw, 240px);
    }

    .greenhouse-content {
        padding: 2rem;
    }

    .greenhouse-text-block {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        margin-bottom: 2rem;
        max-width: 100%;
    }

    .greenhouse-text-2 {
        text-align: left;
    }

    .greenhouse-botanical {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 80%;
        margin: 0 auto 2rem;
        display: block;
    }

    .blob-circle {
        width: min(70vw, 400px);
        height: min(70vw, 400px);
    }

    #nav-bloom {
        bottom: 1rem;
        right: 1rem;
    }
}
