/* Hero Section 유지 */
.project-hero-video {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 1;
  object-fit: cover;
  opacity: 0.9;
}

.project-hero-video::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 1rem;
}

.hero-overlay h1 {
  font-size: 5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
}

.hero-overlay p {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  line-height: 1.5;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  max-width: 800px;
}

.hero-button {
  background-color: #00aacc;
  color: #fff;
  font-size: 1.3rem;
  padding: 1rem 2.5rem;
  border-radius: 2.5rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease, transform 0.3s ease,
    box-shadow 0.3s ease;
}

.hero-button:hover {
  background-color: #00aacc;
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.project-section {
  padding: 5.5rem 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.project-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-section h2 {
  font-size: 2rem;
  color: #00aacc;
  text-align: center;
  font-weight: 900;
  margin-bottom: 4rem;
  position: relative;
}

.project-section h2::after {
  position: absolute;
  content: '';
  width: 64px;
  height: 0.25rem;
  background-color: #00aacc;
  left: 0;
  right: 0;
  top: 3rem;
  margin: 0 auto;
}

.project-section p {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.project-section ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-section ul li {
  background-color: #f9f9f9;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  color: #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-section ul li:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.project-section ul li::before {
  content: none;
}

.project-section ul li span.icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.env__stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

.env__stack-card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  padding: 0 8rem;
}

.env__stack-card {
  background-color: #f9f9f9;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.env__stack-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  background-color: #f0fbfc;
}

.env__stack-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.env__stack-card .section__description {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1rem;
  text-align: center;
}

.env__stack-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.env__stack-card.env-frontend {
  background-color: #f0fbfc;
}

.env__stack-card.env-backend {
  background-color: #f9fef4;
}

.env__stack-card.env-collab {
  background-color: #fdf8f8;
}

.project-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-section__image--center {
  text-align: center;
  margin-bottom: 2rem;
}

.project-section__image--center img {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.image-slider__wrapper {
  position: relative;
  width: 100%;
  max-width: 850px;
  margin: 2rem auto;
}

.image-slider {
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.image-slider__track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.image-slider__track img {
  min-width: 100%;
  height: auto;
  display: block;
}

.image-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  color: #000;
  border: none;
  font-size: 2.5rem;
  padding: 0;
  cursor: pointer;
  z-index: 10;
}

.image-slider__btn.prev {
  left: -55px;
}

.image-slider__btn.next {
  right: -55px;
}

.image-slider__btn:hover {
  color: #333;
}

.problem-type-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 0 2rem;
  max-width: 1400px;
  margin: 2rem auto;
}

.problem-type-card {
  background-color: #0f1a2b;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  padding: 1.5rem 1rem 1rem 1rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease;
  color: #fff;
}

.problem-type-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  background-color: #152640;
}

.problem-type-card img {
  width: 130%;
  max-width: 180px;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
}

.problem-type-card h3 {
  font-size: 1.3rem;
  font-weight: 900;
  margin-top: 0.35rem;
  margin-bottom: 0.85rem;
  color: #ffcc00;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.problem-type-card p {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.5;
  margin: 0;
  padding: 0 0.5rem;
}

.team-card__container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  padding: 0 1rem;
}

.team-card {
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  padding: 2rem 1rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.team-card__img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.team-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.team-card__name a {
  color: #00aacc;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  width: 100%;
}

.team-card__name a:hover {
  text-decoration: underline;
}

.team-card__role {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
}

.team-card__role p {
  margin: 0.3rem 0;
}

.team-card__guide {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #777;
}

.team-card__container--4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 0 1rem;
}

/* COBY 전용 테마 */
.coby-theme .section__title {
  color: #9b59b6;
}

.coby-theme .section__title::after {
  background-color: #9b59b6;
}

.coby-theme .hero-button {
  background-color: #9b59b6;
}

.coby-theme .hero-button:hover {
  background-color: #8e44ad;
}

/* Battlecoding 전용 */
.battlecoding-theme .floating-button {
  background-color: #00aacc;
}

.battlecoding-theme .floating-button:hover {
  background-color: #1d1d1d;
}

/* COBY 전용 */
.coby-theme .floating-button {
  background-color: #9b59b6;
}

.coby-theme .floating-button:hover {
  background-color: #1d1d1d;
}

.coby-theme .team-card__name a {
  color: #9b59b6;
}

/* GS 전용 */
.gs-theme .floating-button {
  background-color: rgb(0, 87, 63);
}

.gs-theme .floating-button:hover {
  background-color: #1d1d1d;
}

.gs-theme .section__title,
.gs-theme .project-section h2 {
  color: rgb(0, 87, 63);
}

.gs-theme .section__title::after,
.gs-theme .project-section h2::after {
  background-color: rgb(0, 87, 63);
}

.gs-theme .hero-button {
  background-color: rgb(0, 87, 63);
}

.gs-theme .hero-button:hover {
  background-color: rgb(0, 87, 63);
}

.process-flow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 2rem 1rem;
}

.process-step {
  text-align: center;
  max-width: 370px;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.process-step img {
  max-width: 100%;
  border-radius: 0.75rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  margin-bottom: 1rem;
}

.process-arrow {
  font-size: 4rem;
  color: rgb(0, 87, 63);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.process-step.hidden {
  opacity: 0;
  transform: translateY(20px);
}

.process-step p {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.6;
}

.process-description {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.feature-timeline {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3rem;
  padding: 2rem 1rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 260px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s forwards;
}

.feature-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  margin-bottom: 1rem;
}

.feature-item p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

.feature-summary {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.05rem;
  color: #555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;

  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s forwards;
  animation-delay: 1.3s;
}

.timeline-animated .delay-0 {
  animation-delay: 0.1s;
}
.timeline-animated .delay-1 {
  animation-delay: 0.4s;
}
.timeline-animated .delay-2 {
  animation-delay: 0.7s;
}
.timeline-animated .delay-3 {
  animation-delay: 1s;
}
.timeline-animated .delay-4 {
  animation-delay: 1.3s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 반응형 대응 */
@media (max-width: 1200px) {
  .team-card__container--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .team-card__container--4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) {
  .team-card__container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .team-card__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .team-card__container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) {
  .problem-type-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .problem-type-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 830px) {
  .image-slider__btn.prev {
    left: 10px;
    color: #fff;
  }

  .image-slider__btn.next {
    right: 10px;
    color: #fff;
  }
}

.gs-theme .image-slider__btn {
  color: #000 !important;
}
