/* 다크모드 강제 무시 */
:root { color-scheme: light; }

/* Variables */
:root {
    --primary: #3182ce;
    --secondary: #2c5282;
    --dark-blue: #1a365d;
    --text: #1a202c;
    --text-dim: #718096;
    --light: #ebf8ff;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
canvas { display: block; }

/* Base */
body {
    font-family: 'Noto Sans KR', sans-serif;
    background: #f7fafc;
    color: var(--text);
    line-height: 1.7;
    word-break: keep-all;
}

/* Top Navigation */
.site-top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(235, 248, 255, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 15px rgba(49, 130, 206, 0.1);
    border-bottom: 1px solid rgba(49, 130, 206, 0.12);
}

.top-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.8rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-nav-logo {
    display: inline-block;
    text-decoration: none;
}

.top-nav-logo img {
    height: 28px;
    display: block;
}

.top-nav-links {
    display: flex;
    gap: 2rem;
}

.top-nav-link {
    color: #2c5282;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
}

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

.top-nav-link:hover { color: var(--primary); }
.top-nav-link:hover::after { width: 100%; }
.top-nav-link.active { color: var(--primary); }
.top-nav-link.active::after { width: 100%; }

/* Nav Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.nav-arrow { font-size: 0.65rem; transition: transform 0.2s; }
.nav-dropdown:hover .nav-arrow { transform: rotate(180deg); }
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    min-width: 200px;
    padding: 0.5rem 0;
    padding-top: calc(0.5rem + 8px);
    margin-top: 8px;
    z-index: 100;
}
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-item {
    display: block;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.2s;
}
.nav-dropdown-item:hover { background: #f0f5ff; color: var(--primary); }
.nav-dropdown-item.active { color: var(--primary); font-weight: 700; }

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.grid-overlay {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(49, 130, 206, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(49, 130, 206, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 15s ease-in-out infinite;
}

.orb-1 { width: 400px; height: 400px; background: #ebf8ff; top: 10%; left: 10%; animation-delay: 0s; }
.orb-2 { width: 300px; height: 300px; background: #bee3f8; top: 60%; right: 15%; animation-delay: 3s; }
.orb-3 { width: 350px; height: 350px; background: #c3dafe; bottom: 10%; left: 50%; animation-delay: 6s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.6s ease; }

/* Page Layout */
.page-content {
    position: relative;
    z-index: 1;
    padding: 6rem 5% 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: #ebf8ff;
    border: 1px solid #bee3f8;
    border-radius: 30px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--dark-blue);
}

.section-desc {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Footer */
.site-footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 3rem 5%;
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
}

.footer-brand h3 {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 0.8rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: var(--text-dim);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-social-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.3s;
}

.footer-social-link:hover {
    color: var(--primary);
}

.footer-contact {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer-contact h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 0.8rem;
}

.footer-bottom {
    max-width: 1400px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f4f8;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* Hero (homepage) */
.hero { background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #3182ce 100%); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: linear-gradient(30deg, transparent 48%, rgba(255,255,255,0.03) 50%, transparent 52%), linear-gradient(60deg, transparent 48%, rgba(255,255,255,0.03) 50%, transparent 52%); background-size: 50px 50px; animation: grid-move 20s linear infinite; }
@keyframes grid-move { 0% { transform: translate(0, 0); } 100% { transform: translate(50px, 50px); } }

/* Assessment */
.assessment-option { cursor: pointer; transition: all 0.3s; }
.assessment-option:hover { background: #ebf8ff !important; border-color: var(--primary) !important; }
.assessment-option.selected { background: var(--primary) !important; color: white !important; border-color: var(--secondary) !important; }
.assessment-hidden { display: none !important; }

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #2c5282;
    border-radius: 2px;
    transition: all 0.3s;
}

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

/* Responsive */
@media (max-width: 768px) {
    .section-title { font-size: 2.2rem; }
    .page-content { padding: 5rem 4% 3rem; }
    .footer-inner { flex-direction: column; gap: 2rem; }

    .mobile-menu-btn { display: flex; }

    .top-nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(235, 248, 255, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(49, 130, 206, 0.12);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    }

    .top-nav-links.open { display: flex; }

    .top-nav-link {
        padding: 0.8rem 5%;
        font-size: 0.95rem;
    }

    .top-nav-link::after { display: none; }

    .top-nav-inner { position: relative; }

    .nav-dropdown-menu {
        display: none;
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        min-width: 0;
        padding: 0;
        background: transparent;
    }
    .nav-dropdown.open .nav-dropdown-menu { display: block; }
    .nav-dropdown-item { padding: 0.6rem 5% 0.6rem 8%; font-size: 0.85rem; }
    .nav-dropdown-btn { padding: 0.8rem 5%; font-size: 0.95rem; width: 100%; justify-content: space-between; }
}
