/* =========================================
   1. 전역 변수 설정 (중복 없음)
   ========================================= */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-color: #2563eb;
    --light-bg: #ffffff;
    --card-bg: rgba(248, 250, 252, 0.8);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: rgba(226, 232, 240, 0.8);
    --success-color: #059669;
    --warning-color: #d97706;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(226, 232, 240, 0.6);
}

/* =========================================
   2. 기본 초기화 및 레이아웃
   ========================================= */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: var(--light-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

/* =========================================
   3. 공통 헤더 (Header) 및 네비게이션
   ========================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.nav-menu { 
    display: flex; 
    list-style: none; 
    gap: 2rem; 
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.nav-menu a.active { 
    color: var(--accent-color); 
    font-weight: 700; 
}

/* 네비게이션 하단 활성선 효과 */
.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.cta-button {
    padding: 0.6rem 1.2rem;
    background: var(--primary-gradient);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* =========================================
   4. 배경 요소 및 시각 효과
   ========================================= */
.bg-overlay {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.05) 0%, transparent 50%);
    z-index: -2;
    pointer-events: none;
}

.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    animation: float 20s infinite linear;
}

.shape:nth-child(1) {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    top: 20%;
    left: 10%;
    animation-delay: -2s;
}

.shape:nth-child(2) {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, rgba(37, 99, 235, 0.08), rgba(102, 126, 234, 0.08));
    top: 60%;
    right: 20%;
    animation-delay: -8s;
}

.shape:nth-child(3) {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, rgba(118, 75, 162, 0.08), rgba(37, 99, 235, 0.08));
    top: 80%;
    left: 60%;
    animation-delay: -15s;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}

/* =========================================
   5. 공통 메인 컨테이너
   ========================================= */
.main-content {
    min-height: 100vh;
    padding-top: 80px; /* 헤더 높이만큼 여백 */
}

/* =========================================
   6. 개발 중 페이지 (Maintenance)
   ========================================= */
.maintenance-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
    padding: 0 20px;
}

.icon-box {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

.maintenance-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.maintenance-text {
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.progress-bar,
.progress-bar-container {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 10px;
    transition: width 0.3s ease;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* =========================================
   7. 공통 Footer 스타일
   ========================================= */
.footer {
    margin-top: 100px;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.footer-bottom {
    text-align: center;
}

.company-details {
    margin-bottom: 15px;
}

.company-details p {
    margin: 5px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.company-details strong {
    color: var(--text-primary);
}

.company-details a {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.company-details a:hover {
    opacity: 0.8;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* =========================================
   8. 공통 애니메이션
   ========================================= */
@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* =========================================
   9. 공통 카드 스타일
   ========================================= */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* =========================================
   10. 공통 버튼 스타일
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

/* =========================================
   11. 공통 폼 스타일
   ========================================= */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* =========================================
   12. 유틸리티 클래스
   ========================================= */
.mono-text {
    font-family: 'JetBrains Mono', monospace;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

.hidden { display: none; }
.visible { display: block; }

/* =========================================
   13. 모바일 최적화 (반응형)
   ========================================= */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu { 
        display: none; 
    }
    
    .header-container {
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .maintenance-title {
        font-size: 2rem;
    }
    
    .maintenance-text {
        font-size: 1rem;
    }
    
    .icon-box {
        font-size: 3rem;
    }
    
    .footer {
        margin-top: 60px;
        padding: 30px 0;
    }
    
    .company-details p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding-top: 70px;
    }
    
    .maintenance-container {
        padding: 0 15px;
    }
    
    .progress-bar,
    .progress-bar-container {
        max-width: 280px;
    }
}

/* =========================================
   14. 다크모드 지원 (미래 확장용)
   ========================================= */
@media (prefers-color-scheme: dark) {
    /* 다크모드가 필요할 때 여기에 추가 */
}

/* =========================================
   15. 고대비 접근성 지원
   ========================================= */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-secondary: #000000;
    }
}

/* =========================================
   16. 모션 줄이기 (접근성)
   ========================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .shape {
        animation: none;
    }
}