@import url(variables.css);
@import url(footer.css);

*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}
html{
    scroll-behavior: smooth;
}


body{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-large);
    align-items: center;
    justify-content: center;
}

.custom-home{
    z-index: 1000;
    background-color: white;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 100px;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 0;
    top: 0;
    font-family: var(--psuedo-normal-text-font);
    text-align: center;
}

.custom-home h1{
    max-width: 90%;
    width: 700px;
}

.custom-home div{
    max-width: 90%;
    width: 800px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-medium);
    align-items: center;
    justify-content: center;
}

.custom-home div a{
    text-decoration: none;
    width: 70%;
    padding: var(--spacing-medium);
    border-radius: 5px;
    color: #fff;
    background-color: var(--psuedo-primary-color);
    text-align: center;
    font-family: var(--psuedo-normal-text-font);
}

#header{
    width: 100%;
    height: 850px;
    display: var(--main-display);
    flex-direction: column;
    gap: var(--spacing-large);
    align-items: center;
    justify-content: flex-end;
    overflow-y: hidden;
}

/*NAVIGATION*/

.navigation{
    width: 100%;
    position: fixed;
    left: 0;
    top: 0;
    background-color: white;
    padding: 15px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 6;
}
.navigation nav{
    display: flex;
    align-items: center;
    gap: var(--spacing-large);
}
.navigation nav ul{
    display: var(--main-display);
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-small);
    list-style: none;
}
.navigation nav ul li a, .mobile-menu nav ul li a{
    text-decoration: none;
    color: black;
    font-size: var(--base-font-size);
    font-family: var(--psuedo-header-font);
    padding: 10px 5px;
    position: relative;
}
.navigation nav ul li a::before{
    position: absolute;
    content: "";
    bottom: 0;
    left: 0;
    background-color: var(--psuedo-primary-color);
    padding: 0px;
    width: 0;
    transition: all 1s ease;
}
.navigation nav ul li a:hover::before{
    padding: 1px;
    width: 100%;
}
.logo{
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: black;
    font-family: var(--psuedo-normal-text-font);
}
.logo img{
    width: 70px;
    height: 70px;
    object-fit: cover;
}
#provider-link{
    padding: 15px;
    text-decoration: none;
    color: black;
    font-family: var(--psuedo-header-font);
    background-color: var(--psuedo-secondary-color);
    border-radius: var(--border-radius-small);
}

/*LOGIN SIGNUP LINKS*/

.reg-log{
    display: var(--main-display);
    gap: var(--spacing-small);
    align-items: center;
    font-family: var(--psuedo-header-font);
}
.reg-log a{
    padding: 10px 5px;
    font-weight: bold;
}
.reg-log a:nth-child(1){
    text-decoration: none;
    color: var(--psuedo-secondary-color);
}
.reg-log a:nth-child(2){
    text-decoration: none;
    color: var(--psuedo-primary-color);
    border-bottom: 1px solid var(--psuedo-primary-color);
}
.fa-solid.fa-bars{
    display: none;
}

.menu-and-search{
    display: var(--main-display);
    gap: var(--spacing-small);
}

/*SEARCH SECTION STYLINGS*/

.fa-magnifying-glass{
    cursor: pointer;
    font-size: var(--header-font-size-medium);
    margin-left: var(--spacing-small);
}
.search{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    padding: 10px 5px;
    display: var(--main-display);
    align-items: center;
    justify-content: space-evenly;
    z-index: var(--zindex-overlay);
    background-color: white;
    transform: translateY(-100%);
    transition: all 1s ease;
}
.search.active{
    transform: translateY(0);
}
.search-toggle{
    position: absolute;
    right: 2%;
    top: 2%;
    font-size: var(--base-font-size);
    cursor: pointer;
}
.search form{
    width: 100%;
}
.search form input{
    width: 80%;
    padding: 10px;
    border: 0.1px solid var(--psuedo-primary-color);
    border-radius: var(--border-radius-small);
}
.search form input:focus{
    outline: 0.1px solid var(--psuedo-secondary-color);
    border: 0.1px solid var(--psuedo-secondary-color);
}
.search form button{
    padding: 10px;
    cursor: pointer;
    border: none;
    background-color: var(--psuedo-primary-color);
    color: white;
    border-radius: var(--border-radius-small);
    font-size: var(--base-font-size);
}

/*MOBILE MENU*/


.mobile-menu{
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 7;
    background-color: white;
    padding: 80px 20px;
    transform: translateX(-100%);
    transition: all 1s ease;
}
.mobile-menu.active{
    transform: translateX(0);
}
.mobile-menu nav{
    display: var(--main-display);
    flex-direction: column;
    gap: var(--spacing-large);
}
.mobile-menu nav ul{
    display: var(--main-display);
    flex-direction: column;
    gap: var(--spacing-medium);
    list-style: none;
}
.mobile-menu #provider-link{
    max-width: 200px;
}
.mobile-menu i{
    position: absolute;
    left: 3%;
    top: 3%;
    font-size: var(--header-font-size-medium);
}
/*HEADER SLIDER*/

.header-slider{
    width: 100%;
    height: 90%;
    position: relative;
    overflow: hidden;
    display: var(--main-display);
}
.slider-controls{
    position: absolute;
    left: 0;
    top: 2%;
    width: 100%;
    padding: 20px;
    display: var(--main-display);
    gap: 20px;
    align-items: center;
    justify-content: center;
    z-index: var(--zindex-overlay);
}
.controls{
    width: 15px;
    height: 15px;
    cursor: pointer;
    border-radius: 50%;
    border: 1px solid black;
    background:radial-gradient(black 0%, transparent, transparent);
}
.controls:active{
    background-color: var(--psuedo-primary-color);
}
.inner-slider{
    height: 100%;
    display: flex;
    transform: translateX(0vw);
    transition: all 1s ease;
}
.slider{
    width: 100vw;
    height: 100%;
    position: relative;
    display: var(--main-display);
    align-items: center;
    justify-content: space-evenly;
    box-sizing: border-box;
    overflow: hidden;
    flex-wrap: wrap
}

/*GRID IMAGES HERO SECTION*/

.image1 {
    grid-area: image1;
}

.image2 {
    grid-area: image2;
}

.image3 {
    grid-area: image3;
}

.image4 {
    grid-area: image4;
}

.image5 {
    grid-area: image5;
}

.first-slider-grid{
    max-width: 100%;
    width: 300px;
    height: auto;
    margin-top: 20px;
    background-color: rebeccapurple;
    display: grid;
    grid-template-areas: 'image2 image2 image2 image1 image1'
                         'image5 image5 image5 image1 image1'
                         'image3 image3 image4 image4 image4';
    gap: var(--spacing-small);
    z-index: var(--zindex-modal);
}

.image1, .image2, .image3, .image4, .image5{
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/*BACKGROUND IMAGE - IRREGULAR*/
.background{
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    position: absolute;
    left: 0%;
    top: 10%;
}

/*SLIDE 2 AND 3 IMAGES*/

.header-images{
    max-width: 80%;
    width: 600px;
    height: 400px;
    object-fit: contain;
}

.slider-text{
    width: 40%;
    padding: 20px;
    font-family: var(--psuedo-header-font);
    display: var(--main-display);
    flex-direction: column;
    gap: var(--spacing-large);
    align-items: flex-end;
    z-index: var(--zindex-modal);
    color: black;
}
.slider-text h1{
    font-size: var(--header-font-size-large);
    text-shadow: 5px 5px 100px var(--psuedo-light-color);
    font-weight: bold;
    text-align: right;
}
.slider-text h4{
    text-align: right;
    font-size: 14px;
}
.slider-links{
    display: flex;
    gap: var(--spacing-medium);
}
.slider-links a{
    max-width: 200px;
    width: 150px;
    text-align: center;
    text-decoration: none;
    border-radius: var(--border-radius-small);
    padding: 10px;
}
.slider-links a:nth-child(1){
    background-color: var(--psuedo-primary-color);
    color: white;
}
.slider-links a:nth-child(2){
    background-color: var(--psuedo-secondary-color);
    color: black;
}

/*MAIN SECTION*/

main{
    width: 100%;
    height: auto;
    display: var(--main-display);
    flex-direction: column;
    gap: 100px;
    align-items: center;
    padding: 50px 0;
}
.cta-links{
    max-width: 200px;
    width: 150px;
    text-align: center;
    font-family: var(--psuedo-normal-text-font);
    text-decoration: none;
    border-radius: var(--border-radius-small);
    padding: 10px;
    background-color: var(--psuedo-primary-color);
    color: white;
    position: relative;
    z-index: var(--zindex-overlay);
}
main h2, h3, h4, h6{
    font-family: var(--psuedo-header-font);
}
main p{
    font-family: var(--psuedo-normal-text-font);
}

.animate{
    opacity: 0;
    transition: all 1s ease-in-out;
    transform: translateY(150px);
}

.animate.active{
    opacity: 1;
    transform: translateY(0px);
}

.section1{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}
.africa-img{
    position: absolute;
    left: 0;
    top: 20%;
    width: 100%;
    height: 600px;
    object-fit: contain;
    opacity: 20%;
}
.intro{
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
    padding: 20px 0;
    z-index: var(--zindex-modal);
}
.intro-text{
    max-width: 90%;
    width: 400px;
    height: 500px;
    display: var(--main-display);
    flex-direction: column;
    justify-content: space-evenly;
}
.intro img{
    max-width: 90%;
    width: 500px;
    height: 500px;
    object-fit: cover;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.mission-vision{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-small);
    padding: 20px;
    align-items: center;
    justify-content: center;
    z-index: var(--zindex-modal);
}
.mission-vision div{
    width: 60%;
    display: var(--main-display);
    flex-direction: column;
    gap: var(--spacing-medium);
    box-shadow: var(--box-shadow-small);
    border-bottom: 10px solid var(--psuedo-primary-color);
    padding: var(--spacing-medium);
    border-radius: var(--border-radius-small);
}

.mission h3{
    align-items: flex-start;
}
.vision h3{
    text-align: right;
}
.mv-details{
    width: 100%;
    width: 100%;
    display: flex;
    align-items: flex-end;
}

/*FEATURE, PROMOTIONS AND ADS SECTION*/

.section2{
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
    display: var(--main-display);
    flex-direction: column;
    gap: var(--spacing-medium);
    align-items: center;
    justify-content: center;
    background-color: var(--psuedo-light-color);
    padding: var(--spacing-small) 0px;
}
.services{
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: auto auto auto;
    gap: var(--spacing-large);
    padding: 20px;
}
.services a{
    max-width: 300px;
    height: 200px;
    display: var(--main-display);
    flex-direction: column;
    gap: var(--spacing-large);
    background-color: white;
    border-radius: var(--border-radius-small);
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: black;
    text-align: center;
}
.services a img{
    width: 70px;
    height: 70px;
    object-fit: cover;
}
.services a i{
    font-size: 60px;
    color: var(--psuedo-primary-color);
}
.services a p{
    font-size: 12px;
}
.services a span{
    display: grid;
    grid-template-columns: 50px repeat(2, 20px);
}


.section3{
    width:100%;
    height: 650px;
    position: relative;
    display: var(--main-display);
    flex-direction: row-reverse;
    flex-wrap: wrap;
    gap: var(--spacing-medium);
    align-items: center;
    justify-content: flex-end;
    padding: var(--spacing-medium);
}
.section3 .bg-image{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: var(--zindex-deep);
    object-fit: cover;
}
.section3 .overlay{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0.25turn,transparent, var(--psuedo-primary-color) 50%);
    z-index: var(--zindex-modal);
}
.section3 .statements{
    width: 70%;
    height: 80%;
    display: grid;
    grid-template-columns: auto auto;
    position: relative;
    z-index: var(--zindex-overlay);
    justify-content: flex-end;
}
.statements div img{
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.statements i{
    font-size: 40px;
    color: var(--psuedo-secondary-color);
}
.statements div{
    max-width: 300px;
    height: 200px;
    display: var(--main-display);
    flex-direction: column;
    gap: var(--spacing-small);
    color: white;
}


.section4{
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
    background-color: var(--psuedo-light-color);
    padding: 100px 0;
}
.section4 img{
    max-width: 100%;
    width: 500px;
    height: 500px;
    object-fit: contain;
}
.section4 div{
    max-width: 100%;
    width: 400px;
    height: auto;
    display: var(--main-display);
    flex-direction: column;
    gap: var(--spacing-large);
}

.section5{
    width: 90%;
    height: 600px;
    display: var(--main-display);
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-medium);
    background-color: var(--psuedo-secondary-color);
    overflow: hidden;
    border-radius: var(--border-radius-big);
    box-shadow: var(--box-shadow-big);
    position: relative;
}
.section5 img{
    max-width: 100%;
    width: 600px;
    height: 100%;
    object-fit: cover;
}
.section5 div{
    max-width: 100%;
    width: 500px;
    height: 100%;
    display: var(--main-display);
    flex-direction: column;
    gap: var(--spacing-large);
    justify-content: center;
}
.section5 h3{
    font-size: var(--header-font-size-large);
    color: var(--psuedo-primary-color);
}


.section6{
    width: 100%;
    height: auto;
    display: var(--main-display);
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
    gap: var(--spacing-medium);
    background-color: var(--psuedo-light-color);
    padding: 50px 0;
}

.section6 div{
    max-width: 100%;
    width: 300px;
    height: auto;
    box-shadow: var(--border-radius-small);
    background-color: white;
    padding: var(--spacing-medium);
    border-radius: var(--border-radius-small);
}
.section6 div ul{
    list-style: none;
    display: block;
    gap: var(--spacing-medium);
}
.section6 div ul li{
    margin: var(--spacing-medium);
}
.section6 div ul a{
    text-decoration: none;
    color: var(--psuedo-primary-color);
    font-family: var(--psuedo-normal-text-font);
}


.last-cta{
    width: 100%;
    height: auto;
    flex-wrap: wrap;
    display: var(--main-display);
    gap: var(--spacing-medium);
    text-align: center;
    align-items: center;
    justify-content: space-evenly;
}
.last-cta .right-img{
    max-width: 100%;
    width: 500px;
    height: 500px;
    object-fit: cover;
    box-shadow: var(--box-shadow-big);
    border-radius: var(--border-radius-small);
}
.last-cta div{
    position: relative;
    display: var(--main-display);
    flex-direction: column;
    gap: var(--spacing-large);
    align-items: center;
    justify-content: center;
    max-width: 100%;
    width: 400px;
    height: 400px;
    padding: 20px;
    text-align: center;
}
.last-cta p, a{
    z-index: var(--zindex-modal);
}
.last-cta div .bg-image{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}
.last-cta div span{
    width: 100%;
    display: var(--main-display);
    align-items: center;
    gap: var(--spacing-medium);
    justify-content: center;
}
.last-cta div span a:nth-child(1){
    max-width: 200px;
    width: 150px;
    text-align: center;
    font-family: var(--psuedo-normal-text-font);
    text-decoration: none;
    border-radius: var(--border-radius-small);
    padding: 10px;
    background-color: var(--psuedo-secondary-color);
    color: white;
    position: relative;
    z-index: var(--zindex-overlay);
}


@media screen and (max-width:800px) {
    .navigation nav{
        display: none;
    }
    .fa-solid.fa-bars{
        display: block;
        font-size: var(--header-font-size-medium);
    }
    .slider{
        padding: 10px;
        align-items: center;
    }
    .slider-text h1{
        font-size: 20px;
        text-shadow: 5px 5px 50px var(--psuedo-light-color);
    }
    .background{
        left: 0%;
        top: 10%;
    }
    .slider-text{
        width: 100%;
    }
    .mission-vision div{
        width: 90%;
    }
    .section5 img{
        width: 100%;
    }
    .section5 div{
        position: absolute;
        left: 0;
        top: 0;
        z-index: var(--zindex-overlay);
        align-items: center;
        justify-content: center;
        background-color: #2ecc70b6;
        width: 100%;
    }
    footer .upper div{
        width: 180px;
    }
}
@media screen and (max-width:450px) {
    .slider{
        flex-direction: column;
    }
    .first-slider-grid{
        width: 250px;
    }
    .services{
        grid-template-columns: auto auto;
    }
    .section3 .statements{
        width: 100%;
    }
    
    
}