:root {
    --cardslide-font:            Livvic;
    --cardslider-font-size:      19px;
    --cardslide-border-radius:   25px;
    --cardslide-width:           320px;
    --cardslide-height:          450px;
    --cardslide-bg-color:        #FFFFFF;
    --cardslide-spacing:         60px; 
    --cardslide-rotation:        30deg; 
    --cardslide-duration:        0.8s; 
    --cardslide-easing:          cubic-bezier(0.16, 1, 0.3, 1); 

    --seeker-height:             3px;
    --seeker-bg-color:           #111111;
    --seeker-radius:             4px;

    --seekerthumb-height:        6px;
    --seekerthumb-width:         30px;
    --seekerthumb-bg:            #E28307;

    --caption-text-align:        left;
    --button-text-align:         flex-start;
}

body {
    overflow-x: hidden;
    width: 100%;
}

.hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    height: 600px; 
    position: relative;
    perspective: 2000px; 
    margin: 0 auto;
    overflow-x: hidden;
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    touch-action: pan-y; 
}

/* Individual Card Styling */
.card-slide {
    position: absolute;
    width: var(--cardslide-width);   
    height: var(--cardslide-height);
    border-radius: var(--cardslide-border-radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
            opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
    user-select: none; 
    -webkit-user-drag: none;
    background-color: var(--cardslide-bg-color); 
}

.card-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; 
    display: block;
    transition: transform 0.8s ease; 
}

/* --- MODERN CAPTION STYLING --- */
.card-caption {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px; 
    background: rgba(20, 20, 20, 0.65); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 16px;
    border-radius: 16px;
    opacity: 0; 
    transform: translateY(20px); 
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s; 
    pointer-events: none; 
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-slide.active .card-caption {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto; 
}

.card-caption p {
    margin: 0;
    font-family: var(--cardslide-font);
    font-size: var(--cardslider-font-size);
    line-height: 1.4;
    font-weight: 400;
    text-align: var(--caption-text-align);
}

.card-caption a {
    align-self: var(--button-text-align);
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px 9px 16px;
    border-radius: 8px;
    font-family: var(--cardslide-font);
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.card-caption a:hover { background: rgba(255, 255, 255, 0.3); }

/* --- SEEKER BAR STYLING --- */
.slider-seeker {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translate3d(-50%, 0, 200px); 
    width: 60%;
    max-width: 300px;
    z-index: 9999;
    -webkit-appearance: none;
    appearance: none;
    background: var(--seeker-bg-color);
    height: var(--seeker-height);
    border-radius: var(--seeker-radius);
    outline: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

/* Seeker Thumb (The draggable part) */
.slider-seeker::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: var(--seekerthumb-width);
    height: var(--seekerthumb-height);
    border-radius: var(--seeker-radius);
    background: var(--seekerthumb-bg); 
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-seeker::-moz-range-thumb {
    width: var(--seekerthumb-width);
    height: var(--seekerthumb-height);
    border-radius: var(--seeker-radius);
    background: var(--seekerthumb-bg);
    cursor: pointer;
    border: none;
    transition: background 0.3s ease;
}

.slider-seeker:hover::-webkit-slider-thumb { background: #000; }

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 900px) {
    .hero-image-wrapper { height: 500px; }
    .card-slide { width: 280px; height: 380px; }
    .card-caption p { font-size: 1rem; }
    .slider-seeker { bottom: 50px; width: 55%;}
}

@media (max-width: 600px) {
    .hero-image-wrapper { height: 400px; perspective: 1200px; }
    .card-slide { width: 240px; height: 300px; border-radius: 16px; }
    .card-caption { 
        padding: 12px; gap: 8px; border-radius: 12px; 
        bottom: 8px; left: 8px; right: 8px;
    }
    .card-caption p { font-size: 0.85rem; }
    .card-caption a { padding: 6px 12px; font-size: 0.8rem; }
    .slider-seeker { width: 50%; }
}
@media (max-width: 470px) { .hero-image-wrapper { height: 400px; perspective: 1000px; } .slider-seeker { display: none; } }
@media (max-width: 450px) { .hero-image-wrapper { height: 380px; perspective: 800px; } .slider-seeker { display: none; } }
@media (max-width: 390px) { .hero-image-wrapper { height: 380px; perspective: 600px; } .slider-seeker { display: none; } }
@media (max-width: 350px) { .hero-image-wrapper { height: 380px; perspective: 500px; } .slider-seeker { display: none; } }
@media (max-width: 320px) { .hero-image-wrapper { height: 380px; perspective: 450px; } .slider-seeker { display: none; } }