/* 한시십분 - 공통 스타일 시트 */

/* Google Fonts - 프리텐다드 */
@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@300;400;500;600;700;800;900&display=swap');


:root {

    /*----------- 브랜드 컬러-------- */
    --primary-blue: #10069F;
    --secondary-blue: #0123B4;
    --accent-blue: #001C91;

    /* 기본 컬러 */
    --white: #ffffff;
    --black: #000000;
    --dark-bg: #0a0a0f;           /* 매우 어두운 네이비 */
    --dark-secondary: #0f0a1a;    /* 보조 어두운 색 */
    --dark-tertiary: #0a0f1a;     /* 삼차 어두운 색 */
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;


  /*------ 파스텔 사이버 컬러 시스템----- */
    /* 메인 파스텔 컬러 */
    --pastel-purple: #dfceff;     /* 파스텔 보라 */
    --pastel-sky: #b5eaff;        /* 파스텔 하늘색 */
    --pastel-pink: #f8bbbb;       /* 파스텔 핑크 */
    --pastel-mint: #b5dbd8;       /* 파스텔 민트 */
    
    /* 연한 색조 */
    --light-purple: #E6E6FA;      /* 연한 보라 */
    --light-sky: #F0F8FF;         /* 연한 하늘색 */
    --light-pink: #FFE4E1;        /* 연한 핑크 */
    --light-mint: #F0FFFF;        /* 연한 민트 */
    
    /* 진한 색조 */
    --deep-purple: #9370DB;       /* 진한 보라 */
    --deep-sky: #4682B4;          /* 진한 하늘색 */
    --deep-pink: #C71585;         /* 진한 핑크 */
    --deep-mint: #20B2AA;         /* 진한 민트 */
  
    /* 글라스모피즘 */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-light: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-light: rgba(255, 255, 255, 0.08);
    
    /* 그라데이션 */
    --gradient-primary: linear-gradient(135deg, var(--pastel-purple) 0%, var(--pastel-sky) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--pastel-pink) 0%, var(--pastel-mint) 100%);
    --gradient-bg: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-secondary) 50%, var(--dark-tertiary) 100%);
    
    /* 그림자 */
    --shadow-soft: 0 8px 32px rgba(185, 156, 217, 0.1);
    --shadow-medium: 0 15px 35px rgba(185, 156, 217, 0.2);
    --shadow-strong: 0 25px 50px rgba(185, 156, 217, 0.3);
    
    /* 반응형 브레이크포인트 */
    --mobile: 320px;
    --tablet: 768px;
    --desktop: 1024px;
    --wide: 1280px;

    /* 줄간격 */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;

    /* 폰트 두께 */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;


    }

/* 기본 리셋 및 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* 기본 폰트 크기 */
}

body {
    font-family: 'Pretendard', 
                 'Malgun Gothic', 
                 'Apple SD Gothic Neo', 
                 'Noto Sans KR', 
                 '맑은 고딕', 
                 'Helvetica Neue', 
                 'Arial', 
                 'sans-serif';
    line-height: 1.6;
    color: var(--white);
    background: var(--gradient-bg);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 메인 컨테이너 */
.main-container {
    
    margin: 0 auto;
    min-height: calc(100vh - 80px);
   
}


/* 스크롤바 스타일링 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--deep-purple);
}


/* 공통 헤더 스타일 */
.header {
    background: var(--glass-bg-light);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(185, 156, 217, 0.2);
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: var(--glass-bg);
    border-bottom-color: rgba(185, 156, 217, 0.3);
    box-shadow: var(--shadow-soft);
}

.header-container {
    max-width: var(--wide);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 로고 스타일 */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: gentleShift 4s ease-in-out infinite;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(185, 156, 217, 0.5));
}

/* 네비게이션 스타일 */
.nav {
    display: none; /* 모바일에서 숨김 */
}

.nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link:hover {
    color: var(--pastel-purple);
    transform: translateY(-2px);
}

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

.nav-link.active {
    color: var(--pastel-sky);
}

.nav-link.active::after {
    width: 100%;
}

/* 모바일 메뉴 토글 */
.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: var(--glass-bg);
    color: var(--pastel-purple);
}

/* 모바일 메뉴 */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
}

.mobile-nav-link {
    font-size: 1.5rem;
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    padding: 1rem 2rem;
    border-radius: 15px;
}

.mobile-nav-link:hover {
    background: var(--glass-bg);
    color: var(--pastel-purple);
    transform: scale(1.05);
}


/* 공통 섹션 스타일 */
.section {
    padding: 3rem 1.5rem;
    min-height: 80vh;
}

.section-header {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 2rem auto;
    line-height: 1.7;
}

/* 글라스모피즘 카드 */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(185, 156, 217, 0.1), rgba(135, 206, 235, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(185, 156, 217, 0.3);
    box-shadow: var(--shadow-medium);
}

/* 공통 버튼 스타일 */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 2px solid;
    border-image: var(--gradient-primary) 1;
    color: var(--white);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(185, 156, 217, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--gradient-secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* 공통 폼 스타일 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--white);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input:focus {
    outline: none;
    border-color: var(--pastel-purple);
    box-shadow: 0 0 20px rgba(185, 156, 217, 0.3);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* 그리드 시스템 */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* 유틸리티 클래스 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.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-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-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

/* 애니메이션 클래스 */
.fade-in {
    opacity: 1;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 글리치 효과 */
.glitch-text {
    position: relative;
    animation: gentle-glow 3s ease-in-out infinite alternate;
}

@keyframes gentle-glow {
    0% { text-shadow: 0 0 5px rgba(185, 156, 217, 0.5); }
    100% { text-shadow: 0 0 20px rgba(185, 156, 217, 0.8), 0 0 30px rgba(135, 206, 235, 0.5); }
}

/* 태블릿 반응형 */
@media (min-width: 768px) {
    .nav {
        display: block;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .section {
        padding: 5rem 2rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* 데스크톱 반응형 */
@media (min-width: 1024px) {
    .section {
        padding: 6rem 2rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .header-container {
        padding: 0 2rem;
    }
    
    .nav-list {
        gap: 3rem;
    }
    
    .nav-link {
        font-size: 1rem;
    }
}

/* 와이드 스크린 */
@media (min-width: 1280px) {
    .section {
        padding: 8rem 3rem;
    }
}