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

* {
  font-family: 'Noto Sans KR', sans-serif;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Better mobile scrolling */
body {
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
}

.gradient-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-bg-2 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-bg-3 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Language Selector in Header */
.language-selector-wrapper {
  position: relative;
}

.language-toggle-btn {
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
}

.language-dropdown {
  z-index: 1000;
  border: 1px solid #e0e0e0;
  max-height: 400px;
  overflow-y: auto;
}

.language-dropdown.show {
  display: block;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lang-option {
  width: 100%;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: #333;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  text-align: left;
}

.lang-option:last-child {
  border-bottom: none;
}

.lang-option:hover {
  background: #f5f5ff;
  color: #667eea;
}

.lang-option.active {
  background: #f0f0ff;
  color: #667eea;
  font-weight: 600;
}

.lang-option.active i {
  visibility: visible !important;
}

.lang-option i {
  width: 16px;
  font-size: 12px;
}

/* Navigation Dropdown */
.nav-item {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  padding: 14px 20px;
  color: #333;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}

.nav-dropdown-item:last-child {
  border-bottom: none;
}

.nav-dropdown-item:hover {
  background: linear-gradient(to right, #f5f5ff, #fafaff);
  color: #667eea;
}

.nav-dropdown-item .font-medium {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 2px;
}

.nav-dropdown-item:hover .font-medium {
  color: #667eea;
}

/* Chatbot Styles */
.chatbot-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  z-index: 1000;
  transition: all 0.3s ease;
}

/* AI Badge on Chatbot Button */
.chatbot-button::after {
  content: 'AI';
  position: absolute;
  top: -5px;
  right: -5px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(255, 68, 68, 0.6);
  border: 3px solid white;
  letter-spacing: 1px;
}

.chatbot-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(102, 126, 234, 0.7);
}

.chatbot-panel {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 380px;
  max-width: calc(100vw - 60px);
  height: 550px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  z-index: 999;
  overflow: hidden;
}

.chatbot-panel.active {
  display: flex;
  animation: slideUp 0.3s ease;
}

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

.chatbot-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-messages {
  overflow-y: auto;
  padding: 20px;
  background: #f7f7f7;
  max-height: 200px;
}

.message {
  margin-bottom: 15px;
  padding: 12px 16px;
  border-radius: 12px;
  max-width: 80%;
  animation: fadeIn 0.3s ease;
}

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

.message.bot {
  background: white;
  color: #333;
  margin-right: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.message.user {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  margin-left: auto;
}

.faq-list {
  padding: 15px;
  background: white;
  border-top: 1px solid #e0e0e0;
  flex: 1;
  overflow-y: auto;
}

.faq-item {
  padding: 14px 12px;
  margin: 6px 0;
  background: #f8f8ff;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  border-left: 3px solid #667eea;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-item:hover {
  background: #e8e8ff;
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

/* Removed chatbot lang-selector - using header language selector instead */

/* Hero Section */
.hero-banner {
  min-height: 400px;
  position: relative;
  overflow: hidden;
  padding: 40px 0;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  z-index: 0;
}

/* Mobile Hero optimizations */
@media (max-width: 768px) {
  .hero-banner {
    min-height: auto;
    padding: 30px 0;
  }
}

/* Quick Menu Cards */
.quick-menu-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.quick-menu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.quick-menu-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

/* Feature Cards */
.feature-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.feature-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transform: translateY(-5px);
}

.feature-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  font-size: 24px;
  color: white;
}

.submenu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.submenu-item {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: flex-start;
  transition: all 0.2s ease;
  cursor: pointer;
  gap: 12px;
}

.submenu-item:last-child {
  border-bottom: none;
}

.submenu-item:hover {
  padding-left: 10px;
  color: #667eea;
}

.submenu-item i {
  width: 20px;
  text-align: center;
  color: #667eea;
  margin-top: 2px;
  flex-shrink: 0;
}

.submenu-item .font-medium {
  display: block;
  font-weight: 600;
  color: #2d3748;
}

.submenu-item:hover .font-medium {
  color: #667eea;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 1s ease;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* Responsive - Mobile Optimizations */
@media (max-width: 768px) {
  /* Chatbot mobile adjustments */
  .chatbot-panel {
    width: calc(100vw - 40px);
    right: 20px;
    height: 480px;
  }
  
  .chatbot-button {
    right: 15px;
    bottom: 15px;
    width: 100px;
    height: 100px;
    font-size: 40px;
  }
  
  .chatbot-button::after {
    width: 32px;
    height: 32px;
    font-size: 12px;
    top: -3px;
    right: -3px;
  }
  
  /* FAQ list takes more space on mobile */
  .faq-list {
    padding: 12px;
  }
  
  .chatbot-messages {
    padding: 15px;
    max-height: 150px;
  }
  
  /* Cards mobile optimization */
  .quick-menu-card {
    padding: 12px;
  }
  
  .quick-menu-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
    margin-bottom: 8px;
  }
  
  .card-hover {
    padding: 16px !important;
  }
  
  .feature-card {
    padding: 20px;
  }
  
  .feature-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
    margin-right: 12px;
  }
  
  /* Section spacing mobile - more compact */
  .py-20 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .py-16 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
  
  .py-10 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
  
  .py-8 {
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
  }
  
  /* Typography mobile */
  h1 {
    font-size: 1.875rem !important;
    line-height: 2.25rem !important;
  }
  
  h2 {
    font-size: 1.5rem !important;
    line-height: 2rem !important;
  }
  
  h3 {
    font-size: 1.125rem !important;
    line-height: 1.75rem !important;
  }
  
  .text-5xl, .text-6xl {
    font-size: 1.875rem !important;
    line-height: 2.25rem !important;
  }
  
  .text-4xl {
    font-size: 1.5rem !important;
    line-height: 2rem !important;
  }
  
  .text-3xl {
    font-size: 1.25rem !important;
    line-height: 1.75rem !important;
  }
  
  .text-2xl {
    font-size: 1.125rem !important;
    line-height: 1.75rem !important;
  }
  
  .text-xl {
    font-size: 1rem !important;
    line-height: 1.5rem !important;
  }
  
  /* Margins and paddings mobile - more compact */
  .mb-16 {
    margin-bottom: 1.5rem !important;
  }
  
  .mb-12 {
    margin-bottom: 1.25rem !important;
  }
  
  .mb-8 {
    margin-bottom: 1rem !important;
  }
  
  .mb-6 {
    margin-bottom: 0.75rem !important;
  }
  
  .mb-4 {
    margin-bottom: 0.625rem !important;
  }
  
  .mb-3 {
    margin-bottom: 0.5rem !important;
  }
  
  /* Grid adjustments - more compact */
  .gap-8 {
    gap: 0.875rem !important;
  }
  
  .gap-6 {
    gap: 0.75rem !important;
  }
  
  .gap-4 {
    gap: 0.625rem !important;
  }
  
  .gap-3 {
    gap: 0.5rem !important;
  }
  
  /* Submenu items mobile */
  .submenu-item {
    padding: 8px 0;
    font-size: 0.875rem;
  }
  
  .submenu-item i {
    margin-right: 8px;
    width: 16px;
    font-size: 0.75rem;
  }
  
  /* Better touch targets */
  button, a {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Improved scrolling */
  * {
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Container padding mobile */
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* Hero banner mobile */
  .hero-banner p {
    font-size: 0.875rem !important;
    line-height: 1.5rem !important;
  }
  
  /* Lists mobile */
  ul {
    font-size: 0.875rem;
  }
  
  li {
    line-height: 1.5;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem !important;
    line-height: 2rem !important;
  }
  
  h2 {
    font-size: 1.25rem !important;
    line-height: 1.75rem !important;
  }
  
  .text-5xl, .text-6xl {
    font-size: 1.5rem !important;
  }
  
  .text-4xl {
    font-size: 1.25rem !important;
  }
  
  .py-20 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .quick-menu-card h3 {
    font-size: 0.875rem !important;
  }
  
  .quick-menu-card p {
    font-size: 0.75rem !important;
  }
}
