/* mosoon.org - Blobitecture Fluid Monsoon */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Newsreader', serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.75;
    color: #E8EEF2;
    background: #2C3E50;
    overflow-x: hidden;
}

/* ===== Act Indicator ===== */
.act-indicator {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 50;
    background: rgba(44, 62, 80, 0.5);
    backdrop-filter: blur(8px);
    padding: 10px 8px;
    border-radius: 40% 60% 55% 45% / 55% 40% 60% 50%;
}

.act-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #A3B8C8;
    opacity: 0.4;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.act-dot.active {
    opacity: 1;
    animation: pulse-attention 2s ease-in-out infinite;
}

@keyframes pulse-attention {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

/* ===== Act I: The Gathering ===== */
.act-gathering {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gradient-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #2C3E50 0%, #1A2744 50%, #2C3E50 100%);
    animation: gradient-breathe 20s ease-in-out infinite;
}

@keyframes gradient-breathe {
    0% { background: linear-gradient(180deg, #2C3E50 0%, #1A2744 100%); }
    25% { background: linear-gradient(180deg, #1A2744 0%, #3D5A73 100%); }
    50% { background: linear-gradient(180deg, #3D5A73 0%, #2C3E50 100%); }
    75% { background: linear-gradient(180deg, #2C3E50 0%, #2C3E50 80%, rgba(212,162,84,0.1) 100%); }
    100% { background: linear-gradient(180deg, #2C3E50 0%, #1A2744 100%); }
}

/* Condensation Dots */
.condensation-dots {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 20%, #A3B8C8 1px, transparent 1px),
        radial-gradient(circle at 40% 60%, #A3B8C8 1.5px, transparent 1.5px),
        radial-gradient(circle at 70% 30%, #A3B8C8 1px, transparent 1px),
        radial-gradient(circle at 85% 75%, #A3B8C8 2px, transparent 2px),
        radial-gradient(circle at 25% 80%, #A3B8C8 1px, transparent 1px),
        radial-gradient(circle at 55% 15%, #A3B8C8 1.5px, transparent 1.5px),
        radial-gradient(circle at 90% 45%, #A3B8C8 1px, transparent 1px),
        radial-gradient(circle at 10% 55%, #A3B8C8 2px, transparent 2px),
        radial-gradient(circle at 60% 85%, #A3B8C8 1px, transparent 1px),
        radial-gradient(circle at 33% 40%, #A3B8C8 1.5px, transparent 1.5px);
    opacity: 0.25;
    transition: opacity 1s ease;
}

.condensation-dots.faded {
    opacity: 0.08;
}

/* Hero Blob */
.hero-blob {
    position: relative;
    z-index: 2;
    padding: 3rem 4rem;
    backdrop-filter: blur(2px);
    background: rgba(44, 62, 80, 0.3);
    border-radius: 40% 60% 55% 45% / 55% 40% 60% 50%;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 7rem);
    color: #E8EEF2;
    letter-spacing: -0.03em;
    text-align: center;
}

/* Rain Drop SVG */
.rain-drop-svg {
    position: absolute;
    top: 20%;
    left: 30%;
    z-index: 1;
    animation: rain-drift 15s linear infinite;
    opacity: 0.4;
}

@keyframes rain-drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30vw, 80vh); }
}

/* ===== Lightning Accent ===== */
.lightning-line {
    position: relative;
    height: 40px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.lightning-line.revealed {
    opacity: 1;
}

.lightning-path {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: draw-lightning 0.8s ease forwards;
    animation-play-state: paused;
}

.lightning-line.revealed .lightning-path {
    animation-play-state: running;
}

@keyframes draw-lightning {
    to { stroke-dashoffset: 0; }
}

/* ===== Act II: The Downpour ===== */
.act-downpour {
    position: relative;
    padding: 10vh 2rem;
    background: linear-gradient(180deg, #1A2744, #2C3E50);
}

/* Cloud Masses */
.cloud-mass {
    position: absolute;
    border-radius: 50%;
    background: #9EA8B2;
    filter: blur(50px);
    pointer-events: none;
}

.cloud-1 {
    width: 40vw;
    height: 40vw;
    top: 10%;
    left: -10%;
    opacity: 0.08;
    animation: cloud-drift-1 60s linear infinite;
}

.cloud-2 {
    width: 30vw;
    height: 30vw;
    top: 40%;
    right: -5%;
    opacity: 0.06;
    animation: cloud-drift-2 45s linear infinite;
}

.cloud-3 {
    width: 35vw;
    height: 35vw;
    top: 70%;
    left: 20%;
    opacity: 0.1;
    animation: cloud-drift-3 75s linear infinite;
}

@keyframes cloud-drift-1 {
    0% { transform: translateX(-20vw); }
    50% { transform: translateX(30vw); }
    100% { transform: translateX(-20vw); }
}

@keyframes cloud-drift-2 {
    0% { transform: translateX(20vw); }
    50% { transform: translateX(-25vw); }
    100% { transform: translateX(20vw); }
}

@keyframes cloud-drift-3 {
    0% { transform: translateX(0); }
    50% { transform: translateX(15vw); }
    100% { transform: translateX(0); }
}

/* Rain Curtain */
.rain-curtain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(
        180deg,
        transparent 0px,
        transparent 4px,
        rgba(163, 184, 200, 0.04) 4px,
        rgba(163, 184, 200, 0.04) 5px
    );
    background-size: 100% 80px;
    animation: rain-fall 4s linear infinite;
}

@keyframes rain-fall {
    0% { background-position: 0 0; }
    100% { background-position: 0 80px; }
}

.rain-curtain-divider {
    height: 20vh;
    position: relative;
}

/* ===== Blob Cards ===== */
.blob-card {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    margin-bottom: 4rem;
    background: rgba(232, 238, 242, 0.08);
    box-shadow: 0 8px 32px rgba(107, 135, 163, 0.25);
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.6s ease, transform 0.6s ease, border-radius 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.blob-card.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.blob-card:hover {
    box-shadow: 0 16px 48px rgba(107, 135, 163, 0.35);
    transform: scale(1.02);
}

.cumulus-blob {
    border-radius: 40% 60% 55% 45% / 55% 40% 60% 50%;
}

.cumulus-blob:hover {
    border-radius: 55% 45% 40% 60% / 40% 55% 45% 60%;
}

.cirrus-blob {
    border-radius: 20% 80% 75% 25% / 70% 20% 80% 30%;
}

.cirrus-blob:hover {
    border-radius: 30% 70% 65% 35% / 60% 30% 70% 40%;
}

.act-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    color: #E8EEF2;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.card-body p {
    font-family: 'Newsreader', serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.75;
    color: #E8EEF2;
    text-indent: 2em;
}

.card-body p:first-child {
    text-indent: 0;
}

/* ===== Act III: The Clearing ===== */
.act-clearing {
    min-height: 60vh;
    padding: 10vh 2rem 15vh;
    background: linear-gradient(180deg, #2C3E50, #F5F0E8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.clearing-content {
    max-width: 640px;
    text-align: center;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.clearing-content.revealed {
    opacity: 1;
    transform: translateY(0);
}

.clearing-text {
    font-family: 'Newsreader', serif;
    font-weight: 400;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.75;
    color: #1A2744;
    margin-bottom: 3rem;
}

/* ===== Colophon ===== */
.colophon {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.5s ease 0.3s;
}

.colophon.revealed {
    opacity: 1;
}

.colophon-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #1A2744;
    letter-spacing: -0.02em;
}

.colophon-meta {
    font-family: 'Azeret Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #6B87A3;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .blob-card {
        margin-left: 5vw !important;
        margin-right: 5vw !important;
    }

    .cloud-mass {
        display: none;
    }

    .hero-blob {
        padding: 2rem;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 4rem);
    }
}
