/* Images Slider Component Styles */

.images-slider-container {
    position: relative;
    height: 100vh;
    /* Full screen as per 'changing photos continuously' layout */
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    /* 3D perspective */
    background-color: #000;
}

@media (min-width: 768px) {
    .images-slider-container {
        height: 100vh;
    }
}

/* Overlay */
.images-slider-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    /* bg-black/60 */
    z-index: 40;
    pointer-events: none;
}

/* Image Base Style */
.images-slider-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    /* Hardware acceleration */
    backface-visibility: hidden;
    will-change: transform, opacity;
}

/* TRANSITIONS matching Framer Motion variants */

/* Initial State: hidden, scaled down, rotated */
.slide-enter {
    opacity: 0;
    transform: scale(0) rotateX(45deg);
}

/* Visible State: scaled up, flat, visible */
.slide-visible {
    opacity: 1;
    transform: scale(1) rotateX(0deg);
    transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1.0), opacity 0.5s cubic-bezier(0.645, 0.045, 0.355, 1.0);
}

/* Exit State: Slide Up */
.slide-exit-up {
    opacity: 1;
    transform: translateY(-150%);
    transition: transform 1s ease-in-out;
    z-index: 10;
    /* Ensure it slides 'above' or 'below' correctly if needed, but usually exiting one is just moved */
}

/* Content Area */
.images-slider-content {
    position: relative;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    opacity: 0;
    transform: translateY(-80px);
    animation: content-fade-in 0.6s ease-out forwards;
}

@keyframes content-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.images-slider-title {
    font-weight: 700;
    font-size: 1.25rem;
    /* xl */
    line-height: 1.2;
    background: linear-gradient(to bottom, #f9fafb, #a3a3a3);
    /* neutral-50 to neutral-400 */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding: 1rem 0;
}

@media (min-width: 768px) {
    .images-slider-title {
        font-size: 3.75rem;
        /* 6xl approx */
    }
}

/* Button */
.images-slider-btn {
    position: relative;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    /* full */
    background-color: rgba(110, 231, 183, 0.1);
    /* emerald-300/10 */
    border: 1px solid rgba(16, 185, 129, 0.2);
    /* emerald-500/20 */
    color: white;
    font-size: 1rem;
    cursor: pointer;
    backdrop-filter: blur(4px);
    overflow: hidden;
}

.images-slider-btn-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    width: 75%;
    margin: 0 auto;
    background: linear-gradient(to right, transparent, #10b981, transparent);
    /* emerald-500 */
}