html {
    font-size: 16px;
}
body {
    font-family: 'Poppins', 'SUIT', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif !important;
    letter-spacing: -0.05em;
}
* {
    word-break: keep-all;
}

.navbar-expand-lg .navbar-brand {
    width: 9rem !important;
}

/* 히어로 배경 이미지 애니메이션 (기존 HTML 수정 불필요) *
#hero .bg-image {
    /* 배경 이미지 레이아웃 및 렌더링 보장 *
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
    pointer-events: none;

    /* GPU 가속 및 깜빡임 방지 *
    will-change: transform, filter;
    backface-visibility: hidden;

    /* 130% 확대 + 블러 -> 100% 축소 + 선명화 *
    animation: heroBgReveal 5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* 스케일 및 블러 전환 키프레임 
@keyframes heroBgReveal {
    0% {
        transform: scale(1.3);
        filter: blur(12px);
    }
    100% {
        transform: scale(1);
        filter: blur(0);
    }
}
    */
/* 부모 섹션 크기 및 위치 기준 확정 */
#hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

/* 백그라운드 비디오 꽉 채우기 */
#hero .bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
    z-index: 0;
}
/* 50% 딤드 오버레이 (영상 위, 콘텐츠 뒤) */
#hero .hero-dim-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 0;

    /* 초기 블러 상태 및 렌더링 최적화 */
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    will-change: backdrop-filter;

    /* 1.8초 동안 블러가 걷히는 애니메이션 */
    animation: overlayUnblur 8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* 블러 해제 키프레임 */
@keyframes overlayUnblur {
    0% {
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }
    100% {
        -webkit-backdrop-filter: blur(0px);
        backdrop-filter: blur(0px);
    }
}

.lead {
    font-size: 1.6rem;
    font-weight: 500;
}
.opacity-30 {
    opacity: 0.3;
}

/* 기본 텍스트 스타일 */
.fade-in-text {
    font-weight: 500;

    /* 애니메이션 시작 전 텍스트를 숨겨둡니다. */
    opacity: 0;

    /* 페이드인 애니메이션 적용 (1.2초 동안 부드럽게 실행, 끝난 상태 유지) */
    animation: textFadeIn 1.2s ease-in-out forwards;
}

.text-gradient-light {
    background: radial-gradient(circle at 85%, #fff 10%, #b1abff 30%);
    background-size: 400% 400%;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    animation: textGradientAnimation 5s ease-in-out infinite;
    -webkit-animation: textGradientAnimation 5s ease-in-out infinite;
}

.ft-bold {
    font-weight: 800;
}
.ft-mid {
    font-size: 1.125rem;
}

/* 페이드인 키프레임 정의 */
@keyframes textFadeIn {
    0% {
        opacity: 0;
        transform: translateY(15px); /* 시작 시 살짝 아래에 위치 */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* 원래 위치로 복귀 */
    }
}

@media (min-width: 1200px) {
    .display-5 {
        font-size: 2rem;
    }
}
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    .display-5 {
        font-size: 1.5rem;
    }
}
