/* --- Global Styles & Resets --- */
:root {
    --primary-blue: #0A2463; /* Deep Navy Blue */
    --accent-blue: #4A90E2;  /* Sky Blue */
    --light-gray: #F8F9FA;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Noto Sans KR', sans-serif;
    --ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.8;
    background-color: var(--text-light);
    cursor: none; /* 기본 커서 숨기기 */
}
a, button {
    cursor: none; /* 링크/버튼도 커서 숨기기 */
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--font-heading); color: var(--primary-blue); font-weight: 700; }
h2 { font-size: 2.8rem; text-align: center; margin-bottom: 20px; }
.subtitle { text-align: center; font-size: 1.1rem; color: #666; margin-bottom: 60px; }
.content-section { padding: 100px 0; }
.bg-light { background-color: var(--light-gray); }

/* --- Interactive Custom Cursor --- */
.cursor-dot, .cursor-outline { pointer-events: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; z-index: 9999; }
.cursor-dot { width: 8px; height: 8px; background-color: var(--accent-blue); transition: transform 0.1s ease; }
.cursor-outline { width: 40px; height: 40px; border: 2px solid var(--accent-blue); transition: all 0.2s var(--ease-out-quint); }
.cursor-outline.hover { transform: scale(1.5); border-color: var(--primary-blue); }

/* --- Scroll Fade-in Animation --- */
.content-section { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.content-section.visible { opacity: 1; transform: translateY(0); }

/* --- Header & Navigation (Glassmorphism) --- */
header { padding: 25px 0; position: fixed; width: 100%; top: 0; left: 0; z-index: 1000; transition: all 0.4s var(--ease-out-quint); }
header.scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
}
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo a { font-family: var(--font-heading); font-size: 1.8rem; color: var(--primary-blue); text-decoration: none; font-weight: 700; }
nav { margin-right: auto; margin-left: 50px; } /* 로고와 메뉴 간격 */
nav ul { list-style: none; display: flex; gap: 30px; }
nav ul li a { text-decoration: none; color: var(--primary-blue); font-weight: 500; padding-bottom: 5px; position: relative; }
nav ul li a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background-color: var(--accent-blue); transition: width 0.3s var(--ease-out-quint); }
nav ul li a:hover::after { width: 100%; }

/* --- Language Switcher --- */
.lang-switcher { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--primary-blue); }
.lang-switcher a { text-decoration: none; color: #aaa; transition: color 0.3s ease; }
.lang-switcher a:hover { color: var(--primary-blue); }
.lang-switcher .active { font-weight: 700; color: var(--primary-blue); }

/* --- Hero Section (Video Background) --- */
.hero { position: relative; height: 100vh; display: flex; justify-content: center; align-items: center; text-align: center; color: var(--text-light); overflow: hidden; }
.hero-video { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); min-width: 100%; min-height: 100%; width: auto; height: auto; z-index: -1; }

.hero-content { position: relative; z-index: 1; max-width: 800px; }
h1.animated-headline {
    font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px; color: var(--text-light); display: flex; flex-wrap: wrap; justify-content: center; overflow: hidden;
}
h1.animated-headline span.word { display: inline-block; position: relative; white-space: nowrap; opacity: 0; transform: translateY(100%); animation: word-fade-in 1.2s var(--ease-out-quint) forwards; }
h1.animated-headline span.word:not(:last-child) { margin-right: 15px; }
@keyframes word-fade-in { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: translateY(0%); } }
.hero p { font-size: 1.2rem; margin-bottom: 30px; font-weight: 300; }

/* --- Buttons --- */
.btn { display: inline-block; padding: 15px 35px; border-radius: 50px; text-decoration: none; font-weight: 500; transition: all 0.3s var(--ease-out-quint); }
.btn-primary { background-color: var(--accent-blue); color: var(--text-light); }
.btn-primary:hover { background-color: #3a82d1; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.btn-secondary { background-color: transparent; color: var(--text-light); border: 2px solid var(--text-light); }
.btn-secondary:hover { background-color: var(--text-light); color: var(--primary-blue); }

/* --- About Section --- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.feature-item { transition: transform 0.3s var(--ease-out-quint); }
.feature-item:hover { transform: translateY(-5px); }
.feature-item h3 { font-size: 1.5rem; margin-bottom: 15px; }

/* --- Services Section (Animated SVG Icons) --- */
.service-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background-color: #ffffff; border-radius: 10px; padding: 40px 30px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: transform 0.3s var(--ease-out-quint), box-shadow 0.3s var(--ease-out-quint); }
.card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.card-icon { height: 64px; margin-bottom: 25px; color: var(--primary-blue); }
.animated-svg { width: 64px; height: 64px; }
.animated-svg path, .animated-svg polyline { stroke-dasharray: 500; stroke-dashoffset: 500; animation: draw-in 2s var(--ease-out-quint) forwards; }
.card:hover .animated-svg path, .card:hover .animated-svg polyline { animation: draw-out 2s var(--ease-out-quint) forwards; }
@keyframes draw-in { to { stroke-dashoffset: 0; } }
@keyframes draw-out { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 500; } }
.card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.card p { font-size: 1rem; line-height: 1.7; color: #555; }

/* --- Schools Section --- */
.school-logos { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 20px; }
.school-logo-item { padding: 20px 30px; border: 2px solid #e0e0e0; border-radius: 10px; font-family: var(--font-heading); font-size: 1.2rem; color: #888; transition: all 0.4s var(--ease-out-quint); }
.school-logo-item:hover { transform: perspective(1000px) rotateX(10deg) rotateY(-10deg) scale(1.1); box-shadow: 0 15px 30px rgba(0,0,0,0.1); color: var(--primary-blue); border-color: var(--accent-blue); }

/* --- CTA Section --- */
.cta-section { background-color: var(--primary-blue); color: var(--text-light); padding: 80px 0; text-align: center; }
.cta-section h2 { color: var(--text-light); font-size: 2.5rem; }
.cta-section p { font-size: 1.1rem; margin-bottom: 30px; }

/* --- Footer --- */
footer { background-color: #051433; color: #aab2c7; padding: 40px 0; text-align: center; font-size: 0.95rem; line-height: 1.8; }
footer p { margin-bottom: 8px; } footer p:last-child { margin-bottom: 0; }
footer a { color: #cdd3e3; text-decoration: none; transition: color 0.3s ease; }
footer a:hover { color: #ffffff; text-decoration: underline; }
footer strong { color: #ffffff; }
footer .copyright { margin-top: 20px; font-size: 0.8rem; opacity: 0.7; }
.production-credit { margin-top: 25px; font-size: 0.8rem; opacity: 0.6; }
.production-credit a { opacity: 0.8; text-decoration: none; }
.production-credit a:hover { opacity: 1; }
.glitter-text { position: relative; display: inline-block; background: linear-gradient(135deg, var(--accent-blue) 20%, #ffffff 50%, var(--accent-blue) 80%); background-size: 200% auto; color: #fff; background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: glitter-shine 4s linear infinite; overflow: hidden; }
@keyframes glitter-shine { to { background-position: -200% center; } }

/* --- Floating Bar --- */
.floating-bar { position: fixed; bottom: 25px; right: 25px; z-index: 1000; }
.floating-bar a { display: flex; align-items: center; background-color: var(--primary-blue); color: white; padding: 12px 20px; border-radius: 50px; text-decoration: none; font-size: 1rem; font-weight: 500; box-shadow: 0 5px 15px rgba(0,0,0,0.2); transition: all 0.3s var(--ease-out-quint); }
.floating-bar a:hover { transform: scale(1.05); box-shadow: 0 8px 25px rgba(10, 36, 99, 0.4); }
.floating-bar .icon-phone { font-size: 1.2rem; margin-right: 10px; animation: phone-shake 1.5s infinite; }
.floating-bar .text { }
@keyframes phone-shake { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(-15deg); } 75% { transform: rotate(15deg); } }

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .cursor-dot, .cursor-outline { display: none; } body, a, button { cursor: default; }
    h1.animated-headline { font-size: 2.2rem; }
    h1.animated-headline span.word:not(:last-child) { margin-right: 8px; }
    h2 { font-size: 2rem; }
    header { position: static; background-color: white; padding: 15px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
    header.scrolled { padding: 15px 0; }
    header .container { flex-direction: column; gap: 15px; }
    nav { margin: 0; }
    nav ul { gap: 15px; justify-content: center; flex-wrap: wrap; }
    .lang-switcher { order: -1; margin-bottom: 10px; } /* 언어 선택을 메뉴 위로 */
    .feature-grid { grid-template-columns: 1fr; }
    .content-section { padding: 60px 20px; }
    .floating-bar .text { display: none; }
    .floating-bar a { padding: 15px; }
    .floating-bar .icon-phone { margin-right: 0; }
    .glitter-text { animation: none; -webkit-text-fill-color: var(--accent-blue); }
}