/* 기본 초기화 */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* 🚩 로고 스타일 */
.logo-fixed {
    position: fixed;
    top: 10px;
    left: 20px;
    z-index: 1000;
}

.logo-fixed img {
    height: 80px;
}

.divergence-box {
    position: fixed;
    top:10px;/* 상단 여백 */
    right: 10px; /* 왼쪽(left)에서 오른쪽(right)으로 변경 */
    
    
    color: #ffffff; /* 전체 글자색을 형광 녹색으로 */
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    font-weight: bold;
    z-index: 1001;
    /* 미래 느낌을 주는 강한 네온 효과 */
    
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}

.divergence-box .label {
    color: #ffffff
    ;
    margin-right: 10px;
    opacity: 0.8; /* 라벨은 살짝 투명하게 해서 수치와 구분 */
}

#divergence-value {
    letter-spacing: 1px;
}


.sub-page {
    background-color: #000;
    color: #fff;
    font-family: 'Arial', sans-serif; /* SpaceX는 Roboto나 가독성 높은 산세리프 사용 */
    overflow-x: hidden;
}



/* --- 공통 섹션 설정 --- */
section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* --- 1번 칸: Hero (중앙 정렬) --- */
.section-hero {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('image/hero_bg.jpg');
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0; /* 처음에는 안 보이게 */
    animation: fadeInUp 1.2s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.hero-title {
    font-size: 5rem; /* SpaceX 특유의 거대 폰트 */
    font-weight: bold;
    letter-spacing: -2px;
    margin: 10px 0;
}

.subtitle {
    font-size: 1.3rem;
    letter-spacing: 4px;
    opacity: 0.8;
}

/* --- 2번 칸 이후: SpaceX 레이아웃 (왼쪽 하단 정렬) --- */
.section-content {
   
    padding: 20px;
    justify-content: center;
    align-items: center;
    text-align: match-parent;
    opacity: 0; /* 처음에는 안 보이게 */
    animation: fadeInUp 1.2s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

/* 배경 이미지 예시 */
.bg-image-0 { background-image: url('image/tech0.jpg'); }
.bg-image-1 { background-image: url('image/tech1.jpg'); }
.bg-image-2 { background-image: url('image/tech2.jpg'); }
.bg-image-3 { background-image: url('image/tech3.jpg'); }
.bg-image-4 { background-image: url('image/tech4.jpg'); }
.bg-image-5 { background-image: url('image/tech5.jpg'); }
.bg-image-6 { background-image: url('image/tech6.jpg'); }
.bg-image-7 { background-image: url('image/tech7.jpg'); }
.bg-image-8 { background-image: url('image/tech8.jpg'); }
.bg-image-9 { background-image: url('image/tech9.jpg'); }

.info-box {
    max-width: 500px;
    animation: fadeInUp 1s ease-out;
    text-align: center; /* SpaceX처럼 부드럽게 등장 */
}

.info-box h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.info-box p {
    
    text-align: match-parent;
    
    font-weight: 100;
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom:30px;
    font-weight: 100;
}

/* --- SpaceX 스타일 버튼 --- */


/* 등장 애니메이션 */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .section-content { padding: 0 20px 50px 20px; }
    .info-box h2 {
        font-size: 1.8rem; /* 모바일 제목 크기 조정 */
    }
    
    .info-box p {
        font-size: 1rem;   /* 모바일 본문 크기 조정 */
        padding: 0 10px;   /* 양옆 여백 한 번 더 확보 */
    }
}



/* 스크롤바 디자인 */
body::-webkit-scrollbar {
    width: 6px;
}
body::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}
body::-webkit-scrollbar-track {
    background: #000;
}


.highlight {
  font-weight: 700;
  color: #00ff88;

  animation: flicker 1.5s infinite;
  text-align: match-parent;
}

@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    text-shadow:
      0 0 1px #00ff88,
      0 0 1px #00ff88,
      0 0 2px #00ff88;
    opacity: 1;
  }

  20%, 24%, 55% {
    text-shadow: none;
    opacity: 0.4;
  }
}

.blink {
  animation: blink 1s infinite;
  text-align: match-parent;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.glitch-text {
  position: relative;
  display: inline;
  font-weight: bold;
  color: #fff;
  /* 치지직거리는 애니메이션: 0.2초마다 무작위로 흔들림 */
  animation: glitch 0.2s infinite;
  text-align: match-parent;
}

@keyframes glitch {
  0% {
    text-shadow: 2px 0 #ff00c1, -2px 0 #00fff9;
    transform: translate(0);
  }
  20% {
    text-shadow: -2px 0 #ff00c1, 2px 0 #00fff9;
    transform: translate(-1px, 1px);
  }
  40% {
    text-shadow: 2px 0 #ff00c1, -2px 0 #00fff9;
    transform: translate(-1px, -1px);
  }
  60% {
    text-shadow: -2px 0 #ff00c1, 2px 0 #00fff9;
    transform: translate(1px, 1px);
  }
  80% {
    text-shadow: 2px 0 #ff00c1, -2px 0 #00fff9;
    transform: translate(1px, -1px);
  }
  100% {
    text-shadow: -2px 0 #ff00c1, 2px 0 #00fff9;
    transform: translate(0);
  }
}

.subtle-glitch {
  display: inline;
  text-align: match-parent;
 
  color: #fff;
  /* 3초마다 무한 반복 */
  animation: subtle-glitch-animation 3s infinite;
}

@keyframes subtle-glitch-animation {
  /* 0%부터 92%까지는 변화 없음 (고요한 상태) */
  0%, 92% {
    transform: translate(0);
    text-shadow: none;
    opacity: 1;
  }
  /* 93%~100% 짧은 순간에만 치지직 (인과율 노이즈) */
  93% {
    transform: translate(1px, -1px);
    text-shadow: 1px 0 #ff4500, -1px 0 #00fff9;
    opacity: 0.9;
  }
  95% {
    transform: translate(-1px, 1px);
    text-shadow: -1px 0 #ff4500, 1px 0 #00fff9;
  }
  97% {
    transform: translate(1px, 1px);
    text-shadow: 1px 0 #ff4500, -1px 0 #00fff9;
    opacity: 0.8;
  }
  100% {
    transform: translate(0);
    text-shadow: none;
    opacity: 1;
  }
}