@import url('https://fonts.cdnfonts.com/css/ica-rubrik-black');
@import url('https://fonts.cdnfonts.com/css/poppins');

.banner {
    width: 100%;
    height: 100vh;
    text-align: center;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30%;
    padding-left: 16%;
}

.item{

    background-color: white;
}

.banner .slider {
    position: relative;
    width: 200px; /* Adjust this for the carousel size */
    height: 400px;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateY(0deg); /* Starts from the initial front-facing view */
    transition: transform 1s ease-in-out;
    /* transform: rotateX(-2deg); */
}
.banner .slider .item {
    position: absolute;
    width: 150px;
    height: 100px;
    top: 40%;
    left: 52%;
    transform-style: preserve-3d;
    transform: rotateY(calc(var(--position) * 360deg / var(--quantity))) 
    translateZ(200px) 
    translateX(-50%) 
    translateY(-50%) 
    rotateY(168deg); 
    transition: transform 1s ease, opacity 1s ease;
    cursor: pointer;
    opacity: 1;
    border-radius: 20px;
    border: 1px solid gainsboro;
    background-position: center;
    background-size: contain;
    
}


.banner .slider .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Removed the border-radius property to make the images square */
    transition: transform 1s ease, opacity 0.5s;
    border-radius: 20px;
    /* border: 2px solid blCK; */
}

.banner .slider .item.selected {
    transform: translateZ(600px); /* Brings selected item forward and enlarges it */
    z-index: 3;
    opacity: 1; /* Makes the selected item fully opaque */
    position: absolute;
    right: 20%;
    /* width: 80%; */
    border-radius: 20px;
    border: 1px solid rgb(0, 0, 0);
    
    background-position: center;
    background-size: contain;
    
}

.banner .slider .item:hover {
    opacity: 1; /* Increases opacity on hover */
}

/* @media screen and (max-width: 1023px) {
    .banner .slider {
        width: 300px;
        height: 300px;
    }
    .banner .slider .item {
        width: 120px;
        height: 120px;
        transform: rotateY(calc(var(--position) * 360deg / var(--quantity))) translateZ(180px) translateX(-50%) translateY(-50%);
    }
}

@media screen and (max-width: 767px) {
    .banner .slider {
        width: 250px;
        height: 250px;
    }
    .banner .slider .item {
        width: 100px;
        height: 100px;
        transform: rotateY(calc(var(--position) * 360deg / var(--quantity))) translateZ(140px) translateX(-50%) translateY(-50%);
    }
} */


.banner .content{
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1400px, 100vw);
    height: max-content;
    padding-bottom: 100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}
.banner .content h1{
    font-family: 'ICA Rubrik';
    font-size: 16em;
    line-height: 1em;
    color: #25283B;
    position: relative;
}
.banner .content h1::after{
    position: absolute;
    inset: 0 0 0 0;
    content: attr(data-content);
    z-index: 2;
    -webkit-text-stroke: 2px #d2d2d2;
    color: transparent;
}
.banner .content .author{
    font-family: Poppins;
    text-align: right;
    max-width: 200px;
}
.banner .content h2{
    font-size: 3em;
}
.banner .content .model{
    background-image: url(images/model.png);
    width: 100%;
    height: 75vh;
    position: absolute;
    bottom: 0;
    left: 0;
    background-size: auto 130%;
    background-repeat: no-repeat;
    background-position: top center;
    z-index: 1;
}
@media screen and (max-width: 1023px) {
    .banner {
        flex-direction: column; /* Stack elements vertically */
        gap: 5%; /* Further reduced gap */
        padding: 0 5%; /* Add padding to avoid screen edge overflow */
    }
    .banner .slider {
        width: 120px; /* Smaller width for mobile */
        height: 200px; /* Adjusted height for mobile */
        left: -7%; /* Center horizontally */
        transform: translateX(-50%); /* Ensure horizontal centering */
    }
    .banner .slider .item {
        width: 200px; /* Smaller item width */
        height: 150px; /* Smaller item height */
        transform: rotateY(calc(var(--position) * 360deg / var(--quantity)))
            translateZ(0px); /* Reduce translateZ to shrink radius */
    }
    .banner .content h1 {
        font-size: 4em; /* Smaller font size for mobile */
    }
}


@media screen and (max-width: 767px) {
    .banner {
        flex-direction: column; /* Stack elements vertically */
        gap: 5%; /* Further reduced gap */
        padding: 0 5%; /* Add padding to avoid screen edge overflow */
    }
    .banner .slider {
        width: 120px; /* Smaller width for mobile */
        height: 200px; /* Adjusted height for mobile */
        left: -11%; /* Center horizontally */
        transform: translateX(-50%); /* Ensure horizontal centering */
    }
    .banner .slider .item {
        width: 200px; /* Smaller item width */
        height: 150px; /* Smaller item height */
        transform: rotateY(calc(var(--position) * 360deg / var(--quantity)))
            translateZ(0px); /* Reduce translateZ to shrink radius */
    }
    .banner .content h1 {
        font-size: 4em; /* Smaller font size for mobile */
    }
}
