
::-webkit-scrollbar{
    width: 0;
}
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
    scroll-padding-top: 3rem;
}
::-webkit-scrollbar{
    width: 0;
    height: 0;
  }
:root {
    --main-color: #ff9f0d;
    --text-color: #eee;
    --other-color: #212121;
    --second-color: #9e9e9e;
    --bg-color: #111111;

    --big-font: 2.2rem;
    --h2-font: 2rem;
    --p-font: 0.9rem;

    --width: 450px;
    --height: 550px;
    --quantity: 10;
}
html::after{
    content: "";
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    pointer-events: none;
    /* background-color: var(--shade3-color); */
    background-image: url(/imgs/page_img/canvas.png);
    background-position: center;
    background-size: 100vw;
}
body{
    position: relative;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: Poppins;
    font-size: 12px;
}
body::-webkit-scrollbar {
    display: none;
}
a{
    text-decoration: none;
}

/*------------ Preloader section -------------------*/
.preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100%;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader-container {
  position: relative;
  width: 120px;
  height: 120px;
}

.Logo {
  width: 120px;
  height: 80px;
  border-radius: 50%;
  object-fit: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.loader-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 5px solid var(--second-color);
  border-top: 5px solid var(--main-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

header{
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    transition: all.50s ease;
    margin-bottom: 10px;
    padding-bottom: 10px;
}
header .logo {
    width: fit-content;
    margin-left: 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    background: #eeeeeec4;
}
header .logo:hover {
    background: transparent;
    transform: scale(1.1) translateY(-5px);
}
.logo img {
    width: 90px;
}
.nav {
    padding: 30px;
    width: fit-content;
    border-radius: 10px;
    border: 1px solid var(--main-color);
}
.navlist {
   display: flex;
}
.navlist a {
    color: var(--text-color);
    font-size: var(--p-font);
    font-weight: 600;
    margin: 0 30px;
    transition: all .50s ease;
}
.navlist a:hover {
    text-decoration: underline;
    color: var(--main-color);
    transform: scale(1.1.) translateY(5px);
}
.nav-icons {
    display: none;
    align-items: center;
    padding: 10px 17px;
    background: var(--main-color);
    box-shadow: #ff9f0d 0px 1px 20px;
    border-radius: 3rem;
}
.nav-icons .bx {
    font-size: 25px;
    vertical-align: middle;
    color: var(--bg-color);
    margin-left: 5px;
    margin-right: 8px;
    transition: all .50s ease;
}
#nav-icon {
    font-size: 30px;
    color: var(--bg-color);
    z-index: 10000000;
    cursor: pointer;
    display: none;
}
.nav-icons i:hover {
    transform: scale(1.1);
    color: var(--text-color);
}
.tatu {
    margin-top: 105px;
    margin-bottom: 60px;
    padding: 10px 2% 10px;
}
.slider {
    width: 100%;
    height: var(--height);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--other-color);
    -webkit-mask-image: linear-gradient(
        to right, transparent, 
        #000 10% 90%, 
        transparent);
    mask-image: linear-gradient(
        to right, transparent, 
        #000 10% 90%, 
        transparent);
  }
  
  .slider .list {
    display: flex;
    width: max-content;
    gap: 10px;
    animation: scroll 30s linear infinite;
  }
  
  .slider .item {
    flex: 0 0 var(--width);
    height: var(--height);
    transition: filter 0.5s;
  }
  
  .slider .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
  }
  
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-1 * var(--width) * var(--quantity)));
    }
  }
  .slider:hover .list {
    animation-play-state: paused !important;
    filter: grayscale(1);
  }
  .slider .item:hover i {
    filter: grayscale(0);
  }
  .container{
    position: relative;
    height: 80vh;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 2rem;
} 
.home-img img {
    width: 100%;
    height: auto;
    font-size: 34px;
}
.home-text {
    margin-left: 20px;
    margin-bottom: 10px;
}
.home-text h1{
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.2rem;
}
.home-text p{
    font-size: var(--p-font);
}

span{
    color: var(--main-color);
    font-weight: bold;
}
.btn{
    margin-top: 10px;
    display: inline-block;
    padding: 10px 25px;
    background: var(--other-color);
    color: var(--main-color);
    font-size: var(--p-font);
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 3rem;
    transition: all .50s ease;
}
.btn i{
    vertical-align: middle;
    margin-left: 9px;
    font-size: 15px;
}
.btn:hover{
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: #ff9f0d 0px 1px 20px;
}
.btn2{
    display: inline-block;
    margin-left: 30px;
    font-size: var(--p-font);
    font-weight: 500;
    letter-spacing: 1px;
    border-bottom: 3px solid var(--main-color);
    color: var(--main-color);
    transition: all .50s ease;
}
.btn2:hover{
    transform: scale(1.1) translateX(12px);
}
header.sticky{
    background: var(--other-color);
}
.mbili {
    position: relative;
}
.middle-text {
    text-align: center;
}
.middle-text h2 {
    font-size: 3.8rem;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 60px;
}
/* carousel */
.carousel{
    height: 600px;
    margin-top: -50px;
    width: 100%;
    overflow: hidden;
    position: relative;
}
.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;
    filter: brightness(40%);
}
.carousel .list .item .content{
    position: absolute;
    top: 20%;
    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 .author{
    font-weight: bold;
    letter-spacing: 10px;
}
.carousel .list .item .title,
.carousel .list .item .topic{
    font-size: 5em;
    font-weight: bold;
    line-height: 1.3em;
}
.carousel .list .item .topic{
    color: #e28b09e3;
}
.carousel .list .item .buttons{
    display: grid;
    grid-template-columns: repeat(2, 130px);
    grid-template-rows: 40px;
    gap: 5px;
    margin-top: 20px;
}
.carousel .list .item .buttons button{
    border: none;
    background-color: #eee;
    letter-spacing: 3px;
    font-family: Poppins;
    font-weight: 500;
}
.carousel .list .item .buttons button:nth-child(2){
    background-color: transparent;
    border: 1px solid #fff;
    color: #eee;
}
/* 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;
    filter: brightness(40%);
}
.thumbnail .item .content{
    color: var(--text-color);
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
}
.thumbnail .item .content .description{
    font-weight: 300;
    color: var(--text-color);
}
/* 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;
    }
}
.row-btn {
    text-align: center;
    margin-top: 1.5rem;
    margin-bottom: 1.8rem;
}
.scroll{
    position: fixed;
    bottom: 2.2rem;
    border-top: 2rem;
    right: 3.2rem;
    z-index: 888;
  }
  .scroll i{
    font-size: 22px;
    color: var(--text-color);
    background: var(--main-color);
    padding: 10px;
    border-radius: 2rem;
  }
footer {
    position: relative;
    align-items: center;
    width: 100%;
    background: var(--bg-color);
    color: var(--text-color);
}
footer .middle-text h1{
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--main-color);
}
.Contact {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
    margin: 2%;
}
.Contact .tupu {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    margin: 20px;
}
.tupu a i {
    color: var(--main-color);
    font-size: 30px;
}
.tupu a{
    color: var(--second-color);
    font-size: var(--p-font);
    font-weight: bold;
}
.tupu p {
    color: var(--text-color);
    font-size: var(--p-font);
}
.map {
    position: relative;
    width: 100%;
    height: 250px;
    padding: 3%;
    overflow: hidden;
}
.map iframe{
    position: relative;
    filter: grayscale(1);
    width: inherit;
    height: 250px;
    border-radius: 20px;
}
body .mguu .finale{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}
body .mguu .finale h1{
    text-align: center;
    font-size: 4vw;
    font-weight: 400;
}
body .mguu .finale .actions{
    display: flex;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    padding-inline: 2rem;
    align-items: center;
}
body .mguu .finale .actions .iactions{
    display: flex;
    gap: 0.5rem;
}
body .mguu .finale .actions .iactions a {
    width: 2.5vw;
    aspect-ratio: 1/1;
    font-size: 1.5vw;
    display: flex;
    /* background-color: red; */
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--main-color);
    color: var(--main-color);
    cursor: pointer;
}
body .mguu .finale .actions .iactions a:hover {
    transform: scale(1.1) translateY(-5px);
}
body .mguu .finale h2{
    width: 100%;
    font-size: 20vw;
    font-weight: 700;
    letter-spacing: -5vw;
    line-height: 20vw;
    transform: translateY(2vw);
    pointer-events: none;
    /* background-color: red; */
    background-image: url(../imgs/page_img/bg.jpeg);
    background-position: center;
    background-size: cover;
    background-clip: text;
    padding-top: 2vw;
    color: transparent;
    filter: brightness(20%);
}
body .mguu .finale .actions button {
    font-size: 0.8rem;
    color: var(--text-color);
    white-space: nowrap;
}
body .mguu .finale .actions button:hover{
    background-color: var(--other-color);
    transform: scale(1.1) translateY(-5px);
}
body .mguu .finale .actions button, button.line:hover{
    width: fit-content;
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
    border-radius: 4rem;
    color: var(--text-color);
    background-color: var(--main-color);
    border: 2px solid transparent;
    outline: none;
    gap: 0.5rem;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.2s ease, max-width 2s ease;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
}
body .mguu .finale .actions button.line{
    color: var(--other-color);
    border: 2px solid var(--second-color);
    background-color: transparent;
    box-sizing: border-box;
}
body .mguu .finale .actions button i{
    width: fit-content;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
}
body .mguu .finale .actions button i::before{
    height: 100%;
    display: flex;
    align-items: center;
}
body .mguu .finale .actions button.line i::before{
    color: var(--other-color);
}
body .mguu .finale .actions button:hover i::before{
    color: var(--text-color);
}
body .mguu .finale .actions button{max-width: 10rem;}
body .mguu .finale .actions button[pause]{overflow: hidden;max-width: 0rem;color: transparent;}

/* Responsive for multiple devices */
@media (max-width: 1545px){
    header{
        padding: 22px 4%;
        transition: .2s;
    }
    header.sticky{
        padding: 14px 4%;
        transition: .2s;
    }
}
@media (max-width: 1060px){
    .nav-icons{
        display: flex;
    }
    #menu-icon{
        display: initial;
    }
    .nav{
        border: none;
    }
    .navlist{
        position: absolute;
        top: -1000px;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        text-align: left;
        background: var(--other-color);
        transition: all .50s ease;
    }
    .navlist a{
        display: block;
        padding: 0.5rem;
        margin: 1rem;
        border-left: 2px solid var(--main-color);
    }
    .navlist.open{
        top: 100%;
    }
}

/* Responsive adjustments */
@media (max-width: 1234px) and (min-width: 770px) {
    .chini .kwanza {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 5px;
        margin: 0 auto;
        }
        .chini {
        padding: 40px 5%;
        }
        .mbil, .tat, .nne {
        margin-left: 0;
        }
        .chini .kwanza > div {
        flex: 1 1 220px;
        }
    .chini .kwanza .mbil h2, .tat h2, .nne h2 {
        font-size: 15px;
    }
    .chini .box1 {
        bottom: 0;
        position: absolute;
        margin-top: 5px;
    }
    }
    
    @media (max-width: 991px) {
    .container {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 5%;
    height: auto;
    }
    .home-img img {
    width: 100%;
    height: auto;
    }
    .home-text {
    margin: 0 auto;
    text-align: center;
    }
    .home-text h1 {
    font-size: 2.6rem;
    font-weight: 500;
    }
    .home-text p {
    font-size: 0.9rem;
    }
    .btn, .btn2 {
    margin-left: 0;
    }
    }
 @media (max-width: 768px) {
    .chini {
        width: 100%;
    }
    .chini .kwanza {
            flex-direction: row;
            margin: 0 auto;
            gap: 40px;
            padding: 0 5%;
            }
    .kwanza {
        margin-top: 30px;
    }
    .kwanza .moj {
        gap: 60px;
    }
    .kwanza .moj .logo img {
        width: 150px;
    }
    .chini .kwanza .mbil , .tat , .nne  {
        gap: 5px;
        margin: 0;
    }
    .chini .kwanza .mbil a, .tat a, .nne a {
        font-size: 10px;
    }
    .chini .kwanza .mbil h2, .tat h2, .nne h2 {
        font-size: 10px;
    }
    .chini .kwanza .mbil a i, .tat a i, .nne a i {
        font-size: 10px;
    }
    .chini .tano a {
        font-size: 12px;
    }
    .chini .tano a i {
        font-size: 10px;
    }
    .carousel .list .item .content {
    width: 100%;
    padding-right: 0;
    text-align: center;
    }
    .carousel .list .item .title {
    font-size: 2.2rem;
    }
    .carousel .list .item .topic {
    font-size: 2rem;
    }
    .thumbnail {
    left: 5%;
    gap: 10px;
    }
    .thumbnail .item {
    width: 100px;
    height: 150px;
    }
    .arrows {
    top: 90%;
    right: 10%;
    width: 80%;
    justify-content: center;
    }
    }
    
    @media (max-width: 630px) {
        html, body {
        overflow-x: hidden;
        }
        .chini .kwanza {
        flex-direction: row;
        align-items: flex-start;
        gap: 2px;
        padding: 0 5%;
        width: 100%;
        }
        .chini .kwanza > div {
        width: 100%;
        max-width: 100%;
        }
        }
        @media (max-width: 480px) {
        .logo img {
        width: 14vw;
        }
        .nav-icons i {
        font-size: 20px;
        }
        .slider .item {
        flex: 0 0 300px;
        height: auto;
        }
        .scroll-container img {
        width: 200px;
        }
        .home-text h1 {
        font-size: 2.4rem;
        font-weight: 500;
        }
        .btn, .btn2 {
        font-size: 0.75rem;
        padding: 8px 18px;
        }
        .Contact {
        flex-direction: column;
        align-items: center;
        text-align: center;
        }
        .Contact .tupu {
        margin: 0;
        }
        .map iframe {
        width: 100%;
        }
        .chini {
        height: auto;
        padding: 20px 10px;
        }
        .chini .kwanza {
        padding: 0;
        }
        .chini .box1 {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        }
        .carousel .list .item .buttons {
        grid-template-columns: 1fr;
        width: 100%;
        justify-items: center;
        }
        }        