/* IGNITE 2025 Styles */

html, body {
  overflow-x: hidden !important;
}

body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  background: linear-gradient(45deg, #f5bb4a 25%, #EDA53E 50%, #F26D2A 75%, #D0431D 100%);
  background-size: 400% 400%;        /* 💡 배경 크기를 키워서 움직임 공간 확보 */
  animation: gradientFlow 8s ease infinite;
  color: white;
  padding-top: 80px;
  overflow-x: hidden;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 0%;
  }
  25% {
    background-position: 50% 50%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 50% 50%;
  }
  100% {
    background-position: 0% 0%;
  }
}

.categories-carousel-track,
.categories-nominee-cards {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: hidden;
}

/* Header */
.main-header {
  background: rgba(255, 255, 255, 0.3);             /* 반투명 흰색 */
  backdrop-filter: blur(10px);                      /* 💡 핵심: blur 효과 */
  -webkit-backdrop-filter: blur(10px);              /* Safari 대응 */
  border-bottom: 1px solid rgba(255, 255, 255, 1);
  padding: 1rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  height: 50px;
  margin-left: 110px; /* ← 추가 */
}

.main-nav ul {
  margin-right: 110px;
  display: flex;
  gap: 2rem;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  color: #000000;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}

/* 마우스 호버 시 흰색으로 변경 */
.main-nav a:hover,
.main-nav a.active {
  color: white;
}

/* Hero */
.hero {
  padding: 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  text-align: center;
}

.hero-content.split-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.hero-logo-wrap {
  flex: 1;
  text-align: center;
}

.hero-logo {
  max-width: 100%;
  width: 642px;
  height: auto;
}

.hero-text {
  flex: 1;
  text-align: center;
  color: white;
  margin-top: -4rem;
}

.hero-text h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  text-shadow: 0 7px 14px rgba(0, 0, 0, 0.4);
}

.hero-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-shadow: 0 7px 14px rgba(0, 0, 0, 0.4);
}

.hero-text p:nth-of-type(2) {
  font-weight: 600; /* semi-bold */
  font-size: 1.1rem;
  line-height: 1.6;
}

.hero-text .event-details {
  text-align: left;
  display: inline-block; /* 내용 폭만큼만 */
  margin-top: 0.5rem;
  margin-left: 2.7rem;
  font-weight: 600; /* 기존과 통일 */
  font-size: 1.1rem;
  line-height: 1.6;
}

.hero-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn, .btn-outline, .btn-black {
  padding: 0.8rem 2rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
}

.btn {
  background: white;
  color: #333;
}

.btn:hover {
  background: #333333;
  color: white;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid white;
  color: white;
}

.btn-outline:hover {
  background: white;
  color: #333333;
}

.btn-black {
  background: #333;
  color: white;
  border: none;
}

/* About Section */
.about-section {
  padding: 100px 110px;
  display: flex;
  flex-wrap: wrap;
  gap: 70px;
  justify-content: center;
  align-items: center;
}


.about-text {
  flex: 0 0 574px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: -4rem;
  padding-bottom: 6rem;
}


.about-text h2 {
  font-size: 50px;
  line-height: 66px;
  font-weight: 700;
  text-shadow: 0 7px 14px rgba(0, 0, 0, 0.4);
}

.about-text ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.about-text ul li {
  font-weight: 800;
  line-height: 1.6;
}

.about-text .btn-black {
  display: inline-flex;
  margin-left: auto;
  background: black;
  color: white;
  border: none;
}

.btn-black:hover {
  background: #555555;
  color: white;
}

.about-image img {
  width: 550px;
  height: 550px;
  object-fit: cover;           /* 핵심: 넘치는 부분은 자르고, 꽉 채움 */
  object-position: left;     /* 중앙 기준으로 자르기 */
  border-radius: 30px;
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.6);
  margin-bottom: 4rem;
}


/* Categories Section */
.categories-section {
  display: flex;
  justify-content: center;
  align-items: auto;
  flex-wrap: wrap;
  gap: 70px;
  margin-top: 4rem;
}

.categories-text {
  flex: 0 0 574px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
}

.categories-text h2 {
  font-size: 50px;
  line-height: 66px;
  font-weight: 700;
  text-shadow: 0 7px 14px rgba(0, 0, 0, 0.4);
}

.categories-text ul {
  font-weight: 800;
  line-height: 1.6;
}

.categories-text p {
  list-style: none;
  padding: 0;
}

.categories-text ul li.no-dot {
  list-style-type: none;
  margin-left: 0; /* 필요시 조정 */
  padding-left: 1ch; /* 텍스트 정렬 맞춤용 (선택사항) */
}

.categories-text .btn-black {
  display: inline-flex;
  margin-left: auto;
  background: black;
  color: white;
  border: none;
}

.btn-black:hover {
  background: #555555;
  color: white;
}

.categories-carousel-wrapper {
  overflow-x: hidden;  /* ✅ 이게 꼭 필요함! */
  position: relative;
  max-width: 550px;
  padding-bottom: 30px;
}

.categories-carousel-track {
  display: flex;
  gap: 40px;
  position: relative;
  width: max-content;
}

.categories-carousel-track img {
  width: 360px;
  height: 510px;
  border-radius: 30px;
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.6);
  margin-bottom: 15px;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Nominees Section */
.nominees-section {
  padding: 100px 0;
  display: flex;
  justify-content: center;
  background: transparent; /* 기존 그라디언트가 body에서 내려오도록 */
}

.nominees-container {
  max-width: 1220px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.nominees-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.nominees-header h2 {
  font-size: 50px;
  font-weight: 700;
  color: white;
  text-shadow: 0 7px 14px rgba(0, 0, 0, 0.4);
}

.nominees-container .btn-black {
  display: flex;
  background: black;
  color: white;
  border: none;
}

.btn-black:hover {
  background: #555555;
  color: white;
}

.nominees-carousel-wrapper {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

.nominee-cards {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 40px;
  width: max-content;
  padding: 1rem;;
}

@keyframes nominee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.nominee-cards::-webkit-scrollbar {
  display: none;
}

.nominee-cards img{ box-shadow:none; }

.nominee-cards .thumb-wrap{
  width: 20rem;
  height: 20rem;
  border-radius: 30px;
  overflow: hidden;
  display:flex;align-items:center;justify-content:center;
  background:#eee;               /* ColorThief 실패 시 기본값 */
  box-shadow: 0 7px 14px rgba(0,0,0,.6);
}

/* 실제 이미지: 그림자 제거, 비율 유지 */
.nominee-cards .thumb-img{
  width:100%; height:100%;
  object-fit: contain;
  border-radius:30px;
  display:block;
  box-shadow:none;               /* ← 겹치는 그림자 제거 */
}


/* 641~1024px 카드 크기 */
@media (max-width:1024px) and (min-width:641px){
  .nominee-cards .thumb-wrap{ width:18rem; height:18rem; }
}

/* ≤640px: 화면폭 기준 정사각형 */
@media (max-width:640px){
  .nominee-cards .thumb-wrap{ width:70vw; height:70vw; }
}



/* Footer */
footer {
  color: white;
  border-top: 1px solid rgba(255, 255, 255, 1);
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  line-height: 1.6;
}


@media (max-width: 1024px) {
  .hero-content.split-layout {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }

  .hero-logo {
    width: 70%;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

    .categories-section {
    flex-direction: column;
    padding: 3rem 2rem;
    margin-left: 0;
    gap: 3rem;
  }


  .carousel-track img,
  .nominee-cards img {
    width: 90%;
    height: auto;
  }

  .carousel-track,
  .nominee-cards {
    gap: 1rem;
  }

  .carousel-wrapper,
  .categories-carousel-wrapper,
  .nominees-carousel-wrapper {
    margin-left: 0;
    max-width: 100%;
  }

  .btn, .btn-outline, .btn-black {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 900px) {
  .about-section {
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 3rem;
  }

  .about-image img {
    width: 90%;
    height: auto;
  }

  .about-text {
    flex: unset;
    align-items: center;
    text-align: center;
  }
}


/* 🔽 반응형 - 모바일 (최대 640px) */
@media (max-width: 640px) {
  .hero-text h1 {
    font-size: 1.8rem;
    line-height: 1.4;
  }

  
  .hero-text p {
    font-size: 1rem;
  }

  .about-text h2,
  .categories-text h2,
  .nominees-header h2 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .main-nav ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    justify-items: center;
    padding: 0;
  }

  .main-nav ul li:nth-child(1),
  .main-nav ul li:nth-child(3) {
    justify-self: center;
    padding-left: 4rem;
  }

  .main-nav ul li:nth-child(2),
  .main-nav ul li:nth-child(4) {
    justify-self: end;
    padding-left: 4rem; /* ⬅️ 적당한 우측 여백 */
  }

  .main-header {
    flex-direction: column;
    align-items: center;
  }

  .main-nav a {
    font-size: 1rem;
  }

  .logo {
    margin-left: 0;
  }

  .categories-carousel-track img {
  width: 50vw;
  height: auto;
}
  .nominee-cards img {
  width: 70vw;
  height: 70vw;
  object-fit: contain;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}
}

@keyframes auto-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.nominee-cards.animate-scroll {
  animation: auto-scroll 300s linear infinite;
  will-change: transform;
}

@media (max-width: 1024px) and (min-width: 641px) {
  .nominee-cards img {
    width: 18rem;          /* 혹은 px 단위로 카드 크기 통일 */
    height: 18rem;
    object-fit: cover;     /* 비율 유지하며 채우기 */
  }
}
