/* mujun.day — Watercolor Day-Cycle Paradox */

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

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
}

/* ========================
   Time Sections
   ======================== */
.time-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.section-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
}

/* ========================
   Time Labels
   ======================== */
.time-label {
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 40px;
    opacity: 0.7;
}

/* ========================
   Statements
   ======================== */
.statement {
    font-family: 'Cormorant', serif;
    font-weight: 500;
    font-style: italic;
    font-size: 48px;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.statement.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================
   Hero / Kinetic Title
   ======================== */
.hero-title {
    font-family: 'Cormorant', serif;
    font-weight: 500;
    font-size: 72px;
    margin-bottom: 40px;
    display: inline-block;
    white-space: nowrap;
}

.kinetic-word {
    display: inline-block;
    position: relative;
}

#kinetic-mujun {
    animation: driftLeft 2s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.3s forwards,
               springBack 2s cubic-bezier(0.68, -0.55, 0.27, 1.55) 2.3s forwards;
}

#kinetic-day {
    animation: driftRight 2s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.3s forwards,
               springBackRight 2s cubic-bezier(0.68, -0.55, 0.27, 1.55) 2.3s forwards;
}

@keyframes driftLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-60px); }
}

@keyframes driftRight {
    0% { transform: translateX(0); }
    100% { transform: translateX(60px); }
}

@keyframes springBack {
    0% { transform: translateX(-60px); }
    100% { transform: translateX(0); }
}

@keyframes springBackRight {
    0% { transform: translateX(60px); }
    100% { transform: translateX(0); }
}

/* ========================
   Dawn — #FFE4E6 to #FFC0CB
   ======================== */
#dawn {
    background:
        radial-gradient(ellipse at 30% 40%, #FFC0CB 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, #FFE4E6 0%, transparent 70%),
        radial-gradient(ellipse at 50% 80%, #FFC0CB 0%, transparent 50%),
        #FFE4E6;
    color: #2A1A1A;
}

#dawn .time-label { color: #2A1A1A; }

/* ========================
   Morning — #FFF8DC to #FFE4B5
   ======================== */
#morning {
    background:
        radial-gradient(ellipse at 40% 30%, #FFE4B5 0%, transparent 60%),
        radial-gradient(ellipse at 60% 70%, #FFF8DC 0%, transparent 65%),
        radial-gradient(ellipse at 20% 60%, #FFE4B5 0%, transparent 50%),
        #FFF8DC;
    color: #2A1A1A;
}

#morning .time-label { color: #2A1A1A; }

/* ========================
   Noon — #FFFFF0 to #FFFACD
   ======================== */
#noon {
    background:
        radial-gradient(ellipse at 50% 50%, #FFFFF0 0%, transparent 60%),
        radial-gradient(ellipse at 30% 30%, #FFFACD 0%, transparent 55%),
        radial-gradient(ellipse at 70% 70%, #FFFFF0 0%, transparent 50%),
        #FFFACD;
    color: #2A1A1A;
}

#noon .time-label { color: #2A1A1A; }

/* ========================
   Afternoon — #FFD700 to #FFA500
   ======================== */
#afternoon {
    background:
        radial-gradient(ellipse at 35% 45%, #FFA500 0%, transparent 60%),
        radial-gradient(ellipse at 65% 55%, #FFD700 0%, transparent 65%),
        radial-gradient(ellipse at 50% 30%, #FFA500 0%, transparent 50%),
        #FFD700;
    color: #2A1A1A;
}

#afternoon .time-label { color: #2A1A1A; }

/* ========================
   Dusk — #FF6347 to #8B0000
   ======================== */
#dusk {
    background:
        radial-gradient(ellipse at 40% 40%, #8B0000 0%, transparent 60%),
        radial-gradient(ellipse at 60% 60%, #FF6347 0%, transparent 65%),
        radial-gradient(ellipse at 50% 80%, #8B0000 0%, transparent 50%),
        #FF6347;
    color: #F0E8E0;
}

#dusk .time-label { color: #F0E8E0; }

/* ========================
   Night — #191970 to #0C0C2E
   ======================== */
#night {
    background:
        radial-gradient(ellipse at 30% 30%, #191970 0%, transparent 60%),
        radial-gradient(ellipse at 70% 70%, #0C0C2E 0%, transparent 65%),
        radial-gradient(ellipse at 50% 50%, #191970 0%, transparent 50%),
        #0C0C2E;
    color: #F0E8E0;
}

#night .time-label { color: #F0E8E0; }

/* ========================
   Watercolor Splash Accents
   ======================== */
.watercolor-splash {
    position: absolute;
    border-radius: 50% 30% 70% 40% / 60% 40% 50% 70%;
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

.splash-1 {
    width: 300px;
    height: 250px;
    top: 10%;
    left: 5%;
}

.splash-2 {
    width: 200px;
    height: 180px;
    top: 60%;
    right: 10%;
}

.splash-3 {
    width: 250px;
    height: 220px;
    bottom: 5%;
    left: 40%;
}

/* Splash colors per section */
#dawn .watercolor-splash { background: #FFC0CB; }
#morning .watercolor-splash { background: #FFE4B5; }
#noon .watercolor-splash { background: #FFFACD; }
#afternoon .watercolor-splash { background: #FFA500; }
#dusk .watercolor-splash { background: #8B0000; }
#night .watercolor-splash { background: #191970; }

/* ========================
   Bleed Edges Between Sections
   ======================== */
.time-section::after {
    content: '';
    position: absolute;
    bottom: -10vh;
    left: 0;
    right: 0;
    height: 20vh;
    z-index: 0;
    pointer-events: none;
}

#dawn::after {
    background: linear-gradient(to bottom, #FFC0CB, transparent);
}

#morning::after {
    background: linear-gradient(to bottom, #FFE4B5, transparent);
}

#noon::after {
    background: linear-gradient(to bottom, #FFFACD, transparent);
}

#afternoon::after {
    background: linear-gradient(to bottom, #FFA500, transparent);
}

#dusk::after {
    background: linear-gradient(to bottom, #8B0000, transparent);
}

/* ========================
   Time Bar Navigation
   ======================== */
#time-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    z-index: 100;
    display: flex;
    align-items: center;
}

#time-bar-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        #FFE4E6 0%,
        #FFC0CB 10%,
        #FFF8DC 20%,
        #FFE4B5 30%,
        #FFFACD 40%,
        #FFD700 55%,
        #FF6347 70%,
        #8B0000 80%,
        #191970 90%,
        #0C0C2E 100%
    );
}

#time-dot {
    position: absolute;
    top: 50%;
    left: 0;
    width: 14px;
    height: 14px;
    background: #FFFFFF;
    border: 2px solid #2A1A1A;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 101;
    transition: left 0.1s linear;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

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

    .hero-title {
        font-size: 48px;
    }

    .watercolor-splash {
        width: 150px;
        height: 130px;
    }
}

@media (max-width: 480px) {
    .statement {
        font-size: 26px;
    }

    .hero-title {
        font-size: 36px;
    }
}
