/* ========================================
   Modern Hero Slider with Auto Transition
   ======================================== */

.modern-hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

/* Hero Slides */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
    transform: scale(1.1);
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 1;
}

/* Modern Backdrop Blur Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: 1;
}

/* Content Box with Subtle Blur */
.hero-content-box {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 1s ease forwards 0.3s;
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Badge */
.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    animation: fadeIn 0.8s ease forwards 0.5s;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Hero Title */
.hero-title {
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    animation: slideInLeft 1s ease forwards 0.6s;
    opacity: 0;
}

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

/* Hero Description */
.hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 600px;
    animation: slideInLeft 1s ease forwards 0.8s;
    opacity: 0;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    animation: slideInLeft 1s ease forwards 1s;
    opacity: 0;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.6);
    color: #fff;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    color: #fff;
}

/* Navigation Dots */
.hero-nav-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.dot.active {
    background: #fff;
    width: 40px;
    border-radius: 10px;
}

/* Slider Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.hero-arrow-prev {
    left: 30px;
}

.hero-arrow-next {
    right: 30px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 48px;
    }
}

@media (max-width: 992px) {
    .modern-hero-slider {
        height: 80vh;
        min-height: 500px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-content {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .modern-hero-slider {
        height: 70vh;
        min-height: 450px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-content {
        padding: 30px 25px;
        border-radius: 15px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-arrow {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .hero-arrow-prev {
        left: 15px;
    }

    .hero-arrow-next {
        right: 15px;
    }

    .hero-nav-dots {
        bottom: 20px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 15px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* Smooth Transitions for Content */
.hero-slide:not(.active) .hero-content {
    animation: none;
    opacity: 0;
    transform: translateY(30px);
}

.hero-slide.active .hero-content {
    animation: slideUpFade 1s ease forwards 0.3s;
}

.hero-slide.active .hero-badge {
    animation: fadeIn 0.8s ease forwards 0.5s;
}

.hero-slide.active .hero-title {
    animation: slideInLeft 1s ease forwards 0.6s;
}

.hero-slide.active .hero-description {
    animation: slideInLeft 1s ease forwards 0.8s;
}

.hero-slide.active .hero-buttons {
    animation: slideInLeft 1s ease forwards 1s;
}
