/* ========================================
   YongJoon.net - Surreal Garden Styles
   ======================================== */

/* ========== RESET & DEFAULTS ========== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: #0D0D1A;
    color: #E8E0F0;
    overflow: hidden;
    width: 100%;
    height: 100vh;
    position: relative;
}

/* ========== SCROLL CONTAINER ========== */

.garden {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100vh;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.garden::-webkit-scrollbar {
    height: 4px;
}

.garden::-webkit-scrollbar-track {
    background: rgba(57, 255, 133, 0.05);
}

.garden::-webkit-scrollbar-thumb {
    background: rgba(57, 255, 133, 0.3);
    border-radius: 2px;
}

.garden::-webkit-scrollbar-thumb:hover {
    background: rgba(57, 255, 133, 0.5);
}

/* ========== SCENE STRUCTURE ========== */

.scene {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.scene__bg {
    position: absolute;
    inset: 0;
    background-color: #0D0D1A;
    z-index: -2;
}

.scene__bg--gradient {
    background: linear-gradient(135deg, #0D0D1A 0%, #1A1A3E 100%);
}

.scene__bg--deep {
    background-color: #0D0D1A;
}

.scene__content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scene__label {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 10;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(57, 255, 133, 0.6);
}

/* ========== LIGHT POOLS ========== */

.light-pool {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 0;
}

.light-pool--green {
    background: radial-gradient(circle, rgba(57, 255, 133, 0.12) 0%, transparent 70%);
    width: 400px;
    height: 400px;
}

.light-pool--pink {
    background: radial-gradient(circle, rgba(255, 107, 157, 0.1) 0%, transparent 70%);
    width: 500px;
    height: 500px;
}

.light-pool--blue {
    background: radial-gradient(circle, rgba(107, 143, 255, 0.08) 0%, transparent 70%);
    width: 450px;
    height: 450px;
}

/* ========== TYPOGRAPHY ========== */

.annotation {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(57, 255, 133, 0.6);
    display: block;
    margin-bottom: 1rem;
}

.annotation--quiet {
    color: rgba(232, 224, 240, 0.4);
}

.hero-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #E8E0F0;
    text-align: center;
    margin: 0;
    line-height: 1;
}

h2.clearing__title,
h2.glow__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #E8E0F0;
    margin-bottom: 2rem;
}

p {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    font-weight: 400;
    line-height: 1.8;
    color: #E8E0F0;
}

/* ========== SCENE 1: THRESHOLD ========== */

.scene--threshold {
    background-color: #0D0D1A;
}

.threshold__content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.threshold__subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: rgba(232, 224, 240, 0.7);
    margin-top: 1rem;
    letter-spacing: 0.02em;
}

.botanical--corner-leaf {
    position: absolute;
    bottom: -5%;
    left: 5%;
    width: 200px;
    height: 320px;
    z-index: 1;
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.875rem;
    color: rgba(57, 255, 133, 0.6);
    animation: pulse-hint 2s ease-in-out infinite;
    z-index: 5;
}

.scroll-hint__arrow {
    display: inline-block;
    animation: shift-right 1.5s ease-in-out infinite;
}

@keyframes pulse-hint {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

@keyframes shift-right {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(8px);
    }
}

/* ========== SCENE 2: GARDEN ========== */

.scene--garden {
    background-color: #0D0D1A;
}

.garden-text {
    position: absolute;
    background: rgba(13, 13, 26, 0.7);
    backdrop-filter: blur(4px);
    padding: 1.5rem;
    border-radius: 4px;
    max-width: 300px;
    border-left: 2px solid rgba(57, 255, 133, 0.5);
}

.garden-text--1 {
    top: 20%;
    left: 10%;
}

.garden-text--2 {
    top: 50%;
    right: 15%;
}

.garden-text--3 {
    bottom: 15%;
    left: 20%;
}

.garden-text p {
    margin: 0;
    font-size: 1rem;
}

.garden-text em {
    color: #39FF85;
    font-style: italic;
}

.botanical--vine-1,
.botanical--vine-2,
.botanical--fern,
.botanical--bloom {
    position: absolute;
    z-index: 1;
}

.botanical--vine-1 {
    left: 5%;
    top: 10%;
    width: 300px;
    height: 450px;
}

.botanical--vine-2 {
    right: 8%;
    top: 5%;
    width: 240px;
    height: 360px;
}

.botanical--fern {
    left: 50%;
    top: 30%;
    transform: translateX(-50%);
    width: 210px;
    height: 270px;
}

.botanical--bloom {
    right: 20%;
    bottom: 10%;
    width: 165px;
    height: 165px;
}

/* ========== SCENE 3: CLEARING ========== */

.scene--clearing {
    background: linear-gradient(135deg, #0D0D1A 0%, #1A1A3E 100%);
}

.clearing__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    padding: 2rem;
}

.clearing__paragraph {
    margin-bottom: 1.5rem;
    color: #E8E0F0;
}

.clearing__paragraph strong {
    color: #39FF85;
    font-weight: 600;
}

.clearing__paragraph--soft {
    font-size: 0.95rem;
    color: rgba(232, 224, 240, 0.7);
    font-style: italic;
}

.botanical--clearing-leaf-left,
.botanical--clearing-leaf-right {
    position: absolute;
    z-index: 1;
    width: 120px;
    height: 180px;
}

.botanical--clearing-leaf-left {
    left: 10%;
    top: 25%;
}

.botanical--clearing-leaf-right {
    right: 10%;
    bottom: 20%;
}

.particles--lazy {
    animation-duration: 12s;
}

/* ========== SCENE 4: GLOW ========== */

.scene--glow {
    background-color: #0D0D1A;
}

.glow__center {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.botanical--seed {
    width: 300px;
    height: 300px;
    margin-bottom: 1rem;
}

.glow__title {
    margin: 0;
    color: #E8E0F0;
}

.glow__signoff {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: rgba(232, 224, 240, 0.6);
    font-style: italic;
}

/* ========== CONTACT LINKS ========== */

.contact-arc {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 600px;
    margin: 2rem auto;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(57, 255, 133, 0.05);
    border: 1px solid rgba(57, 255, 133, 0.3);
    border-radius: 4px;
    color: #E8E0F0;
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-link:hover {
    background: rgba(57, 255, 133, 0.1);
    border-color: rgba(57, 255, 133, 0.6);
    color: #39FF85;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(57, 255, 133, 0.15);
}

.contact-link[data-color="pink"]:hover {
    border-color: rgba(255, 107, 157, 0.6);
    color: #FF6B9D;
    background: rgba(255, 107, 157, 0.05);
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.15);
}

.contact-link[data-color="blue"]:hover {
    border-color: rgba(107, 143, 255, 0.6);
    color: #6B8FFF;
    background: rgba(107, 143, 255, 0.05);
    box-shadow: 0 8px 24px rgba(107, 143, 255, 0.15);
}

.leaf-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
}

/* ========== NEON GLOW EFFECTS ========== */

.neon-glow--green {
    filter: drop-shadow(0 0 8px #39FF85) drop-shadow(0 0 24px #39FF85);
    color: #39FF85;
}

.neon-glow--pink {
    filter: drop-shadow(0 0 8px #FF6B9D) drop-shadow(0 0 24px #FF6B9D);
    color: #FF6B9D;
}

.neon-glow--blue {
    filter: drop-shadow(0 0 8px #6B8FFF) drop-shadow(0 0 24px #6B8FFF);
    color: #6B8FFF;
}

.pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

.pulse-glow-strong {
    animation: pulse-glow-strong 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 0 8px #39FF85) drop-shadow(0 0 24px #39FF85);
    }
    50% {
        filter: drop-shadow(0 0 16px #39FF85) drop-shadow(0 0 40px #39FF85);
    }
}

@keyframes pulse-glow-strong {
    0%, 100% {
        filter: drop-shadow(0 0 12px #39FF85) drop-shadow(0 0 32px #39FF85);
    }
    50% {
        filter: drop-shadow(0 0 20px #39FF85) drop-shadow(0 0 48px #39FF85);
    }
}

/* ========== SVG PATHS ========== */

.draw-path {
    stroke: currentColor;
    stroke-width: 2px;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.leaf-blade {
    stroke-width: 1.5px;
}

circle.draw-path {
    fill: none;
    stroke-width: 2px;
}

/* ========== FLOATING PARTICLES ========== */

.particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.floating-leaf {
    position: absolute;
    width: 20px;
    height: 20px;
    opacity: 0.5;
}

@keyframes float-1 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(20px, -15px) rotate(15deg);
    }
}

@keyframes float-2 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(-25px, 20px) rotate(-20deg);
    }
}

@keyframes float-3 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(15px, 25px) rotate(10deg);
    }
}

@keyframes float-4 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(-20px, -20px) rotate(-15deg);
    }
}

@keyframes float-5 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(25px, 15px) rotate(20deg);
    }
}

/* ========== SVG ELEMENTS ========== */

.botanical {
    position: absolute;
    z-index: 1;
}

.scroll-hint__text {
    display: inline-block;
    margin-right: 0.25rem;
}

.circle-bloom {
    fill: none;
    stroke: currentColor;
}

.clearing__title {
    margin: 0;
    color: #E8E0F0;
}

.floating-leaf:nth-child(1) {
    animation: float-1 10s ease-in-out infinite;
}

.floating-leaf:nth-child(2) {
    animation: float-2 12s ease-in-out infinite 1s;
}

.floating-leaf:nth-child(3) {
    animation: float-3 11s ease-in-out infinite 2s;
}

.floating-leaf:nth-child(4) {
    animation: float-4 13s ease-in-out infinite 3s;
}

.floating-leaf:nth-child(5) {
    animation: float-5 9s ease-in-out infinite 4s;
}

/* ========== PROGRESS INDICATOR ========== */

.scene-progress {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 20;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(57, 255, 133, 0.3);
    border: 1px solid rgba(57, 255, 133, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress-dot.is-active {
    background: #39FF85;
    box-shadow: 0 0 12px rgba(57, 255, 133, 0.6);
    transform: scale(1.3);
}

.progress-dot:hover {
    background: rgba(57, 255, 133, 0.6);
    border-color: rgba(57, 255, 133, 0.8);
}

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

@media (max-width: 768px) {
    .scene__label {
        top: 1rem;
        left: 1rem;
        font-size: 0.65rem;
    }

    .garden-text {
        max-width: 280px;
        padding: 1rem;
    }

    .contact-link {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .scroll-hint {
        bottom: 1rem;
        right: 1rem;
        font-size: 0.75rem;
    }

    .scene-progress {
        bottom: 1rem;
        gap: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
