/*-- Loader ------------------------*/

#loader{
    z-index: 2147483647;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    box-shadow: 0 0 40px #00000040;
    transition: 1s ease;
}

#loader-container{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #071424;
    width: 100vw;
    height: 100vh;
}

#loader img{
    width: 30%;
    max-width: 80px;
}








/*-- Home ------------------------------*/

#home{
    position: relative;
    padding: 100px clamp(20px, 10%, 10%);
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
    place-items: center;
    min-width: none;
    min-height: 100vh;
}

#home-text{
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    flex-flow: column;
}

#home-text h1{
    font-size: 50px;
}

#home-text p{
    color: #ffffff80;
    max-width: 600px;
}

#home-image{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#home-image img{
    width: 100%;
    max-width: 600px;
}

#home-bg1{
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: -10;
    max-width: 1500px;
}






/*-- Services ------------------------------*/

#services{
    position: relative;
    padding: 100px clamp(20px, 10%, 10%);
    background: linear-gradient(-90deg, #071424, #0b1d36);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;
    gap: 100px;
}

#services .section-title{
    margin-bottom: -80px;
}

#services > h2{
    font-size: 40px;
    text-align: center;
    max-width: 1000px;
    margin: auto;
}

#services-list{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 40px;
}

.services-item{
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-flow: column;
    gap: 20px;
}

.services-item img{
    max-width: 120px;
    transform: translateX(-17px);
}

.services-item h3{
    font-size: 28px;
    font-weight: 600;
}

.services-item p{
    color: #ffffff80;
}

.services-item a{
    position: relative;
    display: inline-flex;
    justify-content: flex-start;
    align-items: baseline;
    text-decoration: none;
    gap: 10px;
}

.services-item a i{
    rotate: 45deg;
    transition: 0.3s ease;
}

.services-item a:hover i{
    transform: translateY(-3px);
}













/*-- Statistics ------------------------------*/

#stats{
    position: relative;
    padding: 100px clamp(20px, 10%, 10%);
    background-color: #0C203A;
    background: linear-gradient(-90deg, #071424, #0b1d36);
    background-size: 100% 50%;
    background-repeat: no-repeat;
    perspective: 800px;
}

#stats-list{
    position: relative;
    overflow: hidden;
    border: 1px solid #ffffff40;
    background-color: #2d73cf10;
    backdrop-filter: blur(100px);
    padding: 120px 20px;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    place-items: center;
    border-radius: 20px;
    transform-style: preserve-3d;
    cursor: default;
    transition: 0.2s ease;
}

#stats-gradient{
    position: absolute;
    top: 0px;
    left: 0px;
    width: 500px;
    height: 500px;
    background-color: #2d73cf;
    opacity: 0;
    border-radius: 200000px;
    filter: blur(250px);
    transition: 1s ease opacity;
}

#stats-list:hover #stats-gradient{
    opacity: 0.3;
}

.stats-item{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

.stats-item::before{
    content: "";
    position: absolute;
    right: 0;
    width: 5px;
    height: 50px;
    background-color: #ffffff20;
    border-radius: 200px;
}

.stats-item:last-child::before{
    display: none;
}

.stats-item > span{
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-flow: column;
}

.stats-item > span b{
    font-size: 65px;
    text-shadow: 0 0 30px #00000040;
}

.stats-item > span span{
    font-size: 22px;
}











/*-- About Us ------------------------------*/

#aboutUs{
    position: relative;
    padding: 100px clamp(20px, 10%, 10%);
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
    place-items: center;
}

#aboutUs-text{
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    flex-flow: column;
}

#aboutUs-text h2{
    font-size: 40px;
}

#aboutUs-text p{
    color: #ffffff80;
    max-width: 600px;
}

#aboutUs-image{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#aboutUs-image img{
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
}










/*-- Why ------------------------------*/

#why{
    position: relative;
    padding: 100px clamp(20px, 10%, 10%);
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 50px;
    place-items: center;
}

#why-text{
    width: 100%;
}

#why-text h2{
    font-size: 60px;
    margin-top: 10px;
}

#why-list{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 50px;
    background-color: #071424;
    padding: 40px;
    border-radius: 20px;
    width: 100%;
}

.why-item{
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-flow: column;
    gap: 10px;
}

.why-item i{
    font-size: 50px;
}







/*-- Responsive Design -----------------------*/

@media screen and (max-width: 1280px) {
    #stats-list{
        grid-template-columns: repeat(2,1fr);
        gap: 50px 140px;
    }
    .stats-item:nth-last-child(3)::before{
        display: none;
    }
}
@media screen and (max-width: 1160px) {
    #home-text h1{
        font-size: 40px;
    }
    #aboutUs-text h2{
        font-size: 40px;
    }
}
@media screen and (max-width: 1000px) {
    #why{
        grid-template-columns: 1fr;
    }
    #why-list{
        order: 2;
    }
}
@media screen and (max-width: 900px) {
    #stats{
        padding-top: 50px;
        padding-bottom: 50px;
    }
    #stats-list{
        grid-template-columns: repeat(1,1fr);
        gap: 50px;
        padding: 40px 20px;
    }
    .stats-item::before{
        display: none;
        text-align: center;
    }
    .stats-item > span{
        align-items: center;
        text-align: center;
    }
}
@media screen and (max-width: 800px) {
    #home{
        grid-template-columns: 1fr;
        margin-top: 50px;
    }
    #services-list{
        grid-template-columns: 1fr;
    }
    #aboutUs{
        grid-template-columns: 1fr;
        margin-top: 50px;
    }
}
@media screen and (max-width: 700px){
    #home-text h1{
        font-size: 30px;
    }
    #aboutUs-text h2{
        font-size: 30px;
    }
    #services h2{
        font-size: 30px;
    }
}
@media screen and (max-width: 500px) {
    .stats-item > span b{
        font-size: 30px;
    }
    .stats-item > span span{
        font-size: 16px;
    }
    #why-text h2{
        font-size: 40px;
    }
    #why-list{
        padding: 20px;
    }
    .why-item{
        align-items: center;
        text-align: center;
    }
}















/*-- Scroll Animations -------------------------*/

#home-text h1{
    transform: translateX(-100px);
    opacity: 0;
    animation: homeAnim 0.5s 3.5s ease forwards;
}

#home-text p{
    transform: translateX(-100px);
    opacity: 0;
    animation: homeAnim 0.5s 3.6s ease forwards;
}

#home-text a{
    transform: translateX(-100px);
    opacity: 0;
    animation: homeAnim 0.5s 3.7s ease forwards;
}

#home-image img{
    transform: translateX(100px);
    opacity: 0;
    animation: homeAnim 0.5s 3.6s ease forwards;
}

@keyframes homeAnim {
    0%{

    }
    100%{
        transform: translateX(0);
        opacity: 1;
    }
}








#services .section-title.animate{
    transform: translateY(-50px);
    opacity: 0;
}
#services h2.animate{
    transform: translateY(-50px);
    opacity: 0;
}
.services-item:nth-child(1){ transition-delay: 0.1s; }
.services-item:nth-child(2){ transition-delay: 0.2s; }
.services-item:nth-child(3){ transition-delay: 0.3s; }
.services-item:nth-child(4){ transition-delay: 0.4s; }
.services-item.animate{
    transform: translateX(-50px);
    opacity: 0;
}
#services > a.animate{
    transform: translateY(50px);
    opacity: 0;
}


#stats-list.animate{
    transform: translateY(50px);
    opacity: 0;
}


#aboutUs-text.animate{
    transform: translateX(-50px);
    opacity: 0;
}
#aboutUs-image.animate{
    transform: translateX(50px);
    opacity: 0;
}


#why-list.animate{
    transform: translateX(-50px);
    opacity: 0;
}
#why-text.animate{
    transform: translateX(50px);
    opacity: 0;
}