/* ============================================
   HERO-SLIDER.CSS
   Crossfade image slider with micro-animations
   ============================================ */

/* --- Container --- */
.hero-slider {
    position: relative;
    width: 100%;
    min-height: 560px;
    height: 80vh;
    max-height: 800px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero-slider {
        min-height: 480px;
        height: 70vh;
    }
}

/* --- Slide images --- */
.hero-slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.hero-slider__slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0.35);
}

.hero-slider__slide.active img {
    animation: kenBurns 8s ease-out forwards;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.08);
    }
}

/* --- Dark gradient overlay --- */
.hero-slider__overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background:
        linear-gradient(180deg, rgba(10, 10, 10, 0.6) 0%, rgba(10, 10, 10, 0.3) 40%, rgba(10, 10, 10, 0.7) 100%),
        linear-gradient(135deg, rgba(204, 255, 0, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* --- Grid pattern overlay --- */
.hero-slider__grid {
    position: absolute;
    inset: 0;
    z-index: 3;
    background-image:
        linear-gradient(rgba(204, 255, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(204, 255, 0, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    opacity: 0.6;
}

/* --- Hero content (on top) --- */
.hero-slider__content {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 860px;
    padding: 0 var(--space-6);
}

/* --- Dot indicators --- */
.hero-slider__dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    display: flex;
    gap: 10px;
}

.hero-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-slider__dot:hover {
    border-color: rgba(204, 255, 0, 0.7);
}

.hero-slider__dot.active {
    background: var(--color-primary, #ccff00);
    border-color: var(--color-primary, #ccff00);
    box-shadow: 0 0 8px rgba(204, 255, 0, 0.5);
    transform: scale(1.2);
}

/* --- Progress bar per slide --- */
.hero-slider__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--color-primary, #ccff00);
    z-index: 6;
    width: 0;
    transition: none;
}

.hero-slider__progress.running {
    width: 100%;
    transition: width 5s linear;
}

/* --- Floating accent shapes --- */
.hero-slider__accent {
    position: absolute;
    z-index: 4;
    pointer-events: none;
}

.hero-slider__accent--1 {
    top: 15%;
    left: 8%;
    width: 80px;
    height: 80px;
    border: 1px solid rgba(204, 255, 0, 0.12);
    border-radius: 50%;
    animation: floatAccent 6s ease-in-out infinite;
}

.hero-slider__accent--2 {
    bottom: 20%;
    right: 10%;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(204, 255, 0, 0.08);
    border-radius: 16px;
    transform: rotate(15deg);
    animation: floatAccent 8s ease-in-out infinite reverse;
}

.hero-slider__accent--3 {
    top: 30%;
    right: 20%;
    width: 6px;
    height: 6px;
    background: var(--color-primary, #ccff00);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(204, 255, 0, 0.4);
    animation: pulse 3s ease-in-out infinite;
}

.hero-slider__accent--4 {
    bottom: 35%;
    left: 15%;
    width: 4px;
    height: 4px;
    background: rgba(204, 255, 0, 0.6);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite 1s;
}

@keyframes floatAccent {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-15px);
        opacity: 1;
    }
}

/* --- Light theme adjustments --- */
[data-theme="light"] .hero-slider__slide img {
    filter: brightness(0.55);
}

[data-theme="light"] .hero-slider__overlay {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(10, 10, 10, 0.2) 40%, rgba(10, 10, 10, 0.6) 100%),
        linear-gradient(135deg, rgba(204, 255, 0, 0.04) 0%, transparent 50%);
}