/* === 기본 세팅 및 변수 정의 === */
:root {
  /* 테마와 관계없이 인트로에서 사용할 색상 변수 선언 */
  /* 이 값은 JS에 의해 동적으로 변경됩니다. */
  --intro-text-color: black; 
  --transition-duration: 0.3s;
  --primary-color: #f0f0f0; /* 예시 */
  --primary-content-color: #111; /* 예시 */
}

body[data-theme="dark"] {
  --primary-color: #1a1a1a; /* 예시 */
  --primary-content-color: #eee; /* 예시 */
}

body[data-theme="light"] {
  --primary-color: #f0f0f0; /* 예시 */
  --primary-content-color: #111; /* 예시 */
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    font-family: 'Pretendard', sans-serif;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    position: relative;
    opacity: 0; /* body 초기 투명하게 설정 */
    transition: opacity 0.3s ease-out; /* body 페이드 인 효과 */
}

/* --- New Intro Screen Styles --- */
#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
}

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    background-size: cover;
    filter: brightness(0.7);
}

.intro-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5vh 5vw;
    box-sizing: border-box;
}

.typing-container {
    position: absolute;
    top: 10vh;
    left: 7vw;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--intro-text-color);
    font-family: 'Pretendard', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(20px);
}

.typing-text {
    overflow: hidden;
    white-space: nowrap;
    color: var(--intro-text-color);
}

.typing-text-line1 {
    border-right: none;
}

.typing-text-line2 {
    border-right: 2px solid transparent;
}

#countdown-container {
    position: absolute;
    bottom: 5vh;
    right: 5vw;
    font-family: 'night', sans-serif;
    font-size: 8vw;
    color: var(--intro-text-color);
    text-align: right;
    pointer-events: none;
}

.countdown-number {
    opacity: 0;
    line-height: 1;
    margin: 0;
    padding: 0;
    transform: translateY(20px);
}

#scroll-down-arrow {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    color: var(--intro-text-color);
    cursor: var(--cursor-grab2);
    opacity: 0.9;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    z-index: 10;
    pointer-events: none;
    will-change: opacity, transform; /* 애니메이션 성능 최적화 */
}

#scroll-down-arrow:hover {
    transform: translateX(-50%) translateY(-10px);
    color: var(--intro-text-color);
}

/* --- Responsive adjustments --- */
@media screen and (max-width: 1024px) {
    .typing-container { font-size: 2rem; }
    #countdown-container { font-size: 10vw; }
}

@media screen and (max-width: 768px) {
    .typing-container { font-size: 1.5rem; top: 8vh; left: 8vw; }
    #countdown-container { font-size: 15vw; bottom: 3vh; right: 3vw; }
    #scroll-down-arrow { font-size: 2.5rem; bottom: 2vh; }
}

@media screen and (max-width: 480px) {
    .typing-container { font-size: 1.2rem; top: 8vh; left: 6vw; }
    #countdown-container { font-size: 20vw; bottom: 2vh; right: 2vw; }
    #scroll-down-arrow { font-size: 2rem; bottom: 1vh; }
}

/* ▼▼▼ [삭제] .theme-icon 관련 스타일 규칙들이 여기에서 삭제되었습니다. ▼▼▼ */