/* Global Layout Styles */
.container-1200 {
  width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .container-1200 {
    width: 100%;
    max-width: 1200px;
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  .container-1200 {
    width: 100%;
    padding: 0 0.75rem;
  }
}

@media (max-width: 480px) {
  .container-1200 {
    width: 100%;
    padding: 0 0.5rem;
  }
}

/* Navigation Styles */
.navbar {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
  backdrop-filter: blur(20px);
  border-bottom: 2px solid rgba(59, 130, 246, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dark .navbar {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(31, 41, 55, 0.95) 100%);
  border-bottom: 2px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-container {
  width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(59, 130, 246, 0.5) rgba(0, 0, 0, 0.1);
}

@media (max-width: 1200px) {
  .navbar-container {
    width: 100%;
    max-width: 1200px;
  }
}

/* 스크롤바 스타일링 */
.navbar-container::-webkit-scrollbar {
  height: 4px;
}

.navbar-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
}

.navbar-container::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.5);
  border-radius: 2px;
}

.navbar-container::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.7);
}

/* 네비게이션 메뉴 스크롤바 스타일링 */
.navbar-menu::-webkit-scrollbar {
  height: 4px;
}

.navbar-menu::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
}

.navbar-menu::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.5);
  border-radius: 2px;
}

.navbar-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.7);
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  color: #1f2937;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.dark .navbar-brand {
  color: #f9fafb;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(147, 51, 234, 0.2) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.navbar-brand:hover {
  color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(147, 51, 234, 0.2) 100%);
}

.navbar-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
  flex-shrink: 0;
  min-width: 0;
  align-items: center;
}

.navbar-item {
  position: relative;
}

.navbar-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: #374151;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  font-size: 0.875rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.dropdown-arrow {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
  margin-left: 0.25rem;
}

.navbar-item:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* 드롭다운 메뉴 스타일 */
.navbar-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.dark .navbar-dropdown {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.98) 0%, rgba(31, 41, 55, 0.98) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.navbar-dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin: 0 0.5rem;
}

.dark .navbar-dropdown-item {
  color: #d1d5db;
}

.navbar-dropdown-item:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
  color: #3b82f6;
  transform: translateX(5px);
}

.dark .navbar-dropdown-item:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(147, 51, 234, 0.2) 100%);
}

.navbar-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.navbar-link:hover::before {
  left: 100%;
}

.dark .navbar-link {
  color: #d1d5db;
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.navbar-link:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(147, 51, 234, 0.2) 100%);
  color: #3b82f6;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.3);
}

.dark .navbar-link:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(147, 51, 234, 0.3) 100%);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.navbar-link.active {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  border-color: #3b82f6;
}

.navbar-link .menu-icon {
  font-size: 1.1rem;
}

/* 드롭다운 화살표 */
.navbar-link .dropdown-arrow {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
  margin-left: 0.25rem;
}

.navbar-item:hover .navbar-link .dropdown-arrow {
  transform: rotate(180deg);
}

.navbar-toggle {
  display: none;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.75rem;
  color: #374151;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dark .navbar-toggle {
  color: #d1d5db;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(147, 51, 234, 0.2) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.navbar-toggle:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(147, 51, 234, 0.2) 100%);
  color: #3b82f6;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Large Desktop */
@media (max-width: 1400px) {
  .navbar-link {
    padding: 0.5rem 0.7rem;
    font-size: 0.85rem;
    gap: 0.2rem;
  }
  
  .navbar-dropdown {
    min-width: 180px;
  }
}

/* Tablet Navigation */
@media (max-width: 1024px) {
  .navbar-link {
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
    gap: 0.15rem;
  }
  
  .navbar-link .menu-icon {
    font-size: 0.9rem;
  }
  
  .navbar-dropdown {
    min-width: 160px;
  }
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .navbar-menu {
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(59, 130, 246, 0.2);
    flex-direction: column;
    padding: 0 1rem 1rem;
    gap: 0.5rem;
    
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease;
    
    z-index: 1001;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 20px 20px;
  }

  .dark .navbar-menu {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.98) 0%, rgba(31, 41, 55, 0.98) 100%);
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  }

  .navbar-menu.active {
    max-height: 100vh;
    padding: 1rem;
  }

  .navbar-link {
    padding: 1rem;
    border-radius: 12px;
    justify-content: flex-start;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0.25rem 0;
  }

  .dark .navbar-link {
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .navbar-toggle {
    display: block;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }
}

/* Animation for menu items */
.navbar-item {
  animation: fadeInUp 0.3s ease forwards;
  opacity: 0;
  transform: translateY(10px);
}

.navbar-item:nth-child(1) { animation-delay: 0.1s; }
.navbar-item:nth-child(2) { animation-delay: 0.2s; }
.navbar-item:nth-child(3) { animation-delay: 0.3s; }
.navbar-item:nth-child(4) { animation-delay: 0.4s; }
.navbar-item:nth-child(5) { animation-delay: 0.5s; }

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

/* Scroll effect */
.navbar.scrolled {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(25px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
}

.dark .navbar.scrolled {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.98) 0%, rgba(31, 41, 55, 0.98) 100%);
} 