body{
    margin:2px 0;
    padding: 0;
    /* box-sizing: border-box; */
}
*{
    box-sizing: border-box;
    /* margin: 0;
    padding: 0; */
}
/* Header */
/* Nav */
.header{
    width: 100%;
    box-sizing: border-box;
    top: 0;
    /* background-image: url(images/abstract-luxury-gradient-blue-background-smooth-dark-blue-with-black-vignette-studio-banner.jpg); */
    height: 600px;
    /* background-position: center;
    background-repeat: no-repeat;
    background-size: cover; */
    position: relative;
    overflow: hidden;
}
.header video{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    box-sizing: border-box;
    height: 100%;
    object-fit: cover; /* Ensures video fills the container */
    transform: translate(-50%, -50%);
    z-index: -20; /* Keeps video in the background */
}
nav{
    width: calc(100% - 60px);
    margin-left: 30px;
    margin-right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #031634ef;
    border-radius: 10px;
    position: fixed;
    z-index: 1000;
}
nav ul{
    list-style: none;
    display: inline;
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
}
nav ul li a{
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-family: "Alice", Sans-serif;
    padding: 10px 10px;
    border-radius: 5px;
    transition: color .5s;
    transition: background-color 1s;
}
nav ul li a:hover{
    background-color: #EC971F;
    color: #031634;
}
nav ul li a.active{
    background-color: #EC971F;
    color: #031634;
}
/* Container-Header */
.container-header{
    position: absolute;
    background-color: #03163488;
    top: 0;
    width: 100%;
    height: 100%;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}
.image{
    margin-left: 15px;
    /* margin-right: 15px; */
    display: flex;
    align-items: end;
    justify-content: baseline;
    /* z-index: -10; */
}
.image img{
    
    width: 100%;
    max-width: 465px;
    height: 540px;
}
.content{
    padding-left: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}
.content h1{
    font-family: "Nunito Sans", "Open Sans", sans-serif;
    /* font-family: "Alice", Sans-serif; */
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}
.content span{
    /* font-family: "Nunito Sans", "Open Sans", sans-serif; */
    /* font-family: "Alice", Sans-serif; */
    font-size: 50px;
    font-weight: 900;
    color: #00abf0;
    margin: 0;
}
.content .bigger{
    font-size: 72px;
    font-weight: 1000;
    color: #EC971F;
}
.content p{
    color: antiquewhite;
    font-size: 20px;
    font-family: "Alice", Sans-serif;
    margin: 0;
    line-height: 1.5;
}
.dada{
    color: antiquewhite;
    font-size: 22px;
    font-family: "Alice", Sans-serif;
    margin: 0;
    line-height: 1.8; 
}


/* About Section */
.about_section{
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding-bottom: 30px;
}
.about-container{
    max-width: 1000px;
    display: flex;
    /* align-items: center; */
    justify-content: space-around;
    padding: 20px 40px;
}
.about-words{
    flex-basis: 48%;
    display: flex;
    justify-content: center;
    flex-direction: column;
}
.about-words h1{
    color: #031634;
    font-family: "Alice", Sans-serif;
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
}
.about-words p{
    line-height: 1.5;
    font-family: "Alice", Sans-serif;
    font-size: 1.2rem;
}
.about-image{
    flex-basis: 48%;
}
.about-image img {
    height: 400px;
    width: 100%;
    object-fit: contain;
    margin-bottom: 20px;
}
.about-image .img {
    height: 400px;
    width: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    animation: badili 20s ease-in-out infinite;
}

@keyframes badili {
    0%, 100% { background-image: url('images/USIU%20Graduation.jpg'); }
    20% { background-image: url('images/Ndakaini\ Secondary.jpg'); }
    40% { background-image: url('images/ICA\ NAIROBI\ dAYSTAR\ UNI.jpg'); }
    60% { background-image: url('images/With%20Prof%20Ngigi.JPG'); }
    80% { background-image: url('images/PERDUE.jpg'); }
}
.about_section a{
    text-decoration: none;
    padding: 20px;
    background-color: #031634;
    border-radius: 8px;
    color: #fff;
    bottom: 30px;
    right: 50px;
    top: 20px;
    transition: background-color .5s;
}
.about_section a:hover{
    background-color: #deb525;
    color: #08469a;
}


/* Services Section */
.servives_section{
    background-color: #031634;
    width: 100%;
    box-sizing: border-box;
    padding: 20px 10px;
}
.servives_section .serveh1{
    margin-left: 40px;
    color: #fff;
    font-family: "Alice", Sans-serif;
    font-size: 46px;
    font-weight: 600;
}
.services-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin: 25px;
}
.services{
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.services img{
    width: 100%;
    border-radius: 10px;
    display: block;
    object-fit: cover;
    object-position: top;
    height: 400px;
    transition: transform 0.5s;
}
.layer{
    width: 100%;
    max-width: 100%;
    height: 0;
    background: linear-gradient(#08459ae1, #081b29e7);
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 20px;
    text-align: center;
    font-size: 14px;
    color: #fFF;
    box-sizing: border-box;
    transition: height .5s;
}
.layer h1{
    font-weight: 600;
    margin-bottom: 1.4rem;
    font-family: "Alice", Sans-serif;
    color: #deb525;
}
.layer p{
    line-height: 1.5;
    font-family: "Alice", Sans-serif;
    font-size: 1.1rem;
}
.layer a{
    margin-top: 20px;
    color: #EC971F;
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    text-align: center;
}
.services:hover .layer{
    height: 400px;
}
.baton{
    width: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    justify-content: center;
    padding: 20px;
}
.baton a{
    text-decoration: none;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    color: #031634; 
    margin-right: 30px;
    margin-top: 20px;
    transition: background-color .5s;
}
.baton a:hover{
    background-color: #031634;
    color: #fff;
}

/* Gallery Section */
.gallery_section{
    padding: 50px 10px;
}
.gallery_section .serveh1{
    margin-left: 40px;
    color: #031634;
    font-family: "Alice", Sans-serif;
    font-size: 46px;
    font-weight: 600;
}
.gallery_section a{
    text-decoration: none;
    padding: 20px;
    background-color: #031634;
    border-radius: 8px;
    color: #fff; 
    margin-right: 30px;
    margin-top: 20px;
    transition: background-color .5s;
}
.gallery_section a:hover{
    background-color: #deb525;
    color: #08469a;
}


/* Contacts Section */
.contacts_sections{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 50px 20px;
    background-color: #043e4f;
    flex-direction: column;
}
.divide-contacts{
    width: calc(100% - 20%);
    background-color: #fff;
    margin: 20px 0;
    height: 1px;
}
.lil{
    width:  calc(100% - 80%);
    display: flex;
    align-items: center;
    justify-content: space-around;
}
.socials-contacts i{
    position: relative;
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    font-size: 20px;
    color: #031634;
    text-decoration: none;
    justify-content: center;
    align-items: center;
    z-index: 1;
    overflow: hidden;
}
.socials-contacts a{
    position: relative;
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 50%;
    font-size: 20px;
    color: #fff;
    text-decoration: none;
    justify-content: center;
    align-items: center;
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}
.socials-contacts a:hover{
    color: #031634;
}
.socials-contacts a::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    background: #fff;
    height: 100%;
    z-index: -1;
    transition: .5s;
}
.socials-contacts a:hover::before{
    width: 100%;
}
.phones {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    padding: 0 40px;
}

.lil {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lil p {
    font-family: "Alice", Sans-serif;
    font-size: 18px;
    color: #fff;
    padding: 0 20px;
}
.contacts_sections p span, .copyright p span{
    font-family: "Alice", Sans-serif;
    font-size: 18px;
    color: #fff;
}
.home-sci-co a{
    position: relative;
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 50%;
    font-size: 20px;
    color: #fff;
    text-decoration: none;
    justify-content: center;
    align-items: center;
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}
.home-sci-co a:hover{
    color: #043e4f;
}
.home-sci-co a::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    background: #fff;
    height: 100%;
    z-index: -1;
    transition: .5s;
}
.home-sci-co a:hover::before{
    width: 100%;
}



/* About Page */
.about-header{
    width: 100%;
    height: 400px;
    background-image: url(images/abstract-luxury-gradient-blue-background-smooth-dark-blue-with-black-vignette-studio-banner.jpg);
    background-position: bottom;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    top: 0;
}
.about-lay{
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
    background-color: #043e4fd7;
}
.about-lay h1{
    color: #fff;
    font-weight: 400;
    font-family: "Nunito Sans", "Open Sans", sans-serif;
    font-size: 52px;
}


/* About Mid */
.about-mid {
    display: flex;
    justify-content: center;
    width: 100%; 
}

.middle {
    width: 100%; /* Use full width for smaller screens */
    max-width: 1000px; /* Keep a maximum width for larger screens */
    background-color: #fff;
    padding: 0;
    /* margin-top: 10px; */
    margin-bottom: 20px;
    box-shadow: 0 0 12px 5px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    flex-direction: column;
    z-index: 10;
    overflow: hidden;
}

.about-top {
    width: 100%;
    display: flex;
    padding: 10px 50px;
    background-color: #031634;
    align-items: center;
    position: sticky;
    justify-content: space-around;
    margin-bottom: 15px;
}
.about-top .bx, .about-top span{
    display: none;
}
.tab-links {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 300;
    cursor: pointer;
    padding: 5px;
    transition: box-shadow .8s;
}
.tab-links:hover{
    box-shadow:  -3px 8px 4px rgba(255, 255, 255, 0.596);
}
.about-words span{
    color: #fc7d15;
}
.tab-contents{
    display: none;
}
.tab-contents.active-tab{
    display: block;
}
.tab-links.active{
    box-shadow:  -3px 8px 4px rgba(255, 255, 255, 0.596);
}
.phone-menu{
    display: none;
    background-color: #031634;
    position: absolute;
    right: 8px;
    height: 0;
    padding: 7px;
    border-radius: 8px;
    overflow: hidden;
    transition: height 0.5s ease;
    z-index: 11;
}


/* Services Contacts */
.zidi{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.zidi a{
    text-decoration: none;
    padding: 20px;
    background-color: #031634;
    border-radius: 8px;
    color: #fff; 
    margin-right: 30px;
    margin-top: 20px;
    transition: background-color .5s;
}
.zidi a:hover{
    background-color: #deb525;
    color: #031634;
}
.servici{
    background-color: transparent;
}
#contact{
    background-color: #043e4f;
    width: 100%;
    box-sizing: border-box;
}
.container{
    padding: 10px 30px;
    width: 100%;
    box-sizing: border-box;
}
.contact-1{
    flex-basis: 35%;
}
.contact-2{
    flex-basis: 60%;
    padding: 0 10px;
}
.contact-1 p{
    color: #ededed;
    margin-top: 30px;
    font-family: "Alice", Sans-serif;
}
.subtitle{
    font-family: "Alice", Sans-serif;
    color: #fFF;
}
.contact-1 p i{
    color: #FFF;
    margin-right: 15px;
    font-size: 25px;
}
.btn {
    text-decoration: none;
    padding: 20px;
    font-family: "Alice", Sans-serif;
    border-radius: 4px;
    color: #000;
    display: inline-block;
    background: #FFF;
}
.socials{
    margin-top: 30px;
}
.socials a{
    text-decoration: none;
    color: #ababab;
    font-size: 30px;
    margin: 15px;
    display: inline-block;
    transition: transform .5s;
}
.socials a:hover{
    color: #FFF;
    transform: translateY(-5px);
}
.btn2{
    border: none;
}
.contact-2 form{
    width: 100%;
}
form input, form textarea{
    width: 100%;
    border: 0;
    outline: none;
    background: #05111a;
    padding: 15px;
    margin: 15px 0;
    color: #fff;
    font-size: 18px;
    border-radius: 6px;
}
form .btn2{
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
}
form input ::placeholder{
    font-family: "Alice", Sans-serif;
}
.copyright{
    width: 100%;
    text-align: center;
    padding: 25px 0;
    font-weight: 300;
    margin-top: 20px;
    font-family: "Alice", Sans-serif;
    color: #FFF;
}
.row{
    display: flex;
    justify-content: space-between;
    width: 100%;
}




/* Gallery */
.cont{
    margin: 40px 20px 0 20px;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.heading{
    width: 50%;
    padding-bottom: 20px;
}
.heading h3{
    font-family: "Alice", Sans-serif;
    font-size: 3em;
    font-weight: bolder;
    border-bottom: 1px solid #deb525;
    padding: 20px 0;
}
.heading h3 span{
    font-weight: 100;
    color: #deb525;
}
.cont .box{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.dream{
    display: flex;
    flex-direction: column;
    width: 32%;
}
.dream img{
    width: 100%;
    padding-bottom: 15px;
    border-radius: 3px;
}

/* Small screens */
@media only screen and (max-width: 800px){
    .container-header .content{
        display: none;
    }
    .container-header{
        display: flex;
        justify-content: center;
    }
    .content{
        display: none;
    }
    .donn{
        width: 100%;
        object-fit: contain;
    }
    .content{
        padding: 35px;
        display: flex;
        /* align-items: flex-start; */
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }
    .about-container {
        flex-direction: column; 
        align-items: center;
        padding: 20px;
    }
    .about-words, .about-image, .contact-1, .contact-2 {
        flex-basis: 100%;
        text-align: center; 
        margin-bottom: 20px; 
    }
    .phones{
        flex-direction: column;
    }
    .about-top{
        justify-content: space-between;
    }
    .about-top p{
        font-size: 14px;
    }
    .copyright{
        font-size: 14px;
    }
    .row {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }
}
@media only screen and (max-width: 600px){
    .services .layer{
        /* height: 50%; */
    }
    .about-image{
        display: none;
    }
    nav ul li a{
        font-weight: 300;
        font-size: 13px;
        padding: 5px 1px;
    }
    .tab-links {
        /* font-size: 4px; */
        text-align: center;
        padding: 3px;
    }
    .about-top {
        justify-content: space-between;
        padding: 10px 4px;
    }
    /* .content h1{
        font-size: 15px;
        font-weight: 400;
    }
    .content span{
        font-size: 20px;
        font-weight: 600;
    }
    .content p{
        font-size: 10px;
    } */
    /* .about-words h1{
        font-size: 18px;
        font-weight: 400;
    }
    .about-words p{
        font-size: 10px;
    }
    .servives_section .serveh1{
        font-size: 16px;
        font-weight: 400;
    }
    .layer h1{
        font-weight: 600;
        margin-bottom: 20px;
        font-family: "Alice", Sans-serif;
        color: #deb525;
    }
    .layer p{
        font-size: 10px;
    }
    .layer a{
        font-size: 11px;
    }
    .container-header.content{
        text-align: center;
    } */
}

a{
    text-decoration: none;
}

@media only screen and (max-width: 430px){
    .about-top .bx{
        display: block;
        color: #fff;
        font-size: 1.3rem;
    }
    .about-top .tab-links {
        display: none;
    }
    .about-top span{
        display: block;
        color: #fff;
        font-size: 1.2rem;
        font-weight: 300;
        cursor: pointer;
        padding: 5px;
        box-shadow:  -3px 8px 4px rgba(255, 255, 255, 0.596);
    }
    .phone-menu{
        display: block;
    }
    .phone-menu{
        max-height: fit-content;
    }
    .phone-menu.show-menu {
        height: 100%;
    }
}
