/* Global Styles - Updated Blue Theme */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;900&family=Montserrat:wght@400;500;700;900&display=swap');

:root {
  --neon-purple: #7D3C98;
  --neon-violet: #6C3483;
  --neon-lavender: #9B59B6;
  --dark-bg: #0a0a0a;
  --dark-blue: #0a1e3e;
  /* Legacy aliases for compatibility */
  --neon-cyan: #7D3C98;
  --neon-blue: #6C3483;
  --neon-lightblue: #9B59B6;
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans KR', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Logo Styles */
.logo-img {
  height: 22px;
  width: auto;
  transition: all 0.3s ease;
  filter: brightness(0) invert(1);
}

.logo-img:hover {
  filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 20, 147, 0.8));
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .logo-img {
    height: 18px;
  }
}

/* Neon Glow Effect - Blue Theme */
.neon-glow {
  text-shadow: 
    0 0 10px var(--neon-cyan),
    0 0 20px var(--neon-cyan),
    0 0 30px var(--neon-cyan),
    0 0 40px var(--neon-cyan);
  animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
  from {
    text-shadow: 
      0 0 10px var(--neon-cyan),
      0 0 20px var(--neon-cyan),
      0 0 30px var(--neon-cyan);
  }
  to {
    text-shadow: 
      0 0 20px var(--neon-cyan),
      0 0 30px var(--neon-cyan),
      0 0 40px var(--neon-cyan),
      0 0 50px var(--neon-cyan);
  }
}

/* Button Styles - Blue Theme */
.btn-neon-cyan {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  box-shadow: 0 0 20px var(--neon-cyan);
  transition: all 0.3s ease;
}

.btn-neon-cyan:hover {
  box-shadow: 0 0 30px var(--neon-cyan), 0 0 40px var(--neon-cyan);
  transform: translateY(-2px);
}

.btn-neon-blue {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-lightblue));
  box-shadow: 0 0 20px var(--neon-blue);
  transition: all 0.3s ease;
}

.btn-neon-blue:hover {
  box-shadow: 0 0 30px var(--neon-blue), 0 0 40px var(--neon-blue);
  transform: translateY(-2px);
}

/* Navigation */
#navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 240, 255, 0.3);
}

.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neon-cyan);
  transition: width 0.3s ease;
}

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

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

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Event Cards */
.event-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 40px rgba(0, 240, 255, 0.4);
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(0, 128, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* Gallery Slider */
.gallery-slider {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  border-radius: 12px;
}

.gallery-slide {
  display: none;
  width: 100%;
  height: 100%;
}

.gallery-slide.active {
  display: block;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-slide img:hover {
  transform: scale(1.05);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 240, 255, 0.3);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.slider-btn:hover {
  background: rgba(0, 240, 255, 0.6);
  box-shadow: 0 0 20px var(--neon-cyan);
}

.slider-btn.prev {
  left: 20px;
}

.slider-btn.next {
  right: 20px;
}

.slider-counter {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 20px var(--neon-cyan);
}

/* Event Modal */
.event-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.event-modal.active {
  display: flex;
}

.modal-content {
  background: #0a1e3e;
  border-radius: 12px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.3);
}

.modal-close {
  position: sticky;
  top: 0;
  right: 0;
  float: right;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  padding: 1rem;
  z-index: 10;
  transition: all 0.3s ease;
}

.modal-close:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 20px var(--neon-cyan);
}

/* Modal Tabs */
.modal-tabs {
  display: flex;
  border-bottom: 2px solid rgba(0, 240, 255, 0.2);
  margin-bottom: 2rem;
  position: sticky;
  top: 0;
  background: #0a1e3e;
  z-index: 5;
}

.modal-tab {
  flex: 1;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  color: #9ca3af;
}

.modal-tab:hover {
  color: white;
  background: rgba(0, 240, 255, 0.1);
}

.modal-tab.active {
  color: var(--neon-cyan);
  border-bottom-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.1);
}

.tab-content {
  display: none;
  padding: 2rem;
}

.tab-content.active {
  display: block;
}

/* Particles Background */
#particles {
  background: radial-gradient(circle at 20% 50%, rgba(0, 240, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(0, 128, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 40% 20%, rgba(64, 192, 255, 0.1) 0%, transparent 50%);
  animation: float 10s ease-in-out infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
  .neon-glow {
    font-size: 3rem;
  }
  
  .gallery-slider {
    height: 400px;
  }
  
  .slider-btn {
    padding: 0.5rem;
    font-size: 1.5rem;
  }
  
  .modal-content {
    max-height: 95vh;
  }
  
  .modal-tabs {
    flex-direction: row;
    overflow-x: auto;
  }
  
  .modal-tab {
    min-width: 100px;
    font-size: 0.9rem;
  }
}

/* Loading Spinner */
.spinner {
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: var(--neon-cyan);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

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