@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

/* Global Font Settings */
body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    line-height: 1.65;
    letter-spacing: -0.01em;
    color: #1a1a1a;
    word-break: keep-all;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6,
.font-serif {
    font-family: 'Noto Serif KR', serif;
    letter-spacing: -0.02em;
}

/* Montserrat Accent */
.font-montserrat,
.en-accent,
.subtitle {
    font-family: 'Montserrat', sans-serif;
}

.en-accent {
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Text Colors */
.text-dark {
    color: #1a1a1a;
}

.text-off-white {
    color: #f8f9fa;
}


/* Custom keyframes for fade-in animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Hide scrollbar for gallery but keep functionality */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Glassmorphism utilities */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Base size */
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
        /* Slightly smaller base for very small screens if needed, or keep 16px */
    }

    /* Adjust spacing for mobile */
    section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

.font-subtitle {
    font-family: 'Gowun Dodum', sans-serif;
}

/* Retro Cinema Subtitle Style */
.text-cinema {
    color: #FFD700;
    /* Gold/Yellow */
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0px 2px 4px rgba(0, 0, 0, 0.8);
    /* Drop shadow + Outline effect */
    font-weight: 700;
}

/* Hero Nanum Myeongjo Design */
.hero-myeongjo {
    font-family: 'Nanum Myeongjo', serif;
    color: #FFFFFF;
    /* Pure White */
    line-height: 1.3;
    letter-spacing: -0.02em;
    font-weight: 700;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.font-myeongjo {
    font-family: 'Nanum Myeongjo', serif;
}

/* Mobile Scroll Animation Utilities */
.scroll-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
    will-change: opacity, transform;
}

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

/* Stagger Delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}


/* Liquid Bubble Effect */
.liquid-bubble {
    position: fixed;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.1));
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4), inset 0 0 8px rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(2px);
    pointer-events: none;
    z-index: 9999;
    animation: bubbleRise 1s ease-out forwards;
}

@keyframes bubbleRise {
    0% {
        opacity: 0.8;
        transform: scale(0) translateY(0);
    }

    50% {
        opacity: 0.6;
        transform: scale(1) translateY(-20px);
    }

    100% {
        opacity: 0;
        transform: scale(1.5) translateY(-50px);
    }
}

/* Timeline Animation Styles */
/* Timeline Animation Styles */
.timeline-dot {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.3;
    transform: scale(0.8);
    position: absolute;
    left: -21px;
    top: 0.375rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    background-color: #cbd5e1;
    box-shadow: 0 0 0 4px #ffffff;
}

/* Parent-based Active States for Text */
.timeline-step h4,
.timeline-step p {
    transition: color 0.6s ease, opacity 0.6s ease;
}

/* Blue Active State */
.active-step-blue .timeline-dot {
    opacity: 1;
    transform: scale(1.1);
    background-color: #3b82f6;
    /* blue-500 */
    box-shadow: 0 0 0 4px #ffffff, 0 0 15px rgba(59, 130, 246, 0.6);
}

.active-step-blue h4 {
    color: #2563eb !important;
    /* blue-600 */
}

.active-step-blue p {
    color: #374151 !important;
    /* gray-700 from gray-500 */
}

/* Green Active State */
.active-step-green .timeline-dot {
    opacity: 1;
    transform: scale(1.1);
    background-color: #22c55e;
    /* green-500 */
    box-shadow: 0 0 0 4px #ffffff, 0 0 15px rgba(34, 197, 94, 0.6);
}

.active-step-green h4 {
    color: #16a34a !important;
    /* green-600 */
}

.active-step-green p {
    color: #374151 !important;
    /* gray-700 */
}

/* Optional: Timeline Content Fade */
.timeline-content {
    transition: opacity 0.6s ease;
    opacity: 0.4;
}

.timeline-content.active-content {
    opacity: 1;
}