/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;     /* IE/Edge */
  user-select: none; 
}

body {
  background-color: #0d1117;
  color: #f0f6fc;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header */
header {
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #30363d;
  position: fixed;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.logo {
  text-decoration: none;
  color: #58a6ff;
  font-size: 1.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #79c0ff;
}

.controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* 커스텀 셀렉트 박스 */
.custom-select {
  position: relative;
  user-select: none;
  width: 110px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #f0f6fc;
  cursor: pointer;
  background: linear-gradient(135deg, #21262d 0%, #30363d 100%);
  border-radius: 8px;
  border: 1px solid #30363d;
  transition: all 0.3s ease;
}

.custom-select:hover {
  border-color: #58a6ff;
  box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.1);
}

.select-selected {
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.select-selected:after {
  content: "▼";
  font-size: 0.7rem;
  color: #8b949e;
  transition: transform 0.3s ease;
}

.custom-select:hover .select-selected:after {
  transform: translateY(-1px);
}

.select-items {
  position: absolute;
  background: linear-gradient(135deg, #21262d 0%, #30363d 100%);
  top: 100%;
  left: 0;
  right: 0;
  border-radius: 0 0 8px 8px;
  max-height: 150px;
  overflow-y: auto;
  z-index: 99;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid #30363d;
  border-top: none;
  margin-top: 0;
  padding: 0;
  list-style: none;
}

.select-items li {
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.select-items li:hover {
  background-color: #30363d;
  border-left-color: #58a6ff;
}

.select-hide {
  display: none;
}

.same-as-selected {
  background-color: #30363d;
  border-left-color: #58a6ff;
}

/* Main */
main {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero {
  padding: 6rem 2rem 4rem;
  text-align: center;
  background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #21262d 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(88, 166, 255, 0.1) 0%, transparent 70%);
  z-index: 1;
}

.hero > * {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #58a6ff 0%, #79c0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: 1.3rem;
  color: #8b949e;
  margin-bottom: 3rem;
  font-weight: 400;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(33, 38, 45, 0.6);
  border-radius: 12px;
  border: 1px solid #30363d;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  border-color: #58a6ff;
  box-shadow: 0 10px 30px rgba(88, 166, 255, 0.2);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #58a6ff;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #8b949e;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Bots Section */
.bots-section {
  padding: 6rem 2rem;
  background: #0d1117;
  text-align: center;
}

.bots-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #f0f6fc;
}

.bots-section p {
  font-size: 1.1rem;
  color: #8b949e;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.bot-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.bot-card {
  background: linear-gradient(135deg, #161b22 0%, #21262d 100%);
  padding: 2rem;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  border: 1px solid #30363d;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bot-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--bot-color), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bot-card:hover::before {
  opacity: 1;
}

.bot-card:hover {
  transform: translateY(-8px);
  border-color: var(--bot-color);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.bot-infocraft {
  --bot-color: #68B74A;
}

.bot-infologs {
  --bot-color: #618CB5;
}

.bot-infochat {
  --bot-color: #FFC1F0;
}

.bot-infogame {
  --bot-color: #FFBA82;
}

.bot-infomusic {
  --bot-color: #FFD402;
}

.bot-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.bot-card:hover .bot-icon {
  filter: grayscale(0%);
}

.bot-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #f0f6fc;
}

.bot-card p {
  color: #8b949e;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.coming-soon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #ffd33d 0%, #f0883e 100%);
  color: #24292f;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Timeline Section */
.timeline-section {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #161b22 0%, #0d1117 100%);
}

.timeline-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  color: #f0f6fc;
}

.timeline-section p {
  text-align: center;
  color: #8b949e;
  font-size: 1.1rem;
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.timeline {
  max-width: 900px;
  margin: 1rem auto 0 auto; /* 기존 '0 auto'에서 '1rem auto 0 auto'로 변경 */
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #58a6ff 0%, #79c0ff 100%);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content {
  flex: 1;
  background: linear-gradient(135deg, #21262d 0%, #30363d 100%);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #30363d;
  margin: 0 2rem;
  position: relative;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-3px);
  border-color: #58a6ff;
  box-shadow: 0 8px 25px rgba(88, 166, 255, 0.15);
}

.timeline-date {
  font-size: 0.9rem;
  color: #58a6ff;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-text {
  color: #f0f6fc;
  font-size: 0.95rem;
  line-height: 1.6;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 1.5rem;
  width: 12px;
  height: 12px;
  background: #58a6ff;
  border-radius: 50%;
  transform: translateX(-50%);
  border: 3px solid #0d1117;
  z-index: 2;
}



.timeline-toggle {
  background: linear-gradient(135deg, #58a6ff 0%, #79c0ff 100%);
  color: #ffffff;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 auto 2rem;
  display: block;
  position: relative;
  overflow: hidden;
}

.timeline-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(88, 166, 255, 0.4);
}

.timeline-toggle:active {
  transform: translateY(0);
}

.timeline-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.timeline-toggle:hover::before {
  left: 100%;
}

.timeline-toggle-icon {
  margin-left: 0.5rem;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.timeline-toggle.expanded .timeline-toggle-icon {
  transform: rotate(180deg);
}

/* Timeline Container */
.timeline-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out, opacity 0.3s ease;
  opacity: 0;
}

.timeline-container.expanded {
  max-height: 2000px;
  opacity: 1;
}



/* Team Section */
.team-section {
  padding: 6rem 2rem;
  background: #0d1117;
  text-align: center;
}

.team-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #f0f6fc;
}

.team-section p {
  font-size: 1.1rem;
  color: #8b949e;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.team-member {
  background: linear-gradient(135deg, #161b22 0%, #21262d 100%);
  padding: 2rem 1.5rem;
  border-radius: 16px;
  border: 1px solid #30363d;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.team-member::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #58a6ff, #79c0ff);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.team-member:hover::before {
  transform: scaleX(1);
}

.team-member:hover {
  transform: translateY(-5px);
  border-color: #58a6ff;
  box-shadow: 0 10px 30px rgba(88, 166, 255, 0.2);
}

.member-avatar {
  font-size: 4rem;
  margin-bottom: 1rem;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.team-member:hover .member-avatar {
  filter: grayscale(0%);
}

.team-member h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #f0f6fc;
}

.team-member p {
  color: #8b949e;
  font-size: 0.9rem;
  margin: 0;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #161b22 0%, #21262d 100%);
  padding: 3rem 2rem 2rem;
  display: flex;
  justify-content: center;
  gap: 4rem;
  border-top: 1px solid #30363d;
  color: #8b949e;
  flex-wrap: wrap;

  /* 이 줄 추가 */
  position: relative;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 150px;
}

.footer-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f0f6fc;
  border-bottom: 2px solid #58a6ff;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  font-weight: 500;
}

.footer-section ul li {
  padding: 0.3rem 0;
  transition: color 0.3s ease;
}

.footer-section ul li:hover {
  color: #f0f6fc;
}

.footer-section.discord a {
  text-decoration: none;
  color: #7c3aed;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid #7c3aed;
  display: inline-block;
  text-align: center;
}

.footer-section.discord a:hover {
  background-color: #7c3aed;
  color: #ffffff;
  transform: translateY(-2px);
}


.footer-section.reserved p {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 12px;
  color: #8b949e;
}




/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-stats {
    gap: 1.5rem;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    flex-direction: column !important;
  }
  
  .timeline-content {
    margin: 0 0 0 40px;
  }
  
  .timeline-dot {
    left: 20px;
  }
  
  footer {
    gap: 2rem;
    text-align: center;
  }
}