@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Roboto' , 'sans-serif';
    text-decoration: none;

}

:root {
    --bg-color: #191f36;
    --snd-bg-color: #262840;
    --text-color: #fff;
    --main-color:#59B2F4;
}

html {
    background-color: var(--bg-color);
    color: var(--text-color);

}

body {
    /* background-color: var(--bg-color); */
    color: var(--text-color);
}

section {
    min-height: 100vh;
    /* padding: 5rem 9% 2rem; */
    padding: 10vmin 9% 4vmin;

}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    z-index: 100;
    height:4rem;
}

.logo {
    font-weight: 700;
    /* font-size: 2.5rem; */
    font-size: 5vmin;
    color: var(--text-color);
    cursor: default;
}

.navbar a {
    /* font-size: 1.5rem; */
    font-size: 3.5vmin;
    color: var(--text-color);
    /* margin-left: 4rem; */
    margin-left: 8vmin;
    font-weight: 700;

}

span {
    color: var(--main-color);
}
.navbar a:hover{
    color: var(--main-color);
}

.navbar a:active {
    color: var(--main-color);
}


#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}

.home {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-color);
    
}

.home-content h3{
    /* font-size: 3.2rem; */
    font-size: 5vmin;
    font-weight: 700;
}

.home-content h3:nth-of-type(2) {
    /* margin-bottom: 2rem; */
    margin-bottom: 4vmin;
}

.home-content h1 {
    /* font-size: 5.6rem; */
    font-size: 11vmin;
    font-weight: 700;
    line-height: 1.3;
    display: flex;
    flex-wrap: wrap;
}

.home-content {
    order: 2;
}


#home-img {
    width: 52vmin; 
    object-fit: cover;
    border-radius: 1rem;
    border: 3px solid var(--main-color);
    margin-right: 2rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.home-content p {
    /* font-size: 1.6rem; */
    font-size: 4vmin;
}


.btn {
    margin-top: 8vmin;
    display: inline-block;
    /* padding: 1rem 2.8rem; */
    padding: 2vmin 5vmin;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    /* font-size: 1.6rem; */
    font-size: 3.5vmin;
    color: var(--bg-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
}

.btn:hover {
    box-shadow: none;
}

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    /* gap: 2rem; */
    gap: 4vmin;
    background: var(--snd-bg-color);
    
}

.about-img img {
    width: 50vmin;
    border-radius: 1rem;
    border: 3px solid var(--main-color);
    margin-right: 6vmin;
    margin-top: 2rem;
}

.heading {
    text-align: center;
    /* font-size: 4.5rem; */
    font-size: 9vmin;
    margin-top: 4rem;
}

.about-content h2{
    text-align: left;
    line-height: 1.2;
}

.about-content h3 {
    /* font-size: 2.6rem; */
    font-size: 6vmin;
}

.about-content p {
    /* font-size: 1.6rem; */
    font-size: 4vmin;
    /* margin: 2rem 0 3rem; */
    margin: 4vmin 0 6vmin;
    
}
.skills {
    background: var(--bg-color);
    
}
.skills-container {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    /* margin-top:10rem; */
    margin-top: 20vmin;
    flex-wrap: wrap;
    gap: 10vmin;
}

.skills-container h3 {
    /* padding: 1rem; */
    padding: 2vmin;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    /* font-size: 1.6rem; */
    font-size: 4vmin;
    color: var(--bg-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
    /* width: 15rem; */
    width: 30vmin;
    text-align: center;
}



.project {
    background: var(--snd-bg-color);
    
}

.project h2{
   /* margin-bottom: 4rem; */
   margin-bottom: 8vmin;
}

 .project-container {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    align-items: center;
    /* gap: 2.5rem; */
    gap: 5vmin;
    margin-bottom: 2rem;
}
 

.potfolio-img{
    width: 100%;
    height: 100%;
    opacity: 0.85;
    
}
.portfolio-box {
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 1rem var(--bg-color);
    overflow: hidden;
    height: 50vmin;

}

.portfolio-box  {
    transition: .5s ease;
}

.portfolio-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5),#026C7C);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    /* padding: 0 4rem; */
    padding: 0 8vmin;
    transform: translateY(100%);
    transition: .5s ease;
}

.portfolio-box:hover .portfolio-layer {
    transform: translateY(0);
}

.portfolio-layer h4{
    color: #DCEDFF;
    /* font-size: 1.9rem; */
    font-size: 4vmin;
    font-weight: bolder;
}

.portfolio-layer p {
    color: #DCEDFF;
     /* font-size: 1rem; */
     font-size: 2.2vmin;
     font-weight: 450;
     margin: 1rem 0 0.1rem; 
}

.portfolio-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    /* width: 5rem;
    height: 5rem; */
    width: 7vmin;
    height: 7vmin;
    border-radius: 50%;
} 

.portfolio-layer a i{
    font-size: 4vmin;
    color: var(--snd-bg-color);
    margin-top: 1rem;
} 

.contact {
    min-height: 85vh;
    background: var(--bg-color);
    
}

.footer {
    background: var(--snd-bg-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    min-height: 15vh;
    
}

.footer h3 {
    font-size: 3vmin;
}
.footer-icon {
    padding:  .8rem 1rem;
    background: var(--main-color);
    border-radius: .8rem;
    position: relative;
    box-shadow: 0 0 .5rem var(--main-color);
    transition: .5s ease;
}

.footer-icon a i {
    /* font-size: 2.4rem; */
    font-size: 3.5vmin;
    color: var(--snd-bg-color);

}

.footer-icon:hover {
    box-shadow: none;
    transition: .85s ease;
}

.contact-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    /* margin-top: 5rem; */
    margin-top: 8vmin;
}

.contact-container a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    /* width: 5rem;
    height: 5rem; */
    width: 12vmin;
    height: 12vmin;
    background: transparent;
    border: .2rem solid var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: .5s ease;
    border-radius: 50%;
    /* font-size: 2rem; */
    font-size: 8vmin;
    color: var(--main-color);
}

.contact-container a:hover {
    background-color: var(--main-color);
    color: var(--snd-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

/* resposive */

@media(max-width:1100px){
    .project-container {
        grid-template-columns: repeat(2,1fr);

    }

}
@media (max-width:768px)
{
    #menu-icon{
        display: block;
        font-size: 2rem;
        margin-right: 5rem;
    }
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0,0,0,0.2);
        box-shadow: 0 .5rem 1rem  rgba(0,0,0,0.2);
        display: none;
    }
    .skills-container {
        flex-direction: column;
    
    }
    .navbar.active {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .navbar a {
        margin: 0.5rem;
    }
    .home {
        flex-direction: column;
    }
    .about {
        flex-direction: column;
    }
    .project-container {
        grid-template-columns: repeat(1,1fr);

    }
    .home-img {
        margin-top: 3rem;
    }
    .contact-container {
        flex-direction: column;
    }
    .header {
        justify-content: space-between;
        
    }
    .logo {
        margin-left: 3rem;
    }


}

@media (max-width:1100px)
{
    #menu-icon{
        display: block;
        font-size: 2rem;
        margin-right: 4rem;
    }
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0,0,0,0.2);
        box-shadow: 0 .5rem 1rem  rgba(0,0,0,0.2);
        display: none;
    }

    .header {
        justify-content: space-between;
        /* margin-left: 2rem; */
    }
    .logo {
        margin-left: 3rem;
    }

    .navbar.active {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .navbar a {
        margin: 0.5rem;
    }

}
