/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background: #0a0e1a;
    color: #c8d0e8;
    font-family: 'Caveat', cursive;
    overflow-x: hidden;
}

/* === CONDENSATION OVERLAY === */
#condensation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    opacity: 0.03;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* === RAIN CONTAINER === */
#rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 90;
    overflow: hidden;
}

.rain-streak {
    position: absolute;
    top: -130px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(220, 230, 255, 0.12), transparent);
    will-change: transform;
    transform: translateZ(0);
}

.rain-streak.tinted {
    background: linear-gradient(to bottom, transparent, rgba(0, 229, 199, 0.06), transparent);
}

@keyframes streak-fall {
    0% { transform: translateY(-130px) translateZ(0); }
    100% { transform: translateY(calc(100vh + 130px)) translateZ(0); }
}

/* === FLOATING HANGUL === */
#hangul-float {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 80;
    overflow: hidden;
}

.hangul-char {
    position: absolute;
    font-family: 'Nanum Pen Script', cursive;
    will-change: transform;
    animation: hangul-drift linear infinite;
}

@keyframes hangul-drift {
    0% { transform: translateY(0) translateX(0) rotate(0deg); }
    25% { transform: translateY(-20px) translateX(15px) rotate(3deg); }
    50% { transform: translateY(-5px) translateX(-10px) rotate(-2deg); }
    75% { transform: translateY(-25px) translateX(8px) rotate(1deg); }
    100% { transform: translateY(0) translateX(0) rotate(0deg); }
}

/* === WATERCOLOR BLOOMS === */
#blooms {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bloom {
    position: absolute;
    mix-blend-mode: screen;
    will-change: transform;
    filter: blur(80px);
    opacity: 0.25;
}

.bloom-1 {
    width: 500px;
    height: 500px;
    top: 10%;
    left: -5%;
    border-radius: 40% 60% 55% 45% / 35% 65% 40% 60%;
    background: radial-gradient(ellipse at 40% 40%, #ff2d7b 0%, transparent 70%);
    animation: bloom-drift-1 45s ease-in-out infinite alternate;
}

.bloom-2 {
    width: 400px;
    height: 400px;
    top: 30%;
    right: -10%;
    border-radius: 55% 45% 60% 40% / 50% 40% 60% 50%;
    background: radial-gradient(ellipse at 60% 30%, #b91cff 0%, transparent 70%);
    animation: bloom-drift-2 55s ease-in-out infinite alternate;
}

.bloom-3 {
    width: 600px;
    height: 600px;
    top: 55%;
    left: 20%;
    border-radius: 45% 55% 50% 50% / 60% 40% 55% 45%;
    background: radial-gradient(ellipse at 50% 50%, #00e5c7 0%, transparent 70%);
    animation: bloom-drift-3 38s ease-in-out infinite alternate;
}

.bloom-4 {
    width: 350px;
    height: 350px;
    top: 75%;
    left: -8%;
    border-radius: 60% 40% 45% 55% / 40% 60% 50% 50%;
    background: radial-gradient(ellipse at 30% 60%, #ff2d7b 0%, transparent 70%);
    animation: bloom-drift-4 50s ease-in-out infinite alternate;
}

.bloom-5 {
    width: 450px;
    height: 450px;
    top: 15%;
    right: 30%;
    border-radius: 50% 50% 40% 60% / 45% 55% 50% 50%;
    background: radial-gradient(ellipse at 55% 45%, #b91cff 0%, transparent 70%);
    animation: bloom-drift-5 60s ease-in-out infinite alternate;
}

@keyframes bloom-drift-1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(120px, 80px) scale(1.15); }
}
@keyframes bloom-drift-2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-100px, 60px) scale(1.1); }
}
@keyframes bloom-drift-3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, -100px) scale(1.2); }
}
@keyframes bloom-drift-4 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(150px, -50px) scale(1.1); }
}
@keyframes bloom-drift-5 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-60px, 120px) scale(1.15); }
}

/* === SECTIONS === */
.section {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* === REVEAL BLUR === */
.reveal-blur {
    filter: blur(12px);
    opacity: 0;
    transition: filter 0.8s ease-out, opacity 0.8s ease-out;
    will-change: filter, opacity;
}

/* === KARLA LABEL === */
.karla-label {
    font-family: 'Karla', sans-serif;
    font-weight: 300;
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.5;
    color: #c8d0e8;
}

/* === SECTION 1: THE GATHERING === */
#gathering {
    min-height: 100vh;
    position: relative;
}

.neo-circle {
    width: clamp(180px, 30vw, 300px);
    height: clamp(180px, 30vw, 300px);
    border-radius: 50%;
    background: #151b2e;
    box-shadow: 8px 8px 20px #060912, -8px -8px 20px #1e2744;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: circle-pulse 4s ease-in-out infinite;
}

.circle-inner {
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 45, 123, 0.15) 0%, transparent 70%);
}

@keyframes circle-pulse {
    0%, 100% { transform: scale(1); box-shadow: 8px 8px 20px #060912, -8px -8px 20px #1e2744; }
    50% { transform: scale(1.05); box-shadow: 12px 12px 30px #060912, -12px -12px 30px #1e2744; }
}

.gathering-text {
    margin-top: 3rem;
    text-align: center;
}

.hangul-word {
    font-family: 'Nanum Pen Script', cursive;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #c8d0e8;
    text-shadow: 0 0 10px rgba(255, 184, 48, 0.4), 0 0 30px rgba(255, 184, 48, 0.2), 0 0 60px rgba(255, 184, 48, 0.1);
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: hint-fade 3s ease-in-out infinite;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(200, 208, 232, 0.3), transparent);
}

@keyframes hint-fade {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* === SECTION 2: THE LETTER === */
.section-letter {
    min-height: 120vh;
    padding: 10vh 5vw;
}

.neo-panel {
    background: #151b2e;
    border-radius: 24px;
    box-shadow: 8px 8px 20px #060912, -8px -8px 20px #1e2744;
    padding: clamp(2rem, 5vw, 4rem);
    max-width: 700px;
    width: 90%;
    transform: perspective(800px) rotateX(1deg) rotateY(-1deg);
}

.letter-content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.letter-line {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 400;
    line-height: 1.5;
    color: #c8d0e8;
    opacity: 0;
    transform: rotate(-1deg);
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.2s ease-out, opacity 0.8s ease-out;
}

.letter-line.visible {
    clip-path: inset(0 0 0 0);
    opacity: 1;
}

.letter-line.korean-line {
    font-family: 'Nanum Pen Script', cursive;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: #ffb830;
    text-shadow: 0 0 10px rgba(255, 184, 48, 0.3);
}

/* === SECTION 3: THE RAIN WALK === */
.section-rain-walk {
    min-height: 150vh;
    padding: 15vh 5vw;
    gap: 8vh;
    flex-wrap: wrap;
}

.blob {
    background: #151b2e;
    box-shadow: 8px 8px 20px #060912, -8px -8px 20px #1e2744;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    text-align: center;
    animation: blob-morph 8s ease-in-out infinite;
    will-change: border-radius;
}

.blob:hover {
    animation-play-state: paused;
    border-radius: 45% 55% 50% 50% / 50% 50% 55% 45%;
}

.blob-1 {
    width: clamp(220px, 35vw, 320px);
    height: clamp(220px, 35vw, 320px);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    align-self: flex-start;
}

.blob-2 {
    width: clamp(200px, 30vw, 280px);
    height: clamp(200px, 30vw, 280px);
    border-radius: 60% 40% 50% 50% / 40% 60% 40% 60%;
    align-self: flex-end;
    animation-delay: -2s;
}

.blob-3 {
    width: clamp(240px, 38vw, 350px);
    height: clamp(240px, 38vw, 350px);
    border-radius: 50% 50% 35% 65% / 55% 45% 55% 45%;
    align-self: center;
    animation-delay: -4s;
}

.blob-4 {
    width: clamp(200px, 28vw, 260px);
    height: clamp(200px, 28vw, 260px);
    border-radius: 45% 55% 65% 35% / 35% 65% 35% 65%;
    align-self: flex-start;
    animation-delay: -6s;
}

.blob-5 {
    width: clamp(260px, 40vw, 380px);
    height: clamp(260px, 40vw, 380px);
    border-radius: 35% 65% 45% 55% / 60% 40% 60% 40%;
    align-self: flex-end;
    animation-delay: -1s;
}

@keyframes blob-morph {
    0%   { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25%  { border-radius: 58% 42% 50% 50% / 45% 55% 45% 55%; }
    50%  { border-radius: 50% 50% 34% 66% / 56% 44% 56% 44%; }
    75%  { border-radius: 42% 58% 64% 36% / 37% 63% 37% 63%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.blob-text {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 400;
    line-height: 1.6;
    color: #c8d0e8;
}

.blob-text.korean-line,
.blob .korean-line {
    font-family: 'Nanum Pen Script', cursive;
    color: #00e5c7;
    text-shadow: 0 0 10px rgba(0, 229, 199, 0.3);
}

/* === SECTION 4: NEON REFLECTION === */
.section-neon {
    min-height: 100vh;
    gap: 2rem;
}

.neon-text-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.neon-original {
    display: flex;
    gap: clamp(1.5rem, 4vw, 3rem);
}

.neon-word {
    font-family: 'Nanum Pen Script', cursive;
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 1.3;
}

.neon-rose {
    color: #ff2d7b;
    text-shadow: 0 0 10px #ff2d7b, 0 0 30px #ff2d7b, 0 0 60px #ff2d7b;
}

.neon-cyan {
    color: #00e5c7;
    text-shadow: 0 0 10px #00e5c7, 0 0 30px #00e5c7, 0 0 60px #00e5c7;
}

.neon-violet {
    color: #b91cff;
    text-shadow: 0 0 10px #b91cff, 0 0 30px #b91cff, 0 0 60px #b91cff;
}

.neon-amber {
    color: #ffb830;
    text-shadow: 0 0 10px #ffb830, 0 0 30px #ffb830, 0 0 60px #ffb830;
}

.reflection-line {
    width: clamp(200px, 50vw, 500px);
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(200, 208, 232, 0.3), transparent);
    margin: 1.5rem 0;
}

.neon-reflection-text {
    display: flex;
    gap: clamp(1.5rem, 4vw, 3rem);
    transform: scaleY(-1);
    filter: blur(3px);
    opacity: 0.4;
}

.neon-subtitle {
    font-family: 'Karla', sans-serif;
    font-weight: 300;
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #c8d0e8;
    opacity: 0.4;
    margin-top: 2rem;
}

/* === SECTION 5: THE STEP FORWARD === */
.section-step {
    min-height: 80vh;
    gap: 3rem;
}

.footstep {
    width: clamp(120px, 20vw, 200px);
    height: clamp(200px, 35vw, 340px);
    border-radius: 45% 55% 55% 45% / 60% 60% 40% 40%;
    background: #151b2e;
    box-shadow: inset 8px 8px 20px #060912, inset -8px -8px 20px #1e2744;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footstep-glow {
    width: 60%;
    height: 50%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 184, 48, 0.15) 0%, transparent 70%);
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.final-meonjeo {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 184, 48, 0.5), 0 0 30px rgba(255, 184, 48, 0.3), 0 0 60px rgba(255, 184, 48, 0.15);
}
