/* Hero Section - Clean & Modern Design */

/* Hero Container - 고정 배경 효과 */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-attachment: fixed;
}

/* Video Background - 고정 */
.hero-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    /* 폴백 배경 이미지 */
    background: url('/assets/images/water-bg.jpg') center/cover;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%) translateZ(0);
    object-fit: cover;
    /* 초기 상태는 투명하게 */
    opacity: 0;
    transition: opacity 1.5s ease;
    /* GPU 가속 최적화 */
    will-change: transform, opacity;
    backface-visibility: hidden;
    perspective: 1000px;
    pointer-events: none;
}

/* 비디오 로드 완료 시 */
.hero-video.loaded {
    opacity: 1;
}

/* Overlay for better text readability - 텍스트 가독성을 위해 더 진하게 */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 10, 25, 0.85) 0%,
        rgba(0, 30, 60, 0.7) 40%,
        rgba(0, 50, 100, 0.5) 70%,
        rgba(0, 80, 140, 0.4) 100%
    );
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #ffffff;
    padding: 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Badge - 투명한 배경으로 변경 */
.hero-badge {
    display: inline-block;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInDown 0.8s ease 0.3s forwards;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 1.8rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.8px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.badge-slogan {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

/* 물방울 SVG 아이콘 스타일 */
.water-drop {
    display: inline-block;
    margin-right: 0.8rem;
    vertical-align: middle;
    width: 20px;
    height: 24px;
}

/* Title */
.hero-title {
    margin-bottom: 2rem;
}

.hero-subtitle {
    display: block;
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}



.hero-main-title {
    display: block;
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.9s forwards;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Wave text effect - 더 선명하게 */
.wave-text {
    display: inline-block;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: fadeInLeft 0.8s ease 1.2s forwards;
}

/* Gradient text with animation - 더 강력하게 */
.gradient-text {
    background: linear-gradient(135deg, 
        #00E5FF 0%, 
        #00BFFF 25%, 
        #0099FF 50%, 
        #00E5FF 75%, 
        #00D4FF 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 20px rgba(0, 191, 255, 0.5));
    font-weight: 900;
    opacity: 0;
    animation: fadeInRight 0.8s ease 1.4s forwards, gradientShift 4s ease 2s infinite;
}

/* Description */
.hero-description {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.7s forwards;
}

/* Fade in text effect */
.fade-in-text {
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.9s forwards;
}

/* Highlight important text - 더 눈에 띄게 */
.highlight-text {
    position: relative;
    display: inline-block;
    color: #00E5FF;
    font-weight: 600;
    padding: 0 4px;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
}

.highlight-text::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #00E5FF;
    transform: scaleX(0);
    transform-origin: left;
    animation: underlineGrow 3s ease-in-out infinite;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.8s both;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    min-width: 180px;
}

.btn-primary {
    background: linear-gradient(135deg, #00BFFF, #0066cc);
    color: #ffffff;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 191, 255, 0.5);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 2px solid rgba(0, 191, 255, 0.6);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.btn-outline::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 191, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn-outline:hover::after {
    width: 300px;
    height: 300px;
}

.btn-outline:hover {
    border-color: #00BFFF;
    transform: translateY(-3px);
    color: #00d4ff;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeIn 1s ease 2.2s forwards;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 3px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

.scroll-text {
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes wave {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes underlineGrow {
    0%, 100% {
        transform: scaleX(0);
        transform-origin: left;
    }
    25% {
        transform: scaleX(1);
        transform-origin: left;
    }
    50%, 75% {
        transform: scaleX(1);
        transform-origin: left;
    }
    76% {
        transform-origin: right;
    }
    99% {
        transform: scaleX(0);
        transform-origin: right;
    }
}

@keyframes scrollWheel {
    0% {
        top: 8px;
        opacity: 1;
    }
    100% {
        top: 24px;
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .hero-main-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 100vh;
    }
    
    .badge {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
    }
    
    .hero-main-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
    }
}