/* =========================================================
   AI SHOWCASE SLIDER – INDOPIXEL
   Author: INDOPIXEL Digital Era
   Purpose: Premium hero carousel (non-Bootstrap)
========================================================= */

/* ---------- ROOT SAFETY ---------- */
#top-slider {
    isolation: isolate;
}

/* ---------- SLIDER WRAPPER ---------- */
.ai-slider {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
    margin-top: 90px;
    background: #0f172a;
}

/* ---------- SLIDE TRACK ---------- */
.ai-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ---------- SLIDE ---------- */
.ai-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.08);
    transition:
        opacity 1.2s ease,
        transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    align-items: center;
}

.ai-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

/* ---------- CINEMATIC OVERLAY ---------- */
.ai-slide-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            120deg,
            rgba(2,6,23,0.85) 0%,
            rgba(15,23,42,0.65) 45%,
            rgba(15,23,42,0.35) 100%
        );
    z-index: 1;
}

/* ---------- CONTENT CARD (GLASSMORPHISM) ---------- */
.ai-slide-content {
    position: relative;
    z-index: 2;
    max-width: 660px;
    padding: 3.2rem;
    border-radius: 22px;
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: #ffffff;
    box-shadow:
        0 25px 60px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.15);
    animation: contentFadeIn 1.2s ease forwards;
}

/* ---------- TAG ---------- */
.ai-tag {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    margin-bottom: 1.6rem;
    box-shadow: 0 8px 20px rgba(99,102,241,0.45);
}

/* ---------- TITLE ---------- */
.ai-slide-content h2 {
    font-size: 3.1rem;
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1.4rem;
    letter-spacing: -0.5px;
}

/* ---------- DESCRIPTION ---------- */
.ai-slide-content p {
    font-size: 1.08rem;
    line-height: 1.7;
    opacity: 0.95;
    margin-bottom: 2.4rem;
}

/* ---------- CTA BUTTON ---------- */
.ai-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: 50px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: all 0.35s ease;
    box-shadow: 0 12px 35px rgba(99,102,241,0.45);
}

.ai-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(139,92,246,0.6);
}

/* ---------- NAVIGATION ARROWS ---------- */
.ai-slider-nav {
    position: absolute;
    top: 50%;
    inset-inline: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 48px;
    transform: translateY(-50%);
    z-index: 6;
    pointer-events: none;
}

.ai-slider-nav button {
    pointer-events: auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.35s ease;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.ai-slider-nav button:hover {
    background: rgba(255,255,255,0.35);
    transform: scale(1.15);
}

/* ---------- DOTS ---------- */
.ai-slider-dots {
    position: absolute;
    bottom: 34px;
    inset-inline: 0;
    display: flex;
    justify-content: center;
    gap: 14px;
    z-index: 6;
}

.ai-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: all 0.35s ease;
}

.ai-dot.active {
    background: #ffffff;
    transform: scale(1.35);
    box-shadow: 0 0 0 6px rgba(255,255,255,0.15);
}

/* ---------- ANIMATION ---------- */
@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- ACCESSIBILITY ---------- */
@media (prefers-reduced-motion: reduce) {
    .ai-slide,
    .ai-slide-content,
    .ai-btn {
        animation: none !important;
        transition: none !important;
    }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1200px) {
    .ai-slide-content h2 {
        font-size: 2.6rem;
    }
}

@media (max-width: 992px) {
    .ai-slider {
        height: 85vh;
    }
    .ai-slide-content {
        padding: 2.4rem;
    }
    .ai-slide-content h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .ai-slider {
        height: 78vh;
    }
    .ai-slider-nav {
        display: none;
    }
    .ai-slide-content {
        max-width: 100%;
        padding: 2rem;
    }
    .ai-slide-content h2 {
        font-size: 1.9rem;
    }
    .ai-slide-content p {
        font-size: 0.98rem;
    }
}

@media (max-width: 576px) {
    .ai-slide-content h2 {
        font-size: 1.6rem;
    }
    .ai-btn {
        width: 100%;
        justify-content: center;
    }
}


.hero-btn,
.ai-btn,
.filter-btn {
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.4px;
}
