/* index.html 전용 스타일 */

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    color: #fff;
  }
  
  .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
      radial-gradient(circle at 20% 50%, var(--primary) 0%, transparent 50%),
      radial-gradient(circle at 80% 50%, var(--secondary) 0%, transparent 50%),
      radial-gradient(circle at 50% 50%, var(--accent) 0%, transparent 50%);
    opacity: 0.15;
    z-index: -1;
  }
  
  .image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
  }
  .bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
    filter: brightness(0.7);
  }
  .bg-image.active {
    opacity: 1;
    z-index: 1;
  }
  .fade-in {
    animation: fadeIn 1s forwards;
  }
  .fade-out {
    animation: fadeOut 1s forwards;
  }
  @keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
  }
  @keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
  }
  
  .hero-aside {
    position: absolute;
    left: 30%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 2rem;
    align-items: center;
    z-index: 5;
  }
  
  /* 프로모션 문구 */
  .promo-section {
    width: 600px;
  }
  .promo-text {
    font-size: 3rem;
    margin-bottom: 3rem;
    line-height: 1.3;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
  }
  .promo-box a {
    border: 2px solid #fff;
    color: #fff;
    background: none;
    border-radius: 4px;
    padding: 1rem 2rem;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
  }
  .promo-box a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }
  
  /* awards box */
  .hero-right {
    width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .awards-box {
    width: 100%;
    max-width: 450px;
    height: 450px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
  }
  .award-item {
    font-size: 1.2rem;
    margin: 0.3rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    color: #fff;
  }
  .award-item.show {
    opacity: 1;
    transform: translateY(0);
  }
  .awards-pagination {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
  }
  .dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
  }
  .dot.active {
    background: #fff;
  }
  
  /* Section2 : 5개 박스 */
  .section2 {
    width: 100%;
    background: #111;
    padding: 80px 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
  }
  .section2 h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    background-color: #fff; 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .box-container {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    height: 600px;
    border: none;
    gap: 0.5rem;
    overflow: hidden;
    overflow-anchor: none;
  }
  .box {
    flex: 1;
    border-radius: 20px;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    transition: 
        flex 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
        background 0.3s, 
        border-color 0.3s;
    opacity: 0;
    transform: translateY(20px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

/* 각 박스별 배경 이미지 설정 */
.box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    opacity: 0.6;  /* 이미지 투명도 조절 */
    transition: opacity 0.3s ease;
}

/* 각 박스별 다른 이미지 설정 */
.box:nth-child(1)::before {
    background-image: url('https://picsum.photos/id/1015/1920/1080');
}

.box:nth-child(2)::before {
    background-image: url('https://picsum.photos/id/1016/1920/1080');
}

.box:nth-child(3)::before {
    background-image: url('https://picsum.photos/id/1018/1920/1080');
}

.box:nth-child(4)::before {
    background-image: url('https://picsum.photos/id/1019/1920/1080');
}

.box:nth-child(5)::before {
    background-image: url('https://picsum.photos/id/1021/1920/1080');
}

/* 호버 시에도 이미지 유지 */
.box:hover::before {
    opacity: 0.8;  /* 호버 시 이미지 더 선명하게 */
}

/* 다른 박스 호버 시에도 현재 박스 이미지 유지 */
.box-container:hover .box:not(:hover)::before {
    opacity: 0.4;  /* 비활성 박스 이미지 약간 흐리게 */
}

/* 기존 box-content 스타일 수정 */
.box-content {
    z-index: 2;  /* 이미지 위에 컨텐츠가 보이도록 */
    width: 100%;
    opacity: 1;
    transition: opacity 0.3s ease;
    position: relative;  /* z-index가 작동하도록 */
}

/* 다크 오버레이 추가 */
.box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 0.7)
    );
    z-index: 1;
}

/* 호버 시 비활성 박스 컨텐츠 숨기기 */
.box-container:hover .box:not(:hover) .box-content {
    opacity: 0;
    pointer-events: none; /* 호버 상태 방지 */
}
  
  .content-category {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 1rem;
    font-weight: bold;
  }
  
  .content-title {
    margin-top: 1.5rem;
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 2rem;
    line-height: 1.3;
  }
  
  .more-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    margin-top: 3rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: background-color 0.3s;
  }
  
  .more-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .box-container:hover .box {
    flex: 0.3;
  }
  .box:hover {
    flex: 3 !important;
    z-index: 2;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}
  
  /* 반응형 (index 전용) */
  @media screen and (max-width: 1200px) {
    .hero-aside {
      position: static;
      transform: none;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin: 2rem auto 0;
      text-align: center;
    }
    .promo-section {
      width: 100%;
      max-width: 600px;
      margin: 0 auto;
      text-align: center;
    }
    .promo-text {
      font-size: 2.5rem;
      margin-bottom: 2rem;
    }
    .promo-box {
      display: flex;
      justify-content: center;
    }
    .awards-box {
      width: 450px;
      max-width: 90%;
      height: 450px;
    }
    
    /* Section2 모바일 스타일 */
    .section2 h2 {
      font-size: 2.5rem;
      margin-bottom: 2rem;
    }
    
    .box-container {
      flex-direction: column;
      width: 90%;
      height: auto;
      gap: 1rem;
    }
    
    .box {
      flex: none;
      width: 100%;
      height: 220px;
      margin-bottom: 0;
      padding: 2rem;
      transition: 
        height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.3s, 
        border-color 0.3s;
    }
    
    .content-category {
      font-size: 1rem;
    }
    
    .content-title {
      font-size: 1.8rem;
      margin-top: 1rem;
      margin-bottom: 1rem;
    }
    
    .box-container:hover .box {
      flex: none;
    }
    
    .box:hover {
      flex: none !important;
      height: 350px;
      transform: none;
    }
    
    .more-button {
      padding: 0.8rem 1.8rem;
      font-size: 1.1rem;
      margin-top: 1.5rem;
    }
    
    /* Section3 모바일 스타일 */
    .img-text-box {
      flex-direction: column;
      width: 90%;
    }
    .img-side {
      flex: none;
      width: 100%;
      height: 200px;
    }
    .text-side {
      width: 100%;
      padding: 1rem;
    }
  }

  /* 더 작은 모바일 화면을 위한 추가 스타일 */
  @media screen and (max-width: 480px) {
    .section2 h2 {
      font-size: 2rem;
    }
    
    .box {
      height: 180px;
      padding: 1.5rem;
    }
    
    .content-category {
      font-size: 0.9rem;
    }
    
    .content-title {
      font-size: 1.5rem;
    }
    
    .more-button {
      padding: 0.7rem 1.5rem;
      font-size: 1rem;
    }
  }

  .box-container:hover .box {
    flex: 0.3;
  }

  .box.show {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Section3 */
  .section3 {
    width: 100%;
    background: #0a0a0a;
    color: #fff;
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .img-text-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 80%;
    margin: 0 auto;
  }
  .img-side {
    flex: 2;
    height: 350px;
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
  }
  .text-side {
    flex: 1;
    align-self: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .text-side h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
  }
  .text-side ul {
    list-style: none;
    line-height: 1.6;
    padding: 0;
    color: #94a3b8;
  }
  .slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s;
    filter: brightness(0.8);
  }
  .slide-img.active {
    opacity: 1;
    z-index: 1;
  }
  .awards-pagination3 {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
  }
  .dot3 {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
  }
  .dot3.active {
    background: #fff;
  }
  
  /* 모바일에서는 적용 안되도록 */
  @media (hover: hover) and (pointer: fine) {
    .box-container:hover .box:not(:hover) .box-content {
        opacity: 0;
        pointer-events: none;
    }
    .box-container:hover .box {
        flex: 0.3;
    }
    .box:hover {
        flex: 3 !important;
    }
}
  