:root {
    --primary: #3399D1;
    --primary-dark: #2780B8;
    --primary-light: rgba(51, 153, 209, 0.1);
    --bg-dark: #0A0A0F;
    --bg-darker: #050508;
    --bg-card: #12121A;
    --bg-card-hover: #1A1A25;
    --text-primary: #FFFFFF;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    --accent-blue: #3B82F6;
    --accent-green: #10D9A0;
    --accent-purple: #8B5CF6;
    --gradient-1: linear-gradient(135deg, #3399D1 0%, #5BB5E8 50%, #7DD3F0 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Noto Sans KR', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* ===== 애니메이션 ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
/* 나타났다 사라지는 애니메이션 */
@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, 10px); }
    15% { opacity: 1; transform: translate(-50%, 0); }
    85% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -10px); }
}

/* ===== 공통 유틸리티 ===== */
.animate-in { animation: fadeInUp 0.8s ease-out forwards; }
.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }

.fs-10{ font-size: 10px; !important; }
.fs-15{ font-size: 15px; !important; }
.fs-20{ font-size: 20px; !important; }
.fs-25{ font-size: 25px; !important; }
.fs-30{ font-size: 30px; !important; }
.fs-35{ font-size: 35px; !important; }
.fs-40{ font-size: 40px; !important; }
.fs-50{ font-size: 50px; !important; }
.fs-60{ font-size: 60px; !important; }

.primary-color{ color: var(--primary) !important; }
.secondary-color { color: var(--text-secondary) !important; }
.white-color { color: var(--text-primary) !important; }
.black-color { color : black !important; }

.d-flex{ display: flex; !important; }
.align-items-center { align-items: center; !important; }
.justify-content-center{ justify-content: center; !important; }
.justify-content-end{ justify-content: flex-end; !important; }
.flex-column { flex-direction:column; !important;}
.text-center { text-align: center; !important; }
.cursor-pointer { cursor: pointer; }

.fw-4 { font-weight: 400 !important; }
.fw-6 { font-weight: 600 !important; }
.fw-7 { font-weight: 700 !important; }
.lh-2 { line-height: 1.8; !important; }

.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 12px !important; }
.mt-5 { margin-top: 20px !important; }
.mt-7 { margin-top: 28px !important; }
.mt-15 { margin-top: 60px !important; }
.mb-3 { margin-bottom: 12px; !important; }
.mb-4 { margin-bottom: 16px; !important; }
.mb-5 { margin-bottom: 20px; !important; }
.mb-10 { margin-bottom: 40px; !important; }
.mb-15 { margin-bottom: 60px; !important; }
.mb-25 { margin-bottom: 100px; !important; }

.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

/* ===== 네비바 ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*transition: all 0.3s ease;*/
}
.nav.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 60px;
}
.nav-logo {
    font-family: 'Sora', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
}
.nav-logo span { color: var(--primary); }
.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}
.nav-menu a, .nav-menu span {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
}
.nav-menu a:hover, .nav-menu span:hover,
.nav-menu a.active, .nav-menu span.active { color: var(--primary); }
.nav-menu a::after, .nav-menu span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    transition: width 0.3s ease;
}
.nav-menu a:hover::after, .nav-menu span:hover::after,
.nav-menu a.active::after, .nav-menu span.active::after { width: 100%; }

/* 햄버거 메뉴 버튼 - 기본적으로 숨김 */
.hamburger-button {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
    background: none;
    border: none;
}
.hamburger-button span {
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger-button.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}
.hamburger-button.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-button.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 모바일 메뉴 오버레이 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}
/* 모바일 메뉴 패널 */
.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    max-width: 85vw;
    height: 100vh;
    background: var(--bg-card);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 100px 40px 40px;
}
.mobile-menu-panel.active {
    transform: translateX(0);
}
.mobile-menu-section {
    margin-bottom: 40px;
}
.mobile-menu-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-left: 4px;
}
.mobile-menu-list {
    list-style: none;
}
.mobile-menu-list a,
.mobile-menu-list span {
    display: block;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.3s ease, color 0.3s ease;
    cursor: pointer;
}
.mobile-menu-list a:hover,
.mobile-menu-list span:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}
.mobile-menu-list .submenu a:hover,
.mobile-menu-list .submenu span:hover {
    color: var(--text-primary);
}

/* TOP 메뉴 스타일 */
.nav-menu > li {
    position: relative;
}
.nav-menu > li > a,
.nav-menu > li > span {
    display: block;
    padding: 12px 24px;
}

/* 서브메뉴 스타일 */
.nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: rgba(18, 18, 26, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    padding: 12px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-menu > li:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-submenu li {
    margin: 0;
}
.nav-submenu li a,
.nav-submenu li span {
    display: block;
    padding: 12px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.3s ease, background 0.3s ease;
    cursor: pointer;
    border-left: 3px solid transparent;
}
.nav-submenu li a:hover,
.nav-submenu li span:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
    border-left-color: var(--primary);
}

/* ===== 페이지 섹션 ===== */
.content-section {
    display: none;
}
.content-section.active {
    display: block;
}
.content-section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.content-section-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

/* ===== page hero - 각 페이지 최 상단 문구 ===== */
.gradient {
    background: linear-gradient(135deg, #2E8BFF, #00D4FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.page-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 60px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0D0D14 100%);
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    border-radius: 50%;
    top: -200px;
    right: -200px;
    left: 0;
    width: 800px;
    height: 800px;
    animation: pulse 4s ease-in-out infinite;
    background: radial-gradient(circle, rgba(51, 153, 209, 0.08) 0%, transparent 70%);
}
.page-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1800px;
    margin: 0 auto;
}
.page-hero-tag {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
    padding: 8px 16px;
    background: rgba(51, 153, 209, 0.1);
    border-radius: 20px;
}
.page-hero-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-primary);
}
.page-hero-title .highlight {
    background: var(--gradient-1);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}
.page-hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 1800px;
    margin: 0 auto;
}
.page-layout {
    display: flex;
    min-height: 100vh;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 60px;
    position: relative;
}
.page-content {
    flex: 0 0 auto;
    padding: 60px 0;
    max-width: 1800px;
    width: 100%
}

/* ===== 문의하기 관련 ===== */
/* 클립보드 메세지 */
.copy-wrap{
    position: relative;
    display: inline-block;
}
.copy-toast{
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffffcf;
    color: var(--bg-darker);
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 1.125rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, bottom 0.25s ease, transform 0.25s ease;
}
.copy-toast.show{
    opacity: 1;
    bottom: 140%;
}
.cta-section {
    position: relative;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    margin-top: 80px;
    border: 1px solid rgba(51, 153, 209, 0.1);
}
.cta-section h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #999;
    margin-bottom: 6px;
    text-align: center;
}
.cta-section p {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 400;
    margin-bottom: 15px;
}
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: white;
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(51, 153, 209, 0.3);
}
.icon-button img {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.icon-button img:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(51, 153, 209, 0.3);
}
.momo-button{
    background: #F7A1F9;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.momo-button:hover {
    background: #F7A1F9;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(247, 161, 249, 0.4);
}

/* ===== footer ===== */
.footer {
    background: var(--bg-darker);
    padding: 80px 60px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    /*margin-bottom: 60px;*/
}
.footer-brand {
    max-width: 415px;
}
.footer-logo {
    font-family: 'Sora', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.footer-logo span { color: var(--primary); }
.footer-brand p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}
.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-section ul {
    list-style: none;
}
.footer-section ul li {
    margin-bottom: 12px;
}
.footer-section ul li a,
.footer-section ul li span {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    cursor: pointer;
}
.footer-section ul li a:hover,
.footer-section ul li span:hover {
    color: var(--text-primary);
}
.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 40px;
    /*border-top: 1px solid rgba(255, 255, 255, 0.05);*/
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* ===== back to top(위로 이동) ===== */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, background 0.3s ease, transform 0.3s ease;
    z-index: 100;
    color: white;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
}

/* ===== Contact Section ===== */
/* (about, dashboard) */
.contact-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 60px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0D0D14 100%);
    position: relative;
    overflow: hidden;
}

/* Content Section Header (연혁 등) - about, reference */
.content-section-header {
    margin-bottom: 60px;
    text-align: center;
}

.contact-section::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(51, 153, 209, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite;
}
.contact-content {
    text-align: center;
    position: relative;
    z-index: 10;
    max-width: 1000px;
}
.contact-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 50px;
    color: var(--text-primary);
}
.contact-title .highlight {
    color: var(--primary);
    display: block;
    margin-top: 10px;
}
.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 50px;
    background: var(--primary);
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 10px 30px rgba(51, 153, 209, 0.3);
}
.contact-button:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(51, 153, 209, 0.5);
}
.contact-button svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}
.contact-button:hover svg {
    transform: translateX(5px);
}

/* ===== 스크롤 등장 애니메이션 ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.scroll-reveal h2 {
    font-size: 1.875em; font-weight: 700; margin-bottom: 8px;
}
.scroll-reveal h3 {
    font-size:1.75rem;
		font-weight: 600; color: #999; margin-bottom: 6px; text-align: center;"
}
.scroll-reveal .content {
    font-size:1rem;
		color: var(--text-secondary); line-height: 1.9; max-width: 1200px; margin: 40px Auto;
}
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.scroll-reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.scroll-reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.scroll-reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}
/* 스테이지별 딜레이 */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }


/* ===== 반응형 ===== */
@media (max-width: 1200px) {
    .nav-menu { gap: 25px; }
    .nav-menu a, .nav-menu span { font-size: 13px; }
}
@media (max-width: 1024px) {
    .nav { padding: 15px 40px; }
    .nav.scrolled { padding: 12px 40px; }
    .nav-menu { gap: 20px; }
    .nav-menu a, .nav-menu span { font-size: 12px; padding: 10px 16px; }
    .page-layout { padding: 0 25px; }
    .page-content { padding: 40px 0; max-width: 100%; width: 100%; }
    .page-hero-content { max-width: 100%; }
    .scroll-reveal h3 { font-size: 1.3rem; }
    .scroll-reveal p { font-size: 1rem; }
    .cta-section h3{ font-size: 1.3rem; }
    .cta-section p { font-size: 1rem; }
}
/* 반응형: 992px 이하에서 햄버거 메뉴 표시 */
@media (max-width: 992px) {
    .nav { padding: 20px 30px; }
    .nav.scrolled { padding: 15px 30px; }

    /* 데스크톱 TOP 메뉴 숨김 */
    .nav-menu { display: none; }

    /* 햄버거 버튼 표시 */
    .hamburger-button { display: flex; }
}
@media (max-width: 768px) {
    .nav { padding: 15px 20px; }
    .nav.scrolled { padding: 12px 20px; }
    .nav-menu{ padding: 100px 20px 60px; }
    .page-hero { padding: 80px 30px; }
    .page-layout { padding: 0 20px; flex-direction: column; }
    .page-content { padding: 40px 0; max-width: 100%; width: 100%; }
    .page-hero-content { max-width: 100%; padding: 0 20px; }
    .contact-title { font-size: 1.5rem; }
    .contact-button { padding: 18px 40px; font-size: 1.1rem; }

    .footer-content { grid-template-columns: 1fr; gap: 40px; }
}
