* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  background-color: #0f172a;
  color: #f8fafc;
  font-family: 'Noto Sans KR', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* Fixed header offset for anchor navigation */
section[id] {
  scroll-margin-top: 96px;
}
/* Lock background scroll while a modal is open */
body.modal-open {
  overflow: hidden;
}
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 320px;
}

/* Header */
.mainheader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.header-content {
  width: 100%;
  max-width: 1280px;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
}

/* Mobile Nav Drawer */
.mobile-menu {
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  background-color: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
}
.mobile-menu.open {
  max-height: 480px;
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu a {
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 8px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.mobile-menu a:hover {
  color: #fff;
  background: rgba(59, 130, 246, 0.15);
}

/* Container & Sections */
.container-wrapper {
  margin-top: 80px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.section-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.glass-card:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

/* Floating Animations */
@keyframes float1 {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}
@keyframes pulseGlow {
  0% { box-shadow: 0 0 15px rgba(59, 130, 246, 0.2); }
  50% { box-shadow: 0 0 30px rgba(59, 130, 246, 0.5); }
  100% { box-shadow: 0 0 15px rgba(59, 130, 246, 0.2); }
}
.animate-float {
  animation: float1 5s ease-in-out infinite;
}
.animate-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* Accents & Badges */
.badge-neon {
  background: rgba(34, 211, 238, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.3);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.badge-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-purple {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  width: 100%;
  max-width: 640px;
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content {
  transform: scale(1);
}

/* FAQ Accordion */
.faq-item {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.faq-item:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(59, 130, 246, 0.4);
}
.faq-answer {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}
.faq-item.active {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(59, 130, 246, 0.6);
}
.faq-item.active .faq-answer {
  height: auto;
  opacity: 1;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: #3b82f6;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .section-container {
    padding: 50px 20px;
  }
  .header-content {
    padding: 0 16px;
  }
}
