/* yongzoon.com - Y2K futurism personal timeline */

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

:root {
    --orange: #e86830;
    --peach: #f4a060;
    --mint: #80d0b8;
    --lavender: #c0a0e0;
    --dark-orange: #d05828;
    --cream: #fef8f0;
    --dark-brown: #2a2420;
    --warm-gray: #8a7a6a;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--cream);
    color: var(--dark-brown);
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cream) 0%, rgba(244, 160, 96, 0.15) 50%, rgba(128, 208, 184, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.hero-inner {
    text-align: center;
    position: relative;
    z-index: 1;
}

.starburst {
    position: absolute;
    top: -40px;
    right: -60px;
    animation: starRotate 20s linear infinite;
}

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

.hero-title {
    font-family: 'Bungee', cursive;
    font-size: clamp(48px, 12vw, 180px);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--orange);
    line-height: 0.95;
    text-shadow: 4px 4px 0 var(--dark-orange);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-title.visible {
    opacity: 1;
    transform: scale(1);
}

.hero-subtitle {
    font-family: 'Bungee', cursive;
    font-size: 32px;
    color: var(--mint);
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
    opacity: 0;
    transition: opacity 0.6s ease 0.3s;
}

.hero-subtitle.visible {
    opacity: 1;
}

.hero-tagline {
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--warm-gray);
    margin-bottom: 24px;
    opacity: 0;
    transition: opacity 0.6s ease 0.5s;
}

.hero-tagline.visible {
    opacity: 1;
}

.hero-badge {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--cream);
    background: linear-gradient(135deg, var(--orange), var(--peach));
    padding: 8px 20px;
    border-radius: 20px;
    box-shadow: 3px 3px 0 var(--dark-orange);
    opacity: 0;
    transition: opacity 0.6s ease 0.7s;
}

.hero-badge.visible {
    opacity: 1;
}

/* Timeline Section */
.timeline-section {
    padding: 80px 24px 120px;
    position: relative;
}

.timeline-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

/* Central spine */
.timeline-spine {
    position: absolute;
    left: calc(50% - 2px);
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--orange);
    z-index: 0;
}

/* Timeline nodes */
.timeline-node {
    position: relative;
    margin-bottom: 80px;
    display: flex;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-node.revealed {
    opacity: 1;
    transform: translateY(0);
}

.node-left {
    justify-content: flex-start;
    padding-right: 52%;
}

.node-right {
    justify-content: flex-end;
    padding-left: 52%;
}

/* Connector lines */
.node-connector {
    position: absolute;
    top: 24px;
    width: 60px;
    height: 4px;
}

.node-left .node-connector {
    right: calc(50% - 2px);
}

.node-right .node-connector {
    left: calc(50% - 2px);
}

.connector-line {
    width: 0;
    height: 100%;
    background-color: var(--peach);
    transition: width 0.6s ease 0.3s;
}

.timeline-node.revealed .connector-line {
    width: 100%;
}

/* Node dot */
.timeline-node::before {
    content: '';
    position: absolute;
    left: calc(50% - 8px);
    top: 18px;
    width: 16px;
    height: 16px;
    background-color: var(--orange);
    border: 3px solid var(--cream);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 3px var(--orange);
}

/* Node cards */
.node-card {
    background: rgba(254, 248, 240, 0.9);
    border: 3px solid var(--peach);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    box-shadow: 4px 4px 0 rgba(232, 104, 48, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 380px;
}

.node-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(232, 104, 48, 0.25);
}

.card-featured {
    border-color: var(--orange);
    background: linear-gradient(135deg, rgba(254, 248, 240, 0.95), rgba(244, 160, 96, 0.15));
}

.card-badge {
    display: inline-block;
    font-family: 'Bungee', cursive;
    font-size: 14px;
    color: var(--cream);
    background: var(--orange);
    padding: 3px 12px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.badge-now {
    background: linear-gradient(135deg, var(--orange), var(--mint));
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(128, 208, 184, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(128, 208, 184, 0); }
}

.card-title {
    font-family: 'Bungee', cursive;
    font-size: 20px;
    color: var(--dark-brown);
    margin-bottom: 8px;
}

.card-text {
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--warm-gray);
}

/* Bubble clusters */
.bubble-cluster {
    position: absolute;
    top: -10px;
    right: -10px;
    pointer-events: none;
    mix-blend-mode: multiply;
}

/* Colophon */
.colophon {
    background: var(--dark-brown);
    padding: 48px 24px;
    text-align: center;
}

.colophon-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.colophon-domain {
    font-family: 'Bungee', cursive;
    font-size: 16px;
    color: var(--orange);
}

.colophon-timestamp {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--warm-gray);
    letter-spacing: 0.05em;
}

.colophon-note {
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: var(--peach);
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-spine {
        left: 20px;
    }
    .node-left,
    .node-right {
        padding-left: 60px;
        padding-right: 0;
        justify-content: flex-start;
    }
    .node-left .node-connector,
    .node-right .node-connector {
        left: 22px;
        right: auto;
        width: 30px;
    }
    .timeline-node::before {
        left: 12px;
    }
}
