@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

/* 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 슬라이드 스타일 */
.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 슬라이드 인디케이터 */
.slide-indicator {
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-indicator.active {
    background-color: white !important;
    transform: scale(1.2);
}

.slide-indicator:hover {
    background-color: rgba(255, 255, 255, 0.8) !important;
}

/* 네비게이션 버튼 */
#prevSlide, #nextSlide {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#prevSlide:hover, #nextSlide:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* 플로팅 기능 박스 */
.floating-features {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* 텍스트 애니메이션 */
.slide h1 {
    animation: slideInUp 1s ease-out;
}

.slide p {
    animation: slideInUp 1s ease-out 0.2s both;
}

.slide .flex {
    animation: slideInUp 1s ease-out 0.4s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 버튼 호버 효과 */
.slide button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.slide button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.slide button:hover::before {
    left: 100%;
}

/* 70vh 높이에 맞는 스타일 조정 */
@media (min-width: 1024px) {
    .slide h1 {
        font-size: 3.5rem;
        margin-bottom: 1rem;
    }
    
    .slide p {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .slide h1 {
        font-size: 2.8rem !important;
        margin-bottom: 1rem !important;
    }
    
    .slide p {
        font-size: 1.1rem !important;
        margin-bottom: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    .slide h1 {
        font-size: 2.2rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .slide p {
        font-size: 1rem !important;
        margin-bottom: 1.2rem !important;
    }
    
    .slide .flex {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .slide button {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.9rem !important;
    }
    
    #prevSlide, #nextSlide {
        padding: 0.4rem !important;
        width: 2.5rem !important;
        height: 2.5rem !important;
    }
    
    .floating-features {
        display: none !important;
    }
    
    /* 70vh에서 모바일 조정 */
    #home {
        min-height: 60vh !important;
    }
}

@media (max-width: 480px) {
    .slide h1 {
        font-size: 1.8rem !important;
        line-height: 1.2;
        margin-bottom: 0.6rem !important;
    }
    
    .slide p {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }
    
    .slide button {
        padding: 0.5rem 1rem !important;
        font-size: 0.8rem !important;
    }
    
    .slide-indicator {
        width: 0.6rem !important;
        height: 0.6rem !important;
    }
    
    #prevSlide, #nextSlide {
        width: 2rem !important;
        height: 2rem !important;
        padding: 0.3rem !important;
    }
    
    /* 작은 화면에서 높이 더 줄이기 */
    #home {
        min-height: 50vh !important;
    }
}

/* 자동 슬라이드 진행 표시 */
.slide-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    width: 100%;
    z-index: 25;
}

.slide-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: white;
    width: 0%;
    animation: slideProgress 4s linear infinite;
}

@keyframes slideProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* 로딩 애니메이션 */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 카드 호버 효과 */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* 그라데이션 배경 */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 커스텀 스크롤바 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* 유틸리티 클래스 */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 부드러운 전환 효과 */
.smooth-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 호버 시 확대 효과 */
.hover-scale:hover {
    transform: scale(1.05);
}

/* 페이드 인 애니메이션 */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}