/* google fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    scroll-padding-top: 3rem;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
}

body {
    background-color: #1C1C1C;
    padding-top: 35px; 
    /* adjust value according to header height 
        and takes .container styles*/
}


a{
    color: black; 
    font-weight: 700;
    text-decoration: none;
}

img{
    width: 100%;
}

section{
    padding: 3rem 0 2rem;
}

.container {
    margin: auto ;
    padding: 25px 0px;  
    /* because of this 0px 50px - why the header is under the header and not giving space*/
    max-width: 1060px;
    width: 100%;
}


header{
    position:static;
    top: 0px;
    left: auto;
    right: auto;
    width: 100%;
    /* z-index: 100; */
    /* border-radius: 2rem; not needed but i wanted to see what is actually happening*/
    /* margin-top: 20px; */
}

.nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 17px 20px;
    border-radius: 2rem;
}

.logo{
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;

}

.navbar{
    display: flex;
    align-items: center;
    column-gap: 1rem;
}
.nav-link{
    font-size: .9rem;
    transition: all 0.2s ease;
}

.nav-link:hover{
    color: #fff;
    transition: all 0.2s ease;
}

.nav-icons{
    display: flex;
    align-items: center;
    column-gap: 2rem;
}

.home-img-link{
    z-index: -1;
}


/* menu icons here ------------------------------*/
.menu-icon{
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 5px;
    cursor: pointer;
    z-index: 200;
    transform: 0.3s;
}
.menu-icon div{
    display: block;
    background-color: #000;
    height: 2px;
    width: 23px;
    transition: 0.3s;
}
.move .line1{
    transform: rotate(-45deg) translate(-5px, 5px);
}
.move .line2{
    opacity: 0;
}
.move .line3{
    transform: rotate(45deg) translate(-5px, -5px);
}

/* -------------------------------------------- */


.nav-icons .bxl{
    color: #000;
    font-size: 25px;
}
.nav-icons .bxl:hover{
    color: #414141;
    opacity: 0.63;
    transition: all 0.2s ease;
}

/* <!--home------------------------------------------> */

.home{
    min-height: 650px;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    align-items: center;
    gap: 1.5rem;
    margin-top: -5rem;
    margin-bottom: 0;
}  

.home-text{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.home-text h1{
    font-size: 3.5rem;
    font-weight: 800;
    margin-left: 1rem 57px;

}
.home-text p{
    max-width: 300px;
    font-size: 0.95rem;
    margin: 0 0 1rem 0; /*top/btm - right - left == if has 4 value then
                                    top - right - btm - left*/
}

.btn{
    max-width: 160px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 0.5rem;
    border-radius: 2rem;
    background-color: #000;
    margin: 0;
}

.btn span{
    text-transform: uppercase;
    font-size: .8rem;
}

.btn .bx{
    font-size: 20px;
    padding: 1px;
    border-radius: 50%;
    transform: rotate(180deg);
}
.btn:hover{
    opacity: 0.63;
} 

/* .home-vid{
    max-width: 560px;
    width: 100%;
    border-radius: 1rem;
} */

.home-img:hover{
    opacity: .63;
}

#raspberry h2,p{
    margin-bottom: 1rem;
}




/* <!--Footer-----------------------------------------> */

#footer{
    color: #fff;
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 1rem;
    margin-top: 3rem !important;
}

#footerlogocolor{
    color: #fff;
}

.footgrid{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

.social{
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.social a{
    font-size: 24px;
    margin-right: 1rem;

}

.social a:hover{
    color: #000;
}

.footer-box{
    display: flex;
    flex-direction: column;
}

.footer-box h3{
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1rem;


}

.footer-box a{
    color: #fff;
    margin-bottom: 10px;
    font-weight: 500;
}

.footer-box a:hover{
    opacity: .63;
} 

.copyright{
    padding: 30px;
    text-align: center;

}

.home-img{
    margin-top: 5rem;
    max-width: 400px;
    width: 100%;
    border-radius: 1rem;
}

/*  */
.wipimg h2 {
    margin: 2rem 0 0 0 ;
}


.project-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, auto));
    gap: 1.5rem;
}

.project-box {
    /* border-radius: 10px; */
    overflow: visible; 
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    /* height: 300px; */
    position: relative; 
}

.project-box img {
    width: 100%;
    height: 200px;
    object-fit: contain; 
    transition: transform .5s all ease; 
}

.project-box img:hover {
    transform: scale(2.7); 
    width: 60%;
    z-index: 1; 
}

/* .project-box h2 {
    color: #E4E4E4;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 1rem 0 0.5rem;
    text-align: center; 
}

.project-box span {
    color: #B0B0B0;
    font-size: 0.85rem; 
    text-align: center; 
} */

.project-box p {
    color: #E4E4E4;
    font-size: 0.88rem;
    margin-top: 10px;
    text-align: center;
    padding-bottom: 2rem;
}

/*  */

/* <!--responsive-----------------------------------------> */

@media(max-width: 1080px){
    header{
        position: static;
    }
    
    .container{
        margin: 0 auto;
    }
    .home {
        min-height: 650px;
        display: grid;
        grid-template-columns: repeat(2,1fr);
        /* occupies all available pixels and thats why it when adjusting.
        the vid/img goes out of bounds */
        align-items: center;
        gap: 1.5rem;
        padding: 0px 50px;
    }   

    .home-text h1{
        font-size: 3rem;
    }

    .menu-icon{
        display: flex;
    }
    .navbar{
        position: absolute;
        top: 110%;
        left: 50%;
        transform: translate(-50%);
        width: 90vw;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px;
        border-radius: 1rem;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: 0.5s all cubic-bezier(0.075, 0.82, 0.165, 1);
    }

    .open-menu{
        background-color: #fff;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
        transition: 0.5s all cubic-bezier(0.075, 0.82, 0.165, 1);
    }

    .nav-link{
        display: block;
        margin: 1rem 0;
    }

    .nav-link:hover{
        color: #999999;
    }

    .raspberry {
        padding: 0px 1rem;
    }

    #footer {
        padding: 0px 50px;
    }
}

@media(max-width: 875px){
    section{
        padding: 2rem 0;
    }
    .home-text h1{
        font-size: 2.5rem;
    }

    .home{
        min-height: 500px;
        grid-template-columns: 1fr;
        margin-top: 3rem !important;
        padding: 0px 16px;
    }

    #footer {
        grid-template-columns: repeat(1, 1fr);
        padding: 0px 50px;
    }

    .footgrid{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media(max-width: 700px){
    .home{
        min-height: 500px;
        grid-template-columns: 1fr;
        margin-top: 3rem !important;
        padding: 0px 16px;
    }
    
    .home-text{
        order: 1;
    }

    header{
        top: 15px;
    }
    .nav{
        padding: 14px 20px;
    }

    .logo{
        font-size: 1.25rem ;
    }

    .menu-icon{
        display: flex;
    }
    .navbar{
        position: absolute;
        top: 110%;
        left: 50%;
        transform: translate(-50%);
        width: 90vw;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px;
        border-radius: 1rem;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: 0.5s all cubic-bezier(0.075, 0.82, 0.165, 1);
    }
    
    .open-menu{
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
        transition: 0.5s all cubic-bezier(0.075, 0.82, 0.165, 1);
    }

    .nav-link{
        display: block;
        margin: 1rem 0;
    }

    .home-img{
        max-width: 150px;
        width: 100%;
        margin-top: 2rem;
    }

    .home a{
        justify-self: center;
    }

    .footer-box-name{
        display: none;
    }
    #footer {
        grid-template-columns: repeat(1, 1fr);
        padding: 0px 1rem;
    }

    .footgrid{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

}


@media(max-width: 500px){
    .home{
        min-height: 500px;
        grid-template-columns: 1fr;
        margin-top: 3rem !important;
        padding: 0px 16px;
    }
    .heading {
        margin-left: -34px;
    }

    .heading h2 {
        font-size: 2.3rem;
        font-weight: 700;
        padding-left: 29px;
    }

    .heading p {
        padding-left: 30px;
    }
    .certifications-box {
        padding-left: -4px;
    }
    .swiper-horizontal>.swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal, .swiper-pagination-custom, .swiper-pagination-fraction{
        padding-left: 4px;
    }
    #footer {
        grid-template-columns: repeat(1, 1fr);
        padding: 0px 1rem;
    }

    .footgrid{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}


@media(max-width: 431px){
    .logo{
        font-size: 13px;
    }

    body{
        margin-top: -35px;
    }

    .home{
        padding: 0px 1rem;
    }
    .raspberry {
        padding: 0px 1rem;
    }

    .swiper-horizontal>.swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal, .swiper-pagination-custom, .swiper-pagination-fraction{
        padding-left: 10px;
    }

    .home-img{
        max-width: 150px;
        width: 100%;
        margin-top: 2rem;
    }

    .home a{
        justify-self: center;
    }

    .footer-box-name{
        display: none;
    }
    #footer {
        grid-template-columns: repeat(1, 1fr);
        padding: 0px 1rem;
    }

    .footgrid{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

}

@media(max-width: 321px){
        .nav .menu-icon{
            display: none !important;   
        }

        .nav .nav-icons a {
            display: none !important;
        }
        
    }

@media(min-width: 319px){
    .nav .menu-icon{
        display: none !important;   
    }
}