/* 기본 스타일 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.main-content {
  min-height: 100vh;
  padding-bottom: 150px; /* 독 네비게이션과 푸터 공간 확보 */
}

/* 푸터 */
.site-footer {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-info {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-info p {
  margin-bottom: 0.25rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--accent-color);
}

.cursor-ring {
  position:fixed;
  pointer-events:none;
  inset:auto;
  left:0;
  top:0;
  width:28px;
  height:28px;
  border-radius:50%;
  border:2px solid var(--cursor-color);
  transform:translate(-50%,-50%);
  transition:width .15s ease, height .15s ease, border-color .2s ease, opacity .25s ease;
  opacity:.65;
  z-index:9998
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-links {
    justify-content: center;
  }
  
  .main-content {
    padding-bottom: 200px; /* 모바일에서 더 많은 공간 확보 */
  }
}

/* 글래스모피즘 효과 */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.glass-hover:hover {
  background: var(--bg-glass-hover);
}

/* 독 네비게이션 */
.dock-navigation {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

.dock-container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: 0 8px 32px var(--shadow-color);
}

.dock-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.dock-item:hover {
  transform: scale(1.2) translateY(-8px);
  background: var(--bg-glass-hover);
  box-shadow: 0 8px 25px var(--shadow-color);
}

.dock-item:hover::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  margin-bottom: 8px;
  opacity: 1;
  pointer-events: none;
  border: 1px solid var(--border-color);
}

/* 독 아이템 인접 효과 */
.dock-item:hover + .dock-item,
.dock-item:has(+ .dock-item:hover) {
  transform: scale(1.1) translateY(-4px);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .dock-container {
    gap: 4px;
    padding: 8px 12px;
  }

  .dock-item {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* 유틸리티 클래스 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-color), #8b5cf6, #ec4899);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease-in-out infinite;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--accent-color);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-glass {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: var(--bg-glass-hover);
  box-shadow: 0 8px 25px var(--shadow-color);
}

/* 추가된 애니메이션과 유틸리티 클래스 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

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