/* ==========================================
   PRIME SIX 소개 모달
   ========================================== */

.about-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.about-modal-overlay.active {
  display: flex;
}

.about-modal-container {
  position: relative;
  width: 600px;
  max-width: 100%;
  /* 본체 배경색을 직접 주지 않고 내부에서 채움 */
  background: transparent; 
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(74, 144, 226, 0.15);
  padding: 40px;
  box-sizing: border-box;
  animation: aboutModalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* 테두리 두께만큼의 공간을 확보하기 위해 가상 요소 사용 */
  z-index: 1;
}

/* 1. 그라데이션 테두리 층 */
.about-modal-container::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 20px;
  padding: 2px; /* 이 숫자가 바로 테두리 두께야! */
  background: linear-gradient(to right, #1624b2, #c3202f);
  -webkit-mask: 
     linear-gradient(#fff 0 0) content-box, 
     linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  z-index: -1;
}

/* 2. 실제 내부 어두운 배경 층 (깜빡임 방지용) */
.about-modal-container::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #030521; /* 실제 모달 배경색 */
  border-radius: 20px;
  z-index: -2; /* 테두리보다 더 뒤로 보냄 */
}

@keyframes aboutModalSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.about-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 24px;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
  padding: 0;
}

.about-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ef4444;
  transform: rotate(90deg);
}

.about-modal-header {
  text-align: center;
  margin-bottom: 30px;
}

.about-modal-title {
  font-family: 'kbl', sans-serif;
  font-size: 35px;  
  color: #fff;
  letter-spacing: 1px;
  margin: 0;
  text-transform: uppercase;  
  background-clip: text;
}

.about-modal-body {
  padding: 0;
}

.about-text {
  font-family: 'Pretendard';
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  text-align: center;
  width:100%;
  padding-right:10px;
}

.about-text br {
  display: block;
  content: "";
  margin-top: 8px;
}

.subtitles { 
  font-family: 'kbl';
  font-size:8px;
  color:#1624b2;
 }

/* ==========================================
   반응형 (모바일)
   ========================================== */

@media (max-width: 768px) {
  .about-modal-overlay {
    padding: 15px;
  }

  .about-modal-container {
    width: 100%;
    max-width: 400px;
    padding: 30px 25px;
    border-radius: 16px;
  }

  .about-modal-close {
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .about-modal-title {
    font-size: 24px;
    letter-spacing: 1.5px;
  }

  .about-modal-header {
    margin-bottom: 25px;
  }

  .about-text {
    font-size: 15px;
    line-height: 1.7;
  }
  .about-modal-container,
  .about-modal-container::before,
  .about-modal-container::after {
    border-radius: 16px;
  }
}

@media (max-width: 480px) {
  .about-modal-container {
    max-width: 100%;
    padding: 25px 20px;
  }

  .about-modal-title {
    font-size: 22px;
  }

  .about-text {
    font-size: 14px;
  }
}


/* 스크롤바 전체 너비 설정 */
.about-modal-body::-webkit-scrollbar {
  width: 5px; /* 스크롤바를 아주 얇게 */
}

/* 스크롤바 트랙(바탕) 설정 */
.about-modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02); /* 거의 안 보이게 아주 연하게 */
  border-radius: 10px;
}

/* 스크롤바 막대(손잡이) 설정 */
.about-modal-body::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #1624b2, #c3202f); /* 테두리와 맞춘 그라데이션 */
  border-radius: 10px;
}

/* 스크롤바 막대 호버 시 */
.about-modal-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #1e32f5, #f52a3d); /* 호버 시엔 더 밝게 */
}