*{
    box-sizing: border-box;
}
body{
    margin: 0;
    font-family: Poppins;
}
header{
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 50px;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}
header nav ul{
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    gap: 30px;
}
:root{
    --collapsed-navbar-width: 5rem;/*added this*/
    --expanded-navbar-width: 16rem;/*added this*/
    --width-circle: 150vw;
    --radius: calc(100vw / 6);
}
.slider{
    width: 100%; /*edditing width from 100vw to 100% height 105vh to 100%*/
    height: 100vh; /*height 105vh to 100%*/
    overflow: hidden; 
    position: relative;
    background-color: #17232A;
    background-image: radial-gradient(#fff3, transparent 50%);
    margin-top: 0px;
    display: flex;
    margin-bottom: 20px;
    justify-content: center; /*center the slider horizontally*/
    align-items: center; /*center the content vertically*/
}
.slider .list{
    position: absolute;
    width: max-content;
    height: 100%;
    display: flex;
    justify-content: start;
    align-items: center;
    transition: transform 0.8s ease;
    overflow: hidden; /* added this */
    transform: translateX(0);/*added this*/
    
}
.slider .list .item{
    width: calc(var(--radius) * 2);
    text-align: center;
    transform: rotate(45deg);
    transition: transform 1s;
}
.slider .list .item.active{
    transform: rotate(0deg);
}
.slider .list .item img{
    width: 90%; /* added this */
    height: auto; /* added this */
    object-fit: cover; /*added this */
    filter: drop-shadow(0 0 20px #000);
}
.slider .content{
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #eee;
    width: 90%;
    max-width: 900px;
}
.slider .content div:nth-child(2){
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 10px;
    font-weight: bold;
    position: relative;
}
.slider .content div:nth-child(2)::before{
    position: absolute;
    left: 60%;
    bottom: 50%;
    width: 80px;
    height: 80px;
    content: '';
    background-image: url(img/6.png);
    background-size: cover;
    background-repeat: no-repeat;
}
.slider .content div:nth-child(1){
    text-align: left;
    text-transform: uppercase;
    transform: translateY(20px);
    font-size: 0.5rem;
}
.slider .content button{
    border: 1px solid #eee5;
    background: transparent;
    color: #eee;
    font-family: Poppins;
    letter-spacing: 5px;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 1rem;
    
}

.slider .content button:hover{
    border: 1px solid #eee5;
    background-color: #eee;
    color: #17232A;
    font-family: Poppins;
    letter-spacing: 5px;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 1rem;
    transition: 1s ease;
    
}

#prev,
#next{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid #eee9;
    background-color: #eee5;
    color: #eee;
    font-size: x-large;
    font-family: monospace;
    cursor: pointer;
    z-index: 15;
}
#prev:hover,
#next:hover{
    color:#17232A;
    background-color: #eee;
    transition: .6s ease;
}
#prev{
    left: 20px;
}
#next{
    right: 20px;
}

/*Added this*/
h1{
    z-index: 25;
    margin-top: 50px;
    color: #fff;
}

/* //circle */

.circle{
    pointer-events: none;
    position: absolute;
    top: 0%;
    left: 0%;
    overflow: hidden;
    width: 100%;
    height: 100%;
    -webkit-mask: radial-gradient(var(--radius), transparent 100%, #000);
    mask: radial-gradient(var(--radius), #0000 98%, #000);
    backdrop-filter: blur(10px);
    background: radial-gradient( 
        calc(var(--radius) + 1px), #eee5 100%, #eee2
    );
    
}
.circle span{
    display: block;
    position: absolute;
    height: calc(var(--radius) * 2 + 50px);
    top: 50%;
    left: 50%;
    --rotate: 50deg;
    transform: translate(-50%, -50%) rotate(var(--rotate));
    text-transform: uppercase;
    color: #fff;
    font-size: small;
    animation: circleRotate 40s linear infinite;
}
@keyframes circleRotate{
    to{
        transform: translate(-50%, -50%) rotate(calc(var(--rotate) + 360deg));
    }
}

/*added media query because of content class*/


@media (max-width: 900px) {
    .slider .content div:nth-child(2) {
        font-size: 3rem; /* Smaller size for medium screens */
    }

    .slider .content div:nth-child(2)::before {
        width: 8vw; /* Adjust background size */
        height: 8vw;
    }
}

@media (max-width: 768px) {
    .slider {
        max-height: 800px;
    }
    .slider .content div:nth-child(2) {
        font-size: 2rem; /* Even smaller for smaller screens */
    }


    .slider .content div:nth-child(2)::before {
        width: 6vw;
        height: 6vw;
    }
}

@media (max-width: 480px) {
    .slider {
        max-height: 600px;
    }

    .slider .content div:nth-child(2) {
        font-size: 1rem; /* Smallest size for very small screens */
    }


    .slider .content div:nth-child(2)::before {
        width: 4vw;
        height: 4vw; /* Smaller background image */
    }
}

@media (max-width: 1024px) {
    .slider .content button {
        padding: 8px 18px; /* Slightly smaller padding for medium screens */
        font-size: 0.9rem;
    }

}

@media (max-width: 768px) {
    .slider .content button {
        padding: 6px 16px; /* Smaller padding for smaller screens */
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .slider .content button {
        padding: 4px 14px; /* Smallest size for very small screens */
        font-size: 0.7rem;
    }
}


@media (max-width: 1024px) {
    #prev, #next {
        width: 40px; /* Smaller size for medium screens */
        height: 40px;
        font-size: 18px;
    }
    #prev {
        left: 15px;
    }
    #next {
        right: 15px;
    }
}

@media (max-width: 768px) {
    #prev, #next {
        width: 35px; /* Even smaller size for small screens */
        height: 35px;
        font-size: 16px;
    }
    #prev {
        left: 12px;
    }
    #next {
        right: 12px;
    }
}

@media (max-width: 480px) {
    #prev, #next {
        width: 30px; /* Smallest size for very small screens */
        height: 30px;
        font-size: 14px;
    }
    #prev {
        left: 10px;
    }
    #next {
        right: 10px;
    }
}
