/* 
 * 아떼 뮤지엄 스타일 참조하여 풀스크린 히어로 세션 구현
 * 다른 섹션에 영향을 주지 않도록 격리된 스타일
 * 2024-06-23 수정: 헤더까지 완전 풀스크린 적용
 */

/* 전체 페이지 기본 설정 */
body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

/* 히어로 섹션 설정 */
.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* 전체 뷰포트 높이 차지 */
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 히어로 비디오 풀스크린 설정 - 헤더까지 꽉 차게 */
.hero-video {
    position: fixed !important; /* 고정 위치로 변경 */
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important; /* 뷰포트 너비 전체 */
    height: 100vh !important; /* 뷰포트 높이 전체 */
    object-fit: cover !important; /* 비디오가 화면을 꽉 채우도록 설정 */
    z-index: -1 !important;
    transform: translateZ(0) !important; /* 하드웨어 가속 활성화 */
}

/* 히어로 콘텐츠 설정 - 비디오 위에 표시 */
.hero-content {
    position: relative; 
    z-index: 10 !important; /* 높은 z-index로 비디오 위에 표시 */
    text-align: center;
    padding: 0 20px;
    max-width: 1200px;
    width: 100%;
    margin-top: 80px; /* 헤더 아래로 콘텐츠 위치 조정 */
}

/* 헤더 투명 설정 강화 - 영상이 헤더까지 보이도록 */
header {
    background-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 10000 !important; /* 비디오보다 위에 표시 */
}

/* 헤더 스크롤 시 스타일 */
header.scrolled {
    background-color: rgba(10, 10, 42, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* about 섹션 설정 */
#about {
    position: relative !important;
    z-index: 5 !important;
    background: #fff !important;
    margin-top: 0 !important;
}

/* 히어로 타이틀 스타일 */
.hero h1 {
    font-size: clamp(4rem, 10vw, 7rem); /* 반응형 폰트 크기 */
    margin-bottom: 10px;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.hero h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 400;
    margin-bottom: 40px;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 히어로 오버레이 - 배경 그라데이션 효과 */
.hero::before {
    content: '';
    position: fixed !important; /* 고정 위치로 변경 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 0;
}

/* 캐릭터 이미지 크기 최적화 */
.hero-characters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-character {
    max-height: 120px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.hero-character:hover {
    transform: translateY(-10px);
}

/* CTA 버튼 영역 */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.cta-buttons .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.cta-buttons .primary {
    background-color: #00c6ff;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 198, 255, 0.3);
}

.cta-buttons .primary:hover {
    background-color: #00a8e6;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 198, 255, 0.4);
}

.cta-buttons .secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.cta-buttons .secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

/* 모바일 최적화 스타일 */
@media (max-width: 768px) {
    .hero-characters {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .hero-character {
        max-height: 80px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 250px;
        margin: 5px 0;
    }
    
    /* 모바일에서 헤더까지 비디오 풀스크린 보장 */
    .hero-video {
        width: 100vw !important;
        height: 100vh !important;
        object-fit: cover !important;
    }
}

/* iOS 디바이스 추가 최적화 */
@supports (-webkit-touch-callout: none) {
    .hero-video {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        object-fit: cover !important;
    }
}

/* 특수 애니메이션 효과 - 아떼 뮤지엄 스타일 */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

.hero h1 {
    animation: float 5s ease-in-out infinite;
} 