/* koomimi.com - Frutiger Aero Dreamworld */

:root {
    --lavender-mist: #e8d5f5;
    --rose-petal: #f5c6d0;
    --periwinkle-haze: #c6d0f5;
    --mint-cream: #d5f0e8;
    --buttercream: #faf6ee;
    --dusty-violet: #6a5e7a;
    --deep-plum: #4a4555;
    --warm-leather: #8b7355;
    --sepia-ink: #7a6650;
    --soft-peach: #f5ddd0;
    --cloud-blue: #d0e5f5;
    --leather-mid: #9a8265;
    --leather-dark: #7a6345;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--deep-plum);
    background: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ======================== */
/* SECTIONS BASE            */
/* ======================== */

.section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    padding: 10vh 0;
}

.section-tall {
    min-height: 120vh;
}

.section-short {
    min-height: 80vh;
}

.section-bg {
    position: absolute;
    top: -10vh;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: 0;
}

.section-fade-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15vh;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.6));
    z-index: 5;
    pointer-events: none;
}

/* ======================== */
/* GLASS PANEL EFFECTS      */
/* ======================== */

.glass-panel {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 32px;
    box-shadow: 0 8px 32px rgba(106, 94, 122, 0.12);
}

/* ======================== */
/* SECTION 1: GLASS ATRIUM  */
/* ======================== */

#glass-atrium {
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

#glass-atrium .section-bg {
    z-index: 0;
}

.atrium-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--lavender-mist) 0%, var(--mint-cream) 100%);
}

.floating-shapes-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.float-shape {
    position: absolute;
    opacity: 0.7;
}

.float-shape.circle {
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.6), var(--rose-petal));
    box-shadow: inset -4px -4px 12px rgba(0,0,0,0.1), inset 4px 4px 8px rgba(255,255,255,0.6);
}

.float-shape.rounded-rect {
    border-radius: 20px;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.6), var(--periwinkle-haze));
    box-shadow: inset -4px -4px 12px rgba(0,0,0,0.1), inset 4px 4px 8px rgba(255,255,255,0.6);
}

.float-shape.pill {
    border-radius: 999px;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.6), var(--mint-cream));
    box-shadow: inset -4px -4px 12px rgba(0,0,0,0.1), inset 4px 4px 8px rgba(255,255,255,0.6);
}

.shape-1 { width: 50px; height: 50px; top: 15%; left: 10%; animation: float-up 20s linear infinite; animation-delay: 0s; }
.shape-2 { width: 40px; height: 30px; top: 60%; left: 25%; animation: float-up 25s linear infinite; animation-delay: 2s; }
.shape-3 { width: 60px; height: 24px; top: 40%; left: 80%; animation: float-up 18s linear infinite; animation-delay: 4s; }
.shape-4 { width: 35px; height: 35px; top: 75%; left: 55%; animation: float-up 22s linear infinite; animation-delay: 6s; }
.shape-5 { width: 45px; height: 35px; top: 20%; left: 70%; animation: float-up 28s linear infinite; animation-delay: 1s; }
.shape-6 { width: 55px; height: 20px; top: 50%; left: 40%; animation: float-up 16s linear infinite; animation-delay: 3s; }
.shape-7 { width: 30px; height: 30px; top: 85%; left: 15%; animation: float-up 24s linear infinite; animation-delay: 5s; }
.shape-8 { top: 30%; left: 60%; animation: float-up 26s linear infinite; animation-delay: 7s; }
.shape-9 { width: 40px; height: 40px; top: 65%; left: 85%; animation: float-up 19s linear infinite; animation-delay: 8s; }
.shape-10 { width: 50px; height: 18px; top: 45%; left: 5%; animation: float-up 23s linear infinite; animation-delay: 10s; }

@keyframes float-up {
    0% { transform: translateY(100vh) rotate(0deg) scale(0.8); opacity: 0; }
    10% { opacity: 0.7; }
    90% { opacity: 0.7; }
    100% { transform: translateY(-20vh) rotate(180deg) scale(1.1); opacity: 0; }
}

.hero-glass {
    position: relative;
    z-index: 3;
    padding: 3rem 4rem;
    text-align: center;
    max-width: 700px;
    transition: backdrop-filter 0.3s ease;
}

.hero-title {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: clamp(3rem, 10vw, 8rem);
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, var(--rose-petal), var(--periwinkle-haze));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--dusty-violet);
    opacity: 0.8;
}

/* ======================== */
/* SECTION 2: LEATHER JOURNAL */
/* ======================== */

#leather-journal {
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
}

#leather-journal .section-fade-bottom {
    background: linear-gradient(to bottom, transparent, rgba(232, 213, 245, 0.4));
}

.leather-bg {
    background:
        repeating-radial-gradient(circle at 2px 2px, transparent 0, rgba(0,0,0,0.03) 1px, transparent 2px) 0 0 / 4px 4px,
        linear-gradient(135deg, #8b7355 0%, #9a8265 50%, #7a6345 100%);
    box-shadow:
        inset 0 2px 4px rgba(0,0,0,0.2),
        inset 0 -1px 2px rgba(255,255,255,0.1);
}

.journal-pages {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 680px;
}

.journal-page {
    background: var(--buttercream);
    border-radius: 8px;
    padding: 3rem 4rem 3rem 5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15), 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
    background-image:
        repeating-linear-gradient(
            transparent,
            transparent 31px,
            rgba(180, 167, 140, 0.25) 31px,
            rgba(180, 167, 140, 0.25) 32px
        );
    background-position: 0 1.5rem;
}

.journal-margin-shapes {
    position: absolute;
    left: 1.2rem;
    top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    opacity: 0.6;
}

.journal-text {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    color: var(--sepia-ink);
    line-height: 2;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.journal-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======================== */
/* SECTION 3: OBSERVATORY   */
/* ======================== */

#pastel-observatory {
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.observatory-bg {
    background: linear-gradient(180deg, var(--cloud-blue) 0%, var(--lavender-mist) 50%, var(--soft-peach) 100%);
}

.observatory-viewport {
    position: relative;
    width: clamp(200px, 50vw, 400px);
    height: clamp(200px, 50vw, 400px);
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
    box-shadow:
        0 0 0 8px rgba(255,255,255,0.3),
        0 0 0 12px rgba(198, 208, 245, 0.3),
        0 12px 40px rgba(106, 94, 122, 0.2);
    background: linear-gradient(180deg, #dce8f8 0%, #f0e0f4 40%, #fce4d8 100%);
}

.cloudscape {
    position: absolute;
    width: 100%;
    height: 200%;
    top: -20%;
}

.cloud {
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 12px rgba(255,255,255,0.3);
}

.cloud-1 { width: 120px; height: 40px; top: 20%; left: 10%; }
.cloud-2 { width: 80px; height: 30px; top: 35%; left: 55%; }
.cloud-3 { width: 100px; height: 35px; top: 55%; left: 20%; }
.cloud-4 { width: 60px; height: 22px; top: 70%; left: 60%; }
.cloud-5 { width: 90px; height: 32px; top: 85%; left: 35%; }

.orbital-shapes {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(300px, 65vw, 520px);
    height: clamp(300px, 65vw, 520px);
    transform: translate(-50%, -50%);
    z-index: 1;
    animation: orbit-rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes orbit-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbital-shape {
    position: absolute;
    animation: counter-rotate 20s linear infinite;
}

@keyframes counter-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.orb-1 { top: 0; left: 50%; transform-origin: center center; }
.orb-2 { top: 25%; right: 0; }
.orb-3 { bottom: 10%; right: 5%; }
.orb-4 { bottom: 0; left: 40%; }
.orb-5 { top: 35%; left: 0; }
.orb-6 { top: 10%; left: 15%; }

.glossy-trapezoid {
    width: 50px;
    height: 35px;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.5), var(--soft-peach));
    clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.glossy-pill {
    width: 55px;
    height: 22px;
    border-radius: 999px;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.6), var(--cloud-blue));
    box-shadow: inset -3px -3px 8px rgba(0,0,0,0.08), inset 3px 3px 6px rgba(255,255,255,0.5), 0 4px 8px rgba(0,0,0,0.1);
}

.pill-v {
    width: 22px;
    height: 50px;
}

.glossy-circle-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.6), var(--lavender-mist));
    box-shadow: inset -4px -4px 12px rgba(0,0,0,0.1), inset 4px 4px 8px rgba(255,255,255,0.6), 0 4px 8px rgba(0,0,0,0.1);
}

.observatory-title {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--dusty-violet);
    margin-top: 2rem;
    position: relative;
    z-index: 3;
}

.observatory-caption {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    color: var(--deep-plum);
    line-height: 1.75;
    text-align: center;
    margin-top: 1rem;
    position: relative;
    z-index: 3;
    opacity: 0.8;
}

/* ======================== */
/* SECTION 4: WORKSHOP      */
/* ======================== */

#character-workshop {
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.workshop-bg {
    background: linear-gradient(180deg, var(--lavender-mist) 0%, var(--buttercream) 100%);
}

.workshop-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    width: 90%;
    max-width: 900px;
    flex-wrap: wrap;
}

.workshop-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
}

.workshop-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 260px;
}

/* KOOMI CHARACTER */

.koomi-character {
    position: relative;
    width: 200px;
    height: 240px;
}

.koomi-head {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #ffecd2, var(--rose-petal));
    position: relative;
    box-shadow: 0 8px 24px rgba(106, 94, 122, 0.2);
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.koomi-character.assembled .koomi-head {
    transform: scale(1);
}

.koomi-eye {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--deep-plum);
    position: absolute;
    top: 40%;
    opacity: 0;
    transition: opacity 0.3s ease 0.3s;
}

.koomi-character.assembled .koomi-eye {
    opacity: 1;
}

.eye-l { left: 35%; }
.eye-r { left: 65%; transform: translateX(-100%); }

.koomi-blush {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--rose-petal);
    opacity: 0;
    position: absolute;
    top: 52%;
    transition: opacity 0.3s ease 0.5s;
}

.koomi-character.assembled .koomi-blush {
    opacity: 0.6;
}

.blush-l { left: 22%; }
.blush-r { right: 22%; }

.koomi-mouth {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 10px;
    border-bottom: 3px solid var(--deep-plum);
    border-radius: 0 0 50% 50%;
    transition: width 0.3s ease 0.7s;
}

.koomi-character.assembled .koomi-mouth {
    width: 20px;
}

.koomi-crown {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%) translateY(-30px);
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.9s,
                opacity 0.3s ease 0.9s;
}

.koomi-character.assembled .koomi-crown {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.crown-point {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 14px solid var(--periwinkle-haze);
}

.cp-c {
    border-bottom-width: 20px;
}

/* CRAFT CARDS */

.craft-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 1.2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(106, 94, 122, 0.1);
}

.card-leather-trim {
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--warm-leather), var(--leather-dark));
    border-radius: 20px 0 0 20px;
}

.card-content {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.card-label {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dusty-violet);
    text-align: center;
}

/* Concentric circles pattern */
.pattern-concentric {
    position: relative;
    width: 70px;
    height: 70px;
}

.c-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.r1 { width: 70px; height: 70px; border-color: var(--rose-petal); }
.r2 { width: 52px; height: 52px; border-color: var(--periwinkle-haze); }
.r3 { width: 34px; height: 34px; border-color: var(--mint-cream); }
.r4 { width: 16px; height: 16px; border-color: var(--soft-peach); background: var(--soft-peach); }

/* Nested squares pattern */
.pattern-nested-sq {
    position: relative;
    width: 70px;
    height: 70px;
}

.n-sq {
    position: absolute;
    border: 2px solid;
    border-radius: 6px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(15deg);
}

.s1 { width: 70px; height: 70px; border-color: var(--lavender-mist); transform: translate(-50%, -50%) rotate(0deg); }
.s2 { width: 52px; height: 52px; border-color: var(--cloud-blue); transform: translate(-50%, -50%) rotate(15deg); }
.s3 { width: 34px; height: 34px; border-color: var(--rose-petal); transform: translate(-50%, -50%) rotate(30deg); }
.s4 { width: 16px; height: 16px; border-color: var(--periwinkle-haze); background: var(--periwinkle-haze); transform: translate(-50%, -50%) rotate(45deg); }

/* Triangle pattern */
.pattern-tri {
    width: 100%;
    height: 100%;
}

/* ======================== */
/* SECTION 5: DEPARTURE     */
/* ======================== */

#departure {
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.departure-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
}

.departure-content {
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.departure-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.departure-title {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: clamp(4rem, 15vw, 12rem);
    color: var(--rose-petal);
    line-height: 1;
    margin-bottom: 1rem;
}

.departure-subtitle {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--dusty-violet);
}

#departure-confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* ======================== */
/* CONFETTI PARTICLES       */
/* ======================== */

#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

.confetti-particle {
    position: absolute;
    pointer-events: none;
    will-change: transform;
}

.confetti-particle.conf-circle {
    border-radius: 50%;
    box-shadow: inset -2px -2px 4px rgba(0,0,0,0.08), inset 2px 2px 4px rgba(255,255,255,0.5);
}

.confetti-particle.conf-rect {
    border-radius: 6px;
    box-shadow: inset -2px -2px 4px rgba(0,0,0,0.08), inset 2px 2px 4px rgba(255,255,255,0.5);
}

.confetti-particle.conf-pill {
    border-radius: 999px;
    box-shadow: inset -2px -2px 4px rgba(0,0,0,0.08), inset 2px 2px 4px rgba(255,255,255,0.5);
}

/* ======================== */
/* RESPONSIVE               */
/* ======================== */

@media (max-width: 768px) {
    .workshop-content {
        flex-direction: column;
        gap: 2rem;
    }

    .journal-page {
        padding: 2rem 2.5rem 2rem 3.5rem;
    }

    .hero-glass {
        padding: 2rem 2.5rem;
        margin: 0 1rem;
    }

    .orbital-shapes {
        width: 280px;
        height: 280px;
    }
}
