/* Container for all three images */

/* ========================
           CSS VARIABLES & RESET
           ======================== */
:root {
    --bg-main: #1e1e24;
    --white-bg: #FAFAFA;
    --charcoal: #2f2529;
    --main-text: #303030;
    --bg-card: #25262c;
    --bg-card-hover: #2c2d35;
    --accent: #6557FF;
    --accent-hover: #9CA4FF;
    --text-light: #ffffff;
    --text-muted: #9fa0a7;
    --border: rgba(255, 255, 255, 0.08);
    --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 500px;
    height: 400px;
    align-items: center;
    margin: 30px;
}

.image-carousel {
    position: relative;
    width: 100%;
    height: 420px;
}

/* Individual image cards */
.image-card {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 65%;
    height: 85%;

    border-radius: 20px;
    overflow: hidden;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);

    transition:
        transform 0.5s ease,
        opacity 0.5s ease;

    transform: translate(-50%, -50%);
}

/* Images fill their cards */
.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Position the three cards */
.image-card[data-position="0"] {
    transform: translate(-110%, -50%) scale(0.85);
    z-index: 1;
}

.image-card[data-position="1"] {
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 2;
}

.image-card[data-position="2"] {
    transform: translate(10%, -50%) scale(0.85);
    z-index: 1;
}

/* Navigation buttons */
.carousel-controls {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 15px;
}

.carousel-controls button {
    background-color: var(--accent);
    color: var(--text-light);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
}

.carousel-controls button:hover {
    background-color: var(--accent-hover);
}

@media (max-width: 768px) {

    .hero-image {
        display: flex;
        flex-direction: column;
        width: 80%;
    }

    .image-carousel {
        height: 320px;
    }

    .image-card {
        width: 65%;
    }

}