/* ============================================
   jeongchi.boo - Frutiger Aero Political Ghosts
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    line-height: 1.8;
    font-size: clamp(15px, 1.05vw, 17px);
    color: #2A3030;
    background: #F8F4E8;
    overflow-x: hidden;
}

/* --- Bokeh Background --- */
#bokeh-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bokeh-dot {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 70%);
    opacity: 0.12;
    will-change: transform;
}

/* --- Floating Leaves --- */
#leaves-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.floating-leaf {
    position: absolute;
    will-change: transform;
}

/* --- Glossy Text Effect --- */
.glossy-text {
    background: linear-gradient(
        135deg,
        #2A3030 0%,
        #4A8A4A 40%,
        #FFFFFF 50%,
        #4A8A4A 60%,
        #2A3030 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Ghostly Glow --- */
.ghostly-glow {
    text-shadow: 0 0 20px rgba(255,255,255,0.5);
}

/* ============================================
   SECTION 1: Hero
   ============================================ */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg, #60A0C0 0%, #80C0A0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 10;
}

.hero-gloss-bar {
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 35%;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.25) 0%,
        rgba(255,255,255,0.08) 60%,
        transparent 100%
    );
    transform: translateX(0);
    animation: glossSweep 3000ms ease-in-out forwards;
    pointer-events: none;
    z-index: 1;
}

@keyframes glossSweep {
    0% { transform: translateX(-10%); }
    100% { transform: translateX(5%); }
}

.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 0 20px;
}

.logotype {
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
    font-size: clamp(24px, 3.5vw, 48px);
    color: #F8F4E8;
    background: linear-gradient(
        135deg,
        #F8F4E8 0%,
        #FFFFFF 35%,
        rgba(255,255,255,0.6) 50%,
        #FFFFFF 65%,
        #F8F4E8 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logoShimmer 800ms ease-out forwards, logoFadeIn 800ms ease-out forwards;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

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

@keyframes logoFadeIn {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.korean-display {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 900;
    font-size: clamp(48px, 8vw, 100px);
    color: #F8F4E8;
    text-shadow: 0 0 0px rgba(255,255,255,0);
    animation: ghostGlow 1000ms 200ms ease-out forwards;
    opacity: 0;
    letter-spacing: 8px;
}

@keyframes ghostGlow {
    0% {
        opacity: 0;
        text-shadow: 0 0 0px rgba(255,255,255,0);
    }
    100% {
        opacity: 1;
        text-shadow: 0 0 20px rgba(255,255,255,0.5);
    }
}

.hero-subtitle {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: clamp(16px, 2vw, 24px);
    color: #F8F4E8;
    margin-top: 20px;
    opacity: 0;
    animation: fadeInUp 600ms 500ms ease-out forwards;
}

.hero-tagline {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: clamp(13px, 1.1vw, 16px);
    color: rgba(248,244,232,0.7);
    margin-top: 12px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 600ms 700ms ease-out forwards;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-leaf-decoration {
    position: absolute;
    z-index: 3;
    top: 20%;
    right: 10%;
    width: 100px;
    height: 100px;
    animation: leafDrift 12s ease-in-out infinite;
}

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

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

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 5;
    opacity: 0;
    animation: fadeInUp 600ms 1200ms ease-out forwards;
}

.scroll-indicator span {
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: rgba(248,244,232,0.6);
    letter-spacing: 1px;
}

.scroll-indicator svg {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ============================================
   SECTION 2: Ghost Cards
   ============================================ */
#ghosts {
    position: relative;
    z-index: 10;
    padding: 100px 40px;
    background: #F8F4E8;
    min-height: 100vh;
}

.section-title {
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
    font-size: clamp(24px, 3.5vw, 48px);
    color: #2A3030;
    text-align: center;
    margin-bottom: 16px;
}

.section-intro {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1.1vw, 17px);
    color: rgba(42,48,48,0.65);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.ghost-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
}

.ghost-card {
    position: relative;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.95) 0%,
        rgba(255,255,255,0.2) 25%,
        rgba(248,244,232,0.9) 100%
    );
    border-radius: 20px;
    padding: 40px 32px 32px;
    overflow: hidden;
    cursor: default;
    opacity: 0;
    transform: scale(0.95);
    transition: transform 400ms ease, border-radius 400ms ease, box-shadow 300ms ease;
    box-shadow: 0 4px 24px rgba(42,48,48,0.08);
}

.ghost-card.visible {
    opacity: 1;
    transform: scale(1);
    border-radius: 12px;
}

.ghost-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 40px rgba(42,48,48,0.12);
}

.card-gloss {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.3) 0%,
        transparent 100%
    );
    pointer-events: none;
    border-radius: 20px 20px 0 0;
}

.card-leaf-decoration {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    opacity: 0;
    transition: opacity 600ms ease 400ms;
}

.ghost-card.visible .card-leaf-decoration {
    opacity: 1;
}

.card-leaf {
    width: 100%;
    height: 100%;
    animation: leafRotate 12s ease-in-out infinite;
}

@keyframes leafRotate {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(10deg); }
}

.ghost-card h3 {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: clamp(18px, 1.8vw, 24px);
    color: #2A3030;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
}

.ghost-card p {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1vw, 16px);
    color: rgba(42,48,48,0.75);
    line-height: 1.75;
    position: relative;
    z-index: 2;
}

.ghost-date {
    display: inline-block;
    margin-top: 18px;
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #C04040;
    letter-spacing: 1px;
    padding: 4px 12px;
    background: rgba(192,64,64,0.08);
    border-radius: 20px;
    position: relative;
    z-index: 2;
}

/* ============================================
   SECTION 3: Timeline
   ============================================ */
#timeline {
    position: relative;
    z-index: 10;
    padding: 100px 40px;
    background: linear-gradient(135deg, #80C0A0 0%, #60A0C0 100%);
    min-height: 100vh;
}

#timeline .section-title {
    color: #F8F4E8;
}

#timeline .section-intro {
    color: rgba(248,244,232,0.7);
}

.timeline-track {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.timeline-event {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(96,160,192,0.9) 0%,
        rgba(128,192,160,0.9) 100%
    );
    border-radius: 16px;
    padding: 32px 36px;
    overflow: hidden;
    cursor: pointer;
    transition: border-radius 500ms ease, background 500ms ease, transform 300ms ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.timeline-event:hover {
    border-radius: 4px;
    background: linear-gradient(
        135deg,
        rgba(248,244,232,0.95) 0%,
        rgba(248,244,232,0.85) 100%
    );
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.event-gloss {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.2) 0%,
        transparent 100%
    );
    pointer-events: none;
    transition: opacity 500ms ease;
}

.timeline-event:hover .event-gloss {
    opacity: 0;
}

.event-crack {
    position: absolute;
    top: 50%;
    left: -5%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #C04040, transparent);
    transition: width 200ms ease;
    pointer-events: none;
    z-index: 3;
}

.timeline-event:hover .event-crack {
    width: 110%;
}

.event-content {
    position: relative;
    z-index: 2;
}

.event-year {
    display: inline-block;
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: rgba(248,244,232,0.8);
    letter-spacing: 2px;
    margin-bottom: 8px;
    transition: color 500ms ease;
}

.timeline-event:hover .event-year {
    color: #C04040;
}

.event-official {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: clamp(18px, 2vw, 26px);
    color: #F8F4E8;
    transition: color 500ms ease, opacity 500ms ease;
    margin-bottom: 0;
}

.timeline-event:hover .event-official {
    color: #2A3030;
    opacity: 0.4;
    font-size: clamp(13px, 1.2vw, 16px);
}

.event-truth {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1vw, 16px);
    color: rgba(42,48,48,0.8);
    line-height: 1.75;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 500ms ease, opacity 500ms ease 100ms, margin 500ms ease;
    margin-top: 0;
}

.timeline-event:hover .event-truth {
    max-height: 200px;
    opacity: 1;
    margin-top: 12px;
}

/* ============================================
   SECTION 4: Awareness
   ============================================ */
#awareness {
    position: relative;
    z-index: 10;
    padding: 100px 40px;
    background: #F8F4E8;
    min-height: 100vh;
    overflow: hidden;
}

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

.awareness-leaf {
    position: absolute;
}

.awareness-leaf-1 {
    top: 5%;
    left: -5%;
    width: 300px;
    height: 300px;
    animation: leafDrift 20s ease-in-out infinite;
}

.awareness-leaf-2 {
    bottom: 10%;
    right: -3%;
    width: 220px;
    height: 220px;
    animation: leafDrift 16s ease-in-out infinite reverse;
}

#awareness .section-title {
    position: relative;
    z-index: 5;
}

.awareness-content {
    position: relative;
    z-index: 5;
    max-width: 900px;
    margin: 60px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.awareness-block {
    padding: 36px;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.8) 0%,
        rgba(255,255,255,0.15) 28%,
        rgba(248,244,232,0.5) 100%
    );
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(42,48,48,0.05);
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.awareness-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(42,48,48,0.1);
}

.awareness-block h3 {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: clamp(18px, 1.6vw, 22px);
    color: #2A3030;
    margin-bottom: 14px;
    text-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.awareness-block p {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1vw, 16px);
    color: rgba(42,48,48,0.7);
    line-height: 1.8;
}

/* ============================================
   Footer
   ============================================ */
#site-footer {
    position: relative;
    z-index: 10;
    background: linear-gradient(135deg, #60A0C0 0%, #80C0A0 100%);
    padding: 80px 40px 50px;
    overflow: hidden;
}

.footer-gloss {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.2) 0%,
        transparent 100%
    );
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.footer-ghost {
    margin-bottom: 32px;
}

.ghost-mascot {
    width: 60px;
    height: 75px;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.3));
    animation: ghostFloat 4s ease-in-out infinite;
}

@keyframes ghostFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.footer-nav a {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: #F8F4E8;
    text-decoration: none;
    transition: color 200ms ease;
    letter-spacing: 0.5px;
}

.footer-nav a:hover {
    color: #FFFFFF;
    text-shadow: 0 0 10px rgba(255,255,255,0.4);
}

.footer-tagline {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 700;
    font-size: clamp(16px, 1.6vw, 20px);
    color: #F8F4E8;
    margin-bottom: 8px;
    text-shadow: 0 0 15px rgba(255,255,255,0.3);
    line-height: 1.6;
}

.footer-tagline span {
    font-weight: 400;
    font-size: clamp(12px, 1vw, 14px);
    color: rgba(248,244,232,0.6);
}

.footer-copy {
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: rgba(248,244,232,0.4);
    margin-top: 24px;
}

.footer-leaf {
    position: absolute;
    bottom: 20px;
    right: 40px;
    width: 60px;
    height: 60px;
    animation: leafDrift 15s ease-in-out infinite;
    z-index: 1;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .ghost-cards {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .awareness-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    #ghosts,
    #timeline,
    #awareness {
        padding: 60px 20px;
    }

    .hero-leaf-decoration {
        top: 10%;
        right: 5%;
        width: 70px;
        height: 70px;
    }

    .timeline-event {
        padding: 24px 20px;
    }

    .footer-nav {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .ghost-card {
        padding: 28px 20px 24px;
    }

    .awareness-block {
        padding: 24px 20px;
    }

    #site-footer {
        padding: 60px 20px 40px;
    }
}
