@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');

html, body { 
  margin:0; 
  padding:0; 
  height:100%; 
  font-family:'Quicksand', sans-serif; 
  scroll-behavior:smooth;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow-x: hidden;
}

body { 
  display:flex; 
  flex-direction:column;
  position: relative;
}

/* Enhanced Particle System */
#particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  pointer-events: none;
  opacity: 0.6;
}

.particle.heart::before {
  content: '♥';
  color: #ff6ec7;
  font-size: 16px;
  text-shadow: 0 0 10px rgba(255, 110, 199, 0.5);
}

.particle.star::before {
  content: '★';
  color: #fff;
  font-size: 14px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.particle.note::before {
  content: '♪';
  color: #667eea;
  font-size: 18px;
  text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* Typewriter Effect */
.text-type { 
  display: inline-block; 
  white-space: pre-wrap; 
}

.text-type__cursor { 
  margin-left: 0.25rem; 
  display: inline-block; 
  opacity: 1;
  color: white;
  animation: blink 1s infinite;
}

.text-type__cursor--hidden { 
  display: none; 
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Animated background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 64, 129, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(103, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(118, 75, 162, 0.05) 0%, transparent 50%);
  animation: floatingBg 20s ease-in-out infinite;
  z-index: 0;
}

@keyframes floatingBg {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

header { 
  width:100%; 
  padding:20px 0; 
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display:flex; 
  justify-content:space-around;
  position:fixed; 
  top:0; 
  left:0; 
  z-index:10;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: none;
  border-right: none;
  border-top: none;
}

.menu-item { 
  position:relative;
  transition: all 0.3s ease;
}

.menu-item::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff4081, #ff6ec7);
  transform: translateX(-50%);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.menu-item:hover::before {
  width: 100%;
}

.menu-item a { 
  text-decoration:none; 
  color: rgba(255, 255, 255, 0.9);
  font-weight:600; 
  font-size:18px; 
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  cursor:pointer; 
  padding:10px 15px; 
  display:inline-block; 
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-item a:hover, .menu-item a.active { 
  color: #fff;
  transform: translateY(-2px);
  text-shadow: 
    0 0 20px rgba(255, 64, 129, 0.6),
    0 4px 8px rgba(0, 0, 0, 0.2);
}

.dropdown { 
  display:none; 
  position:absolute; 
  top:calc(100% + 8px); 
  left:50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  padding:15px 20px; 
  border-radius:15px;
  min-width:200px;
  z-index:10;
  text-align:center;
  opacity: 0;
  transform: translateX(-50%) translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 8px solid rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.1));
}

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

.dropdown li { 
  margin:12px 0; 
  font-size:16px; 
  font-weight:600; 
  transition: all 0.2s ease; 
  cursor:pointer;
  color: #333;
  padding: 8px 15px;
  border-radius: 8px;
  background: linear-gradient(135deg, transparent, rgba(255, 64, 129, 0.05));
  border: 1px solid transparent;
}

.dropdown li:hover { 
  transform: translateY(-2px);
  color: #ff4081;
  background: linear-gradient(135deg, rgba(255, 64, 129, 0.1), rgba(255, 110, 199, 0.1));
  border-color: rgba(255, 64, 129, 0.2);
  box-shadow: 
    0 5px 15px rgba(255, 64, 129, 0.2),
    0 0 0 1px rgba(255, 64, 129, 0.1);
}

.menu-item:hover .dropdown { 
  display:block;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* YouTube Music Player */
.music-player {
  position: fixed;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 15px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 9;
  transition: all 0.3s ease;
  width: auto;
  max-width: 90vw;
}

.music-player.minimized {
  width: 60px;
  height: 60px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  top: 120px;
  right: 20px;
  left: auto;
  transform: none;
}

.music-player.minimized .minimized-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  width: 100%;
  height: 100%;
}

.music-player.minimized .player-content {
  display: none;
}

.minimized-icon {
  display: none;
}

.player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.player-title {
  color: white;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.8;
}

.player-controls-header {
  display: flex;
  gap: 8px;
}

.header-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.header-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.music-player:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.music-player.minimized:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Player Controls Layout */
.player-main {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 400px;
}

.player-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.song-info-compact {
  min-width: 140px;
}

.song-info-compact .song-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 2px 0;
  color: white;
  background: linear-gradient(45deg, #fff, #ff6ec7);
  background-size: 200% 200%;
  animation: gradientShift 4s ease-in-out infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.song-info-compact .song-artist {
  font-size: 12px;
  opacity: 0.8;
  color: white;
  margin: 0;
}

.music-controls-compact {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-btn-compact {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  font-size: 14px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.control-btn-compact.play-pause {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ff6ec7, #667eea);
  font-size: 16px;
}

.control-btn-compact:hover, .control-btn-compact:active {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 5px 15px rgba(255, 110, 199, 0.4);
}

.toggle-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  font-size: 14px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.toggle-btn:hover, .toggle-btn:active {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Expanded Player */
.player-expanded {
  display: none;
  margin-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 15px;
}

.youtube-player-container {
  width: 100%;
  height: 80px;
  border-radius: 15px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.3);
  margin-bottom: 15px;
}

.music-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
}

.control-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  font-size: 16px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.control-btn.play-pause {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, #ff6ec7, #667eea);
  font-size: 20px;
}

.control-btn:hover, .control-btn:active {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 5px 15px rgba(255, 110, 199, 0.4);
}

.control-btn.play-pause:hover, .control-btn.play-pause:active {
  box-shadow: 0 8px 20px rgba(255, 110, 199, 0.6);
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 12px;
  margin-bottom: 10px;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  touch-action: manipulation;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6ec7, #667eea);
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s ease;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  margin-bottom: 10px;
}

.volume-bar {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  touch-action: manipulation;
}

.volume-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6ec7, #667eea);
  border-radius: 2px;
  width: 70%;
  transition: width 0.1s ease;
}

.playlist-container {
  max-height: 250px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 10px;
}

/* 플레이리스트 스크롤바 스타일링 */
.playlist-container::-webkit-scrollbar {
  width: 8px;
}

.playlist-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.playlist-container::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff6ec7, #667eea);
  border-radius: 4px;
}

.playlist-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff4081, #5a67d8);
}

.playlist-item {
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 5px 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.playlist-item:hover, .playlist-item:active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 110, 199, 0.3);
}

.playlist-item.active {
  background: rgba(255, 110, 199, 0.3);
  color: white;
  font-weight: 600;
  border-color: rgba(255, 110, 199, 0.5);
}

/* Click Sparkle Effect - Beautiful Stars */
.click-sparkle {
  position: absolute;
  pointer-events: none;
  z-index: 1000;
  width: 20px;
  height: 20px;
}

.star-sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: linear-gradient(45deg, #fff, #ff6ec7, #667eea);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: starSparkle 0.8s ease-out forwards;
  transform-origin: center;
}

@keyframes starSparkle {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 1;
    filter: brightness(2) blur(0px);
  }
  50% {
    transform: scale(1.5) rotate(180deg);
    opacity: 1;
    filter: brightness(3) blur(1px);
  }
  100% {
    transform: scale(0.5) rotate(360deg);
    opacity: 0;
    filter: brightness(1) blur(2px);
  }
}

/* Additional sparkle variations */
.star-sparkle:nth-child(1) { 
  animation-delay: 0ms; 
  background: linear-gradient(45deg, #fff, #ff6ec7);
}
.star-sparkle:nth-child(2) { 
  animation-delay: 100ms; 
  background: linear-gradient(45deg, #ff6ec7, #667eea);
}
.star-sparkle:nth-child(3) { 
  animation-delay: 200ms; 
  background: linear-gradient(45deg, #667eea, #fff);
}
.star-sparkle:nth-child(4) { 
  animation-delay: 50ms; 
  background: linear-gradient(45deg, #ff4081, #ff6ec7);
}
.star-sparkle:nth-child(5) { 
  animation-delay: 150ms; 
  background: linear-gradient(45deg, #764ba2, #fff);
}
.star-sparkle:nth-child(6) { 
  animation-delay: 250ms; 
  background: linear-gradient(45deg, #fff, #764ba2);
}

main { 
  flex:1; 
  margin-top:5px; 
  display:flex; 
  justify-content:center; 
  align-items:center;
  position: relative;
  min-height: 100vh;
}

.hero-container {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero { 
  text-align:center; 
  font-size:72px; 
  font-weight:700; 
  background: linear-gradient(45deg, #fff, #ff6ec7, #667eea);
  background-size: 200% 200%;
  animation: gradientShift 4s ease-in-out infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  position: relative;
  letter-spacing: 3px;
  transition: all 0.6s ease;
  z-index: 5;
  margin-bottom: 50px;
}

.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(255, 64, 129, 0.1) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: -1;
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}

.image-gallery {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
  height: 500px;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
  z-index: 3;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.image-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 25px;
  overflow: hidden;
}

.gallery-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 1.2s cubic-bezier(0.4, 0.0, 0.2, 1);
  transform: scale(1.1);
  filter: brightness(0.9) contrast(1.1) saturate(1.2);
  background-image: url('main-image.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: linear-gradient(135deg, #ff6ec7 0%, #667eea 50%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  font-weight: 700;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.gallery-image.active {
  transform: scale(1);
  animation: imageFloat 6s ease-in-out infinite;
}

@keyframes imageFloat {
  0%, 100% { 
    transform: scale(1) translateY(0px); 
    filter: brightness(0.9) contrast(1.1) saturate(1.2);
  }
  50% { 
    transform: scale(1.02) translateY(-5px); 
    filter: brightness(1) contrast(1.15) saturate(1.3);
  }
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    transparent 0%, 
    rgba(0, 0, 0, 0.3) 40%, 
    rgba(0, 0, 0, 0.8) 100%
  );
  padding: 40px 30px 30px;
  transform: translateY(100%);
  transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
  z-index: 4;
}

.overlay-text h3 {
  color: white;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  background: linear-gradient(45deg, #fff, #ff6ec7);
  background-size: 200% 200%;
  animation: gradientShift 3s ease-in-out infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.overlay-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
}

/* 스크롤 상태별 스타일 */
.hero-container.scrolled .hero {
  opacity: 0;
  transform: translateY(-30px) scale(0.8);
}

.hero-container.scrolled .image-gallery {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.hero-container.scrolled .image-overlay {
  transform: translateY(0);
}

/* 이미지 호버 효과 */
.image-gallery:hover .gallery-image {
  transform: scale(1.05);
  filter: brightness(1.1) contrast(1.2) saturate(1.4);
}

.image-gallery:hover .image-overlay {
  background: linear-gradient(
    transparent 0%, 
    rgba(0, 0, 0, 0.4) 30%, 
    rgba(255, 64, 129, 0.3) 70%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.6; }
}

/* Content Section Styles */
.content-section {
  position: relative;
  z-index: 2;
  margin: 40px 0;
  padding: 0 20px;
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.content-item {
  display: flex;
  align-items: stretch;
  margin: 80px 0;
  min-height: 350px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.content-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 40px 80px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 110, 199, 0.3);
}

.content-text {
  flex: 1;
  padding: 40px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 25px;
  margin: 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.content-text h3 {
  color: white;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 25px 0;
  background: linear-gradient(45deg, #fff, #ff6ec7, #667eea);
  background-size: 200% 200%;
  animation: gradientShift 4s ease-in-out infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
}

.content-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 20px 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.3px;
  font-weight: 500;
}

.content-image {
  flex: 1;
  background-image: url('');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: linear-gradient(135deg, #ff6ec7 0%, #667eea 50%, #764ba2 100%);
  border-radius: 25px;
  margin: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  text-align: center;
  padding: 20px;
}

.content-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.content-image:hover::before {
  opacity: 1;
}

.content-image:hover {
  transform: scale(1.03);
  filter: brightness(1.1) saturate(1.3);
  box-shadow: 
    0 20px 40px rgba(255, 110, 199, 0.4),
    0 0 0 3px rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Reverse layout for alternating items */
.content-item.reverse {
  flex-direction: row-reverse;
}

/* Section Headers */
section {
  min-height: auto;
  padding: 120px 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(5px);
  margin: 50px 0;
  border-radius: 40px;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

section h2 {
  font-size: 52px;
  color: white;
  text-align: center;
  margin-bottom: 60px;
  background: linear-gradient(45deg, #fff, #ff6ec7);
  background-size: 200% 200%;
  animation: gradientShift 4s ease-in-out infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  font-weight: 800;
  letter-spacing: 2px;
}

/* Image Assignment */
.content-item:nth-child(1) .content-image { background-image: url('news1.jpg'); }
.content-item:nth-child(2) .content-image { background-image: url('news2.jpg'); }
.content-item:nth-child(3) .content-image { background-image: url('news3.jpg'); }

#photos .content-item:nth-child(1) .content-image { background-image: url('photo1.jpg'); }
#photos .content-item:nth-child(2) .content-image { background-image: url('photo2.jpg'); }
#photos .content-item:nth-child(3) .content-image { background-image: url('photo3.jpg'); }
#photos .content-item:nth-child(4) .content-image { background-image: url('photo4.jpg'); }
#photos .content-item:nth-child(5) .content-image { background-image: url('photo5.jpg'); }
#photos .content-item:nth-child(6) .content-image { background-image: url('photo6.jpg'); }
#photos .content-item:nth-child(7) .content-image { background-image: url('photo7.jpg'); }
#photos .content-item:nth-child(8) .content-image { background-image: url('photo8.jpg'); }
#photos .content-item:nth-child(9) .content-image { background-image: url('photo9.jpg'); }

#contact .content-item:nth-child(1) .content-image { background-image: url('contact1.jpg'); }
#contact .content-item:nth-child(2) .content-image { background-image: url('contact2.jpg'); }
#contact .content-item:nth-child(3) .content-image { background-image: url('contact3.jpg'); }

/* Mobile Responsive Design - 모바일 전용 최적화 */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  header {
    padding: 15px 10px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .menu-item {
    position: static;
    margin: 5px;
  }

  .menu-item a {
    font-size: 16px;
    padding: 8px 12px;
  }

  .dropdown {
    position: fixed;
    left: 50%;
    top: 80px;
    transform: translateX(-50%);
    min-width: 280px;
    max-width: 90vw;
  }

  .music-player {
    position: fixed;
    top: 100px;
    left: 10px;
    right: 10px;
    transform: none;
    width: calc(100vw - 20px);
    padding: 12px 15px;
    z-index: 11;
    min-width: auto;
  }

  .music-player.minimized {
    width: 50px;
    height: 50px;
    top: 100px;
    right: 15px;
    left: auto;
    transform: none;
  }

  .player-main {
    min-width: auto;
    flex-direction: row;
    gap: 10px;
    width: 100%;
  }

  .player-left {
    width: 100%;
    justify-content: space-between;
    flex: 1;
  }

  .song-info-compact {
    min-width: auto;
    flex: 1;
  }

  .song-info-compact .song-title {
    font-size: 14px;
  }

  .song-info-compact .song-artist {
    font-size: 11px;
  }

  .music-controls-compact {
    gap: 6px;
    flex-shrink: 0;
  }

  .control-btn-compact {
    width: 32px;
    height: 32px;
    font-size: 12px;
    min-width: 32px;
  }

  .control-btn-compact.play-pause {
    width: 36px;
    height: 36px;
    font-size: 14px;
    min-width: 36px;
  }

  .toggle-btn {
    width: 32px;
    height: 32px;
    font-size: 12px;
    min-width: 32px;
    flex-shrink: 0;
  }

  .header-btn {
    width: 20px;
    height: 20px;
    font-size: 10px;
    min-width: 20px;
  }

  .player-header {
    margin-bottom: 8px;
  }

  .youtube-player-container {
    height: 70px;
  }

  .control-btn {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .control-btn.play-pause {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .volume-container {
    flex-direction: row;
    gap: 8px;
    justify-content: center;
  }

  .volume-bar {
    width: 100px;
  }

  .progress-container {
    font-size: 11px;
  }

  .playlist-container {
    max-height: 200px;
  }

  .playlist-item {
    font-size: 13px;
    padding: 8px 12px;
  }

  .hero-container {
    padding-top: 200px;
    min-height: calc(100vh - 200px);
  }

  .hero {
    font-size: 36px;
    margin-bottom: 30px;
    letter-spacing: 1px;
    padding: 0 15px;
    text-align: center;
  }

  .image-gallery {
    width: 95%;
    height: 300px;
    margin-top: 20px;
  }

  .gallery-image {
    font-size: 18px;
    padding: 15px;
  }

  .overlay-text h3 {
    font-size: 22px;
  }

  .overlay-text p {
    font-size: 14px;
  }

  .content-item {
    flex-direction: column;
    margin: 40px 0;
    min-height: auto;
  }
  
  .content-item.reverse {
    flex-direction: column;
  }
  
  .content-text, .content-image {
    flex: none;
    width: auto;
    margin: 10px;
  }
  
  .content-image {
    height: 200px;
    font-size: 16px;
  }

  section {
    margin: 30px 10px;
    padding: 80px 15px 60px;
    border-radius: 25px;
  }

  section h2 {
    font-size: 32px;
    margin-bottom: 40px;
    letter-spacing: 1px;
  }

  .content-section {
    padding: 0 10px;
    max-width: none;
  }

  .content-text {
    padding: 25px 20px;
  }

  .content-text h3 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .content-text p {
    font-size: 15px;
    margin-bottom: 15px;
    line-height: 1.6;
  }

  /* 파티클 시스템 모바일 최적화 */
  .particle {
    font-size: 12px;
  }

  .particle.heart::before {
    font-size: 14px;
  }

  .particle.star::before {
    font-size: 12px;
  }

  .particle.note::before {
    font-size: 16px;
  }

  /* 클릭 반짝임 효과 모바일 최적화 */
  .star-sparkle {
    width: 6px;
    height: 6px;
  }
}

@media (max-width: 480px) {
  .hero {
    font-size: 28px;
    line-height: 1.2;
  }

  .music-player {
    left: 5px;
    right: 5px;
    width: calc(100vw - 10px);
    padding: 10px 12px;
  }

  .music-player.minimized {
    width: 45px;
    height: 45px;
    right: 10px;
  }

  .player-main {
    gap: 8px;
  }

  .song-info-compact .song-title {
    font-size: 13px;
  }

  .song-info-compact .song-artist {
    font-size: 10px;
  }

  .control-btn-compact {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .control-btn-compact.play-pause {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .toggle-btn {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .header-btn {
    width: 18px;
    height: 18px;
    font-size: 9px;
  }

  .music-controls-compact {
    gap: 5px;
  }

  .control-btn {
    width: 35px;
    height: 35px;
    font-size: 12px;
  }

  .control-btn.play-pause {
    width: 45px;
    height: 45px;
    font-size: 16px;
  }

  .music-controls {
    gap: 10px;
  }

  section h2 {
    font-size: 28px;
  }

  .content-text h3 {
    font-size: 20px;
  }

  .content-text p {
    font-size: 14px;
  }

  .image-gallery {
    height: 250px;
  }

  .overlay-text h3 {
    font-size: 18px;
  }

  .overlay-text p {
    font-size: 13px;
  }

  .hero-container {
    padding-top: 240px;
  }
}

/* 가로 모드 최적화 */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-container {
    padding-top: 150px;
  }

  .music-player {
    top: 80px;
  }

  .music-player.minimized {
    top: 80px;
  }

  .hero {
    font-size: 32px;
    margin-bottom: 20px;
  }

  .image-gallery {
    height: 250px;
  }
}

/* Touch 최적화 */
@media (hover: none) and (pointer: coarse) {
  .control-btn-compact:hover,
  .control-btn:hover,
  .toggle-btn:hover,
  .header-btn:hover,
  .playlist-item:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.3);
  }

  .control-btn-compact:active,
  .control-btn:active,
  .toggle-btn:active,
  .header-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.4);
  }

  .playlist-item:active {
    background: rgba(255, 255, 255, 0.2);
  }
}

#page-content {
  transition: opacity 0.3s ease-in-out;
}