/* ============================================================
   HERO CAROUSEL STYLES
   Pure CSS + JavaScript carousel for REZOLVIA hero section
   ============================================================ */

/* --- Carousel Container --- */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* --- Individual Slide --- */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* --- Background Image with Ken Burns Effect --- */
.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 7s ease-out;
}

.hero-slide.active .hero-slide-bg {
    transform: scale(1.08);
}

/* --- Dark Overlay for Text Readability --- */
.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(4, 9, 30, 0.82) 0%,
        rgba(4, 9, 30, 0.55) 45%,
        rgba(4, 9, 30, 0.35) 70%,
        rgba(4, 9, 30, 0.6) 100%
    );
    z-index: 1;
}

/* --- Slide Content Container --- */
.hero-slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 90%;
    max-width: 900px;
    padding: 0 20px;
}

/* --- Tag/Badge (small label above title) --- */
.hero-slide-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #f44336;
    background: rgba(244, 67, 54, 0.12);
    border: 1px solid rgba(244, 67, 54, 0.3);
    padding: 6px 20px;
    border-radius: 30px;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease 0.3s,
                transform 0.7s ease 0.3s;
}

.hero-slide.active .hero-slide-tag {
    opacity: 1;
    transform: translateY(0);
}

/* --- Main Title --- */
.hero-slide-title {
    font-size: clamp(32px, 5.5vw, 68px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease 0.45s,
                transform 0.8s ease 0.45s;
}

.hero-slide.active .hero-slide-title {
    opacity: 1;
    transform: translateY(0);
}

/* --- Description Paragraph --- */
.hero-slide-desc {
    font-size: clamp(14px, 1.8vw, 17px);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    max-width: 680px;
    margin: 0 auto 36px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s ease 0.6s,
                transform 0.8s ease 0.6s;
}

.hero-slide.active .hero-slide-desc {
    opacity: 1;
    transform: translateY(0);
}

/* --- CTA Button --- */
.hero-slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 14px 36px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    animation-fill-mode: forwards;
    transition: opacity 0.8s ease 0.75s,
                transform 0.8s ease 0.75s,
                background 0.4s ease,
                border-color 0.4s ease,
                box-shadow 0.4s ease;
}

.hero-slide.active .hero-slide-btn {
    opacity: 1;
    transform: translateY(0);
}

.hero-slide-btn:hover {
    background: #f44336;
    border-color: #f44336;
    box-shadow: 0 8px 30px rgba(244, 67, 54, 0.35);
}

.hero-slide-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.hero-slide-btn:hover i {
    transform: translateX(4px);
}

/* --- Navigation Arrows --- */
.hero-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s ease;
    outline: none;
}

.hero-carousel-arrow:hover {
    background: rgba(244, 67, 54, 0.9);
    border-color: #f44336;
    box-shadow: 0 4px 20px rgba(244, 67, 54, 0.3);
}

.hero-carousel-prev {
    left: 25px;
}

.hero-carousel-next {
    right: 25px;
}

/* --- Dot Indicators --- */
.hero-carousel-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
    align-items: center;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    position: relative;
}

.hero-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.3s ease;
}

.hero-dot.active {
    border-color: #f44336;
    background: #f44336;
    transform: scale(1.2);
}

.hero-dot.active::after {
    transform: translate(-50%, -50%) scale(1);
    background: transparent;
}

.hero-dot:hover {
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.15);
}

/* --- Progress Bar --- */
.hero-carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.hero-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f44336, #ff6b6b);
    transition: width 0.1s linear;
}

.hero-progress-bar.animating {
    width: 100%;
    transition: width 5s linear;
}

/* --- Slide Counter (optional decorative) --- */
.hero-slide-counter {
    position: absolute;
    bottom: 50px;
    right: 40px;
    z-index: 10;
    font-size: 13px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
}

.hero-slide-counter span {
    color: #fff;
    font-weight: 500;
    font-size: 18px;
}

/* ============================================================
   RESPONSIVE STYLES
   ============================================================ */

@media (max-width: 768px) {
    .hero-slide-content {
        width: 92%;
        padding: 0 15px;
    }

    .hero-slide-tag {
        font-size: 10px;
        letter-spacing: 2px;
        padding: 5px 14px;
        margin-bottom: 16px;
    }

    .hero-slide-title {
        font-size: 28px;
        margin-bottom: 14px;
    }

    .hero-slide-desc {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 28px;
    }

    .hero-slide-btn {
        font-size: 12px;
        padding: 12px 28px;
    }

    .hero-carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }

    .hero-carousel-prev {
        left: 12px;
    }

    .hero-carousel-next {
        right: 12px;
    }

    .hero-carousel-dots {
        bottom: 25px;
        gap: 8px;
    }

    .hero-dot {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .hero-slide-title {
        font-size: 24px;
    }

    .hero-slide-desc {
        font-size: 12px;
    }

    .hero-carousel-arrow {
        display: none;
    }
}

/* ============================================================
   REDUCED MOTION (accessibility)
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-slide-bg,
    .hero-slide-tag,
    .hero-slide-title,
    .hero-slide-desc,
    .hero-slide-btn,
    .hero-progress-bar {
        transition: none !important;
        animation: none !important;
    }

    .hero-slide-bg {
        transform: scale(1) !important;
    }
}