/* holos.works - Blobitecture Liquid Architecture Studio */

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

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

body {
    background: #F0EDF5;
    color: #4A4A5E;
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.75;
    overflow-x: hidden;
}

/* Bubble Particles */
.bubbles-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

.bubble-particle {
    position: absolute;
    border: 1px solid currentColor;
    border-radius: 50%;
    opacity: 0.1;
    color: #4A4A5E;
    animation: bubbleFloat 25s linear infinite;
}

@keyframes bubbleFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-110vh); }
}

/* The Membrane */
.membrane-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.membrane-blob {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #B8A9E8, #D4C5F0);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: blobMorph 8s ease-in-out infinite, blobGrow 1.5s ease-out forwards;
    transform: scale(0);
    position: relative;
}

@keyframes blobGrow {
    0% { transform: scale(0); border-radius: 50%; }
    100% { transform: scale(1); border-radius: 42% 58% 55% 45% / 50% 40% 60% 50%; }
}

@keyframes blobMorph {
    0%, 100% { border-radius: 42% 58% 55% 45% / 50% 40% 60% 50%; }
    25% { border-radius: 55% 45% 42% 58% / 45% 55% 45% 55%; }
    50% { border-radius: 48% 52% 60% 40% / 55% 48% 52% 45%; }
    75% { border-radius: 40% 60% 45% 55% / 48% 52% 55% 45%; }
}

.membrane-content {
    text-align: center;
    z-index: 2;
}

.membrane-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 64px;
    color: #2D2D3D;
    filter: blur(4px);
    animation: deblur 0.8s ease-out 0.4s forwards;
}

@keyframes deblur {
    to { filter: blur(0); }
}

.membrane-sub {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 28px;
    color: #4A4A5E;
    opacity: 0;
    animation: fadeInUp 600ms ease-out 0.7s forwards;
}

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

/* Colony Section */
.colony-section {
    position: relative;
    z-index: 2;
    min-height: 300vh;
    padding: 5vw;
}

.tendrils-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Blobs */
.blob {
    position: absolute;
    left: var(--blob-x);
    top: var(--blob-y);
    width: var(--blob-size);
    height: var(--blob-size);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: transform 700ms cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: blobMorph2 10s ease-in-out infinite;
    cursor: default;
}

.blob.revealed { transform: scale(1); }

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

@keyframes blobMorph2 {
    0%, 100% { border-radius: 45% 55% 50% 50% / 50% 45% 55% 50%; }
    25% { border-radius: 52% 48% 45% 55% / 55% 50% 50% 45%; }
    50% { border-radius: 48% 52% 55% 45% / 45% 55% 45% 55%; }
    75% { border-radius: 55% 45% 48% 52% / 50% 48% 52% 50%; }
}

.blob-violet {
    background: radial-gradient(circle at 40% 40%, #B8A9E8, #D4C5F0);
}

.blob-pink {
    background: radial-gradient(circle at 40% 40%, #FFD4E8, #F0EDF5);
}

.blob-mint {
    background: radial-gradient(circle at 40% 40%, #A8E6CF, #D4F0E8);
}

.blob-peach {
    background: radial-gradient(circle at 40% 40%, #FFE4B5, #FFF0E0);
}

.blob-inner {
    max-width: 280px;
    padding: 32px;
    text-align: center;
}

.blob-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 26px;
    color: #2D2D3D;
    line-height: 1.2;
    margin-bottom: 12px;
}

.blob-body {
    font-family: 'Quicksand', sans-serif;
    font-size: 15px;
    color: #4A4A5E;
    line-height: 1.75;
}

.blob-tag {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #2D2D3D;
}

.blob-caption {
    font-family: 'Quicksand', sans-serif;
    font-size: 13px;
    color: #4A4A5E;
}

/* Mitosis */
.mitosis-child {
    opacity: 0;
    pointer-events: none;
    transform: scale(0) !important;
    transition: opacity 500ms ease, transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mitosis-parent.split {
    transform: scaleX(0) !important;
    opacity: 0;
    transition: transform 600ms ease, opacity 300ms ease 400ms;
}

.mitosis-child.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) !important;
}

/* Nucleus Section */
.nucleus-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.nucleus-blob {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at 50% 50%, #B8A9E8, #D4C5F0, #F0EDF5);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: blobMorph 12s ease-in-out infinite;
}

.nucleus-content {
    max-width: 360px;
    text-align: center;
}

.nucleus-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 40px;
    color: #2D2D3D;
    margin-bottom: 16px;
}

.nucleus-body {
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
    color: #4A4A5E;
    line-height: 1.75;
}

/* Responsive */
@media (max-width: 768px) {
    .membrane-blob { width: 280px; height: 280px; }
    .membrane-title { font-size: 40px; }
    .blob { position: relative !important; left: auto !important; top: auto !important; width: 90vw !important; height: 90vw !important; margin: 20px auto; }
    .colony-section { min-height: auto; display: flex; flex-direction: column; }
    .nucleus-blob { width: 300px; height: 300px; }
}
