/* =========================================
   Modern Hero Slider (CodePen Style) - Dedicated File
   ========================================= */

/* 1. Layout & Size */
.hero-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100vh; /* Full Viewport Height */
    min-height: 700px;
    background-color: #000;
    overflow: hidden;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 2. Background Animation (Ken Burns) */
.hero-slide__bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide__bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1s ease;
    transform: scale(1);
}

/* Active Zoom Effect */
.swiper-slide-active .hero-slide__bg {
    transform: scale(1.15);
    transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-slide__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 2;
    pointer-events: none;
}

/* 3. Typography & Content */
.hero-slide__content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    padding: 0 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.hero-slide__inner {
    max-width: 900px;
    margin: 0 auto;
}

/* Title - Big & Elegant */
.hero-slide__title {
    font-family: 'Georgia', 'Playfair Display', serif;
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 400;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.02em;
    opacity: 1;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    /* Ensure visibility even if animation fails */
    visibility: visible;
}

/* Description (Subtitle) */
.hero-slide__desc {
    font-family: 'Pretendard', sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 300;
    margin: 0 0 2.5rem 0;
    letter-spacing: 0.05em;
    opacity: 0.9;
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Button */
.hero-slide__btn-wrapper {
    margin-top: 1rem;
}

.btn--hero {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn--hero:hover {
    background: #fff;
    color: #000;
}

/* 4. Alignment Variants */
.hero-slide--align-left .hero-slide__content { text-align: left; align-items: flex-start; }
.hero-slide--align-left .hero-slide__inner { margin: 0; }

.hero-slide--align-right .hero-slide__content { text-align: right; align-items: flex-end; }
.hero-slide--align-right .hero-slide__inner { margin: 0 0 0 auto; }

/* 5. Theme Variants */
.hero-slide--theme-dark .hero-slide__title { color: #1a1a1a; text-shadow: none; }
.hero-slide--theme-dark .hero-slide__desc { color: #333; }
.hero-slide--theme-dark .btn--hero { border-color: #1a1a1a; color: #1a1a1a; }
.hero-slide--theme-dark .btn--hero:hover { background: #1a1a1a; color: #fff; }

/* 6. Animations (Fade Up) */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Apply animation only when slide is active AND JS is ready */
/* Default state is visible (opacity 1 in title definition) */
/* When active, we animate */
.swiper-slide-active .anim-target {
    animation: heroFadeUp 1s cubic-bezier(0.2, 1, 0.3, 1) both;
}

/* Staggered Delays */
.swiper-slide-active .hero-slide__title { animation-delay: 0.3s; }
.swiper-slide-active .hero-slide__desc { animation-delay: 0.5s; }
.swiper-slide-active .hero-slide__btn-wrapper { animation-delay: 0.7s; }

/* 7. Controls */
.hero-swiper .swiper-pagination { bottom: 40px !important; }
.hero-swiper .swiper-pagination-bullet { 
    width: 10px; height: 10px; background: #fff; opacity: 0.4; margin: 0 8px !important; 
}
.hero-swiper .swiper-pagination-bullet-active { opacity: 1; transform: scale(1.2); }

.hero-swiper .swiper-button-prev, 
.hero-swiper .swiper-button-next {
    color: #fff; width: 60px; height: 60px;
    transition: opacity 0.3s;
    opacity: 0.7;
}
.hero-swiper .swiper-button-prev:hover, 
.hero-swiper .swiper-button-next:hover { opacity: 1; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-slide__title { font-size: 2.8rem; }
    .hero-slide__desc { font-size: 1rem; }
    .hero-slider-wrapper { height: 100vh; min-height: 500px; }
    .hero-slide__content { padding: 0 20px; }
    .btn--hero { padding: 1rem 2rem; }
}
