:root {
    --bg-dark: #1a1d2c;
    --text-light: #f5f5f5;
    --text-secondary: #ffffff;
    --accent-color: #87CEEB;
    /* Sky Blue */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Pretendard', sans-serif;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-sans);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
.skywalk-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    z-index: 100;
    box-sizing: border-box;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.back-link:hover {
    opacity: 1;
    transform: translateX(-5px);
}


/* --- Fullscreen Hero Section --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    z-index: 1;
    display: flex;
    justify-content: flex-start;
    /* ✅ 콘텐츠를 왼쪽으로 정렬 */
    align-items: flex-start;
    /* ✅ 콘텐츠를 위쪽으로 정렬 */
    padding: 15vh 8vw;
    /* ✅ 상단(25vh) 및 좌측(8vw) 여백 설정 (값 조절 가능) */
    box-sizing: border-box;
    overflow: hidden;
}

.hero-section video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent 50%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: left;
    /* ✅ 텍스트를 왼쪽으로 정렬 */
    color: var(--text-light);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    opacity: 0;
    animation: fadeInContent 1.2s 0.5s ease-out forwards;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 6rem);
    margin: 0 0 0.5rem;
    font-weight: 700;
}

.hero-content p {
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin: 0;
    font-weight: 400;
    opacity: 0.9;
}


/* --- Text Block (Detailed Description) --- */
.text-block {
    position: absolute;
    bottom: 15vh;
    right: 40px;
    max-width: 280px;
    font-size: 0.75rem;
    line-height: 1.7;
    color: var(--text-secondary);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    text-align: right;
    z-index: 3;
    opacity: 0;
    animation: fadeInContent 1.2s 1s ease-out forwards;
}

.text-block h2 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    line-height: 1.4;
    margin: 0 0 1rem 0;
    color: var(--text-light);
}

.text-block p {
    font-size: 0.75rem;
    margin: 0 0 0.5rem 0;
}


/* NEW: Footer */
.facility-footer {
    padding: 1rem 1rem;
    background-color: var(--bg-dark);
    color: var(--text-secondary);
    border-top: 2px solid;
    border-image: linear-gradient(to right, transparent, var(--accent-color), transparent) 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.copyright {
    font-size: 0.8rem;
    margin: 0;
}

/* --- Animations --- */
@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- Responsive Design --- */
@media (max-width: 768px) {
    .skywalk-header {
        padding: 15px 20px;
    }

    .hero-content h1 {
        font-size: clamp(1.8rem, 8vw, 3rem);
    }

    .text-block {
        bottom: 80px;
        /* vh 단위가 모바일 브라우저에서 화면 높이를 다르게 계산하여 오버플로우를 유발할 수 있어, px 단위로 변경하여 화면 하단에 안정적으로 표시되도록 조정했습니다. */
        right: 20px;
        left: 20px;
        /* Take full width on small screens */
        max-width: none;
        /* Override max-width */
        text-align: center;
        /* Center align text */
        background: rgba(0, 0, 0, 0.2);
        /* Add subtle background for readability */
        padding: 15px;
        border-radius: 8px;
    }

    .text-block h2 {
        font-size: 1rem;
    }

    .text-block p {
        font-size: 0.7rem;
        text-align: left;
    }
}