@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Sans+KR:wght@100..900&display=swap');

/* --- RESET & BASIC SETUP --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    font-weight: 100;
    font-style: normal;
    background-color: #1e1e1e;
    color: #fff;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: #fff;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* --- SHARED LAYOUTS (Header & Footer) --- */
header,
footer {
    background-color: #1e1e1e;
    height: 100px;
    /* Locks the bar thickness */
    padding: 0 50px;
    /* Keeps left/right spacing, removes top/bottom */
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* --- HEADER SPECIFIC --- */
header {
    justify-content: space-between;
    text-transform: uppercase;
    font-weight: 200;
    font-size: 1.0rem;
}

/* --- FOOTER SPECIFIC --- */
footer {
    justify-content: flex-end;
    font-size: 0.8rem;
    font-weight: 300;
    font-style: italic;
}

/* --- LANGUAGE SWITCHER --- */
.lang-switch {
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    gap: 5px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.lang-btn {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
    opacity: 1;
}

.divider {
    opacity: 0.3;
}

/* --- MAIN HERO SECTION --- */
main {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 50px;
    overflow: hidden;
}

/* Dark overlay */
main::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Shorthand for top/right/bottom/left: 0 */
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
    z-index: 1;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-content {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}

/* --- NAVIGATION LINKS --- */
.hero-nav {
    display: flex;
    gap: 30px;
}

.hero-nav a {
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: lowercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* --- INTRO LOADER & ANIMATION --- */
#intro-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1e1e1e;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: background-color 0.5s ease;
}

.loader-bg-gone {
    background-color: transparent !important;
}

svg.intro-logo {
    width: 200px;
    height: auto;
    shape-rendering: geometricPrecision;
    overflow: visible;
    transform-origin: 60% 55%;
    transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.5s ease-in 0s;
    will-change: transform, opacity;
}

.zoom-active {
    /* The massive scale */
    transform: scale(600);

    /* 2. Add this opacity fade! */
    /* As the white logo expands, it will dissolve into the dark background, preventing a bright flash */
    opacity: 0;
}

/* Blue Dot Bounce */
.blue-dot {
    animation: naturalBounce 1s linear .1s forwards;
    opacity: 0;
    transform: translateY(-150px);
    transform-box: fill-box;
    transform-origin: center bottom;
}

@keyframes naturalBounce {
    0% {
        opacity: 0;
        transform: translateY(-150px) scale(1, 1);
        animation-timing-function: ease-in;
    }

    30% {
        opacity: 1;
        transform: translateY(0) scale(1.1, 0.9);
        animation-timing-function: ease-out;
    }

    50% {
        transform: translateY(-60px) scale(0.95, 1.05);
        animation-timing-function: ease-in;
    }

    70% {
        transform: translateY(0) scale(1.05, 0.95);
        animation-timing-function: ease-out;
    }

    85% {
        transform: translateY(-25px) scale(0.98, 1.02);
        animation-timing-function: ease-in;
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1, 1);
    }
}

/* Content Reveal State */
header,
.hero-content,
footer,
main {
    opacity: 0;
    transition: opacity 1s ease-out;
}

body.content-visible header,
body.content-visible .hero-content,
body.content-visible footer,
body.content-visible main {
    opacity: 1;
}

/* font for Korean */
:lang(ko) {
    font-family: "Noto Sans KR", sans-serif;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {

    header,
    footer,
    main {
        padding: 20px;
    }

    .hero-content,
    .hero-nav {
        flex-direction: column;
    }

    .hero-content {
        gap: 40px;
    }

    .hero-nav {
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 500px) {
    .lang-switch {
        position: static;
        transform: none;
    }
}