@import url('https://fonts.cdnfonts.com/css/ica-rubrik-black');
@import url('https://fonts.cdnfonts.com/css/poppins');

body {
    background-color: #D2D2D2;
}

.banner {
    width: 100%;
    height: 100vh;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.banner .slider {
    position: absolute;
    width: 300px;
    height: 200px;
    top: 20%;
    left: calc(50% - 150px);
    transform-style: preserve-3d;
    transform: perspective(1000px);
    animation: autoRun 20s linear infinite; /* Slowed down rotation */
    z-index: 2;
}

@keyframes autoRun {
    from {
        transform: perspective(1000px) rotateX(-16deg) rotateY(0deg);
    }
    to {
        transform: perspective(1000px) rotateX(-16deg) rotateY(360deg);
    }
}

.banner .slider:hover {
    animation-play-state: paused; /* Pause animation on hover */
}

.banner .slider .item {
    position: absolute;
    inset: 0;
    transform: rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)) translateZ(550px);
    transition: transform 0.3s ease; /* Smooth hover effect */
}

.banner .slider .item .testimonial-content {
    width: 100%;
    height: 100%;
    background-color: #333;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    font-family: 'Poppins';
    text-align: center;
}

.banner .content h1 {
    font-family: 'ICA Rubrik';
    font-size: 4em;
    color: #25283B;
    position: relative;
    z-index: 1;
    text-align: center; /* Centered heading */
    padding-top: 25%;
}

@media screen and (max-width: 1023px) {
    .banner .slider {
        width: 250px;
        height: 180px;
        left: calc(50% - 125px);
    }
    .banner .slider .item {
        transform: rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)) translateZ(300px);
    }
    .banner .content h1 {
        font-size: 3em;
    }
}

@media screen and (max-width: 767px) {
    .banner .slider {
        width: 200px;
        height: 150px;
        left: calc(50% - 100px);
    }
    .banner .slider .item {
        transform: rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)) translateZ(200px);
    }
    .banner .content h1 {
        font-size: 2em;
        
    }
}



/* Change card background */
.banner .slider .item .testimonial-content {
    background-color: #000000; /* Example: Light blue */
    border: 2px solid #ffffff; /* White border for contrast */
    color: #ffffff; /* White text */
    border-radius: 15px; /* Rounded corners */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Soft shadow */
    transition: background-color 0.3s ease-in-out;
}

/* Add hover effect */
.banner .slider .item:hover .testimonial-content {
    background-color: #F76E5D; /* Hover: Light green */
}