@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Josefin+Sans:wght@500;700&display=swap');

:root {
    --cream-base: #FFFBF5;
    --warm-taupe: #E8DDD0;
    --deep-cream: #D4C4B0;
    --primary-text: #4A3728;
    --accent-peach: #E8B4A8;
    --accent-pistachio: #D4E0C0;
    --accent-lavender: #D8C4E8;
    --accent-butter: #F5E5A8;
    --mysterious-depth: #8B6F7C;
    --text-alt: #FFFBF5;
    --headline-color: #3D2817;

    --spring-ease: cubic-bezier(0.34, 1.56, 0.64, 1);
    --spring-hover: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --sine-ease: cubic-bezier(0.36, 0, 0.66, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Nunito', sans-serif;
    background: var(--cream-base);
    color: var(--primary-text);
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: 0.01em;
    overflow-x: hidden;
    opacity: 0;
    animation: pageEntry 400ms ease-out forwards;
}

@keyframes pageEntry {
    from { opacity: 0; }
    to { opacity: 1; }
}

.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.page-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cream-base);
    z-index: -2;
    filter: url(#watercolor);
    opacity: 0.03;
}

/* Organic blob overlays */
.organic-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: rgba(232, 180, 168, 0.08);
    top: 5%;
    left: -5%;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: rgba(212, 224, 192, 0.06);
    top: 30%;
    right: -8%;
}

.blob-3 {
    width: 600px;
    height: 600px;
    background: rgba(216, 196, 232, 0.05);
    top: 55%;
    left: 10%;
}

.blob-4 {
    width: 350px;
    height: 350px;
    background: rgba(245, 229, 168, 0.07);
    top: 75%;
    right: 5%;
}

.blob-5 {
    width: 450px;
    height: 450px;
    background: rgba(139, 111, 124, 0.04);
    top: 90%;
    left: -10%;
}

/* Content wrapper */
.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px 120px;
    position: relative;
}

/* Bubble sections - asymmetric layout */
.bubble-section {
    margin-bottom: 20px;
    position: relative;
}

.section-left {
    padding-left: 0;
    padding-right: 30%;
}

.section-right {
    padding-left: 35%;
    padding-right: 0;
}

.section-center-left {
    padding-left: 10%;
    padding-right: 20%;
}

.section-far-right {
    padding-left: 45%;
    padding-right: 0;
}

/* Bubble clusters */
.bubble-cluster {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
    position: relative;
}

/* Bubbles */
.bubble {
    border-radius: 24px;
    padding: 28px 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 300ms var(--spring-hover), box-shadow 300ms ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(0) translateY(0);
}

.bubble::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at top left, rgba(212,196,176,0.4) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.3;
}

.bubble-large {
    flex: 1 1 70%;
    min-width: 280px;
    min-height: 160px;
    border-radius: 28px;
}

.bubble-medium {
    flex: 1 1 40%;
    min-width: 180px;
    min-height: 100px;
    border-radius: 24px;
}

.bubble-small {
    flex: 0 0 auto;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.bubble-tiny {
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bubble colors */
.bubble-cream {
    background: var(--cream-base);
    color: var(--primary-text);
    border: 1px solid rgba(212, 196, 176, 0.3);
}

.bubble-taupe {
    background: var(--warm-taupe);
    color: var(--primary-text);
}

.bubble-peach {
    background: var(--accent-peach);
    color: var(--text-alt);
}

.bubble-pistachio {
    background: var(--accent-pistachio);
    color: var(--primary-text);
}

.bubble-lavender {
    background: var(--accent-lavender);
    color: var(--primary-text);
}

.bubble-butter {
    background: var(--accent-butter);
    color: var(--primary-text);
}

.bubble-mauve {
    background: var(--mysterious-depth);
    color: var(--text-alt);
}

/* Typography */
.headline {
    font-family: 'Josefin Sans', 'Futura', sans-serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 6vw, 5rem);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--headline-color);
    line-height: 1.1;
    margin-bottom: 16px;
}

.subheading {
    font-family: 'Josefin Sans', 'Futura', sans-serif;
    font-weight: 500;
    font-size: clamp(1.2rem, 3vw, 2.2rem);
    letter-spacing: 0.03em;
    color: var(--headline-color);
    margin-bottom: 12px;
}

.body-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    line-height: 1.75;
    letter-spacing: 0.01em;
    color: var(--primary-text);
}

.bubble-peach .body-text,
.bubble-mauve .body-text {
    color: var(--text-alt);
}

.accent-text {
    font-family: 'Josefin Sans', 'Futura', sans-serif;
    font-weight: 500;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--headline-color);
}

.bubble-peach .accent-text {
    color: var(--text-alt);
}

.bubble-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Interactive bubbles */
.interactive-bubble {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.interactive-bubble:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
}

.interactive-bubble:active {
    transform: scale(0.98);
}

.bubble-peach.interactive-bubble:hover {
    background: linear-gradient(135deg, #E8B4A8 0%, #D8C4E8 100%);
}

.bubble-cream.interactive-bubble:hover .accent-text {
    color: var(--accent-peach);
}

.bubble-butter.interactive-bubble:hover {
    background: linear-gradient(135deg, #F5E5A8 0%, #E8B4A8 100%);
}

/* Bubble hover effects (non-interactive) */
.bubble:not(.interactive-bubble):hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.05);
}

/* Pulse animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.pulse-target {
    animation: pulse 3.5s var(--sine-ease) infinite;
}

.pulse-target:nth-child(2) { animation-delay: 150ms; }
.pulse-target:nth-child(3) { animation-delay: 300ms; }
.pulse-target:nth-child(4) { animation-delay: 450ms; }

/* Section dividers */
.section-divider {
    display: flex;
    gap: 12px;
    padding: 40px 0;
    justify-content: center;
    align-items: center;
}

.dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--deep-cream);
    opacity: 0.3;
}

/* Dot pulse wave animation (left to right) */
@keyframes dotPulseLtr {
    0% { opacity: 0.3; }
    15% { opacity: 1; }
    40% { opacity: 0.3; }
    100% { opacity: 0.3; }
}

@keyframes dotPulseRtl {
    0% { opacity: 0.3; }
    15% { opacity: 1; }
    40% { opacity: 0.3; }
    100% { opacity: 0.3; }
}

.section-divider .dot:nth-child(1) { animation: dotPulseLtr 2.5s var(--sine-ease) infinite; animation-delay: 0ms; }
.section-divider .dot:nth-child(2) { animation: dotPulseLtr 2.5s var(--sine-ease) infinite; animation-delay: 200ms; }
.section-divider .dot:nth-child(3) { animation: dotPulseLtr 2.5s var(--sine-ease) infinite; animation-delay: 400ms; }
.section-divider .dot:nth-child(4) { animation: dotPulseLtr 2.5s var(--sine-ease) infinite; animation-delay: 600ms; }
.section-divider .dot:nth-child(5) { animation: dotPulseLtr 2.5s var(--sine-ease) infinite; animation-delay: 800ms; }
.section-divider .dot:nth-child(6) { animation: dotPulseLtr 2.5s var(--sine-ease) infinite; animation-delay: 1000ms; }
.section-divider .dot:nth-child(7) { animation: dotPulseLtr 2.5s var(--sine-ease) infinite; animation-delay: 1200ms; }

.section-divider.divider-rtl .dot:nth-child(1) { animation: dotPulseRtl 2.5s var(--sine-ease) infinite; animation-delay: 1200ms; }
.section-divider.divider-rtl .dot:nth-child(2) { animation: dotPulseRtl 2.5s var(--sine-ease) infinite; animation-delay: 1000ms; }
.section-divider.divider-rtl .dot:nth-child(3) { animation: dotPulseRtl 2.5s var(--sine-ease) infinite; animation-delay: 800ms; }
.section-divider.divider-rtl .dot:nth-child(4) { animation: dotPulseRtl 2.5s var(--sine-ease) infinite; animation-delay: 600ms; }
.section-divider.divider-rtl .dot:nth-child(5) { animation: dotPulseRtl 2.5s var(--sine-ease) infinite; animation-delay: 400ms; }
.section-divider.divider-rtl .dot:nth-child(6) { animation: dotPulseRtl 2.5s var(--sine-ease) infinite; animation-delay: 200ms; }
.section-divider.divider-rtl .dot:nth-child(7) { animation: dotPulseRtl 2.5s var(--sine-ease) infinite; animation-delay: 0ms; }

/* Scroll reveal animation */
.bubble.reveal-left {
    opacity: 0;
    transform: translateX(-20px);
}

.bubble.reveal-right {
    opacity: 0;
    transform: translateX(20px);
}

.bubble.revealed {
    opacity: 1;
    transform: translateX(0) translateY(0);
    transition: opacity 700ms var(--spring-ease), transform 700ms var(--spring-ease);
}

/* Cursor proximity rotation */
.bubble.proximity-active {
    transition: transform 100ms ease-out;
}

/* Responsive - mobile */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 40px 20px 80px;
    }

    .section-left,
    .section-right,
    .section-center-left,
    .section-far-right {
        padding-left: 0;
        padding-right: 0;
    }

    .bubble-cluster {
        flex-direction: column;
        align-items: center;
    }

    .bubble-large {
        min-width: auto;
        width: 100%;
    }

    .bubble-medium {
        min-width: auto;
        width: 80%;
    }

    .bubble {
        transform: rotate(0deg);
    }

    .bubble:nth-child(odd) {
        transform: rotate(-1.5deg);
    }

    .bubble:nth-child(even) {
        transform: rotate(1.5deg);
    }

    .bubble.revealed:nth-child(odd) {
        transform: rotate(-1.5deg);
    }

    .bubble.revealed:nth-child(even) {
        transform: rotate(1.5deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    body {
        opacity: 1;
    }

    .bubble {
        opacity: 1;
        transform: none;
    }
}
