@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');

/* --- 1. GLOBAL RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    background-color: #1E1E1E;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

:lang(ko) {
    font-family: "Noto Sans KR", sans-serif;
    word-break: keep-all;
    letter-spacing: -0.02em;
}

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

a:hover {
    opacity: 0.7;
}

/* --- 2. HEADER & FOOTER --- */
header,
footer {
    display: flex;
    flex-direction: row;
    /* Default row layout for desktop */
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    height: 100px;
    padding: 0 50px;
    background-color: #1E1E1E;
    flex-shrink: 0;
}

.logo-container {
    width: 80px;
    flex-shrink: 0;
    /* Prevents logo from squishing */
}

.nav-logo {
    width: 100%;
    height: auto;
}

.hero-nav {
    display: flex;
    gap: 30px;
}

.hero-nav a {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: lowercase;
}

.hero-nav a.active {
    color: #A8C3D0;
    font-weight: 800;
}

/* Enforce row on footer elements globally */
footer {
    flex-direction: row !important;
}

.footer-link {
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 1px;
    min-width: 100px;
}

footer a:first-child {
    text-align: left;
}

footer a:last-child {
    text-align: right;
}

.footer-lang-switch {
    display: flex;
    gap: 10px;
    font-weight: 700;
    font-size: 0.85rem;
}

.lang-btn {
    cursor: pointer;
    opacity: 0.4;
    transition: 0.3s;
}

.lang-btn.active {
    opacity: 1;
    color: #A8C3D0;
}

/* --- 3. ANIMATIONS --- */
@keyframes simpleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes cinematicPulse {
    0% {
        text-shadow: 0 0 0 rgba(168, 195, 208, 0);
    }

    50% {
        color: #A8C3D0;
        text-shadow: 0 0 10px rgba(168, 195, 208, 0.4);
    }

    100% {
        text-shadow: 0 0 0 rgba(168, 195, 208, 0);
    }
}

/* --- 4. ABOUT PAGE --- */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: simpleFadeIn 1.5s ease-out forwards;
}

.editorial-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    position: relative;
}

.main-text-area {
    width: 60%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-text-area.shifted {
    transform: translateX(-30px);
}

.mission-statement {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.5;
    text-align: left;
}

.margin-area {
    width: 35%;
    position: relative;
    height: 200px;
}

.margin-def {
    position: absolute;
    top: 50%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    transform: translateY(-40%);
    width: 100%;
}

.margin-def.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%);
}

.interactive-word {
    display: inline-block;
    cursor: pointer;
    transition: color 0.4s ease;
    animation: cinematicPulse 4s infinite ease-in-out;
}

.interactive-word.mobile-active {
    color: #A8C3D0;
    text-shadow: 0 0 10px rgba(168, 195, 208, 0.5);
}

.def-title {
    color: #A8C3D0;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.margin-def p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #eaeaea;
}

/* --- 5. CONTACT PAGE --- */
.contact-wrapper {
    width: 100%;
    max-width: 600px;
    padding: 0 50px;
    /* Centers the entire form block vertically */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.inquiry-title {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #A8C3D0;
    margin-bottom: 6vh;
    text-align: center;
    /* Centers title for better balance */
}

.arki-form {
    display: flex;
    flex-direction: column;
    gap: 5vh;
}

.form-group {
    position: relative;
    width: 100%;
}

/* FIXED: Both input AND expandable-input get the border */
.form-group input,
.expandable-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 0;
    color: #fff;
    outline: none;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

/* FIXED: Gives the message div structure so the line appears */
.expandable-input {
    min-height: 40px;
    max-height: 15vh;
    overflow-y: auto;
    word-wrap: break-word;
    white-space: pre-wrap;
    display: block;
}

.form-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Keeps your floating label animation intact */
.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.expandable-input.has-content~label,
.expandable-input:focus~label {
    top: -20px;
    font-size: 0.65rem;
    color: #A8C3D0;
    animation: cinematicPulse 4s infinite ease-in-out;
}

.submit-btn {
    background: transparent;
    border: 1px solid rgba(168, 195, 208, 0.4);
    color: #fff;
    padding: 15px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2vh;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

.submit-btn:hover {
    background-color: rgba(168, 195, 208, 0.1);
}

/* FIXED: Centered and properly spaced contact info */
.contact-info-centered {
    text-align: center;
    margin-top: 6vh;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    line-height: 1.8;
}

/* --- 6. MOBILE OVERHAUL (< 768px) --- */
@media (max-width: 768px) {

    /* FIXED: Header breaks into a clean column so logo isn't squished */
    header {
        flex-direction: column !important;
        height: auto;
        padding: 30px 20px;
        gap: 25px;
    }

    .hero-nav {
        flex-wrap: wrap;
        /* Allows links to wrap gracefully */
        justify-content: center;
        gap: 15px 20px;
    }

    /* Keeps footer firmly as a row */
    footer {
        padding: 0 20px;
        height: 80px;
    }

    .editorial-layout {
        flex-direction: column;
        padding: 0 25px;
        justify-content: center;
    }

    .main-text-area {
        width: 100%;
        text-align: center;
    }

    /* Moves text UP more aggressively on click */
    .main-text-area.shifted {
        transform: translateY(-50px) !important;
    }

    .mission-statement {
        font-size: 1.6rem;
        text-align: center;
    }

    /* FIXED: Definition area sits lower to create breathing room */
    .margin-area {
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 0;
        margin-top: 70px;
        /* Increased gap */
    }

    /* FIXED: Ensures 90% width box is perfectly centered */
    .margin-def {
        position: absolute;
        top: 0;
        left: 5%;
        width: 90%;
        text-align: center;
        transform: translateY(20px);
    }

    .margin-def.active {
        transform: translateY(0);
    }
}