/* 헤더 스타일 */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100000000;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05)
    );
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
    max-height: 150px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.fixed-header.hide {
    transform: translateY(-100%);
}

/* 지원서 페이지용 헤더 스타일 */
.apply-page .fixed-header {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.9),
        rgba(0, 0, 0, 0.8)
    );
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.header-button_yellow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
}

.header-inner {
    display: flex;
    align-items: center;
    height: 70px;
    position: relative;
    justify-content: space-between;
    width: 100%;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100px;
}

.logo-icon {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 20px;
}

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

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: white;
    letter-spacing: 0.5px;
    position: relative;
}

/* 로고 슬라이더 스타일 */
.logo-slider {
    width: 100%;
    height: auto;
    margin: auto;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
    padding: 50px 0px;
}
    
.logo-slide-track {
    display: flex;
    animation: scroll 30s linear infinite;
    align-items: center;
}
    
.logo-slide-track img {
    height: 35px;
    width: auto;
    margin: 0 30px;
    object-fit: contain;
}

.logo-dot {
    color: #7a73ff;
}

.logo-reg {
    font-size: 0.7rem;
    vertical-align: super;
    margin-left: 1px;
}

.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 24px;
    border-radius: 24px;
    padding: 8px 16px;
    backdrop-filter: blur(22px);
    mix-blend-mode: difference;
    width: 100%;
}

.nav-menu li {
    display: flex;
}

.nav-menu li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    font-size: 12px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    mix-blend-mode: difference;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: white;
    mix-blend-mode: normal;
    font-weight: 600;
    font-size: 16px;
}

.nav-menu li a.current {
    font-weight: 600;
    mix-blend-mode: normal;
    font-size: 16px;
    line-height: 1.2;
}

/* 모바일 메뉴 스타일 업데이트 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    margin-right: 20px;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 1px;
}

/* 모바일 메뉴 버튼 활성화 상태 (햄버거 -> X) */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 모바일 전용 네비게이션 메뉴 - PC와 완전히 다른 디자인 */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(20px);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 80px 20px 20px;
    position: relative;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    width: 100%;
    max-width: 300px;
}

.mobile-nav-menu li {
    margin: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-nav-overlay.active .mobile-nav-menu li {
    opacity: 1;
    transform: translateY(0);
}

/* 각 메뉴 아이템에 지연 효과 */
.mobile-nav-overlay.active .mobile-nav-menu li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-overlay.active .mobile-nav-menu li:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav-overlay.active .mobile-nav-menu li:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav-overlay.active .mobile-nav-menu li:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav-overlay.active .mobile-nav-menu li:nth-child(5) { transition-delay: 0.3s; }
.mobile-nav-overlay.active .mobile-nav-menu li:nth-child(6) { transition-delay: 0.35s; }
.mobile-nav-overlay.active .mobile-nav-menu li:nth-child(7) { transition-delay: 0.4s; }

.mobile-nav-menu li a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    padding: 15px 0;
    letter-spacing: 1px;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-menu li:last-child a {
    border-bottom: none;
}

.mobile-nav-menu li a:hover,
.mobile-nav-menu li a.active {
    color: #057eff;
    transform: scale(1.05);
}

.mobile-nav-menu li a.active::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 15px;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: #057eff;
    border-radius: 1px;
}

/* 모바일 메뉴 하단 버튼들 */
.mobile-nav-buttons {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 250px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.5s;
}

.mobile-nav-overlay.active .mobile-nav-buttons {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-button {
    display: block;
    text-align: center;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.mobile-nav-button.yellow {
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
    border: 1px solid #c8c8c834;
    background: linear-gradient(180deg, #00000049 40%, #ffffff14 100%);
    backdrop-filter: blur(3px);
    padding: 14px 40px;
    border-radius: 100px;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.mobile-nav-button.yellow:hover {
    background: linear-gradient(180deg, #ffffff14 40%, #00000049 100%);
    border-color: #ffffff34;
}

.mobile-nav-button.blue {
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
    border: 1px solid #c8c8c834;
    background: linear-gradient(180deg, #0044ff 40%, #018dff7a 100%);
    backdrop-filter: blur(3px);
    padding: 14px 40px;
    border-radius: 100px;
    box-shadow: 0 0 10px rgb(251, 255, 8, 0.2), 0 0 20px rgb(251, 255, 8, 0.1), 0 0 30px rgba(251, 255, 8, 0.227);
    display: block;
    text-align: center;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    width: 100%;
    justify-content: center;
    margin: 8px 0;
}

.mobile-nav-button.blue:hover {
    background: linear-gradient(180deg, #018dff7a 40%, #0044ff 100%);
    border-color: #ffffff34;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.6), 0 0 30px rgba(0, 123, 255, 0.4), 0 0 45px rgba(0, 123, 255, 0.2);
}

/* 기존 nav-menu.active 스타일 제거 및 숨김 */
.nav-menu.active {
    display: none !important;
}

.header-button {
    color: #ffffff;
    border-radius: 50px;
    padding: 4px 18px; 
    text-decoration: none;
    font-size: 14px;
}

.header-button_yellow {
    color: #ffffff;
    padding: 4px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.header-button_yellow:hover {
    background-color: #ffffff;
    color: #ffa807;
}

.header-button_blue {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background:linear-gradient(180deg, #ff9d00 10%, #fff201fd 100%);
    color: #000000;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 
    0 0 10px rgb(251, 255, 8, 0.2), 0 0 20px rgb(251, 255, 8, 0.1), 0 0 30px rgba(251, 255, 8, 0.227);
}

.header-button_blue::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.header-button_blue:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 
        0 0 15px rgba(0, 123, 255, 0.6),
        0 0 30px rgba(0, 123, 255, 0.4),
        0 0 45px rgba(0, 123, 255, 0.2);
}

.header-button_blue:hover::before {
    left: 100%;
}

.header-button_blue svg {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.header-button_blue:hover svg {
    transform: translateX(4px);
}

.header-buttons {
    display: flex;
    padding-right: 20px;
    gap: 10px;
}

@media (max-width: 842px) {
    .nav-menu {
        display: none;
    }
}

/* 미디어 쿼리 */
@media (max-width: 1200px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .header-buttons {
        display: none;
    }

    .fixed-header.hide {
        transform: translateY(-100%) !important;
    }

    .fixed-header {
        transform: translateY(0) !important;
        max-height: 50px;
    }

    .header-inner {
        height: 50px;
    }

    .logo {
        width: 80px;
        gap: 4px;
    }

    .logo-icon {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .logo-icon {
        width: 80px !important;
        padding-left: 0px !important;
    }

    .mobile-menu-btn {
        margin-right: 0px !important;
        width: 28px !important;
        height: 18px !important;
    }
}

/* 로고 슬라이더 애니메이션 */
@keyframes scroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

@keyframes scroll-reverse {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(0);
    }
}

/* 모바일 버전 */
.mobile-nav-button.blue {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 10px rgba(0, 123, 255, 0.5),
        0 0 20px rgba(0, 123, 255, 0.3),
        0 0 30px rgba(0, 123, 255, 0.2);
    width: 100%;
    justify-content: center;
    margin: 8px 0;
}

.mobile-nav-button.blue:hover {
    background: #0056b3;
}

html {
    scroll-behavior: smooth;
}
