/* 헤더 기본 스타일 */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 20px 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 로고 스타일 */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 36px;
    margin-right: 10px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

/* 메인 네비게이션 */
.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0 20px;
}

.main-nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    color: var(--secondary-color);
    background-color: rgba(58, 190, 255, 0.08);
    transform: translateY(-2px);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* 인증 버튼 영역 */
.auth-buttons {
    display: flex;
    gap: 15px;
}

.auth-buttons .btn-service {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 25px;
    font-size: 0.95rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: 0 4px 15px rgba(58, 190, 255, 0.3);
    text-decoration: none;
}

.auth-buttons .btn-service:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(58, 190, 255, 0.4);
    background: linear-gradient(135deg, #00D4BB 0%, #3ABEFF 100%);
}

/* 스크롤 시 헤더 스타일 변경 */
.header-scrolled {
    padding: 15px 0;
    background: var(--gradient-primary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header-scrolled .logo span {
    color: white;
}

.header-scrolled .main-nav a {
    color: white;
}

.header-scrolled .main-nav a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
}

.header-scrolled .main-nav a::after {
    background-color: white;
}

.header-scrolled .auth-buttons .btn-service {
    background-color: white;
    color: var(--primary-color);
}

.header-scrolled .auth-buttons .btn-service:hover {
    background-color: var(--light-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 모바일 메뉴 완전히 다시 작성 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 1);
    z-index: 9999;
    opacity: 1;
}

.mobile-menu.active {
    display: block !important;
    opacity: 1 !important;
}

.mobile-menu-container {
    background-color: #ffffff;
    padding: 60px 20px 30px;
    height: 100%;
    overflow-y: auto;
    opacity: 1;
}

/* 모바일 메뉴 토글 버튼 스타일 */
.mobile-menu-toggle {
    cursor: pointer;
    display: none;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* 모바일 메뉴 토글 버튼 내부의 모든 요소들도 투명하게 */
.mobile-menu-toggle * {
    background-color: transparent !important;
}

/* 햄버거 아이콘만 보이도록 수정 */
.hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333 !important;
    position: relative;
    transition: background-color 0.3s;
}

.hamburger-icon:before,
.hamburger-icon:after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333 !important;
    position: absolute;
    left: 0;
    transition: all 0.3s;
}

/* 모바일 화면에서만 토글 버튼 표시 */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        width: auto;
        height: auto;
        position: relative;
    }
}

/* 닫기 버튼 스타일 */
.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    opacity: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-menu-btn i {
    font-size: 24px;
    opacity: 1;
}

/* 모바일 반응형 조정 */
@media screen and (max-width: 768px) {
    .mobile-auth-buttons .btn-outline {
        background: var(--gradient-primary);
        color: white;
        padding: 12px 20px;
        font-size: 0.9rem;
        border-radius: 30px;
        font-weight: 600;
        transition: all 0.3s ease;
        text-decoration: none;
        border: none;
        box-shadow: 0 8px 20px rgba(58, 190, 255, 0.25);
        display: inline-block;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .mobile-auth-buttons .btn-outline:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(58, 190, 255, 0.4);
        background: linear-gradient(135deg, #00D4BB 0%, #3ABEFF 100%);
    }
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .main-nav li {
        margin: 0 15px;
    }
}

@media (max-width: 900px) {
    .main-nav {
        display: none;
    }
    
    .auth-buttons {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: block;
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 15px 0;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
    }
    
    .main-header .container {
        padding: 0 15px;
    }
    
    .logo img {
        height: 30px;
    }
    
    .logo span {
        font-size: 1.3rem;
    }
    
    .mobile-menu {
        padding-top: 60px;
    }
    
    .mobile-menu-container {
        padding: 80px 20px 40px;
        max-width: 480px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-height: 85vh;
    }
    
    .mobile-menu.active {
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
    }
    
    .mobile-auth-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin: 20px 0 30px 0;
        opacity: 1;
        transform: none;
        order: -1;
    }
    
    .mobile-nav ul {
        margin: 0;
    }
    
    .mobile-auth-buttons .btn-primary {
        background: var(--gradient-primary);
        color: white;
        padding: 14px 20px;
        font-size: 1rem;
        border-radius: 8px;
        font-weight: 600;
        transition: all 0.3s ease;
        text-decoration: none;
        border: none;
        box-shadow: 0 4px 12px rgba(58, 190, 255, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        text-transform: none;
        letter-spacing: 0;
    }
    
    .mobile-auth-buttons .btn-primary:active {
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(58, 190, 255, 0.25);
    }
    
    .mobile-menu.active .mobile-auth-buttons {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0s;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 12px 0;
    }
    
    .logo img {
        height: 28px;
        margin-right: 6px;
    }
    
    .logo span {
        font-size: 1.2rem;
    }
    
    .mobile-menu-toggle {
        width: 35px;
        height: 35px;
    }
    
    .hamburger-icon, 
    .hamburger-icon::before, 
    .hamburger-icon::after {
        width: 22px;
    }
    
    .mobile-nav a {
        font-size: 1.5rem;
        padding: 10px 0;
    }
    
    .mobile-auth-buttons .btn {
        padding: 10px;
    }
}

/* 작은 화면 크기도 대응 */
@media screen and (max-width: 767px) {
    .auth-buttons {
        display: none !important;
    }
}

/* 헤더 색상만 수정 - 기존 구조 유지 */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    padding: 15px 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* 로고 스타일 강화 */
.navbar-brand {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 3px;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 10px;
    opacity: 0.8;
}

/* 네비게이션 링크 세련된 스타일 */
.navbar-nav .nav-link {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0 5px;
    padding: 8px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 6px;
    opacity: 0;
    z-index: -1;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: white;
}

.navbar-nav .nav-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

.navbar-nav .nav-link.active {
    color: white;
    background: var(--gradient-primary);
    box-shadow: 0 4px 10px rgba(58, 190, 255, 0.25);
}

/* 버튼 스타일 현대화 */
.navbar .btn {
    padding: 9px 20px;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.navbar .btn-outline-primary {
    border-width: 2px;
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.navbar .btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    z-index: -1;
    transition: all 0.4s ease;
}

.navbar .btn-outline-primary:hover {
    color: white;
    border-color: transparent;
    background: transparent;
}

.navbar .btn-outline-primary:hover::before {
    left: 0;
}

.navbar .btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(58, 190, 255, 0.3);
}

.navbar .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(58, 190, 255, 0.4);
}

/* 스크롤 시 헤더 스타일 */
.navbar.scrolled {
    background: var(--gradient-primary);
    padding: 10px 0;
}

.navbar.scrolled .navbar-brand {
    color: white;
}

.navbar.scrolled .navbar-brand::after {
    background: white;
    width: 50%;
}

.navbar.scrolled .nav-link {
    color: white;
}

.navbar.scrolled .nav-link::before {
    background: rgba(255, 255, 255, 0.2);
}

.navbar.scrolled .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .btn-outline-primary {
    color: white;
    border-color: white;
}

.navbar.scrolled .btn-outline-primary::before {
    background: rgba(255, 255, 255, 0.2);
}

.navbar.scrolled .btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 햄버거 메뉴 개선 */
.navbar-toggler {
    border: none;
    outline: none;
    padding: 0;
    width: 30px;
    height: 20px;
    position: relative;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: none;
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    left: 0;
    transition: all 0.3s ease;
}

.navbar-toggler-icon:nth-child(1) {
    top: 0;
}

.navbar-toggler-icon:nth-child(2) {
    top: 9px;
}

.navbar-toggler-icon:nth-child(3) {
    top: 18px;
}

.navbar.scrolled .navbar-toggler-icon {
    background: white;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

/* 서비스 이용하기 버튼 스타일 개선 */
.auth-buttons .btn-outline {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 28px;
    font-size: 0.95rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    border: none;
    box-shadow: 0 8px 20px rgba(58, 190, 255, 0.25);
    position: relative;
    z-index: 1;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.auth-buttons .btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00D4BB 0%, #3ABEFF 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.auth-buttons .btn-outline:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(58, 190, 255, 0.4);
}

.auth-buttons .btn-outline:hover::before {
    opacity: 1;
}

.auth-buttons .btn-outline:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(58, 190, 255, 0.3);
}

/* 스크롤 시 버튼 스타일 */
.header-scrolled .auth-buttons .btn-outline {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.header-scrolled .auth-buttons .btn-outline::before {
    background: rgba(255, 255, 255, 0.9);
}

.header-scrolled .auth-buttons .btn-outline:hover {
    color: var(--secondary-color);
}

/* 모바일 반응형 조정 */
@media screen and (max-width: 768px) {
    .mobile-auth-buttons .btn-outline {
        background: var(--gradient-primary);
        color: white;
        padding: 12px 20px;
        font-size: 0.9rem;
        border-radius: 30px;
        font-weight: 600;
        transition: all 0.3s ease;
        text-decoration: none;
        border: none;
        box-shadow: 0 8px 20px rgba(58, 190, 255, 0.25);
        display: inline-block;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .mobile-auth-buttons .btn-outline:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(58, 190, 255, 0.4);
        background: linear-gradient(135deg, #00D4BB 0%, #3ABEFF 100%);
    }
}

/* 헤더와 컨텐츠 영역의 관계 명확히 */
body {
    padding-top: 0;
    overflow-x: hidden;
}

/* 스크롤 시 헤더 높이 조정 */
.header-scrolled {
    padding: 10px 0 !important;
}

/* 스크롤 막기 클래스 강화 */
body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    touch-action: none;
}

/* 햄버거 버튼 수정 */
.hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    position: relative;
    transition: background-color 0.3s;
}

.hamburger-icon:before,
.hamburger-icon:after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    position: absolute;
    left: 0;
    transition: all 0.3s;
}

.hamburger-icon:before {
    top: -8px;
}

.hamburger-icon:after {
    bottom: -8px;
}

/* 메뉴 항목 스타일 개선 */
.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    opacity: 1;
}

.mobile-nav li {
    margin-bottom: 15px;
    opacity: 1;
}

.mobile-nav a {
    color: #333;
    font-size: 18px;
    text-decoration: none;
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    opacity: 1;
}
.disclaimer-link {
    color: #ff5252 !important;
    font-weight: 700 !important;
}