/* ============================================================
   EXFILE PAGE – Warm Editorial Light
   ============================================================ */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

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

:root {
    --bg: #09090B;
    --bg-elevated: #111113;
    --bg-card: #1C1C1E;
    --text: #F4F4F5;
    --text-sub: #A1A1AA;
    --accent: #FFB81C;
    --accent-dim: rgba(255, 184, 28, 0.10);
    --accent-border: rgba(255, 184, 28, 0.25);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --warm-gray-light: #F2F0ED;
    --warm-gray-mid: #C8C4BD;
    --warm-gray-dark: #88878F;
    --radius: 4px;
    --spring: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont,
        'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    word-break: keep-all;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

html { scrollbar-color: rgba(255,255,255,0.15) var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Navigation ── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(9, 9, 11, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: padding 0.3s var(--spring), background 0.3s ease;
}
.navbar.scrolled { padding: 14px 0; background: rgba(9, 9, 11, 0.96); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }

.nav-brand { text-decoration: none; display: flex; align-items: center; transition: opacity 0.3s ease; }
.nav-brand:hover { opacity: 0.7; }
.nav-brand .logo { height: 38px; width: auto; display: block; }

.nav-menu { display: flex; list-style: none; gap: 48px; }
.nav-link {
    text-decoration: none;
    color: var(--text-sub);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.25s ease;
    position: relative;
}
.nav-link::before {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width 0.3s var(--spring);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::before, .nav-link.active::before { width: 100%; }

/* Dropdown */
.nav-item { position: relative; }
.nav-item.has-dropdown > .nav-link::after {
    content: ''; display: inline-block;
    width: 4px; height: 4px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg); margin-left: 5px; margin-bottom: 2px;
    transition: transform 0.2s ease;
}
.nav-item.has-dropdown:hover > .nav-link::after {
    transform: rotate(-135deg); margin-bottom: -1px;
}
.nav-dropdown {
    position: absolute; top: 100%; left: 50%;
    min-width: 160px; padding-top: 16px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateX(-50%) translateY(6px);
    z-index: 100;
}
.nav-dropdown-inner {
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 8px 0;
    box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}
.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
    display: block; padding: 10px 24px;
    font-size: 13px; font-weight: 500; color: var(--text-sub);
    text-decoration: none; transition: all 0.15s ease; white-space: nowrap;
    position: relative;
}
.nav-dropdown a:hover {
    color: var(--accent); background: rgba(255,184,28,0.06);
    padding-left: 28px;
}
.nav-dropdown a:hover::before {
    content: ''; position: absolute; left: 12px; top: 50%;
    width: 4px; height: 4px; background: var(--accent); border-radius: 50%;
    transform: translateY(-50%);
}

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span {
    width: 24px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s var(--spring);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ── */
.exfile-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    padding: 140px 0 90px;
    overflow: hidden;
    background: var(--bg);
}

/* Full-bleed background photo */
.exfile-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    animation: heroImgZoom 1.4s var(--spring) both;
}

@keyframes heroImgZoom {
    from { opacity: 0; transform: scale(1.06); }
    to   { opacity: 1; transform: scale(1); }
}

/* Dark gradient for text contrast (left-weighted) */
.exfile-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(9,9,11,0.82) 0%, rgba(9,9,11,0.5) 48%, rgba(9,9,11,0.12) 100%),
        linear-gradient(0deg, rgba(9,9,11,0.55) 0%, rgba(9,9,11,0) 38%);
}

/* width:100% 로 1200px 그리드 회복 — flex 아이템이 축소·중앙배치되던 문제 방지
   (히어로 텍스트를 로고·전 섹션과 같은 좌측 기준선에 정렬) */
.exfile-hero .container { position: relative; z-index: 2; width: 100%; }

.exfile-hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    max-width: 760px;
    animation: lightFadeUp 0.9s var(--spring) both;
}

@keyframes lightFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.exfile-hero-eyebrow {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

/* Per-line dark boxes so the heading stays readable over any photo */
.exfile-hero h1 {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -1.5px;
    margin: 0;
}

.exfile-hero h1 .hl {
    color: #fff;
    text-shadow: 0 2px 16px rgba(0,0,0,0.8), 0 1px 3px rgba(0,0,0,0.6);
}

.hero-description {
    font-size: 16px;
    line-height: 1.9;
    color: rgba(255,255,255,0.92);
    max-width: 560px;
    text-shadow: 0 1px 12px rgba(0,0,0,0.75);
}

.hero-description strong { color: var(--accent); }

/* ── Features Section ── */
.features-section {
    padding: 120px 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.section-title {
    font-size: 40px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -1.5px;
    color: var(--text);
    margin-bottom: 72px;
    position: relative;
    padding-bottom: 20px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 48px; height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.feature-list { display: flex; flex-direction: column; gap: 64px; }

.feature-item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 52px;
    align-items: start;
}

.feature-image {
    width: 100%;
    height: 200px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--spring);
}
.feature-image:hover img { transform: scale(1.06); }

.feature-content h3 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
    color: var(--text);
}
.feature-content p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-sub);
}

/* ── Job Types Section ── */
.job-types-section {
    padding: 120px 0;
    background: var(--bg);
}

.job-type-block {
    margin-bottom: 120px;
    padding-bottom: 120px;
    border-bottom: 1px solid var(--border);
}
.job-type-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.job-header { margin-bottom: 48px; }

.job-title-en {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(56px, 8vw, 80px);
    font-weight: 400; letter-spacing: 2px;
    color: var(--accent); line-height: 1;
    margin-bottom: 8px;
}
.job-title-kr {
    display: inline-block;
    font-size: 16px; font-weight: 700;
    color: var(--text); background: var(--accent);
    padding: 4px 12px; margin-bottom: 20px;
    color: #09090B;
}
.job-header h2::after { display: none; }

.job-header p {
    font-size: 16px;
    line-height: 2;
    color: var(--text-sub);
    max-width: 600px;
    margin-bottom: 24px;
}

.job-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}
.job-keywords span {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-sub);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 100px;
    transition: all 0.2s ease;
}
.job-keywords span:hover {
    background: var(--accent-dim);
    border-color: var(--accent-border);
    color: var(--accent);
}

.job-mention {
    font-size: 13px;
    color: var(--text-sub);
    margin-top: 16px;
    font-style: italic;
}

.job-images {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 210px 210px;
    gap: 12px;
    margin-top: 40px;
}
.job-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.5s var(--spring), box-shadow 0.5s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}
/* 첫 번째 이미지 — 2행 걸쳐 크게 */
.job-images img:first-child {
    grid-row: 1 / 3;
}
.job-images img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 48px rgba(0,0,0,0.14);
    z-index: 1;
    position: relative;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.8s var(--spring), transform 0.8s var(--spring);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Footer ── */
.footer {
    background: #0D0D0F;
    color: #F4F4F5;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-content { margin-bottom: 40px; }
.footer-info { display: flex; flex-direction: column; gap: 12px; }
.footer-company-name { font-size: 18px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.footer-info p { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,0.45); margin: 0; }
.footer-links { display: flex; gap: 20px; margin-top: 16px; }
.footer-link { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 13px; transition: color 0.3s ease; }
.footer-link:hover { color: var(--accent); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-link {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.08);
}
.social-link:hover {
    background: var(--accent);
    color: #09090B;
    border-color: var(--accent);
    transform: translateY(-3px);
}
.footer-bottom { padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.07); }
.footer-copyright { font-size: 12px; color: rgba(255,255,255,0.28); margin: 0; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .container { padding: 0 30px; }
    .exfile-hero h1 { font-size: 42px; }
    .feature-item { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed; top: 72px; left: -100%;
        flex-direction: column;
        background: rgba(9, 9, 11, 0.98);
        width: 100%; padding: 32px 0;
        border-top: 1px solid var(--border);
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        transition: left 0.3s var(--spring); gap: 0;
    }
    .nav-menu li { padding: 15px 40px; border-bottom: 1px solid var(--border); }
    .nav-menu.active { left: 0; }
    .hamburger { display: flex; min-width: 32px; min-height: 28px; align-items: center; justify-content: center; z-index: 1001; }
    .nav-dropdown { display: none; }
    .nav-item.has-dropdown > .nav-link::after { display: none; }

    /* 모바일: 배경 이미지를 텍스트 아래 블록으로 분리 (full-bleed 해제) */
    .exfile-hero {
        flex-direction: column;
        align-items: stretch;
        min-height: auto;
        padding: 100px 0 0;
    }
    .exfile-hero .container { order: 1; }
    .exfile-hero-overlay { display: none; }
    .exfile-hero-bg {
        order: 2;
        position: static;
        width: 100%;
        height: 280px;
        margin-top: 32px;
        animation: none;
    }
    .exfile-hero h1 { font-size: 32px; }
    .hero-description { font-size: 15px; }

    /* 모바일에서 기능 본문 강제 줄바꿈 해제 (자연 흐름) */
    .feature-content p br { display: none; }

    .section-title { font-size: 30px; }
    .job-header h2 { font-size: 36px; }

    .job-images {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    .job-images img { height: 180px; }
    .job-images img:first-child {
        grid-row: auto;
        grid-column: 1 / -1;
        height: 240px;
    }
    .job-type-block { margin-bottom: 80px; padding-bottom: 80px; }

    .footer-links { flex-direction: column; gap: 10px; }
}

@media (max-width: 576px) {
    .container { padding: 0 20px; }
    .exfile-hero h1 { font-size: 26px; }
    .section-title { font-size: 26px; }
    .job-header h2 { font-size: 28px; }
}
