﻿/* =============================================
   wwwroot/css/hero-carousel.css
   Fixed Hero Carousel
   ============================================= */

/* ---------- Section Wrapper ---------- */
.hero-carousel-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0a0e27;
}

/* ---------- Carousel Container ---------- */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
}

/* ---------- Slide — Absolute Stacked ---------- */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
    z-index: 1;
}

    .hero-slide.active {
        opacity: 1;
        visibility: visible;
        z-index: 2;
    }

/* ---------- Slide Background ---------- */
.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 8s ease-out;
    z-index: 1;
}

.hero-slide.active .hero-slide-bg {
    transform: scale(1.08);
}

/* ---------- Overlay ---------- */
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, rgba(10, 14, 39, 0.85) 0%, rgba(10, 14, 39, 0.65) 30%, rgba(10, 14, 39, 0.30) 55%, rgba(10, 14, 39, 0.05) 100% );
    z-index: 2;
}

/* ---------- Content ---------- */
.hero-slide-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

    /* Animate content on active slide only */
    .hero-slide-content > .container > .row > div > * {
        opacity: 0;
        transform: translateY(30px);
    }

.hero-slide.active .hero-slide-content > .container > .row > div > * {
    animation: heroFadeUp 0.8s ease-out forwards;
}

    .hero-slide.active .hero-slide-content > .container > .row > div > *:nth-child(1) {
        animation-delay: 0.2s;
    }

    .hero-slide.active .hero-slide-content > .container > .row > div > *:nth-child(2) {
        animation-delay: 0.35s;
    }

    .hero-slide.active .hero-slide-content > .container > .row > div > *:nth-child(3) {
        animation-delay: 0.5s;
    }

    .hero-slide.active .hero-slide-content > .container > .row > div > *:nth-child(4) {
        animation-delay: 0.65s;
    }

    .hero-slide.active .hero-slide-content > .container > .row > div > *:nth-child(5) {
        animation-delay: 0.8s;
    }

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Badge ---------- */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25), rgba(240, 147, 251, 0.25));
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 1.5rem;
}

    .hero-badge i {
        color: #ffd93d;
        font-size: 0.9rem;
    }

/* ---------- Title ---------- */
.hero-title {
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* ---------- Subtitle ---------- */
.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 620px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ---------- Actions ---------- */
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-hero-primary,
.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 2px solid transparent;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

    .btn-hero-primary:hover {
        color: #ffffff;
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(102, 126, 234, 0.6);
    }

.btn-hero-outline {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

    .btn-hero-outline:hover {
        background: #ffffff;
        color: #1a1a3e;
        border-color: #ffffff;
        transform: translateY(-3px);
    }

/* ---------- Feature Chips ---------- */
.hero-features {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

    .hero-feature i {
        width: 38px;
        height: 38px;
        background: linear-gradient(135deg, #667eea, #764ba2);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        font-size: 0.95rem;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
        flex-shrink: 0;
    }

/* ---------- Nav Arrows ---------- */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0.7;
}

    .hero-nav:hover {
        background: linear-gradient(135deg, #667eea, #764ba2);
        border-color: transparent;
        opacity: 1;
        transform: translateY(-50%) scale(1.1);
    }

.hero-prev {
    left: 25px;
}

.hero-next {
    right: 25px;
}

/* ---------- Dots ---------- */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 10;
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

    .hero-dot:hover {
        background: rgba(255, 255, 255, 0.7);
        transform: scale(1.2);
    }

    .hero-dot.active {
        width: 30px;
        border-radius: 5px;
        background: linear-gradient(90deg, #667eea, #764ba2);
        box-shadow: 0 0 12px rgba(102, 126, 234, 0.6);
    }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .hero-carousel {
        height: 80vh;
        min-height: 500px;
    }

    .hero-nav {
        display: none;
    }

    .hero-features {
        gap: 1rem;
        padding-top: 1.25rem;
    }

    .hero-feature {
        font-size: 0.85rem;
    }

        .hero-feature i {
            width: 32px;
            height: 32px;
            font-size: 0.85rem;
        }
}

@media (max-width: 767.98px) {
    .hero-carousel {
        height: 78vh;
        min-height: 480px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-actions {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .btn-hero-primary,
    .btn-hero-outline {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
        flex: 1;
        justify-content: center;
        min-width: 140px;
    }

    .hero-features {
        gap: 0.75rem;
        padding-top: 1rem;
    }

    .hero-feature span {
        font-size: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    .hero-carousel {
        height: 88vh;
        min-height: 520px;
    }

    .hero-badge i {
        display: none;
    }

    .hero-features {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .hero-dots {
        bottom: 20px;
        padding: 8px 14px;
        gap: 0.5rem;
    }

    .hero-dot {
        width: 8px;
        height: 8px;
    }

        .hero-dot.active {
            width: 24px;
        }
}
/* Slide 1 — lighter */
.hero-slide:nth-child(1) .hero-slide-overlay {
    background: linear-gradient(90deg, rgba(10, 14, 39, 0.80) 0%, rgba(10, 14, 39, 0.20) 100%);
}

/* Slide 2 — darker on left only */
.hero-slide:nth-child(2) .hero-slide-overlay {
    background: linear-gradient(90deg, rgba(10, 14, 39, 0.85) 0%, rgba(10, 14, 39, 0.30) 60%, rgba(10, 14, 39, 0.05) 100%);
}

/* Slide 3 — very light */
.hero-slide:nth-child(3) .hero-slide-overlay {
    background: linear-gradient(90deg, rgba(10, 14, 39, 0.75) 0%, rgba(10, 14, 39, 0.15) 100%);
}