/* ================================================================
   ELEGANT SLIDER — Premium CSS
   ================================================================ */

/* Reset & Base */
.es-wrapper {
    position: relative;
    font-family: inherit;
    -webkit-font-smoothing: antialiased;
    user-select: none;
}

.es-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 0px;
}

/* ── Track ─────────────────────────────────────────────────── */
.es-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ── Slide ─────────────────────────────────────────────────── */
.es-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    transition: opacity 0s;
}

.es-slide--active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.es-slide--leaving {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Ken Burns subtle pan */
.es-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 8s ease-out;
    will-change: transform;
}

.es-slide--active .es-slide-bg {
    transform: scale(1.06);
}

/* ── Overlay ───────────────────────────────────────────────── */
.es-slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

/* ── Content ───────────────────────────────────────────────── */
.es-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 60px 72px;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
}

.es-slide-title {
    font-size: clamp(28px, 4vw, 56px);
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.15s,
                opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.es-slide-subtitle {
    font-size: clamp(14px, 1.6vw, 18px);
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 28px;
    max-width: 540px;
    line-height: 1.6;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.28s,
                opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.28s;
}

.es-btn {
    display: inline-block;
    padding: 13px 32px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255,255,255,0.6);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 100px;
    cursor: pointer;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.4s,
                opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.4s,
                background 0.3s ease,
                border-color 0.3s ease;
}

.es-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255,255,255,0.9);
    color: #fff;
    text-decoration: none;
}

/* Animate content on active slide */
.es-slide--active .es-slide-title,
.es-slide--active .es-slide-subtitle,
.es-slide--active .es-btn {
    transform: translateY(0);
    opacity: 1;
}

/* ── ARROWS ────────────────────────────────────────────────── */
.es-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.28);
}

/* Arrow peek background — shows next slide */
.es-arrow-peek {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
    z-index: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.45;
    transition: opacity 0.3s ease;
}

/* Dark tint overlay on arrow */
.es-arrow::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    z-index: 1;
    transition: background 0.3s ease;
}

.es-arrow svg {
    position: relative;
    z-index: 2;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.es-arrow--prev {
    left: 28px;
}

.es-arrow--next {
    right: 28px;
}

.es-arrow:hover {
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 12px 40px rgba(0,0,0,0.38);
}

.es-arrow:hover::before {
    background: rgba(0,0,0,0.3);
}

.es-arrow:hover .es-arrow-peek {
    opacity: 0.65;
}

.es-arrow--prev:hover svg {
    transform: translateX(-2px);
}

.es-arrow--next:hover svg {
    transform: translateX(2px);
}

.es-arrow:active {
    transform: translateY(-50%) scale(0.96);
}

/* Thin ring border */
.es-arrow::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.35);
    z-index: 3;
    pointer-events: none;
    transition: border-color 0.3s;
}

.es-arrow:hover::after {
    border-color: rgba(255,255,255,0.6);
}

/* ── DOTS ──────────────────────────────────────────────────── */
.es-dots {
    position: absolute;
    bottom: 28px;
    right: 72px;
    display: flex;
    gap: 8px;
    z-index: 10;
    align-items: center;
}

.es-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.5);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.es-dot--active {
    background: #fff;
    border-color: #fff;
    width: 24px;
    border-radius: 100px;
}

.es-dot:hover:not(.es-dot--active) {
    background: rgba(255,255,255,0.4);
    border-color: rgba(255,255,255,0.8);
    transform: scale(1.2);
}

/* ── COUNTER ───────────────────────────────────────────────── */
.es-counter {
    position: absolute;
    top: 32px;
    right: 32px;
    z-index: 10;
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
}

.es-counter-current {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.3s ease;
}

.es-counter-sep {
    opacity: 0.45;
    margin: 0 2px;
}

/* ── Cinematic Transition ──────────────────────────────────── */
/* JS handles all animation via RAF tweens.
   will-change hints help GPU compositing.                      */
.es-slide {
    will-change: clip-path, transform, opacity;
}
.es-slide-bg {
    will-change: transform;
}
/* Blur filter support for content fly-in */
.es-slide-title,
.es-slide-subtitle,
.es-btn {
    filter: blur(0px);
}

/* ── Progress bar ──────────────────────────────────────────── */
.es-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255,255,255,0.9);
    width: 0%;
    z-index: 10;
    transition: none;
    box-shadow: 0 0 8px rgba(255,255,255,0.5);
}

.es-progress--animating {
    transition: width linear;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .es-slide-content {
        padding: 40px 24px;
    }

    .es-dots {
        right: 50%;
        transform: translateX(50%);
    }

    .es-counter {
        top: 16px;
        right: 16px;
    }

    .es-arrow--prev { left: 14px; }
    .es-arrow--next { right: 14px; }

    .es-arrow {
        width: 48px;
        height: 48px;
    }

    .es-arrow svg {
        width: 18px;
        height: 18px;
    }
}
