/* ===========================
   JARVIS 페이지 기본 설정
=========================== */
.jarvis-page {
  background: radial-gradient(circle at top, #061a2f, #02040a 70%);
  color: #d6f6ff;
  font-family: 'Orbitron', 'Pretendard', sans-serif;
}

/* ===========================
   컨테이너
=========================== */
.jarvis-page .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* ===========================
   3D 캐러셀 (JARVIS MODULES)
=========================== */
.scene {
  width: 420px;
  height: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1400px;
}

.carousel {
  width: 300px;
  height: 300px;
  position: relative;
  transform-style: preserve-3d;
  animation: spin 45s linear infinite;
}

.carousel:hover {
  animation-duration: 45s;
}

/* ===========================
   모듈 카드 배치
=========================== */
.profile {
  position: absolute;
  width: 280px;
  top: 50%;
  left: 50%;
  transition: opacity 0.3s ease;
}

.profile:nth-child(1) {
  transform: translate(-50%, -50%) rotateY(0deg) translateZ(380px);
}
.profile:nth-child(2) {
  transform: translate(-50%, -50%) rotateY(90deg) translateZ(380px);
}
.profile:nth-child(3) {
  transform: translate(-50%, -50%) rotateY(180deg) translateZ(380px);
}
.profile:nth-child(4) {
  transform: translate(-50%, -50%) rotateY(270deg) translateZ(380px);
}

.carousel:hover .profile {
  opacity: 0.25;
}

.carousel:hover .profile:hover {
  opacity: 1;
}

/* ===========================
   JARVIS 홀로그램 카드 UI
=========================== */
.profile-inner {
  background: rgba(0, 234, 255, 0.08);
  padding: 26px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(0, 234, 255, 0.4);
  box-shadow:
    0 0 18px rgba(0, 234, 255, 0.35),
    inset 0 0 12px rgba(0, 234, 255, 0.15);
  backdrop-filter: blur(14px);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.profile-inner h2 {
  color: #4fdcff;
  font-size: 18px;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(79, 220, 255, 0.9);
}

.profile-inner .subtitle {
  font-size: 13px;
  color: #9cecff;
  margin-top: 6px;
  letter-spacing: 0.5px;
}

.profile:hover .profile-inner {
  transform: scale(1.08);
  box-shadow:
    0 0 30px rgba(0, 234, 255, 0.65),
    inset 0 0 18px rgba(0, 234, 255, 0.25);
}

/* ===========================
   모듈 상세 정보
=========================== */
.info {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #d6f6ff;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.35s ease;
}

.profile:hover .info {
  max-height: 200px;
  opacity: 1;
}

/* ===========================
   메인 시스템 영역
=========================== */
.main {
  width: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 40, 60, 0.85),
    rgba(0, 20, 35, 0.9)
  );
  padding: 28px 38px;
  border-radius: 22px;
  border: 1px solid rgba(0, 234, 255, 0.35);
  box-shadow: 0 0 26px rgba(0, 234, 255, 0.25);
}

.main h3 {
  font-size: 24px;
  color: #4fdcff;
  text-shadow: 0 0 12px rgba(79, 220, 255, 0.8);
}

.project-detail p {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.7;
}

.project-list {
  margin-top: 18px;
  list-style: none;
  padding-left: 0;
}

.project-list li {
  margin-bottom: 10px;
  font-size: 14px;
  color: #9cecff;
  padding-left: 20px;
  position: relative;
}

.project-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #00eaff;
}

.project-note {
  margin-top: 18px;
  font-size: 13px;
  color: #78dfff;
  opacity: 0.85;
  font-style: italic;
}

/* ===========================
   애니메이션
=========================== */
@keyframes spin {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}
/* ===========================
   TEAM PAGE RESPONSIVE (MOBILE)
=========================== */
@media (max-width: 768px) {
  /* 컨테이너 여백 축소 */
  .jarvis-page .container {
    padding: 40px 20px;
    gap: 30px;
  }

  /* 3D 씬 축소 */
  .scene {
    width: 320px;
    height: 320px;
  }

  .carousel {
    width: 240px;
    height: 240px;
  }

  /* 카드 크기 축소 */
  .profile {
    width: 220px;
  }

  /*  핵심: Z축 거리 줄이기 */
  .profile:nth-child(1) {
    transform: translate(-50%, -50%) rotateY(0deg) translateZ(260px);
  }
  .profile:nth-child(2) {
    transform: translate(-50%, -50%) rotateY(90deg) translateZ(260px);
  }
  .profile:nth-child(3) {
    transform: translate(-50%, -50%) rotateY(180deg) translateZ(260px);
  }
  .profile:nth-child(4) {
    transform: translate(-50%, -50%) rotateY(270deg) translateZ(260px);
  }

  /* 텍스트 살짝 줄이기 */
  .profile-inner h2 {
    font-size: 16px;
  }

  .profile-inner .subtitle {
    font-size: 12px;
  }

  .info {
    font-size: 12px;
  }

  /* About Me 박스 여백 축소 */
  .main {
    padding: 22px 20px;
  }
}
