/* mosoon.org - Ocean deep calming motion heavy monsoon */
/* Colors: #0A1F2E #0D2B3E #E0F2F1 #80CBC4 #4DB6AC #1A4A5E #26C6DA */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0A1F2E;
    color: #80CBC4;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: 17px;
    line-height: 1.8;
    overflow-x: hidden;
}

/* Rain container */
.rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}

.raindrop {
    position: absolute;
    top: -60px;
    width: 1px;
    background: rgba(255, 255, 255, 0.05);
    filter: blur(0.5px);
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-60px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Rain intensity classes applied to container */
.rain-container.rain-light .raindrop {
    opacity: 0.6;
}

.rain-container.rain-medium .raindrop {
    opacity: 0.8;
}

.rain-container.rain-heavy .raindrop {
    opacity: 1;
}

/* Lightning overlay */
.lightning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(38, 198, 218, 0.04);
    pointer-events: none;
    z-index: 11;
    opacity: 0;
    transition: opacity 50ms ease;
}

.lightning-overlay.flash {
    opacity: 1;
}

/* Phase Navigation Dots */
.phase-nav {
    position: fixed;
    bottom: 40px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
}

.phase-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid #4DB6AC;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background-color 200ms ease;
}

.phase-dot.active {
    background-color: #E0F2F1;
    border-color: #E0F2F1;
}

/* Monsoon Phase Sections */
.monsoon-phase {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.phase-approach {
    background-color: #0A1F2E;
}

.phase-arrival {
    background-color: #0D2B3E;
}

.phase-deluge {
    background-color: #0A1F2E;
}

.phase-calm {
    background-color: #0D2B3E;
}

/* Fog gradient at bottom of each section */
.phase-fog {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20vh;
    background: linear-gradient(transparent, rgba(10, 31, 46, 0.8));
    pointer-events: none;
    z-index: 2;
}

/* Ripple circles */
.ripple-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    margin-top: -50px;
    margin-left: -50px;
    border-radius: 50%;
    border: 1px solid rgba(77, 182, 172, 0.1);
    opacity: 0;
    transform: scale(0);
}

.ripple.active {
    animation: rippleExpand 4s ease-out forwards;
}

.ripple-2.active {
    animation-delay: 0.5s;
}

.ripple-3.active {
    animation-delay: 1s;
}

@keyframes rippleExpand {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Phase Content */
.phase-content {
    position: relative;
    z-index: 5;
    max-width: 600px;
    padding: 40px 24px;
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease;
}

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

/* Hero title */
.hero-title {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: 44px;
    color: #E0F2F1;
    margin-bottom: 16px;
    filter: blur(6px);
    opacity: 0;
    animation: heroFocus 2s ease-out 0.5s forwards;
}

@keyframes heroFocus {
    0% {
        filter: blur(6px);
        opacity: 0;
    }
    100% {
        filter: blur(0);
        opacity: 1;
    }
}

.hero-subtitle {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: 17px;
    color: #80CBC4;
    line-height: 1.8;
}

/* Phase titles */
.phase-title {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: 28px;
    color: #E0F2F1;
    margin-bottom: 24px;
}

.phase-body {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: 17px;
    color: #80CBC4;
    line-height: 1.8;
    margin-bottom: 16px;
}

/* Weather data */
.weather-data {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 32px;
    border-top: 1px solid #1A4A5E;
    padding-top: 24px;
}

.data-label {
    font-family: 'Overpass Mono', monospace;
    font-size: 12px;
    color: #4DB6AC;
    text-transform: uppercase;
    display: block;
}

.data-value {
    font-family: 'Overpass Mono', monospace;
    font-size: 12px;
    color: #E0F2F1;
    display: block;
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .phase-title {
        font-size: 24px;
    }

    .weather-data {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .phase-nav {
        bottom: 20px;
        right: 16px;
    }
}
