/* ===== Reset & Base ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700&display=swap');
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css");

:root {
  --primary-color: #313141;
  --primary-dark: #1a1a4e;
  --secondary-color: #4a4a5f;
  --text-dark: #333333;
  --text-light: #ffffff;
  --text-gray: #888888;
  --border-color: #dddddd;
  --bg-light: #ffffff;
  --bg-gray: #f9f9f9;
  --accent: #4a90d9;
  --font-main: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

.mo-only {
  display: none;
}

.no-break {
  white-space: nowrap;
}



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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: #222;
    line-height: 1.6;
    overflow-x: hidden;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Scroll Reveal Utility ===== */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}
[data-reveal][data-delay="1"] { transition-delay: 0.1s; }
[data-reveal][data-delay="2"] { transition-delay: 0.2s; }
[data-reveal][data-delay="3"] { transition-delay: 0.3s; }
[data-reveal][data-delay="4"] { transition-delay: 0.4s; }
[data-reveal][data-delay="5"] { transition-delay: 0.5s; }
[data-reveal][data-delay="6"] { transition-delay: 0.6s; }

/* ===== Navigation ===== */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 60px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav-header.scrolled {
    background: rgba(26, 26, 40, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

/* Sub pages always show solid nav */
.nav-header.nav-solid {
    background: rgba(26, 26, 40, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.nav-inner {
    width: 100%;
    max-width: 1400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-left: 120px;
}

.nav-logo {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    z-index: 10;
    transition: opacity 0.3s;
}

.nav-logo:hover {
    opacity: 0.85;
}

.nav-logo img {
    height: 45px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-left: 250px;
}

.nav-menu a {
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s;
    white-space: nowrap;
    padding: 4px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #12121f;
    z-index: 1050;
    flex-direction: column;
}

.mobile-menu-overlay.active {
    display: flex;
}

.mobile-menu-header {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-logo {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
}

.mobile-close {
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.3s;
}
.mobile-close:hover { opacity: 0.7; }

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 50px 30px;
    gap: 4px;
}

.mobile-nav a {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: color 0.3s, padding-left 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-nav a::before {
    content: '';
    display: block;
    width: 4px;
    height: 22px;
    background: var(--primary-dark);
    border-radius: 2px;
    flex-shrink: 0;
    transition: background 0.3s;
}

.mobile-nav a:hover,
.mobile-nav a:active {
    color: #7db3e8;
    padding-left: 8px;
}
.mobile-nav a:hover::before { background: #7db3e8; }

/* ===== Floating Quick Links ===== */
.floating-quick {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, filter 0.3s;
    border-radius: 50%;
    overflow: hidden;
}

.floating-btn:hover {
    transform: scale(1.12);
    filter: brightness(1.1);
}

.floating-quick .floating-btn img {
    width: 60px;
    height: auto;
}

/* Blog Expandable Menu */
.blog-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.blog-sub-menu {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    display: flex;
    gap: 10px;
    margin-right: 15px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
    pointer-events: none;
}

.blog-wrap.active .blog-sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
}

.blog-sub-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    height: 48px;
    background: #03cf5d;
    color: #fff;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s, background 0.3s;
    white-space: nowrap;
}

.blog-sub-btn:hover {
    transform: translateY(-2px);
    background: #02b350;
}

/* ===== Footer ===== */
.site-footer {
    background: linear-gradient(135deg, #2a2a40 0%, #1e1e30 100%);
    color: #aaa;
    padding: 60px 60px 40px;
    font-size: 13px;
    line-height: 2;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 4px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-title {
    color: #e0e0ee;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
}

.footer-slogan {
    color: rgba(255,255,255,0.3);
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: 300;
}

.footer-sns {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.sns-group {
    display: flex;
    gap: 8px;
}

.footer-sns-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.3s, transform 0.3s;
    cursor: pointer;
}

.footer-sns-btn:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-2px);
}

.footer-sns-pill {
    height: 40px;
    padding: 0 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: #dedede;
    transition: background 0.3s, transform 0.3s, color 0.3s;
    cursor: pointer;
    white-space: nowrap;
}

.footer-sns-pill:hover {
    background: rgba(255,255,255,0.16);
    transform: translateY(-2px);
    color: #fff;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin: 20px 0 18px;
}

.footer-info {
    color: #777;
    font-size: 12.5px;
    line-height: 2;
}

.footer-info span {
    margin-right: 30px;
}

.footer-copyright {
    margin-top: 20px;
    color: #555;
    font-size: 11.5px;
    letter-spacing: 0.3px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .nav-header {
        padding: 0 30px;
    }

  .mo-only {
    display: inline;
  }

    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
        position: absolute;
        right: 0;
    }

    .nav-inner {
        justify-content: center;
        margin-left: 0;
    }

    .nav-logo {
        left: 0;
    }

    .nav-logo img {
        height: 35px;
    }

    .floating-quick {
        right: 15px;
        bottom: 20px;
        top: auto;
        transform: none;
        gap: 10px;
    }

    .floating-quick .floating-btn img {
        width: 50px;
    }

    .blog-sub-menu {
        gap: 8px;
        margin-right: 10px;
    }

    .blog-sub-btn {
        height: 40px;
        padding: 0 14px;
        font-size: 13px;
    }

    .site-footer {
        padding: 40px 20px 30px;
    }

    .footer-top {
        flex-direction: column;
        gap: 20px;
    }

    .footer-sns {
        justify-content: flex-start;
    }

    .footer-info span {
        display: block;
        margin-right: 0;
    }
}
