/* ========================================
   koomimi.com - Blobitecture Dreamworld
   ======================================== */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    color: #4A3562;
    background: radial-gradient(ellipse at 30% 20%, #F4E8FF 0%, #FFF5EB 60%, #F4E8FF 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    cursor: none;
    line-height: 1.8;
    font-size: clamp(0.95rem, 1.15vw, 1.1rem);
}

a {
    color: #6B4D8A;
    text-decoration: none;
    position: relative;
}

a:hover {
    color: #2D1B4E;
}

/* --- Scroll Progress Bar --- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #FFDAC6, #E8B4D8, #C8E6D0);
    transform: scaleX(0);
    transform-origin: left;
    z-index: 10000;
    pointer-events: none;
}

/* --- Cursor Blob --- */
#cursor-blob {
    position: fixed;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #E8B4D8;
    opacity: 0.15;
    filter: blur(20px);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, opacity 0.3s ease;
    will-change: transform;
}

#cursor-blob.hovering {
    width: 120px;
    height: 120px;
    background: #FFDAC6;
    opacity: 0.25;
}

/* --- Navigation Pill --- */
#nav-pill {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 120px;
    height: 48px;
    border-radius: 24px;
    background: rgba(244, 232, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 108, 175, 0.2);
    cursor: none;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: pill-pulse 3s ease-in-out infinite;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
}

#nav-pill:hover {
    transform: scale(1.05);
    background: rgba(244, 232, 255, 0.95);
}

#nav-pill:active {
    transform: scale(0.95);
}

@keyframes pill-pulse {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; }
}

.nav-pill-label {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: #8B6CAF;
    text-transform: uppercase;
}

.nav-pill-icon {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nav-pill-icon span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 1px;
    background: #8B6CAF;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#nav-pill.open .nav-pill-icon span:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

#nav-pill.open .nav-pill-icon span:nth-child(2) {
    opacity: 0;
}

#nav-pill.open .nav-pill-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
}

#nav-pill.open .nav-pill-label {
    display: none;
}

/* --- Menu Overlay --- */
#menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(244, 232, 255, 0.95);
    backdrop-filter: blur(24px);
    z-index: 8000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#menu-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.menu-blob-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    padding: 40px;
}

.menu-blob-item {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: none;
}

#menu-overlay.open .menu-blob-item {
    transform: scale(1);
}

.menu-blob-item:nth-child(1) { transition-delay: 0ms; }
.menu-blob-item:nth-child(2) { transition-delay: 80ms; }
.menu-blob-item:nth-child(3) { transition-delay: 160ms; }
.menu-blob-item:nth-child(4) { transition-delay: 240ms; }
.menu-blob-item:nth-child(5) { transition-delay: 320ms; }

.menu-item-blob {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.menu-item-blob path {
    fill: #E8B4D8;
    fill-opacity: 0.4;
    transition: fill-opacity 0.3s ease;
}

.menu-blob-item:hover .menu-item-blob path {
    fill-opacity: 0.7;
}

.menu-blob-item span {
    position: relative;
    z-index: 1;
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #2D1B4E;
}

/* --- Floating Orbs Container --- */
#floating-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    pointer-events: none;
    will-change: transform;
}

/* --- Pod Sections --- */
.pod-section {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 4vw, 4rem);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    overflow: hidden;
}

.hero-blob-wrapper {
    position: relative;
    width: min(85vw, 85vh);
    height: min(85vw, 85vh);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    animation: hero-inflate 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
}

@keyframes hero-inflate {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

#hero-blob {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: hero-breathe 4s ease-in-out infinite;
}

@keyframes hero-breathe {
    0%, 100% { transform: scale(1.0); }
    50% { transform: scale(1.015); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: clamp(3rem, 6vw, 6rem);
}

#hero-title {
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    letter-spacing: 0.08em;
    color: #2D1B4E;
    line-height: 1.1;
    text-shadow:
        0 0 2px rgba(45, 27, 78, 0.15),
        0 0 4px rgba(45, 27, 78, 0.1),
        0 0 6px rgba(45, 27, 78, 0.07),
        0 0 8px rgba(45, 27, 78, 0.04);
}

#hero-title .char {
    display: inline-block;
    opacity: 0;
    transform: scale(0.5);
    animation: char-appear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes char-appear {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

.hero-subtitle {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #4A3562;
    margin-top: 1.2rem;
    opacity: 0;
    animation: fade-in 0.8s ease 1.2s forwards;
}

@keyframes fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* --- Drifter Blobs --- */
.drifter {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: drifter-float 12s ease-in-out infinite, fade-in 1s ease 1.5s forwards;
    pointer-events: none;
    z-index: 0;
}

.drifter-1 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 218, 198, 0.7) 0%, rgba(255, 218, 198, 0.1) 70%);
    top: 15%;
    right: 8%;
    animation-delay: 0s;
}

.drifter-2 {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(232, 180, 216, 0.6) 0%, rgba(232, 180, 216, 0.1) 70%);
    bottom: 20%;
    left: 10%;
    animation-delay: -3s;
}

.drifter-3 {
    width: 65px;
    height: 65px;
    background: radial-gradient(circle, rgba(200, 230, 208, 0.6) 0%, rgba(200, 230, 208, 0.1) 70%);
    top: 60%;
    right: 15%;
    animation-delay: -6s;
}

.drifter-4 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(232, 180, 216, 0.5) 0%, rgba(232, 180, 216, 0.05) 70%);
    top: 20%;
    right: 5%;
    animation-delay: -2s;
}

.drifter-5 {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(200, 230, 208, 0.6) 0%, rgba(200, 230, 208, 0.1) 70%);
    bottom: 15%;
    left: 8%;
    animation-delay: -5s;
}

.drifter-6 {
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, rgba(255, 218, 198, 0.5) 0%, rgba(255, 218, 198, 0.05) 70%);
    top: 10%;
    left: 5%;
    animation-delay: -1s;
}

.drifter-7 {
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgba(232, 180, 216, 0.5) 0%, rgba(232, 180, 216, 0.05) 70%);
    bottom: 10%;
    right: 12%;
    animation-delay: -4s;
}

.drifter-8 {
    width: 55px;
    height: 55px;
    background: radial-gradient(circle, rgba(200, 230, 208, 0.6) 0%, rgba(200, 230, 208, 0.1) 70%);
    top: 50%;
    left: 3%;
    animation-delay: -7s;
}

.drifter-9 {
    width: 75px;
    height: 75px;
    background: radial-gradient(circle, rgba(255, 218, 198, 0.6) 0%, rgba(255, 218, 198, 0.1) 70%);
    top: 30%;
    right: 7%;
    animation-delay: -2.5s;
}

.drifter-10 {
    width: 45px;
    height: 45px;
    background: radial-gradient(circle, rgba(232, 180, 216, 0.6) 0%, rgba(232, 180, 216, 0.1) 70%);
    bottom: 25%;
    left: 6%;
    animation-delay: -8s;
}

.drifter-11 {
    width: 85px;
    height: 85px;
    background: radial-gradient(circle, rgba(200, 230, 208, 0.5) 0%, rgba(200, 230, 208, 0.05) 70%);
    top: 15%;
    left: 12%;
    animation-delay: -3.5s;
}

@keyframes drifter-float {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(15px, -20px); }
    50% { transform: translate(-10px, 10px); }
    75% { transform: translate(20px, 15px); }
}

/* --- Content Sections --- */
.content-section {
    min-height: 85vh;
    padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 4vw, 4rem);
}

.pod-cluster {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
    max-width: 1100px;
    width: 100%;
    position: relative;
}

.pod-cluster.reverse {
    flex-direction: row-reverse;
}

/* --- Pod Containers --- */
.pod {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pod.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.pod-large {
    flex: 0 0 60%;
    min-height: 380px;
}

.pod-small {
    flex: 0 0 35%;
    min-height: 280px;
}

.pod-right {
    align-self: flex-start;
}

.pod-left {
    align-self: flex-end;
}

.pod-blob {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pod-content {
    position: relative;
    z-index: 2;
    padding: clamp(2rem, 4vw, 3.5rem);
    max-width: 480px;
    opacity: 0;
    transition: opacity 0.5s ease 0.2s;
}

.pod.visible .pod-content {
    opacity: 1;
}

.pod-content h2 {
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    font-size: clamp(2.2rem, 5.5vw, 4.2rem);
    letter-spacing: -0.02em;
    color: #2D1B4E;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow:
        0 0 2px rgba(45, 27, 78, 0.12),
        0 0 4px rgba(45, 27, 78, 0.08),
        0 0 6px rgba(45, 27, 78, 0.05),
        0 0 8px rgba(45, 27, 78, 0.03);
}

.pod-content p {
    margin-bottom: 1rem;
    color: #4A3562;
}

.pod-content p:last-child {
    margin-bottom: 0;
}

/* --- Accent Pod Content --- */
.pod-content-accent {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.stat-number {
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    font-size: clamp(3rem, 6vw, 4.5rem);
    color: #2D1B4E;
    line-height: 1;
    text-shadow:
        0 0 2px rgba(45, 27, 78, 0.12),
        0 0 4px rgba(45, 27, 78, 0.08),
        0 0 6px rgba(45, 27, 78, 0.05),
        0 0 8px rgba(45, 27, 78, 0.03);
}

.stat-label {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: #8B6CAF;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

/* --- Blob Button --- */
.blob-button {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 30px;
    background: linear-gradient(135deg, #FFDAC6, #E8B4D8);
    color: #2D1B4E;
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    cursor: none;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    margin-top: 1.5rem;
    box-shadow: 0 4px 20px rgba(139, 108, 175, 0.15);
}

.blob-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(139, 108, 175, 0.25);
    color: #2D1B4E;
}

.blob-button:active {
    transform: scale(0.95);
}

/* --- Bubble Clusters --- */
.bubble-cluster {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    z-index: 2;
    gap: 0;
    height: 80px;
}

.bubble {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(139, 108, 175, 0.3);
    background: transparent;
    position: relative;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bubble-cluster.visible .bubble {
    transform: scale(1);
}

.bubble:nth-child(1) { width: 10px; height: 10px; top: -5px; left: 2px; transition-delay: 0ms; }
.bubble:nth-child(2) { width: 14px; height: 14px; top: 3px; left: -3px; transition-delay: 30ms; }
.bubble:nth-child(3) { width: 8px; height: 8px; top: -8px; left: 5px; transition-delay: 60ms; }
.bubble:nth-child(4) { width: 11px; height: 11px; top: 6px; left: -1px; transition-delay: 90ms; }
.bubble:nth-child(5) { width: 15px; height: 15px; top: -3px; left: 4px; transition-delay: 120ms; }
.bubble:nth-child(6) { width: 9px; height: 9px; top: 5px; left: -4px; transition-delay: 150ms; }
.bubble:nth-child(7) { width: 13px; height: 13px; top: -6px; left: 2px; transition-delay: 180ms; }
.bubble:nth-child(8) { width: 10px; height: 10px; top: 4px; left: -2px; transition-delay: 210ms; }
.bubble:nth-child(9) { width: 12px; height: 12px; top: -2px; left: 3px; transition-delay: 240ms; }

/* --- Ear Motifs --- */
.ear-motif {
    position: relative;
    z-index: 1;
    pointer-events: none;
    display: flex;
    justify-content: center;
    height: 0;
    overflow: visible;
}

.ear-motif-left {
    margin-left: 8%;
    justify-content: flex-start;
}

.ear-motif-right {
    margin-right: 8%;
    justify-content: flex-end;
}

.ear-svg {
    width: 120px;
    height: 240px;
    overflow: visible;
}

.ear-path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    transition: stroke-dashoffset 1.2s ease;
}

.ear-motif.visible .ear-path {
    stroke-dashoffset: 0;
}

/* --- Footer Puddle --- */
#footer-puddle {
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 2rem;
    z-index: 2;
}

#footer-blob {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.footer-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: #8B6CAF;
    text-transform: uppercase;
    transition: color 0.3s ease;
    cursor: none;
}

.footer-links a:hover {
    color: #6B4D8A;
}

.footer-message {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: #8B6CAF;
    opacity: 0.7;
}

/* --- Noise Texture Overlay for Pods --- */
.pod::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: 1;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.4' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    #cursor-blob {
        display: none;
    }

    .pod-cluster,
    .pod-cluster.reverse {
        flex-direction: column;
        gap: 2rem;
    }

    .pod-large,
    .pod-small {
        flex: none;
        width: 100%;
        min-height: auto;
    }

    .pod-small {
        min-height: 200px;
    }

    .pod-right,
    .pod-left {
        align-self: center;
    }

    #nav-pill {
        width: 48px;
        height: 48px;
        top: 16px;
        right: 16px;
    }

    .nav-pill-label {
        display: none;
    }

    .hero-blob-wrapper {
        width: 90vw;
        height: 90vw;
        max-width: 500px;
        max-height: 500px;
    }

    #hero-title {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .pod-content h2 {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
    }

    .menu-blob-item {
        width: 110px;
        height: 110px;
    }

    .ear-svg {
        width: 80px;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .pod-section {
        padding: 2rem 1rem;
    }

    .content-section {
        min-height: auto;
        padding: 3rem 1rem;
    }

    .hero-content {
        padding: 2rem;
    }

    .pod-content {
        padding: 1.5rem;
    }

    .footer-links {
        gap: 1rem;
    }
}
