@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

html::-webkit-scrollbar{
    width: 0.4rem;
}

html::-webkit-scrollbar-thumb{
    background: #3f3e3e;
}


body{
    font-family: 'Poppins', sans-serif;
    background-color: #000  ;
    color: #eee;
    margin: 0;
    font-size: 12px;
}

a{
    text-decoration: none;
    color: #eee;
}

/* Carousel */

.carousel{
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.carousel .list .item{
    position: absolute;
    inset: 0 0 0 0; 
}

.carousel .list .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel .list .item .content{
    position: absolute;
    top: 10%;
    width: 1140px;
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
    padding-right: 30%;
    box-sizing: border-box;
    color: #fff;
   text-shadow: 0 5px 10px #0004;
}

.carousel .list .item .content .author{
    font-weight: bold;
    letter-spacing: 10px;
    text-transform: uppercase;
}

.carousel .list .item .content .title,
.carousel .list .item .content .topic{
    font-weight: bold;
    font-size: 5em;
    line-height: 1.3em;
    text-transform: uppercase;
}

.carousel .list .item .content .topic{
    color: #f1683a;
}

button{
    background-color: transparent;
    color: #eee;
    font-weight: 700;
    border: 2px solid #eee;
    cursor: pointer;
}

button:hover{
    background-color: #f1683a;
    color: white;
    border: 2px solid white;
}

.carousel .list .item .content .buttons{
    display: grid;
    grid-template-columns: repeat(2, 130px);
    grid-template-rows: 40px;
    gap: 5px;                           
    margin-top: 20px;
}

.carousel .list.item .content .buttons{
    border: none;
    background-color: #eee;
    letter-spacing: 3px;
    font-family: Poppins;
    font-weight: 500;
}

/* Thumbnail */

.thumbnail{
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;   
}

.thumbnail .item {
    border: 3px solid #ffffff9e;
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
    border-radius: 20px;
}

.thumbnail .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.thumbnail .item .content{
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
}
.thumbnail .item .content .title{
    font-weight: bold;
}

/* Arrows */

.arrows{
    position: absolute;
    top: 40%;
    right: 10%;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: ceNter;
}

.arrows button{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.552);
    border: none;
    font-family: monospace;
    color: #fff;
    font-weight: bold;
    font-size: large;
    transition: .5s;
    z-index: 100;
}

.arrows button:hover{
    background-color: #eee;
    color: #555;
}

.carousel .list .item:nth-child(1){
    z-index: 1;
}  

.des {
    border-radius: 6px;
    border: transparent;
    filter: blur(30px);
    padding: 0 10px 5px 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.des.show-text {
    max-height: 300px;
    max-width: 500px;
    background-color: #00000056;
}

.des p {
    font-size: 1rem;
    line-height: 1.5;
    color: #fff;
    margin-top: 10px;
}

span{
    font-size: 1rem;
    color: #fff;
    font-weight:700;
}

.carousel .list .item:nth-child(1) .author,
.carousel .list .item:nth-child(1) .title,
.carousel .list .item:nth-child(1) .topic,
.carousel .list .item:nth-child(1) .des,
.carousel .list .item:nth-child(1) .buttons{
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent 0.5s .05s linear 1 forwards;
}

@keyframes showContent{
    to{
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
   
    }
}

.carousel .list .item:nth-child(1) .title{
    animation-delay: .5s;
}

.carousel .list .item:nth-child(1) .topic{
    animation-delay: .7s;
}

.carousel .list .item:nth-child(1) .des{
    animation-delay: .9s;
}

.carousel .list .item:nth-child(1) .buttons{
    animation-delay: 1.1s;
}

/* Effect next click */
.carousel.next .list .item:nth-child(1) img{
    width: 150px;
    height: 220px;
    position: absolute;
    left: 50%;
    bottom: 50px;
    border-radius: 20px;
    animation: showImage 0.5s .05s linear 1 forwards;
}

@keyframes showImage{
    to{
        width: 100%;
        height: 100%;
        left: 0;
        bottom: 0;
        border-radius: 0;
    }
}

.carousel.next .thumbnail .item:nth-last-child(1){
    width: 0;
    overflow: hidden;
    animation: showThumbnail .5s .05s linear 1 forwards;
}

@keyframes showThumbnail{
    to{
        width: 150px;
    }
}

.carousel.next .thumbnail{
    transform: translateX(150px);
    animation: transformThumbnail .5s .05s linear 1 forwards;
}

@keyframes transformThumbnail{
    to{
        transform: translateX(0);
    }
}

/* Effect prev click */

.carousel.prev  .list .item:nth-child(2){
    z-index: 2;
}

.carousel.prev .list .item:nth-child(2) img{
    position: absolute;
    bottom: 0;
    left: 0;
    animation: outImage 0.5s .05s linear 1 forwards;
}

@keyframes outImage{
    to{
        width: 150px;
        height: 220px;
        border-radius: 20px;
        left: 50%;
        bottom: 50px;
    }
}

.carousel.prev .thumbnail .item:nth-child(1){
    width: 0;
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail 0.5s .05s linear 1 forwards;
}

.carousel.prev .list .item:nth-child(2) .author,
.carousel.prev .list .item:nth-child(2) .title,
.carousel.prev .list .item:nth-child(2) .topic,
.carousel.prev .list .item:nth-child(2) .des,
.carousel.prev .list .item:nth-child(2) .buttons{
    animation: contentOut 1.5s .05s linear 1 forwards;
}

@keyframes contentOut{
    to{
        transform: translateY(-150px);
        filter: blur(20px);
        opacity: 0;        
    }
}

.carousel.next .arrows button,
.carousel.prev .arrows button{
    pointer-events: none;
}

.time{
    width: 100%;
    height: 3px;
    background-color: #f1683a;
    position:   absolute  ;
    z-index: 100;
    top: 0;
    left: 0;
}

.carousel.next .time,
.carousel.prev .time{
    width: 100%;
    animation: timeRunning 2s linear 1 forwards;
}

.contact{
    background: rgb(131,58,180);
    background: linear-gradient(90deg, rgba(131,58,180,1) 0%, rgba(253,29,29,1) 50%, rgb(245, 93, 11) 100%);
    padding: 2% 4%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container-contact{
    width:100%;
    
}

.box-contact{
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.box{
    text-align: center;
    margin: 1rem 0;
    width: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    gap: 1rem;
}

.box .fa-brands, 
.fa-solid{
    font-size: 1.4rem;
}

.box h1{
    font-size: 3rem;
}
.box h3{
    font-size: 1.5rem;
}
.box p{
    font-size: 1rem;
}

@media screen and (max-width:1380px){
    .des.show-text {
    max-height: 300px;
    max-width: 400px;
    }
}

@media screen and (max-width:1100px){
    .des.show-text {
    max-height: 300px;
    max-width: 300px;
    }
}

@media screen and (max-width:830px){
    .des.show-text {
    max-height: 500px;
    max-width: 400px;
    }

    .thumbnail{
        display: none;
    }
}

@media screen and (max-width:980px) {
    .box h1{
        font-size: 2rem;
    }

    .box h3{
        font-size: 1.4rem;
    }

    .box-contact{
        gap: 1.8rem;
    }

}

@media screen and (max-width: 678px) {
    .carousel .list .item .content{
    padding-right: 0;
    }

    .carousel .list .item .content .title{
        font-size: 30px;
    }

    .des p {
        font-size: 1.2rem;
    }

    span{
        font-size: 1rem;
    }

    .arrows{
    top: 80%;
    right: 40%;
    }
}

@media screen and (max-width:600px) {
    .box-contact{
        gap: 2rem;
    }

    .title-title{
        width: 100%;
        
    }
    .des p,
    span {
        font-size: 1.1rem;
    }

    .box h1{
        font-size: 1.5rem;
    }
    .box h3{
        font-size: 1rem;
    }
    .box p{
        font-size: 0.8rem;
    }

    .title-box{
        margin-bottom: 2rem;
    }

}

@media screen and (max-width:450px) {
    .arrows{
    top: 90%;
    right: 40%;
    }
}

@media screen and (max-width:320px){
    .des p,
    span {
        font-size: 0.9rem;
    }
}

@keyframes timeRunning{
    to{
        width: 0;
    }
}

