@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');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}
body{
    margin: 0;
    width: 100%;
    height: auto;
}
header{
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    padding: 10px 100px;
    position: absolute;
    background: #fff;
    color: #2d5b68;
    font-size: 14px;
    top: 0;
    left: 0;
    z-index: 3;
}
header .content, header .icon{
    display: flex;
}
header .icon i{
    color: #70c0b3;
}
header .icon i:hover{
    color: #2d5b68;
}
header .content p{
    padding: 0 5px;
}
header a{
    color: #eee;
    margin-right: 40px;
}
header img{
    height: 150px;
}
.menu{
    width: 80%;
    height: 80px;
    background: #fff;
    position: absolute;
    top: 7%;
    left: 10%;
    z-index: 4;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}
.menu .logo{
    display: flex;
    height: 100%;
}
.menu .logo img{
    height: 80px;
}
.menu nav{
    display: flex;
    justify-content: space-around;
    width: 50%;
}
.menu nav a, .menu_open li a{
    text-decoration: none;
    color: #2d5b68;
    font-weight: 500;
    transition: all 0.5s ease;
}
.menu nav .active, .menu nav a:hover{
    color: #70c0b3;
}
.menu_open li a:hover{
    color: #70c0b3;
}
.menu_open{
    width: 100%;
    height: 200px;
    margin-top: 80px;
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
}
.menu_open ul{
    list-style: none;
    text-align: center;
}
.menu_open li{
    padding: 5px;
}
.menu_open .close{
    width: 30px;
    height: 30px;
    border-radius: 100%;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 10%;
    right: 10%;
    cursor: pointer;
}
.menu_open .close:hover{
    background: red;
}
.carousel{
    height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
}
.overley{
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 2;
    background-image: url(image/over.png);
    background-repeat: none;
    background-position: center;
    background-size: cover;
}
.carousel .list .item{
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0 0 0 0;
}
.carousel .list .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel .contents{
    position: absolute;
    top: 60%;
    width: 100%;
    max-width: 60%;
    left: 35%;
    transform: translateX(-50%);
    padding-right: 30%;
    box-sizing: border-box;
    color: #fff;
    z-index: 4;
    text-shadow: 0 5px 10px #0004;
}
.carousel .author{
    font-weight: bold;
    letter-spacing: 10px;
}
.carousel .contents .title{
    font-size: 2em;
    font-weight: bold;
    line-height: 1.3em;
    color: #f1683a;
}
.carousel .des{
    font-size: 15px;
}
/* thumbail */
.thumbnail{
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
}
.thumbnail .item{
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
}
.thumbnail .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.thumbnail .item .content{
    color: #fff;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
}
.thumbnail .item .content .title{
    font-weight: 500;
}
.thumbnail .item .content .description{
    font-weight: 300;
}
/* arrows */
.arrows{
    position: absolute;
    top: 80%;
    right: 52%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}
.arrows button{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee4;
    border: none;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
    transition: .5s;
}
.arrows button:hover{
    background-color: #fff;
    color: #000;
}

/* animation */
.carousel .list .item:nth-child(1){
    z-index: 1;
}

/* animation text in first item */

.carousel .list .item:nth-child(1) .content .author,
.carousel .list .item:nth-child(1) .content .title,
.carousel .list .item:nth-child(1) .content .topic,
.carousel .list .item:nth-child(1) .content .des,
.carousel .list .item:nth-child(1) .content .buttons
{
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent .5s 1s linear 1 forwards;
}
@keyframes showContent{
    to{
        transform: translateY(0px);
        filter: blur(0px);
        opacity: 1;
    }
}
.carousel .list .item:nth-child(1) .content .title{
    animation-delay: 1.2s!important;
}
.carousel .list .item:nth-child(1) .content .topic{
    animation-delay: 1.4s!important;
}
.carousel .list .item:nth-child(1) .content .des{
    animation-delay: 1.6s!important;
}
.carousel .list .item:nth-child(1) .content .buttons{
    animation-delay: 1.8s!important;
}
/* create animation when next click */
.carousel.next .list .item:nth-child(1) img{
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 30px;
    animation: showImage .5s linear 1 forwards;
}
@keyframes showImage{
    to{
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

.carousel.next .thumbnail .item:nth-last-child(1){
    overflow: hidden;
    animation: showThumbnail .5s linear 1 forwards;
}
.carousel.prev .list .item img{
    z-index: 100;
}
@keyframes showThumbnail{
    from{
        width: 0;
        opacity: 0;
    }
}
.carousel.next .thumbnail{
    animation: effectNext .5s linear 1 forwards;
}

@keyframes effectNext{
    from{
        transform: translateX(150px);
    }
}

/* running time */

.carousel .time{
    position: absolute;
    z-index: 1000;
    width: 0%;
    height: 3px;
    background-color: #f1683a;
    left: 0;
    top: 0;
}

.carousel.next .time,
.carousel.prev .time{
    animation: runningTime 3s linear 1 forwards;
}
@keyframes runningTime{
    from{ width: 100%}
    to{width: 0}
}


/* prev click */

.carousel.prev .list .item:nth-child(2){
    z-index: 2;
}

.carousel.prev .list .item:nth-child(2) img{
    animation: outFrame 0.5s linear 1 forwards;
    position: absolute;
    bottom: 0;
    left: 0;
}
@keyframes outFrame{
    to{
        width: 150px;
        height: 220px;
        bottom: 50px;
        left: 50%;
        border-radius: 20px;
    }
}

.carousel.prev .thumbnail .item:nth-child(1){
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail .5s linear 1 forwards;
}
.carousel.next .arrows button,
.carousel.prev .arrows button{
    pointer-events: none;
}
.carousel.prev .list .item:nth-child(2) .content .author,
.carousel.prev .list .item:nth-child(2) .content .title,
.carousel.prev .list .item:nth-child(2) .content .topic,
.carousel.prev .list .item:nth-child(2) .content .des,
.carousel.prev .list .item:nth-child(2) .content .buttons
{
    animation: contentOut 1.5s linear 1 forwards!important;
}

@keyframes contentOut{
    to{
        transform: translateY(-150px);
        filter: blur(20px);
        opacity: 0;
    }
}
@media screen and (max-width: 678px) {
    .carousel .list .item .content{
        padding-right: 0;
    }
    .carousel .list .item .content .title{
        font-size: 30px;
    }
}
.about_us{
    height: 100vh;
    width: 100%;
    background: #fff;
}
.about_us h4{
    text-align: center;
    padding: 10px;
    color: orange;
}
.about_us ul{
    margin-left: 30px;
}
.contact{
    min-height: 100vh;
    width: 95%;
    background: #fff;
}
.footer{
    height: 50px;
    width: 100%;
    background: #001f2b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}
section h1{
    color: #2d5b68;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}
.box_content{
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px;
    align-items: center;
}
.box_content .box{
    width: 40%;
    height: 80%;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}
.box_content .box img{
    border-radius: 20px;
    padding: 10px 0;
    width: 70%;
}
.box_content .box_text{
    width: 40%;
    border-radius: 10px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}
/* our services */
.our_services{
    height: 100vh;
    width: 100%;
    background: #70c0b3;
}
.our_services h1{
    color: #fff;
}
.cards{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    padding: 20px;
}
.cards .card{
    width: calc(100%/2 - 50px);
    height: auto;
    background: #fff;
    color: #000;
    padding: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 30px;
    margin-top: 20px;
}
.cards .card:hover{
    color: #fff;
    background: #001f2b;
}
.services{
    width: 100%;
    background: #fff;
}
.bar_box{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    padding: 20px;
}
.bar_box .card{
    width: calc(100%/4 - 50px);
    min-height: 250px;
    height: auto;
    background: orange;
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 30px;
    margin-top: 20px;
    margin-top: -40px;
}
.info_box{
    width: 100%;
    display: flex;
    margin: 8% 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
}
.info_box .info{
    width: calc(100%/3 - 80px);
    text-align: center;
    height: 150px;
    border-radius: 10px;
    background: #001f2b;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}
.info_box .info i{
    font-size: 30px;
    padding: 10px;
}
.info_box .info p{
    padding: 10px;
}
.info_box .info ul{
    list-style: none;
}
.info_box .info:hover{
    background: orange;
}
.contact .icon{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact .icon a{
    color: #2d5b68;
    padding: 10px;
    transition: all 0.5s ease;
}
.contact .icon a:hover{
    color: orange;
}
@media screen and (max-width: 1200px) {
    .bar_box .card{
        width: calc(100%/2 - 50px);
        height: 200px;
        margin-top: 20px;
    }
}
@media screen and (max-width: 1000px) {
    header{
        display: none;
    }
    .menu{
        width: 100%;
        height: 80px;
        top: 0;
        left: 0;
        border-radius: 0px;
    }
    .arrows{
        display: none;
    }
    .about_us{
        height: auto;
        padding-bottom: 20px;
    }
    .box_content .box{
        width: 80%;
    }
    .box_content .box_text{
        width: 80%;
        padding: 20px;
        margin-top: 10px;
    }
    .info_box .info{
        width: calc(100% - 80px);
        margin-top: 10px;
    }
}
@media screen and (max-width: 780px) {
    .menu nav{
        display: none;
    }
    .info_box{
        margin-left: 5%;
    }
}
@media screen and (max-width: 580px) {
    .carousel .contents{
        display: none;
    }
    .bar_box .card{
        width: calc(100% - 50px);
        height: 150px;
        margin-top: 20px;
    }
    .our_services{
        height: auto;
        padding-bottom: 10px;
    }
    .cards .card{
        width: calc(100% - 50px);
    }
    .thumbnail .item{
        width: 100px;
        height: 160px;
        flex-shrink: 0;
        position: relative;
    }
    .overley{
        background-image: url(image/over1.png);
    }
}