/* ========================================
   namu.day — Y2K Futurism + Nature
   Muted-Vintage Palette
   ======================================== */

/* --- Palette Reference ---
   Vintage teal:   #6A9898
   Aqua glow:      #80D0D0
   Cream warm:     #F5F0E0
   Muted rose:     #C8909A
   Forest vintage: #4A6A48
   Earth brown:    #7A6040
   Digital white:  #F8F8FA
--- */

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

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

body {
    font-family: 'Nunito Sans', 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1vw, 17px);
    line-height: 1.8;
    color: #F5F0E0;
    background-color: #6A9898;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    letter-spacing: 0em;
}

h2 {
    font-size: clamp(22px, 2.5vw, 36px);
    margin-bottom: 0.6em;
}

h3 {
    font-size: clamp(18px, 2vw, 26px);
    margin-bottom: 0.4em;
}

p {
    margin-bottom: 1em;
}

/* --- Glossy Text Effect --- */
.glossy-text {
    background: linear-gradient(
        135deg,
        #F5F0E0 0%,
        #80D0D0 25%,
        #F8F8FA 50%,
        #80D0D0 75%,
        #F5F0E0 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glossy-slide 3s ease-in-out infinite;
}

@keyframes glossy-slide {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Digital Leaf Particles --- */
#leaf-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.leaf-particle {
    position: absolute;
    opacity: 0.3;
    pointer-events: none;
    will-change: transform;
}

.leaf-particle svg {
    width: 100%;
    height: 100%;
}

@keyframes leaf-fall-1 {
    0% { transform: translateY(-20px) translateX(0px) rotate(0deg); }
    25% { transform: translateY(25vh) translateX(15px) rotate(45deg); }
    50% { transform: translateY(50vh) translateX(-10px) rotate(90deg); }
    75% { transform: translateY(75vh) translateX(20px) rotate(135deg); }
    100% { transform: translateY(105vh) translateX(5px) rotate(180deg); }
}

@keyframes leaf-fall-2 {
    0% { transform: translateY(-20px) translateX(0px) rotate(0deg); }
    25% { transform: translateY(25vh) translateX(-18px) rotate(-50deg); }
    50% { transform: translateY(50vh) translateX(12px) rotate(-100deg); }
    75% { transform: translateY(75vh) translateX(-15px) rotate(-150deg); }
    100% { transform: translateY(105vh) translateX(-5px) rotate(-200deg); }
}

@keyframes leaf-fall-3 {
    0% { transform: translateY(-20px) translateX(0px) rotate(10deg); }
    33% { transform: translateY(33vh) translateX(22px) rotate(70deg); }
    66% { transform: translateY(66vh) translateX(-8px) rotate(130deg); }
    100% { transform: translateY(105vh) translateX(14px) rotate(190deg); }
}

/* --- Y2K Translucent Panels --- */
.y2k-panel {
    background: rgba(128, 208, 208, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(128, 208, 208, 0.3);
    border-radius: 12px;
    padding: 24px;
    transition: backdrop-filter 0.4s ease, box-shadow 0.4s ease, background 0.3s ease;
}

.y2k-panel:hover {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 0 30px rgba(128, 208, 208, 0.3), 0 0 60px rgba(128, 208, 208, 0.1);
    background: rgba(128, 208, 208, 0.28);
}

/* --- Y2K Cards (Nature Feed) --- */
.y2k-card {
    background: rgba(128, 208, 208, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(128, 208, 208, 0.25);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease, background 0.3s ease;
}

.y2k-card[data-reveal="right"] {
    transform: translateX(40px);
}

.y2k-card.revealed {
    opacity: 1;
    transform: translateX(0);
}

.y2k-card:hover {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 0 30px rgba(128, 208, 208, 0.25), 0 0 60px rgba(128, 208, 208, 0.08);
    background: rgba(128, 208, 208, 0.25);
}

.card-badge {
    display: inline-block;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #C8909A;
    background: rgba(200, 144, 154, 0.15);
    border: 1px solid rgba(200, 144, 154, 0.3);
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 16px;
}

/* ========================================
   HERO SECTION
   ======================================== */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #6A9898;
    overflow: hidden;
}

/* Hero SVG Curves */
.hero-curve {
    position: absolute;
    width: 100%;
    height: 200px;
    z-index: 1;
}

.hero-curve-top {
    top: 40px;
}

.hero-curve-bottom {
    bottom: 40px;
}

.flowing-curve {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: draw-curve 1200ms ease-out forwards;
}

@keyframes draw-curve {
    to { stroke-dashoffset: 0; }
}

/* Hero Translucent Panels */
.hero-panel-left,
.hero-panel-right {
    position: absolute;
    width: 180px;
    height: 280px;
    z-index: 2;
    opacity: 0;
    animation: panel-blur-in 600ms ease-out 400ms forwards;
}

.hero-panel-left {
    left: 8%;
    top: 50%;
    transform: translateY(-50%) rotate(-3deg);
}

.hero-panel-right {
    right: 8%;
    top: 50%;
    transform: translateY(-50%) rotate(3deg);
}

@keyframes panel-blur-in {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 700px;
    padding: 0 24px;
    opacity: 0;
    animation: fade-in-up 800ms ease-out 300ms forwards;
}

.hero-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-family: 'Noto Sans KR', 'Nunito Sans', sans-serif;
    font-size: clamp(16px, 2vw, 22px);
    color: #F5F0E0;
    opacity: 0.85;
    margin-bottom: 12px;
}

.hero-description {
    font-size: clamp(14px, 1.2vw, 17px);
    color: #F5F0E0;
    opacity: 0.7;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Korean Leaves drifting in hero */
.korean-leaves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.korean-leaf {
    position: absolute;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 14px;
    color: #80D0D0;
    opacity: 0.25;
    pointer-events: none;
    animation: korean-drift linear infinite;
}

@keyframes korean-drift {
    0% {
        transform: translateY(-30px) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 0.25;
    }
    90% {
        opacity: 0.25;
    }
    100% {
        transform: translateY(100vh) translateX(30px);
        opacity: 0;
    }
}

/* ========================================
   CURVE DIVIDERS
   ======================================== */
.curve-divider {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: transparent;
    z-index: 10;
}

.curve-divider svg {
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

.divider-curve {
    stroke-dasharray: 2200;
    stroke-dashoffset: 2200;
    transition: stroke-dashoffset 0.8s ease;
}

.curve-divider.visible .divider-curve {
    stroke-dashoffset: 0;
}

/* ========================================
   NATURE FEED SECTION
   ======================================== */
#nature-feed {
    position: relative;
    min-height: 100vh;
    padding: 80px 0 120px;
    background: linear-gradient(180deg, #6A9898 0%, #5A8888 50%, #6A9898 100%);
    overflow: hidden;
}

/* Parallax Layers */
.parallax-layer {
    position: relative;
    will-change: transform;
}

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

.parallax-mid {
    position: relative;
    z-index: 5;
}

.parallax-fg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 8;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.parallax-fg.active {
    opacity: 1;
}

/* Background Trees */
.bg-tree {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
}

.tree-1 { left: 5%; top: 10%; width: 120px; height: 200px; }
.tree-2 { right: 8%; top: 25%; width: 100px; height: 220px; }
.tree-3 { left: 15%; top: 55%; width: 80px; height: 250px; }
.tree-4 { right: 15%; top: 65%; width: 140px; height: 200px; }
.tree-5 { left: 3%; top: 80%; width: 60px; height: 200px; }

/* Content Column */
.content-column {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(128, 208, 208, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(128, 208, 208, 0.25);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #F5F0E0;
    white-space: nowrap;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: #80D0D0;
    border-radius: 50%;
    animation: badge-pulse 2s ease-in-out infinite;
}

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

.badge-1 { top: 15%; right: 10%; }
.badge-2 { top: 45%; left: 5%; }
.badge-3 { bottom: 20%; right: 6%; }

/* ========================================
   TIMELINE SECTION
   ======================================== */
#timeline {
    position: relative;
    padding: 100px 24px 120px;
    background: linear-gradient(180deg, #6A9898 0%, #5C7A7A 100%);
    overflow: hidden;
}

.section-title {
    text-align: center;
    font-size: clamp(28px, 3.5vw, 52px);
    margin-bottom: 12px;
    color: #F5F0E0;
}

.section-intro {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 80px;
    color: #F5F0E0;
    opacity: 0.75;
    font-size: clamp(14px, 1.1vw, 17px);
}

/* Timeline Container */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        180deg,
        rgba(128, 208, 208, 0) 0%,
        rgba(128, 208, 208, 0.5) 10%,
        rgba(128, 208, 208, 0.5) 90%,
        rgba(128, 208, 208, 0) 100%
    );
    transform: translateX(-50%);
}

/* Timeline Entries */
.timeline-entry {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    margin-bottom: 60px;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.entry-left {
    transform: translateX(-40px);
}

.entry-right {
    transform: translateX(40px);
}

.timeline-entry.staggered-in {
    opacity: 1;
    transform: translateX(0);
}

/* Timeline Node */
.timeline-node {
    grid-column: 2;
    width: 16px;
    height: 16px;
    background: #80D0D0;
    border: 3px solid #F5F0E0;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    margin: 8px 20px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
    box-shadow: 0 0 0 3px rgba(122, 96, 64, 0.3);
}

.timeline-node:hover {
    transform: scale(1.3);
    box-shadow: 0 0 12px #7A6040, 0 0 0 4px rgba(122, 96, 64, 0.4);
}

/* Timeline Content Placement */
.entry-left .timeline-content {
    grid-column: 1;
    grid-row: 1;
    text-align: right;
}

.entry-left .timeline-node {
    grid-column: 2;
    grid-row: 1;
}

.entry-right .timeline-content {
    grid-column: 3;
    grid-row: 1;
}

.entry-right .timeline-node {
    grid-column: 2;
    grid-row: 1;
}

/* Timeline Label */
.timeline-label {
    display: inline-block;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #80D0D0;
    margin-bottom: 8px;
}

/* Timeline Content */
.timeline-content h3 {
    color: #F5F0E0;
}

.timeline-content p {
    color: #F5F0E0;
    opacity: 0.8;
    font-size: clamp(13px, 0.95vw, 15px);
    line-height: 1.7;
}

/* ========================================
   FOOTER
   ======================================== */
#footer {
    position: relative;
    padding: 80px 24px;
    background: #4A6A48;
    text-align: center;
    overflow: hidden;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-title {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-text {
    font-family: 'Noto Sans KR', 'Nunito Sans', sans-serif;
    color: #F5F0E0;
    opacity: 0.75;
    margin-bottom: 32px;
    font-size: clamp(14px, 1.1vw, 17px);
}

.footer-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-badge {
    display: inline-block;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #F5F0E0;
    background: rgba(128, 208, 208, 0.15);
    border: 1px solid rgba(128, 208, 208, 0.3);
    border-radius: 20px;
    padding: 6px 16px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .hero-panel-left,
    .hero-panel-right {
        width: 100px;
        height: 160px;
    }

    .hero-panel-left { left: 3%; }
    .hero-panel-right { right: 3%; }

    /* Timeline goes single-column on mobile */
    .timeline-entry {
        display: block;
        padding-left: 50px;
    }

    .entry-left,
    .entry-right {
        transform: translateX(-30px);
    }

    .timeline-node {
        position: absolute;
        left: 0;
        top: 8px;
        margin: 0;
    }

    .timeline-line {
        left: 8px;
    }

    .entry-left .timeline-content,
    .entry-right .timeline-content {
        text-align: left;
    }

    .floating-badge {
        display: none;
    }

    .bg-tree {
        opacity: 0.08;
    }
}

@media (max-width: 480px) {
    .hero-panel-left,
    .hero-panel-right {
        display: none;
    }

    .y2k-card {
        padding: 20px;
        margin-bottom: 24px;
    }

    .timeline-content.y2k-panel {
        padding: 16px;
    }
}
