/* scroll-container */
.scroll-container {
  height: calc(100vh - 60px); /* 헤더 높이 제외 */
  overflow-y: scroll;
  scrollbar-width: thin;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

/* 슬라이드 공통 스타일*/
.slide {
  height: calc(100vh - 60px); /* 헤더 높이 제외 */
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px;
  text-align: center;
}

h2 {
  font-size: 2rem;
  color: var(--gray-900);
}

.slide__subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 40px;
  text-align: center;
  line-height: 1.6;
  max-width: 800px;
}

/* 인디케이터 컨테이너 */
.scroll-indicator {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

/* dot */
.dot {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--gray-400);
  transition: background-color 0.3s;
  cursor: pointer;
}

.dot.active {
  background-color: var(--orange-600);
}

/* dot 툴팁 스타일 */
.dot::after {
  content: attr(title);
  position: absolute;
  right: 140%;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--gray-900);
  color: var(--gray-000);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.dot:hover::after {
  opacity: 1;
}

/* 슬라이드 - 인트로 */
.slide--intro {
  background-color: var(--yellow-200);
}

.intro__project-logo,
.intro__team-logo {
  margin: 16px 0;
}

.intro__project-logo img,
.intro__team-logo img {
  max-height: 80px;
  object-fit: fill;
}

.intro__title {
  font-size: 3rem;
  color: var(--gray-900);
  margin: 20px 0;
}

.intro__description {
  font-size: 1.25rem;
  color: var(--gray-700);
  line-height: 1.6;
}

/* 스크롤 유도 화살표 */
.scroll-down-indicator {
  margin-top: 80px;
  color: var(--gray-600);
  animation: bounce 1.5s infinite;
}

.arrow {
  display: block;
  width: 24px;
  height: 24px;
  border-left: 3px solid var(--gray-600);
  border-bottom: 3px solid var(--gray-600);
  transform: rotate(-45deg);
  margin: 0 auto;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* 슬라이드 - 주요 기능 소개 */
.slide--features {
  background-color: var(--gray-100);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px;
  overflow: hidden;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  width: 100%;
  height: 100%;
  padding: 0 40px;
  box-sizing: border-box;
  overflow-y: auto;
}

.features__title {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  text-align: left;
  align-self: start;
  justify-self: start;
}

.features__subtitle {
  text-align: left;
  align-self: start;
  justify-self: start;
}

.feature-card {
  background-color: var(--gray-050);
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-height: 260px;
  min-height: 220px;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.feature-card__icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: inline-block;
}

.feature-card__title {
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: var(--gray-800);
}

.feature-card__desc {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.4;
}

@media screen and (max-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .features__title {
    grid-column: 1 / -1;
    grid-row: 1 / 2;
    text-align: center;
  }
}

@media screen and (max-width: 768px) {
  .features__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card {
    max-height: none;
    min-height: auto;
    padding: 16px;
  }

  .feature-card__icon {
    font-size: 1.5rem;
  }

  .feature-card__title {
    font-size: 1.1rem;
  }

  .feature-card__desc {
    font-size: 0.9rem;
  }
}

/* 슬라이드 - UI 미리보기 */
.slide--preview {
  background-color: var(--gray-050);
  padding: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.preview__title {
  margin-bottom: 8px;
}

/* 중앙 큰 미리보기 카드 */
.preview__main {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 1200px;
  margin-bottom: 40px;
}

.preview-main__imgs {
  width: 60%;
}
.preview-main__img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

.preview-main__content {
  text-align: left;
  flex: 1;
}

.preview-main__title {
  font-size: 1.5rem;
  color: var(--gray-800);
  margin-bottom: 12px;
}

.preview-main__desc {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.6;
}

/* 하단 카드 리스트 */
.preview__list {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  overflow-x: auto;
  max-width: 1000px;
  padding: 24px 40px;
  position: relative;
  z-index: 0;
}

.preview-card {
  width: 120px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.preview-card:hover {
  transform: scale(1.3);
  z-index: 10;
}

.preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-card.active {
  outline: 1px solid var(--orange-600);
  transform: scale(1.3);
  z-index: 10;
}

/* 슬라이드 - 기술 스택 */
.slide--stack {
  background-color: var(--gray-050);
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stack__title {
  margin-bottom: 8px;
}

/* 흐름도 전체 */
.stack-flow-html {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 20px;
  margin-bottom: 150px;
}

/* 기술 칼럼 */
.stack-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  min-width: 160px;
}

.stack-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.stack-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 15rem;
  background-color: var(--gray-000);
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 1.4rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  color: white;
  white-space: nowrap;
  transition: transform 0.3s ease;
  z-index: 1;
}

.stack-box:hover {
  transform: translateY(-8px);
}

.stack-desc {
  position: absolute;
  top: 80%;
  min-width: 100%;
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--gray-800);
  background-color: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(-16px);
}

.stack-box:hover .stack-desc {
  opacity: 1;
  transform: translateY(0);
}

/* 색상 설정 */
.stack-box--gray {
  background-color: #f3f4f6;
  color: #333;
}
.stack-box--template {
  background-color: #673ab7;
}
.stack-box--backend {
  background-color: #4caf50;
}
.stack-box--security {
  background-color: #1976d2;
}
.stack-box--db {
  background-color: #3f51b5;
}
.stack-box--storage {
  background-color: #f57c00;
}
.stack-box--ai {
  background-color: #9c27b0;
}
.stack-box--map {
  background-color: #009688;
}
.stack-box--auth {
  background-color: #e91e63;
}

/* 화살표 */
.stack-arrow {
  font-size: 1.4rem;
  color: var(--gray-500);
}

/* 반응형 */
@media screen and (max-width: 768px) {
  .stack__title {
    font-size: 1.6rem;
  }
  .stack__subtitle {
    font-size: 1rem;
  }
  .stack-box {
    font-size: 0.85rem;
    padding: 8px 12px;
  }
  .stack-desc {
    font-size: 0.8rem;
    padding: 8px;
  }
}

.slide--team {
  text-align: center;
  padding: 40px 20px;
}

.slide--team .slide__subtitle {
  font-size: 1.2em;
  color: #777;
  margin-bottom: 24px;
}

.team-cards {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.card {
  background-color: #f2fefc;
  border: 1px solid #c6f2eb;
  border-radius: 12px;
  padding: 20px;
  width: 220px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
}

.card h3 {
  margin-bottom: 12px;
  color: #00a8a8;
}

.card p {
  line-height: 1.5;
  color: #333;
}

.team-note {
  font-size: 0.95em;
  color: #888;
  margin-top: 20px;
}

.team-logo {
  display: block;
  margin: 0 auto 28px;
  width: 700px;
  height: 300px;
  object-fit: cover;
}

.team-slogan {
  font-size: 1.05em;
  font-weight: 500;
  color: #00a8a8;
  margin-top: 12px;
}

.project-github {
  display: inline-block;
  margin-top: 24px;
  padding: 10px 16px;
  background-color: #00a8a8;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1em;
  transition: background-color 0.3s ease;
}

.project-github:hover {
  background-color: #007f7f;
}
