@import url('https://fonts.googleapis.com/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
    /* 🔥 [수정] index 규격에 맞춰 90px로 변경 */
    --nav-height: 90px; 
    --primary-indigo: #6366f1;
}

body { 
    font-family: 'Pretendard', sans-serif; 
    background: #F8FAFC; 
    color: #1e293b; 
    overflow-x: hidden; 
    /* 🔥 [수정] 상단 여백을 네비바 높이와 일치시킴 */
    padding-top: 70px !important;
}

/* PC 화면 대응 */
@media (min-width: 768px) {
    body { padding-top: 90px !important; }
}

/* ==========================================================================
   1. 통합 내비게이션 바
   ========================================================================== */
#navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999 !important; 
    /* 🔥 [수정] 기본 높이를 70px로 설정 (모바일 기준) */
    height: 70px;
    background-color: rgba(255, 255, 255, 0.9); 
    backdrop-filter: blur(20px) saturate(180%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 🔥 [수정] PC 화면에서 네비바 높이를 90px로 확장 */
@media (min-width: 768px) {
    #navbar { height: 90px; }
}

/* 스크롤 시 높이 축소 효과 (index와 동일하게 70px 고정) */
#navbar.shadow-md, #navbar.scrolled {
    height: 70px !important; 
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.1);
}

/* 네비게이션 내부 컨테이너 */
.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
}

/* [좌측] 로고 영역 */
.nav-left {
    flex: 1 1 0%;
    display: flex;
    justify-content: flex-start;
}

/* [중앙] 메뉴 영역 */
.nav-center {
    flex: none; 
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* [우측] 로그인 영역 */
.nav-right {
    flex: 1 1 0%;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* 메뉴 링크 아이템 */
.nav-link-item {
    position: relative;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.nav-link-item:hover, .nav-link-item.active { 
    color: var(--primary-indigo); 
}

.nav-link-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link-item:hover::after, .nav-link-item.active::after {
    width: 100%;
}

/* ==========================================================================
   2. Service Page 특화 컴포넌트 
   ========================================================================== */

.aurora-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: -1;
    background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 50%, #fce7f3 100%);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 30px -10px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

header.compact-header {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.reveal { 
    opacity: 0; 
    transform: translateY(20px); 
    transition: all 0.6s ease-out; 
}
.reveal.active { 
    opacity: 1; 
    transform: translateY(0); 
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ======================================================== */
/* [3. 반응형 스타일 수정] */
/* ======================================================== */
@media (max-width: 1024px) {
    .nav-container { padding: 0 1.5rem; }
    .nav-center { gap: 1rem; }
}

@media (max-width: 768px) {
    .nav-center { display: none !important; } 
    .nav-left, .nav-right { flex: 1; }
    header.compact-header h2 { font-size: 1.8rem !important; }
}
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.5s ease;
}

/* reveal 애니메이션 기본값 */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}