body{
    margin: 0;
   
    font-family: Georgia, 'Times New Roman', Times, serif;
}
:root{
    --item1-transform: translate(-100%, -50%) scale(1.5);
    --item1-filter: blur(30px);
    --item1-zIndex: 11;
    --item1-opacity: 0;

    --item2-transform: translate(0, 0);
    --item2-filter: blur(0);
    --item2-zIndex: 10;
    --item2-opacity: 1;

    --item3-transform: translate(50%, 10%) scale(0.8);
    --item3-filter: blur(10px);
    --item3-zIndex: 9;
    --item3-opacity: 1;

    --item4-transform: translate(90%, 20%) scale(0.5);
    --item4-filter: blur(30px);
    --item4-zIndex: 8;
    --item4-opacity: 1;

    --item5-transform: translate(120%, 30%) scale(0.3);
    --item5-filter: blur(40px);
    --item5-zIndex: 7;
    --item5-opacity: 0;
}
a{
    text-decoration: none;
    color: #555;

}
header{
    width: 1140px;
    max-width: 90%;
    margin: auto;
    height: 50px;
     display: flex;
     justify-content: space-between;
     align-items: center;
     position: relative;
     z-index: 100;
    
}
.logo img{
    position: relative;
    top: 40px;
    width: 30%;

}
header nav a{
    margin-left: 30px;

}
.carousal{
    margin-top: -50px;
    height: 800px;
    overflow: hidden;
    position: relative;

}
.carousal .list{
    position: absolute;
    top: 0;left: 0;
    width: 1140px;
    max-width: 90%;
    left: 50%;
    transform: translateX(-50%);
    height: 80%;


}
.carousal .list .item{
    position: absolute;
    left: 0;top: 0;width: 70%;font-size: 15px;
    height: 100%;
}
.carousal .list .item img{
    width: 50%;
    position: absolute;
    right: 0;top: 50%;transform: translateY(-50%);

}
.carousal .list .item .detail{
    opacity: 0;
    pointer-events: none;

}
.carousal .list .item .intro{
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 400px;
opacity: 0;
pointer-events: none;

}
.carousal .list .item:nth-child(2) .intro{
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.5s;
}
.carousal .list .item:nth-child(n + 6){
    opacity: 0;pointer-events: none;
}
.carousal .list .item:nth-child(2){
    transform: var(--item2-transform);
    filter: var(--item2-filter);
    z-index: var(--item2-zIndex);
    opacity: var(--item2-opacity);

}
.carousal .list .item:nth-child(1){
    transform: var(--item1-transform);
    filter:var(--item1-filter);
    z-index: var(--item1-zIndex);
    opacity:var(--item1-opacity);
    pointer-events: none;

}
.carousal .list .item:nth-child(3){
    transform: var(--item3-transform);
    filter: var(--item3-filter);
    z-index: var(--item3-zIndex);
    opacity: var(--item3-opacity);
}
.carousal .list .item:nth-child(4){
    transform: var(--item4-transform);
    filter: var(--item4-filter);
    opacity: var(--item4-opacity);
    z-index: var(--item4-zIndex);
}
.carousal .list .item:nth-child(5){
    transform: var(--item5-transform);
    filter: var(--item5-filter);
    opacity: var(--item5-opacity);
    z-index: var(--item5-zIndex);
}
.arrows{
    position: absolute;
    bottom: 5px;
    width: 1140px;
    max-width: 90%;
    left: 50%;transform: translateX(-50%) translateY(-90px);
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}
.arrows #next,
.arrows #prev{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: large;
    font-weight: bold;
    border:  1px solid #555;
}
.arrows #back{
    font-weight: bold;
    border: none;
border-bottom: 1px solid #555 ;
background-color: transparent;
opacity: 0;
font-size: 20px;
pointer-events: none;
}
.carousal .list .item .intro .title{
    font-size: 2em;
    line-height: 0.8em;


}
.carousal .list .item .intro .topic{
font-size: 4em;
font-weight: 500;
}
.carousal .list .item .intro .dec{
    font-size: small;

}
.carousal .list .item .intro .see-more{
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #555 ;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: bold;
    margin-top: 1.2em;
    padding: 5px 0;
    font-size: 20px;

}
.carousal .list .item:nth-child(2) .intro .title,
.carousal .list .item:nth-child(2) .intro .topic,
.carousal .list .item:nth-child(2) .intro .dec,
.carousal .list .item:nth-child(2) .intro .see-more{
    opacity: 0;
    animation: shown  0.5s 0.7s ease-in-out 1 forwards;
}
@keyframes shown{
    from{
        transform: translateY(50px);
        filter: blur(30px);
    }
    to{
        transform: translateY(0);
        opacity: 1;
        filter: blur(0);
    }
}
.carousal .list .item:nth-child(2) .intro .topic{
    animation-delay: 0.9s;
}
.carousal .list .item:nth-child(2) .intro .dec{
    animation-delay: 1.1s;
}
.carousal .list .item:nth-child(2) .intro .see-more{
    animation-delay: 1.3s;
}
.carousal.nexr .list .item:nth-child(1){
    animation: postion 0.5s ease-in-out 1 forwards;
}
@keyframes postion{
    from{
        transform: var(--item2-transform);
        filter: var(--item2-filter);
        z-index: var(--item2-zIndex);
        opacity: var(--item2-opacity);
    
    }
}
.carousal.nexr .list .item:nth-child(2){
    animation: postion3  0.7s ease-in-out 1 forwards;
}
@keyframes postion3{
    from{
        transform: var(--item3-transform);
        filter: var(--item3-filter);
        z-index: var(--item3-zIndex);
        opacity: var(--item3-opacity);
    
    }
}
.carousal.nexr .item:nth-child(3){
    animation: postionm4 0.9s ease-in-out 1 forwards;
}
@keyframes postionm4{
    from{
        transform: var(--item4-transform);
        filter: var(--item4-filter);
        opacity: var(--item4-opacity);
        z-index: var(--item4-zIndex);
    
    }

}
.carousal.nexr .item:nth-child(4){
    animation: postionm5 1.1s ease-in-out 1 forwards;

}
button{
    cursor: pointer;
}
@keyframes postionm5{
    from{
    transform: var(--item5-transform);
    filter: var(--item5-filter);
    opacity: var(--item5-opacity);
    z-index: var(--item5-zIndex);}

}
.carousal.prevx .list .item:nth-child(2){
    animation: postion 0.5s ease-in-out 1 forwards;
}
@keyframes postion{
    from{
        transform: var(--item1-transform);
        filter:var(--item1-filter);
        z-index: var(--item1-zIndex);
        opacity:var(--item1-opacity);
    

    }
}
.carousal.prevx .list .item:nth-child(3){
        animation: postion  0.7s ease-in-out 1 forwards;
    }
.carousal.prevx .list .item:nth-child(4)   {
    animation: postion3 0.9s ease-in-out 1 forwards;

} 

.carousal.prevx .list .item:nth-child(5){
    animation: postionm4 1.1s ease-in-out 1 forwards;

}
.carousal .list .item{
    transition: left 0.5s opacity 0.5s width 0.5s;
}
.carousal.showdetail .list .item:nth-child(3),
.carousal.showdetail .list .item:nth-child(3){
    left: 100%;
    opacity: 0;
    pointer-events: none;
}
.carousal.showdetail .list .item:nth-child(2){
    width: 100%;
}
.carousal.showdetail .list .item:nth-child(2) .intro{
    width: 100%;
}
.carousal .list .item:nth-child(2) img{
    transition: right 0.5s ;
}


.carousal.showdetail .list .item:nth-child(2) img{
    right: 50%;
}
.carousal.showdetail .list .item:nth-child(2) .detail{
    opacity: 1;
    pointer-events: auto;
    width: 50%;
    position: absolute;
    right: 0;
    text-align: right;
    top: 50%;
    transform: translateY(-50%);
}
.carousal.showdetail .list .item:nth-child(2) .detail .title{
    font-size: 4em;

}
.carousal.showdetail .specification{
    display: flex;gap: 10px;width: 100%;border-top: 1px solid #5555;
    margin-top: 20px;
}
.carousal.showdetail .specification div{
    width: 90px;
    text-align: center;
    flex-shrink: 0;

}
.carousal.showdetail div p:nth-child(1){
    font-weight: bold;
}

.carousal.showdetail .list .checkout button{
    font-family: Georgia, 'Times New Roman', Times, serif;
    background-color: transparent;
    border: 1px solid #555;
    margin-left: 5px;font-weight: 500;
}.carousal.showdetail .list .item .checkout button:nth-child(2){
    background-color: #693eff;
    color: aliceblue;

}
.carousal.showdetail .list .item:nth-child(2) .detail .title,
.carousal.showdetail .list .item:nth-child(2) .detail .dec,
.carousal.showdetail .list .item:nth-child(2) .detail .specification,
.carousal.showdetail .list .item:nth-child(2) .detail .checkout
{
opacity: 0;
animation: shown 0.5s 1s ease-in-out 1 forwards;
}
.carousal.showdetail .list .item:nth-child(2) .detail .dec{
    animation-delay: 1.2s;
}
.carousal.showdetail .list .item:nth-child(2) .detail .specification{
    animation-delay: 1.4s;
}
.carousal.showdetail .list .item:nth-child(2) .detail .checkout
{
    animation-delay: 1.4s;

}
.carousal.showdetail #next,
.carousal.showdetail #prev{
    opacity: 0;pointer-events: none;

}
.carousal.showdetail #back{
    opacity: 1;pointer-events: auto;
}
.carousal.showdetail .intro{
    display: none;
}
.carousal::after{
    width: 500px;
    height: 300px;
    content: "";
    background-image: linear-gradient(45deg ,green,rgba(118, 118, 226, 0.668));
    position: absolute;z-index:-1 ;
    border-radius: 40% 30% 80% 10%;
    filter: blur(140px);
}
.carousal.showdetail .list .dec{
    line-height: 20px;
    
}
.dec{
    line-height: 20px;

}
@media (max-width:767px){
    .carousal .list .item{
        width: 100%;
        font-size: 10px;
    }
    .carousal{
        height: 100vh;
    }
    .carousal .list{
        height: 100%;
    }
    .carousal .list .item .intro{
        width: 50%;
    }
    .carousal img{
        width: 40%;
    }
    .carousal.showdetail .list .item .detail .title{
        font-size: 2em;
    }
    .carousal.showdetail .list .item .detail .dec{
        height: 100px;
        overflow: auto;
}
.carousal.showdetail .list .item .detail .checkout{
    display: flex;
    float: right;
    width: max-content;
}
.arrows{
    position: absolute;
    bottom: 5px;
    width: 1140px;
    max-width: 90%;
    left: 50%;transform: translateX(-50%) translateY(-60px);
    display: flex;justify-content: space-evenly;
    align-items: center;
}

}
 #next,#prev{
    color: aliceblue;
    border: none;
    background-image: linear-gradient(45deg ,green ,rgb(114, 114, 197));
    opacity: 0.9;
}.cc{
    border-radius: 20% 15% 15% 20%;
    padding: 10px 10px;
}
.carousal{
    height: 100vh;
}

.bss {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.banner {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.slider {
    position: relative;
    width: 200px;
    height: 250px;
    transform-style: preserve-3d;
    animation: rotate 10s infinite linear;
}

.kk {
    position: absolute;
    width: 200px;
    height: 250px;
    transform-origin: center;
    transition: transform 0.5s;
}

.kk:nth-child(1) { transform: rotateY(0deg) translateZ(400px); }
.kk:nth-child(2) { transform: rotateY(36deg) translateZ(400px); }
.kk:nth-child(3) { transform: rotateY(72deg) translateZ(400px); }
.kk:nth-child(4) { transform: rotateY(108deg) translateZ(400px); }
.kk:nth-child(5) { transform: rotateY(144deg) translateZ(400px); }
.kk:nth-child(6) { transform: rotateY(180deg) translateZ(400px); }
.kk:nth-child(7) { transform: rotateY(216deg) translateZ(400px); }
.kk:nth-child(8) { transform: rotateY(252deg) translateZ(400px); }
.kk:nth-child(9) { transform: rotateY(288deg) translateZ(400px); }
.kk:nth-child(10) { transform: rotateY(324deg) translateZ(400px); }

.kk img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes rotate {
    from { transform: perspective(1000px) rotateY(0deg); }
    to { transform: perspective(1000px) rotateY(360deg); }
}
@media (max-width: 768px) {
    .slider {
        width: 150px;
        height: 200px;
        animation: rotate 20s infinite linear;}

    .kk {
        width: 150px;
        height: 200px;
    }

    .kk:nth-child(n) {
        transform: rotateY(calc(36deg * (n - 1))) translateZ(200px);
    }
}
h2{
    text-align: center;
    transform: translateY(50px);
}

@media (max-width: 480px) {
    .slider {
        width: 120px;
        height: 170px;
        animation: rotate 7s infinite linear; 
    }

    .kk {
        width: 120px;
        height: 170px;
    }

    .kk:nth-child(n) {
        transform: rotateY(calc(36deg * (n - 1))) translateZ(150px);
    }
}

/* footer */

footer{
    direction: rtl; 
    background-color: #394150;
}
footer .top-footer{
    padding: 40px 0;
    display: flex;
    justify-content: space-between;
}
footer .top-footer .row img{
    width: 30%;
}
footer .top-footer .row{
    width: 25%;
}

footer .top-footer .small-row{
    width: 15%;
}
footer .top-footer .row .hotline{
    display: flex;
    align-items: center;
    margin: 20px 0;
}
footer .top-footer .row .hotline i{
    color: #32CD32;
    font-size: 60px;
    margin-right: 15px;
}
footer .top-footer .row .hotline .hotline-text h6{
    color: #dddddd;
    margin-bottom: 10px;
    font-size: 16px;
}
footer .top-footer .row .hotline .hotline-text span{
    color: var(--main-color);
    font-size: 18px;
    font-weight: bold;
}
footer .top-footer .row p{
    color: #ddd;
    margin-bottom: 10px;
}
footer .top-footer .small-row{
    width: 15%;
}
footer .top-footer .small-row h6{
    color: #ddd;
    font-size: 18px;
    margin-bottom: 30px;
}
footer .top-footer .small-row .links-row{
    display: flex;
    flex-direction: column;
}
footer .top-footer .small-row .links-row a{
    color: #ddd;
    margin-bottom: 12px;
    position: relative;
    right: 0;
}
footer .top-footer .small-row .links-row a i{
    margin-left: 5px;
}
footer .top-footer .small-row .links-row a:hover{
    color: #FB0404;
    right: 10px;
    text-decoration: underline;
}
footer .payment img{
    filter: grayscale(100%);
    cursor: pointer;
}
footer .payment img:hover{
    filter: grayscale(0%);
}

footer .bottom-footer{
    background-color: #202935;
}
footer .bottom-footer .contanier{
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
footer .bottom-footer .contanier p span{
    color: var(--main-color);
}
.contanier{
    width: 80%;
    margin: auto;
}
@media (max-width: 1200px) {
    footer .top-footer{
        flex-wrap: wrap;
    }
    footer .top-footer .row{
        width: 35%;
        margin-bottom: 50px;
    }
    footer .top-footer .small-row{
        width: 25%;
    }
}
@media (max-width: 700px){
    footer .top-footer .row{
        width: 50%;
    }
    
    footer .top-footer .small-row{
        width: 32%;
    }
    footer .bottom-footer .contanier{
        justify-content: center;
        flex-direction: column;
        gap: 20px;
    }
}
@media (max-width: 600px){
    footer .top-footer .row{
        width: 100%;
    }
    footer .top-footer .small-row{
        width: 48%;
    }
    nav{
        position: relative;
        top: 47px;
        display: flex;
        flex-wrap: wrap;
        margin: 20px;
    }
    nav a{
        margin-bottom: 2px;
    }
    .logo img {
        position: relative;
        top: 40px;
        width: 80%;
    }
}
@media (max-width: 500px){
    footer .top-footer .row img{
        width: 45%;
        margin-right: 75px;
    }
}

.back-top{
    width: 100%;
    text-align: center;
}
.back-top a{
    display: block;
    border-radius: 0;
    background: #4d5669;
    color: #ffffff;
    text-transform: uppercase;
    padding: 22px 0;
    width: 100%;
    font-weight: 500;
}
.back-top a:hover{
    color: #FB0404;
}
nav a:hover{
    color:#202935;
    border: 1px solid gray;
    padding: 5px;
    border-radius: 10%;
}