/* ════════════════════════════════════════════════
   A-Tec 연구소 | Main Stylesheet
   AI로 가르치고, 디지털로 출판하다.
   ════════════════════════════════════════════════ */

/* ─── CSS VARIABLES ─── */
:root {
  --primary: #14406B;
  --primary-light: #1E5A8E;
  --primary-dark: #0C2B4B;
  --accent: #A9822F;
  --accent-glow: #C9A85C;
  --accent-soft: #A9822F;
  --bg-dark: #FFFFFF;
  --bg-section: #F5F7FA;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F0F4FA;
  --text-white: #1A2332;
  --text-muted: #5A6A7E;
  --text-dim: #8895A7;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.16);
  --gradient-hero: linear-gradient(160deg, #F7FAFD 0%, #EDF3F9 60%, #E4EDF6 100%);
  --gradient-accent: linear-gradient(135deg, var(--primary), var(--primary-light));
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 4px 20px rgba(20, 64, 107, 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: #FFFFFF;
  color: #0D1B2A;
  overflow-x: hidden;
  line-height: 1.7;
}

/* ─── LOADER ─── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  text-align: center;
}

.loader-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.loader-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--gradient-accent);
  border-radius: var(--radius-md);
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: #1A2332;
}

.loader-text span {
  color: var(--accent);
  font-weight: 300;
  font-size: 1rem;
  margin-left: 0.3rem;
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(20, 64, 107,0.1);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto;
}

.loader-bar-fill {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 10px;
  animation: loaderFill 1.5s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(20, 64, 107,0.3); }
  50% { transform: scale(1.05); box-shadow: 0 0 20px 5px rgba(20, 64, 107,0.15); }
}

@keyframes loaderFill {
  0% { width: 0; margin-left: 0; }
  50% { width: 100%; margin-left: 0; }
  100% { width: 0; margin-left: 100%; }
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.2rem 0;
  transition: var(--transition);
  background: transparent;
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.65rem 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.05);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.5px;
  color: #1A2332;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.02);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gradient-accent);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  color: white;
  transition: var(--transition);
}

.logo:hover .logo-mark {
  box-shadow: 0 0 20px rgba(20, 64, 107,0.3);
}

.logo span {
  color: var(--accent);
  font-weight: 300;
  font-size: 0.85rem;
  margin-left: 0.3rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0;
  transition: color 0.2s;
  position: relative;
  padding: 0.3rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 1px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-white);
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
  z-index: 110;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1A2332;
  transition: var(--transition);
  border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: var(--text-white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  opacity: 1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 64, 107, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 64, 107, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
}

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

#heroParticles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-orb {
  display: none;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  top: -100px;
  right: -100px;
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: var(--primary-light);
  bottom: -50px;
  left: 10%;
  animation-delay: -4s;
}

.hero-orb-3 {
  width: 200px;
  height: 200px;
  background: #6C63FF;
  top: 40%;
  right: 20%;
  animation-delay: -2s;
  opacity: 0.15;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -30px) scale(1.1); }
}

.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(20, 64, 107, 0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--primary);
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.85);
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
  backdrop-filter: blur(10px);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-glow);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(201, 168, 92, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(201, 168, 92, 0); }
}

.hero h1 {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease 0.15s forwards;
  opacity: 0;
  letter-spacing: -1px;
  color: var(--primary-dark);
}

.hero h1 .highlight {
  color: var(--primary-light);
}

.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--accent);
  margin-left: 2px;
  animation: blink 0.8s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  font-weight: 300;
  animation: fadeUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  animation: fadeUp 0.8s ease 0.45s forwards;
  opacity: 0;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: -6rem;
  left: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  animation: fadeUp 0.8s ease 0.6s forwards;
  opacity: 0;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(20, 64, 107, 0.35);
  border-radius: 12px;
  position: relative;
  display: flex;
  justify-content: center;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 6px;
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

.hero-scroll-indicator span {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: 'Noto Sans KR', sans-serif;
  position: relative;
  overflow: hidden;
}

.btn i {
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 4px 20px rgba(20, 64, 107,0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(20, 64, 107,0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 1px solid var(--border);
}

.hero .btn-outline {
  color: var(--primary);
  border-color: rgba(20, 64, 107, 0.35);
}

.hero .btn-outline:hover {
  background: rgba(20, 64, 107, 0.06);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: rgba(20, 64, 107,0.05);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-submit {
  width: fit-content;
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* ─── SECTIONS ─── */
section {
  padding: 7rem 2rem;
}

.section-dark {
  background: var(--bg-section);
  border-top: 1px solid rgba(20, 64, 107,0.07);
  border-bottom: 1px solid rgba(20, 64, 107,0.07);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-label {
  display: inline-block;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-light);
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  padding: 0.3rem 0.9rem;
  background: rgba(20, 64, 107,0.06);
  border: 1px solid rgba(20, 64, 107,0.15);
  border-radius: 100px;
}

.section-title {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.5px;
  color: var(--primary-dark);
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.8;
  font-weight: 400;
  margin: 0 auto;
}

/* ─── ABOUT ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  position: relative;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.about-visual:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.about-visual-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.about-icon-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.about-icon-ring::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(20, 64, 107,0.12);
}

.about-icon-ring::after {
  content: '';
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 1px solid rgba(20, 64, 107,0.06);
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.about-icon-ring svg {
  width: 48px;
  height: 48px;
  color: var(--primary-light);
}

.about-stats {
  display: flex;
  gap: 2.5rem;
}

.about-stat {
  text-align: center;
}

.about-stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
}

.about-stat-num::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--primary-light);
}

.about-stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.3rem;
}

.about-text h3 {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  position: relative;
  padding-left: 1rem;
  letter-spacing: -0.3px;
  color: #0D1B2A;
}

.about-text h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.about-text p {
  color: var(--text-muted);
  line-height: 1.9;
  font-weight: 300;
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.about-text p strong {
  color: var(--primary);
  font-weight: 500;
}

.about-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.about-value-tag {
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(20, 64, 107,0.15);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--primary);
  background: rgba(20, 64, 107,0.04);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.about-value-tag i {
  font-size: 0.75rem;
}

.about-value-tag:hover {
  background: rgba(20, 64, 107,0.08);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

/* ─── BRAND IDENTITY ─── */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.brand-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.brand-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.4s;
}

.brand-card:hover {
  transform: translateY(-6px);
  border-color: rgba(20, 64, 107,0.2);
  box-shadow: 0 16px 48px rgba(20, 64, 107,0.1);
}

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

.brand-letter {
  font-family: 'Noto Serif KR', serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.brand-word {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 0.3rem;
}

.brand-meaning {
  font-size: 0.8rem;
  color: var(--primary-light);
  margin-bottom: 1rem;
  font-weight: 400;
}

.brand-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
}

.brand-icon {
  position: absolute;
  bottom: -10px;
  right: -5px;
  font-size: 4rem;
  color: rgba(20, 64, 107,0.04);
  transition: var(--transition);
}

.brand-card:hover .brand-icon {
  color: rgba(20, 64, 107,0.08);
}

.brand-footer {
  text-align: center;
}

.brand-lab {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.5rem 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.brand-lab:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.brand-lab-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(20, 64, 107,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.brand-lab-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: left;
  line-height: 1.6;
}

.brand-lab-text strong {
  color: var(--primary);
}

/* ─── SERVICES ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 64, 107,0.2);
  box-shadow: 0 16px 48px rgba(20, 64, 107,0.1);
}

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

.service-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: rgba(20, 64, 107,0.08);
  line-height: 1;
  transition: var(--transition);
  letter-spacing: -1px;
}

.service-card:hover .service-number {
  color: var(--primary-light);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(20, 64, 107,0.08), rgba(169, 130, 47, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  color: var(--accent);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 4px 16px rgba(20, 64, 107,0.2);
}

.service-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  color: #0D1B2A;
  letter-spacing: -0.2px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 1.2rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.service-tags span {
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(20, 64, 107,0.04);
  border: 1px solid rgba(20, 64, 107,0.08);
  transition: var(--transition);
}

.service-card:hover .service-tags span {
  color: var(--primary);
  border-color: rgba(20, 64, 107,0.2);
}

/* ─── CEO ─── */
.ceo-container {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: center;
}

.ceo-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 8px 32px rgba(20, 64, 107, 0.15);
  flex-shrink: 0;
}

.ceo-photo:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(20, 64, 107, 0.25);
  transform: scale(1.03);
}

.ceo-photo-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.ceo-photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.ceo-photo::after {
  content: none;
}

.ceo-photo-badge {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.ceo-photo-badge span {
  padding: 0.4rem 1.5rem;
  background: var(--gradient-accent);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: white;
  letter-spacing: 1px;
}

.ceo-content blockquote {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.8;
  color: var(--text-white);
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.ceo-content blockquote::before {
  content: '"';
  position: absolute;
  top: -1.5rem;
  left: 1rem;
  font-size: 4rem;
  color: rgba(20, 64, 107,0.1);
  font-family: Georgia, serif;
}

.ceo-content blockquote em {
  color: var(--accent);
  font-style: normal;
  font-weight: 500;
}

.ceo-message {
  color: var(--text-muted);
  line-height: 1.9;
  font-weight: 300;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.ceo-message strong {
  color: var(--primary);
  font-weight: 500;
}

.ceo-signature {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.ceo-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
}

.ceo-title {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

/* ─── EDUCATION PROGRAMS (PORTFOLIO) ─── */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.edu-card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 64, 107, 0.2);
  box-shadow: 0 16px 48px rgba(20, 64, 107, 0.1);
}

.edu-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.3rem;
}

.edu-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(20, 64, 107, 0.08), rgba(169, 130, 47, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
  transition: var(--transition);
}

.edu-card:hover .edu-icon {
  background: var(--gradient-accent);
  color: white;
}

.edu-level {
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(169, 130, 47, 0.08);
  border: 1px solid rgba(169, 130, 47, 0.25);
  letter-spacing: 0.5px;
}

.edu-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0D1B2A;
  margin-bottom: 0.7rem;
  letter-spacing: -0.2px;
}

.edu-card p {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 1.2rem;
}

.edu-meta {
  display: flex;
  gap: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.edu-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.edu-meta i {
  color: var(--primary-light);
  font-size: 0.72rem;
}

.edu-footer {
  text-align: center;
  margin-top: 3rem;
}

.edu-footer p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.edu-footer a {
  color: var(--primary-light);
  font-weight: 500;
}

/* ─── CONTACT ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.contact-item:hover {
  background: rgba(20, 64, 107,0.03);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(20, 64, 107,0.06);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1rem;
  transition: var(--transition);
}

.contact-item:hover .contact-icon {
  background: var(--gradient-accent);
  color: white;
  border-color: transparent;
}

.contact-item-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.contact-item-value {
  font-size: 1rem;
  color: var(--text-white);
  font-weight: 400;
}

.contact-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
  padding: 1rem;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  font-size: 1rem;
}

.social-link:hover {
  background: var(--gradient-accent);
  border-color: transparent;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(20, 64, 107,0.2);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-group label .required {
  color: var(--accent);
}

.contact-form input,
.contact-form textarea {
  background: #F5F7FA;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.2rem;
  color: var(--text-white);
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(20, 64, 107,0.06);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-dim);
}

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

.form-result {
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  text-align: center;
}

.form-result.success {
  background: rgba(0, 200, 83, 0.08);
  border: 1px solid rgba(0, 200, 83, 0.3);
  color: #2E7D32;
}

.form-result.error {
  background: rgba(255, 82, 82, 0.08);
  border: 1px solid rgba(255, 82, 82, 0.3);
  color: #C62828;
}

/* ─── FOOTER ─── */
footer {
  padding: 4rem 2rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0B1929;
  color: #F0F4FA;
}

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

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #F0F4FA;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo .logo-mark {
  width: 30px;
  height: 30px;
  font-size: 0.85rem;
}

.footer-logo span {
  color: var(--accent);
  font-weight: 300;
  font-size: 0.8rem;
  margin-left: 0.3rem;
}

.footer-slogan {
  color: #8BA3C7;
  font-size: 0.9rem;
  font-weight: 300;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-link-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-link-group h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #F0F4FA;
  margin-bottom: 0.3rem;
}

.footer-link-group a {
  color: #8BA3C7;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.footer-link-group a:hover {
  color: var(--accent-glow);
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  color: #6B84A6;
  font-size: 0.82rem;
}

.footer-info {
  color: #6B84A6;
  font-size: 0.82rem;
}

/* ─── NAV CHATBOT BUTTON ─── */
.nav-lang-btn {
  border: 1px solid var(--border) !important;
  padding: 0.35rem 0.8rem !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.5px;
  transition: all 0.3s !important;
}
.nav-lang-btn:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}
.nav-lang-btn::after {
  display: none !important;
}

.nav-chatbot-btn {
  background: var(--gradient-accent) !important;
  color: white !important;
  padding: 0.4rem 1rem !important;
  border-radius: var(--radius-md) !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  transition: var(--transition) !important;
}

.nav-chatbot-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.nav-chatbot-btn::after {
  display: none !important;
}

/* ─── CHATBOT FAB ─── */
.chatbot-fab {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-accent);
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(20, 64, 107,0.3);
  z-index: 50;
  transition: var(--transition);
}

.chatbot-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(20, 64, 107,0.4);
}

.chatbot-fab-icon-close { display: none; }
.chatbot-fab.open .chatbot-fab-icon-open { display: none; }
.chatbot-fab.open .chatbot-fab-icon-close { display: block; }

/* ─── CHATBOT PANEL ─── */
.chatbot-panel {
  position: fixed;
  bottom: 10rem;
  right: 2rem;
  width: 360px;
  height: 500px;
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 49;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.25s ease;
  transform-origin: bottom right;
}

.chatbot-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

.chatbot-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.chatbot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.chatbot-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: white;
}

.chatbot-status {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.1rem;
}

.chatbot-online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4CAF50;
  animation: pulse 2s ease-in-out infinite;
}

.chatbot-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scroll-behavior: smooth;
}

.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 2px; }

.chatbot-msg {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

.chatbot-msg.bot { align-self: flex-start; }
.chatbot-msg.user { align-self: flex-end; }

.chatbot-msg-bubble {
  padding: 0.7rem 1rem;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.chatbot-msg.bot .chatbot-msg-bubble {
  background: #F4F6F9;
  color: #0D1B2A;
  border-bottom-left-radius: 4px;
}

.chatbot-msg.user .chatbot-msg-bubble {
  background: var(--gradient-accent);
  color: white;
  border-bottom-right-radius: 4px;
}

.chatbot-msg-time {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
  padding: 0 0.3rem;
}

.chatbot-msg.user .chatbot-msg-time { text-align: right; }

.chatbot-quickbtns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.chatbot-quick {
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  border: 1px solid rgba(20, 64, 107,0.2);
  background: transparent;
  color: var(--primary-light);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Noto Sans KR', sans-serif;
}

.chatbot-quick:hover {
  background: var(--gradient-accent);
  color: white;
  border-color: transparent;
}

.chatbot-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 0.7rem 1rem;
  background: #F4F6F9;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}

.chatbot-typing span {
  width: 6px;
  height: 6px;
  background: var(--text-dim);
  border-radius: 50%;
  animation: typingDot 1.2s ease-in-out infinite;
}

.chatbot-typing span:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.chatbot-input-area {
  display: flex;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  background: #FFFFFF;
  flex-shrink: 0;
}

.chatbot-input {
  flex: 1;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
  font-family: 'Noto Sans KR', sans-serif;
  color: #0D1B2A;
  background: #F8F9FB;
  outline: none;
  transition: border-color 0.2s;
}

.chatbot-input:focus {
  border-color: var(--primary-light);
  background: #FFFFFF;
}

.chatbot-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient-accent);
  border: none;
  color: white;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.chatbot-send:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(20, 64, 107,0.3);
}

/* ─── BACK TO TOP ─── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-accent);
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(20, 64, 107,0.2);
  z-index: 50;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(20, 64, 107,0.3);
}

/* ─── SCROLL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .edu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem;
    gap: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 1rem 0;
    font-size: 1rem;
  }

  .nav-links a::after {
    display: none;
  }

  .mobile-toggle { display: flex; }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .ceo-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ceo-photo {
    margin: 0 auto;
    width: 140px;
    height: 140px;
  }

  .ceo-content blockquote {
    font-size: 1.1rem;
    border-left: none;
    padding-left: 0;
    border-top: 3px solid var(--primary-light);
    padding-top: 1.5rem;
  }

  .ceo-content blockquote::before {
    left: 50%;
    transform: translateX(-50%);
    top: -1rem;
  }

  .ceo-signature {
    text-align: center;
  }

  .about-visual {
    height: 280px;
  }

  .edu-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-links {
    gap: 3rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .hero-scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .chatbot-panel {
    right: 0;
    bottom: 0;
    width: 100%;
    height: 75vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transform-origin: bottom center;
  }

  .chatbot-fab {
    bottom: 1.2rem;
    right: 1.2rem;
  }
}

@media (max-width: 480px) {
  section {
    padding: 4rem 1.2rem;
  }

  .brand-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }

  .brand-card {
    padding: 1.5rem 1rem;
  }

  .brand-letter {
    font-size: 2.8rem;
  }

  .brand-icon {
    font-size: 3rem;
  }

  .about-stats {
    gap: 1.5rem;
  }

  .about-stat-num {
    font-size: 1.6rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .contact-social {
    justify-content: center;
  }

  .brand-lab {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .brand-lab-text {
    text-align: center;
  }
}
