/* ===================================
   남양주도시공사 AI 혁신 공모전
   정약용 생가 컨셉 디자인 시스템
   =================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;600;700;900&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

/* Design Tokens */
:root {
  /* Colors - 한옥 + AI 테크 */
  --bg-primary: #0F0F1A;
  --bg-secondary: #1A1A2E;
  --bg-card: #16213E;
  --bg-card-hover: #1C2B4A;

  --color-hanok: #D4A574;
  --color-hanok-light: #E8C9A0;
  --color-hanok-dark: #B8864E;
  --color-giwa: #8B6F47;
  --color-hanji: #F5F0EB;
  --color-ink: #2C3E50;

  --color-tech: #4ECDC4;
  --color-tech-light: #7EDDD6;
  --color-tech-dark: #36B5AD;

  --color-accent: #FF6B6B;
  --color-accent-soft: #FF8E8E;

  --color-safety: #FF6B6B;
  --color-service: #4ECDC4;

  --text-primary: #F5F0EB;
  --text-secondary: #B8B0A8;
  --text-muted: #7A7570;

  /* Typography */
  --font-serif: 'Noto Serif KR', serif;
  --font-sans: 'Noto Sans KR', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition-smooth);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  padding: 10px 0;
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-hanok);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo .logo-icon {
  width: 32px;
  height: 32px;
  border: 2px solid var(--color-hanok);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  background: rgba(212, 165, 116, 0.1);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-hanok);
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--color-hanok);
}

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

.nav-cta {
  background: linear-gradient(135deg, var(--color-hanok), var(--color-hanok-dark)) !important;
  color: var(--bg-primary) !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 500 !important;
  transition: var(--transition-smooth);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(212, 165, 116, 0.4);
}

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

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--color-hanok);
  transition: var(--transition-smooth);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

/* ===================================
   Hero Section - 정약용 생가 컨셉
   =================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Layered background - 한옥 느낌 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(212, 165, 116, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(78, 205, 196, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(139, 111, 71, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
  z-index: 0;
}

/* 전통 창살 패턴 오버레이 */
.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.03;
  background-image:
    repeating-linear-gradient(0deg, var(--color-hanok) 0px, var(--color-hanok) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(90deg, var(--color-hanok) 0px, var(--color-hanok) 1px, transparent 1px, transparent 60px);
}

/* Floating particles */
.particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-hanok);
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle 8s infinite ease-in-out;
}

.particle:nth-child(1) {
  left: 10%;
  top: 20%;
  animation-delay: 0s;
  animation-duration: 7s;
}

.particle:nth-child(2) {
  left: 30%;
  top: 60%;
  animation-delay: 1s;
  animation-duration: 9s;
}

.particle:nth-child(3) {
  left: 50%;
  top: 30%;
  animation-delay: 2s;
  animation-duration: 8s;
}

.particle:nth-child(4) {
  left: 70%;
  top: 70%;
  animation-delay: 3s;
  animation-duration: 6s;
}

.particle:nth-child(5) {
  left: 90%;
  top: 40%;
  animation-delay: 4s;
  animation-duration: 10s;
}

.particle:nth-child(6) {
  left: 20%;
  top: 80%;
  animation-delay: 1.5s;
  animation-duration: 7.5s;
}

.particle:nth-child(7) {
  left: 60%;
  top: 15%;
  animation-delay: 2.5s;
  animation-duration: 8.5s;
}

.particle:nth-child(8) {
  left: 80%;
  top: 55%;
  animation-delay: 3.5s;
  animation-duration: 6.5s;
}

.particle:nth-child(9) {
  left: 40%;
  top: 45%;
  animation-delay: 0.5s;
  animation-duration: 9.5s;
}

.particle:nth-child(10) {
  left: 15%;
  top: 90%;
  animation-delay: 4.5s;
  animation-duration: 7s;
}

@keyframes floatParticle {

  0%,
  100% {
    opacity: 0;
    transform: translateY(0) scale(1);
  }

  25% {
    opacity: 0.6;
  }

  50% {
    opacity: 0.3;
    transform: translateY(-100px) scale(1.5);
  }

  75% {
    opacity: 0.6;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

/* 전통 문양 데코레이션 */
.hero-deco {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.deco-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-hanok), transparent);
}

.deco-diamond {
  width: 12px;
  height: 12px;
  border: 1px solid var(--color-hanok);
  transform: rotate(45deg);
  opacity: 0.8;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 165, 116, 0.1);
  border: 1px solid rgba(212, 165, 116, 0.3);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--color-hanok-light);
  margin-bottom: 24px;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-badge .badge-dot {
  width: 6px;
  height: 6px;
  background: var(--color-tech);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 16px;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--color-hanok), var(--color-tech));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--color-hanok-light);
  margin-bottom: 12px;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-desc {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
  animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-period {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(78, 205, 196, 0.1);
  border: 1px solid rgba(78, 205, 196, 0.3);
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--color-tech-light);
  margin-bottom: 40px;
  animation: fadeInUp 1s ease-out 0.9s both;
}

.hero-period .period-icon {
  font-size: 1.2rem;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 1s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--color-hanok), var(--color-hanok-dark));
  color: var(--bg-primary);
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(212, 165, 116, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--color-hanok-light);
  border: 1px solid rgba(212, 165, 116, 0.4);
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(212, 165, 116, 0.1);
  border-color: var(--color-hanok);
  transform: translateY(-3px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: fadeInUp 1s ease-out 1.5s both;
}

.scroll-indicator a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  transition: var(--transition-smooth);
}

.scroll-indicator a:hover {
  color: var(--color-hanok);
}

.scroll-mouse {
  width: 24px;
  height: 36px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.scroll-mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--color-hanok);
  border-radius: 2px;
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateX(-50%) translateY(10px);
    opacity: 0.3;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================
   Section Common
   =================================== */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-tech);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.4;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ===================================
   Categories Section - 공모 분야
   =================================== */
#categories {
  background: var(--bg-secondary);
}

#categories::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-hanok), transparent);
  opacity: 0.3;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 165, 116, 0.1);
  border-radius: 16px;
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.category-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 165, 116, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.category-card.safety::before {
  background: linear-gradient(90deg, var(--color-safety), #FF8E53);
}

.category-card.service::before {
  background: linear-gradient(90deg, var(--color-service), #45B7D1);
}

.category-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 24px;
}

.safety .category-icon {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.15), rgba(255, 142, 83, 0.1));
  border: 1px solid rgba(255, 107, 107, 0.2);
}

.service .category-icon {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.15), rgba(69, 183, 209, 0.1));
  border: 1px solid rgba(78, 205, 196, 0.2);
}

.category-number {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.category-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.4;
}

.category-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.8;
}

.category-example {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 20px;
}

.example-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-tech);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.example-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.example-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===================================
   Guide Section - 접수 안내
   =================================== */
#guide {
  background: var(--bg-primary);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 165, 116, 0.08);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition-smooth);
}

.guide-card:hover {
  border-color: rgba(212, 165, 116, 0.2);
  transform: translateY(-4px);
}

.guide-card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.guide-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.guide-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.guide-card .badge-bonus {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-tech), var(--color-tech-dark));
  color: var(--bg-primary);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 12px;
}

/* Download section */
.download-section {
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.08), rgba(78, 205, 196, 0.05));
  border: 1px solid rgba(212, 165, 116, 0.15);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.download-info {
  flex: 1;
}

.download-info h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.download-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--color-hanok), var(--color-hanok-dark));
  color: var(--bg-primary);
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.btn-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(212, 165, 116, 0.35);
}

/* ===================================
   Timeline Section
   =================================== */
.timeline {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 48px;
  position: relative;
  flex-wrap: wrap;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-hanok), var(--color-tech));
  opacity: 0.3;
}

.timeline-item {
  text-align: center;
  padding: 0 32px;
  position: relative;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  background: var(--color-hanok);
  border: 3px solid var(--bg-primary);
  border-radius: 50%;
  margin: 24px auto 16px;
  position: relative;
  z-index: 1;
}

.timeline-item.active .timeline-dot {
  background: var(--color-tech);
  box-shadow: 0 0 20px rgba(78, 205, 196, 0.5);
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-hanok-light);
}

.timeline-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===================================
   Application Form Section
   =================================== */
#apply {
  background: var(--bg-secondary);
}

#apply::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-tech), transparent);
  opacity: 0.3;
}

.form-container {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid rgba(212, 165, 116, 0.1);
  border-radius: 20px;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-hanok), var(--color-tech));
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-label .required {
  color: var(--color-accent);
  margin-left: 4px;
}

.form-label .optional {
  color: var(--color-tech);
  font-size: 0.8rem;
  margin-left: 6px;
  font-weight: 400;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 165, 116, 0.15);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: var(--transition-smooth);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-hanok);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

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

/* Select (dropdown) 스타일 */
select.form-input,
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23B8B0A8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
  color: var(--text-primary);
}

/* 선택 전 placeholder 상태 */
select.form-input:invalid,
select.form-input option[value=""][disabled] {
  color: var(--text-muted);
}

/* 값이 선택된 후 밝은 글씨 */
select.form-input option {
  background: #1a1a2e;
  color: #e8e0d8;
}

select.form-input option:hover,
select.form-input option:checked {
  background: #2a2540;
}

.form-select option {
  background: #1a1a2e;
  color: #e8e0d8;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Radio buttons */
.radio-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.radio-option {
  flex: 1;
  min-width: 200px;
}

.radio-option input[type="radio"] {
  display: none;
}

.radio-option label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 165, 116, 0.12);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 0.9rem;
}

.radio-option label:hover {
  border-color: rgba(212, 165, 116, 0.3);
  background: rgba(212, 165, 116, 0.05);
}

.radio-option input[type="radio"]:checked+label {
  border-color: var(--color-hanok);
  background: rgba(212, 165, 116, 0.1);
}

.radio-dot {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(212, 165, 116, 0.3);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.radio-option input[type="radio"]:checked+label .radio-dot {
  border-color: var(--color-hanok);
}

.radio-option input[type="radio"]:checked+label .radio-dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--color-hanok);
  border-radius: 50%;
}

/* File upload */
.file-upload {
  position: relative;
}

.file-upload-area {
  border: 2px dashed rgba(212, 165, 116, 0.2);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.file-upload-area:hover {
  border-color: rgba(212, 165, 116, 0.4);
  background: rgba(212, 165, 116, 0.03);
}

.file-upload-area.dragover {
  border-color: var(--color-hanok);
  background: rgba(212, 165, 116, 0.08);
}

.file-upload-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.file-upload-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.file-upload-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-list {
  margin-top: 12px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(78, 205, 196, 0.08);
  border: 1px solid rgba(78, 205, 196, 0.15);
  border-radius: 8px;
  margin-top: 8px;
  font-size: 0.85rem;
}

.file-item .file-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-tech-light);
}

.file-item .file-remove {
  cursor: pointer;
  color: var(--color-accent);
  background: none;
  border: none;
  font-size: 1.1rem;
  padding: 0 4px;
  transition: var(--transition-smooth);
}

.file-item .file-remove:hover {
  transform: scale(1.2);
}

/* Checkbox */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.checkbox-group input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(212, 165, 116, 0.3);
  border-radius: 5px;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-top: 2px;
}

.checkbox-group input[type="checkbox"]:checked+.checkbox-custom {
  background: var(--color-hanok);
  border-color: var(--color-hanok);
}

.checkbox-group input[type="checkbox"]:checked+.checkbox-custom::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  font-size: 0.8rem;
  font-weight: 700;
}

.checkbox-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  cursor: pointer;
}

.checkbox-text a {
  color: var(--color-hanok);
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--color-hanok), var(--color-hanok-dark));
  color: var(--bg-primary);
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
  position: relative;
  overflow: hidden;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(212, 165, 116, 0.4);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Progress bar */
.upload-progress {
  display: none;
  margin-top: 16px;
}

.upload-progress.active {
  display: block;
}

.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-hanok), var(--color-tech));
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* ===================================
   Success Modal
   =================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal {
  background: var(--bg-card);
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-radius: 20px;
  padding: 48px;
  text-align: center;
  max-width: 480px;
  width: 100%;
  animation: scaleIn 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.modal-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.modal h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.modal p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal .btn-primary {
  margin: 0 auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===================================
   Footer
   =================================== */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid rgba(212, 165, 116, 0.1);
  padding: 48px 0 32px;
}

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

.footer-brand {
  max-width: 320px;
}

.footer-brand h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-hanok);
  margin-bottom: 12px;
}

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

.footer-contact h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===================================
   Mobile Responsive
   =================================== */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px 0;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    transition: var(--transition-smooth);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1rem;
  }

  .hero-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.5rem);
  }

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

  .category-card {
    padding: 36px 24px;
  }

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

  .form-container {
    padding: 32px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .radio-group {
    flex-direction: column;
  }

  .download-section {
    flex-direction: column;
    text-align: center;
  }

  .timeline::before {
    display: none;
  }

  .timeline {
    flex-direction: column;
    align-items: center;
  }

  .timeline-item {
    padding: 12px 0;
  }

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

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.4rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .category-title {
    font-size: 1.2rem;
  }

  .nav-logo {
    font-size: 0.9rem;
  }
}

/* ===================================
   Utility Classes
   =================================== */
.text-gradient {
  background: linear-gradient(135deg, var(--color-hanok), var(--color-tech));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: rgba(22, 33, 62, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 165, 116, 0.1);
  border-radius: 16px;
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(15, 15, 26, 0.3);
  border-top-color: var(--bg-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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