/* bada.studio - Blobitecture Fluid Studio */

:root {
    --ocean: #4A90B8;
    --tidal-teal: #2D6E7E;
    --seafoam: #B8E0D2;
    --sand: #F5EDDA;
    --coral: #E8926A;
    --basalt: #2A3038;
    --mist: #E8E4DF;
    --phosphor: #7ECDB0;
}

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

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

body {
    font-family: 'Nunito Sans', 'Nunito', sans-serif;
    background: var(--sand);
    color: var(--basalt);
    overflow-x: hidden;
    line-height: 1.72;
}

/* Navigation Blob */
.nav-blob {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    background: rgba(245, 237, 218, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-radius 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.nav-blob:hover,
.nav-blob.expanded {
    border-radius: 40% 60% 55% 45% / 60% 40% 45% 55%;
    width: 200px;
    height: 220px;
    flex-direction: column;
}

.nav-trigger {
    display: flex;
    gap: 4px;
    transition: opacity 0.3s;
}

.nav-dot {
    width: 5px;
    height: 5px;
    background: var(--tidal-teal);
    border-radius: 50%;
}

.nav-blob:hover .nav-trigger,
.nav-blob.expanded .nav-trigger {
    opacity: 0;
    position: absolute;
}

.nav-links {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}

.nav-blob:hover .nav-links,
.nav-blob.expanded .nav-links {
    display: flex;
}

.nav-links a {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tidal-teal);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--coral);
}

/* Sea Glass Fragments */
.sea-glass {
    position: fixed;
    border-radius: 40% 60% 55% 45% / 60% 40% 45% 55%;
    pointer-events: none;
    z-index: 1;
    animation: glassRotate 20s linear infinite;
}

.glass-1 {
    width: 30px;
    height: 24px;
    background: rgba(126, 205, 176, 0.25);
    top: 15%;
    left: 5%;
}

.glass-2 {
    width: 18px;
    height: 14px;
    background: rgba(232, 146, 106, 0.2);
    top: 40%;
    right: 8%;
    animation-duration: 25s;
}

.glass-3 {
    width: 24px;
    height: 20px;
    background: rgba(126, 205, 176, 0.2);
    top: 65%;
    left: 12%;
    animation-duration: 22s;
    animation-direction: reverse;
}

.glass-4 {
    width: 16px;
    height: 12px;
    background: rgba(232, 146, 106, 0.15);
    top: 80%;
    right: 15%;
    animation-duration: 18s;
}

.glass-5 {
    width: 22px;
    height: 18px;
    background: rgba(126, 205, 176, 0.18);
    top: 30%;
    right: 25%;
    animation-duration: 28s;
}

@keyframes glassRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* SVG Defs */
.blob-defs {
    position: absolute;
    width: 0;
    height: 0;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--mist);
    transition: background 1s ease;
}

.hero-blob {
    width: 85vw;
    height: 75vh;
    max-width: 1000px;
    background: var(--tidal-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: heroFadeIn 1.2s ease-out 0.4s forwards;
}

@keyframes heroFadeIn {
    from { opacity: 0; }
    to { opacity: 0.9; }
}

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

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(80px, 15vw, 200px);
    letter-spacing: -0.04em;
    color: var(--sand);
    text-transform: lowercase;
    opacity: 0;
    animation: titleFadeIn 1.2s ease-out 0.8s forwards;
}

@keyframes titleFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.72;
    color: var(--seafoam);
    letter-spacing: 0.005em;
    opacity: 0;
    animation: titleFadeIn 1s ease-out 1.4s forwards;
}

/* Satellite Blobs */
.satellite-blobs {
    display: flex;
    gap: 30px;
    margin-top: -40px;
    position: relative;
    z-index: 5;
}

.satellite {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(60px);
    animation: satelliteRise 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.blob-sat-1 {
    width: 120px;
    height: 120px;
    background: var(--ocean);
    animation-delay: 1.6s;
}

.blob-sat-2 {
    width: 100px;
    height: 100px;
    background: var(--seafoam);
    animation-delay: 1.8s;
}

.blob-sat-3 {
    width: 90px;
    height: 90px;
    background: var(--phosphor);
    animation-delay: 2.0s;
}

.satellite span {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sand);
}

.blob-sat-2 span {
    color: var(--basalt);
}

@keyframes satelliteRise {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 0.8; transform: translateY(0); }
}

/* Connector Paths */
.connector-path {
    display: block;
    width: 100px;
    height: 200px;
    margin: 0 auto;
}

.flow-path {
    stroke-dasharray: 4 6;
    stroke-dashoffset: 400;
    transition: stroke-dashoffset 2s ease-out;
}

.flow-path.animated {
    stroke-dashoffset: 0;
}

/* Content Pools */
.content-pool {
    position: relative;
    padding: 10vh 5vw;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
}

.pool-blob {
    padding: 40px;
    opacity: 0.3;
    transform: scale(0.7);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
}

.pool-blob.expanded {
    opacity: 1;
    transform: scale(1);
}

.pool-blob:hover {
    transform: perspective(800px) rotateY(3deg) scale(1.02);
    transition: transform 0.4s ease-out;
}

.blob-phil-1 {
    background: rgba(74, 144, 184, 0.35);
    width: 380px;
    min-height: 280px;
}

.blob-phil-2 {
    background: rgba(45, 110, 126, 0.3);
    width: 340px;
    min-height: 260px;
    margin-top: 60px;
}

.blob-phil-3 {
    background: rgba(184, 224, 210, 0.4);
    width: 300px;
    min-height: 220px;
}

.blob-works-1 {
    background: rgba(45, 110, 126, 0.35);
    width: 340px;
    min-height: 280px;
}

.blob-works-2 {
    background: rgba(74, 144, 184, 0.3);
    width: 320px;
    min-height: 260px;
    margin-top: 50px;
}

.blob-works-3 {
    background: rgba(184, 224, 210, 0.35);
    width: 350px;
    min-height: 270px;
}

.blob-works-4 {
    background: rgba(126, 205, 176, 0.3);
    width: 310px;
    min-height: 250px;
    margin-top: 40px;
}

.blob-proc-1 {
    background: rgba(74, 144, 184, 0.35);
    width: 400px;
    min-height: 280px;
}

.blob-proc-2 {
    background: rgba(184, 224, 210, 0.35);
    width: 340px;
    min-height: 240px;
    margin-top: 50px;
}

.pool-heading {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: clamp(28px, 4vw, 48px);
    color: var(--tidal-teal);
    letter-spacing: 0.01em;
    margin-bottom: 16px;
}

.pool-text {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.72;
    color: var(--basalt);
    max-width: 540px;
    letter-spacing: 0.005em;
}

.blob-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--coral);
    display: block;
    margin-bottom: 8px;
}

/* Bubble Canvas */
.bubble-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Closing Section */
.closing-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10vh 5vw;
}

.closing-blob {
    background: var(--ocean);
    width: min(80vw, 600px);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    text-align: center;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.34, 1.56, 0.64, 1), border-radius 8s ease-in-out;
    border-radius: 40% 60% 55% 45% / 60% 40% 45% 55%;
}

.closing-blob.expanded {
    opacity: 0.9;
    transform: scale(1);
}

.closing-blob.circle {
    border-radius: 50%;
}

.closing-heading {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 42px;
    color: var(--sand);
    margin-bottom: 16px;
}

.closing-text {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: var(--seafoam);
    max-width: 400px;
    margin-bottom: 30px;
    line-height: 1.72;
}

.closing-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Underline Draw Links */
.underline-link {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.08em;
    color: var(--sand);
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.underline-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--phosphor);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease-out;
}

.underline-link:hover::after {
    transform: scaleX(1);
}

/* Responsive */
@media (max-width: 768px) {
    .content-pool {
        flex-direction: column;
        align-items: center;
    }

    .pool-blob {
        width: 90vw !important;
        margin-top: 0 !important;
    }

    .satellite-blobs {
        gap: 15px;
    }

    .satellite {
        width: 80px !important;
        height: 80px !important;
    }

    .nav-blob {
        top: 12px;
        right: 12px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-blob {
        opacity: 0.9;
        animation: none;
    }

    .hero-title,
    .hero-subtitle {
        opacity: 1;
        animation: none;
    }

    .satellite {
        opacity: 0.8;
        transform: none;
        animation: none;
    }

    .pool-blob {
        opacity: 1;
        transform: none;
    }

    .sea-glass {
        animation: none;
    }

    .closing-blob {
        opacity: 0.9;
        transform: none;
    }
}
