/* Web Main */

*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

html{
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Header and Nav */

.header{
    min-height: 100vh;
    width: 100%;
    background-color: #406183;
    background-image: linear-gradient(rgba(4,9,30,0.2),rgba(4,9,30,0.2)),url(../img/banner.png);
    background-position: center;
    background-size: cover;
    position: relative;
}

nav{
    display: flex;
    padding: 2rem 4rem;
    justify-content: space-between;
    align-content: center;
    z-index: 100;
}

nav img{
    width: 15rem;
    height: 2.5rem;
}

nav .lni{
    display: none;
}

.nav-links{
    flex: 1;
    text-align: right;
}

.nav-links ul li{
    list-style: none;
    display: inline-block;
    padding: 0.8em 1em;
    position: relative;
}

.nav-links ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 15px;
}

.nav-links ul li::after{
    content: '';
    width: 100%;
    height: 0px;
    background: #406183;
    display: block;
    margin: auto;
    transition: 0.1s;
}

.nav-links ul li:hover::after{
    height: 2px;
}

/* Text Box */

.text-box{
    width: 90%;
    color: #fff;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.text-box h1{
    font-size: 62px;
    font-weight: 400;
}

h1 span{
    position: relative;
    padding-bottom: 0.15em;
}

h1 span:after{
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    border-bottom: 5px solid #406183;
    content: "";
}

.text-box p{
    font-size: 16px;
    padding: 1.5em 0 1em 0;
    color: #fff;
}

.text-box .lni{
    color: #fff;
    font-size: 50px;
    margin-top: 2rem;
}

/* About Me */

.aboutme{
    width: 100%;
    color: #000;
    display: flex;
}

.aboutme-col{
    display: flex;
    flex-basis: 100%;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    padding: 2rem 10rem;
}

.aboutme-col img{
    align-self: center;
    max-width: 400px;
}

.aboutme-col h1{
    font-size: 30px;
    padding-bottom: 1em;
}

.aboutme-col ul{
    line-height: 2.5em;
    list-style: none;
    padding-left: 1em;
}

.aboutme-col ul li::before{
    content: "•";
    color: #406183;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Skills */

.skills{
    width: 100%;
    background: #3e4149;
    display: flex;
}

.skills-col{
    display: flex;
    flex-basis: 100%;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    padding: 6rem 10rem;
}

.skills-col h2{
    color: #fff;
    font-size: 30px;
    font-weight: 400;
    margin-bottom: 1em;
    padding-left: 0.5em;
    border-left: 5px solid #406183;
}

.skills-col ul li{
    color: #fff;
    font-size: 15px;
    font-style: italic;
    list-style: none;
    line-height: 2.5em;
    padding-left: 1em;
}

.skills-col ul li::before{
    content: "•";
    color: #406183;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.skills-col img{
    width: 1.5em;
    padding-right: 1em;
}

/* Port Box */

.port{
    width: 100%;
    min-height: 40vh;
    background-color: #fff;
    background-image: linear-gradient(rgba(0,0,0,0.2),rgba(0,0,0,0.2)),url(../img/port.jpg);
    background-position: center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.port-btn{
    background: #fff;
    border: none;
    color: #000;
    text-align: center;
    text-decoration: none;
    font-size: 30px;
    font-weight: 500;
    padding: 1.5rem 1.5rem;
    margin: 0 auto;
    border-radius: 0.5rem;
    transition: 0.2s;
}

.port-btn:hover{
    background: #406183;
    color: #fff;
}

/* Portfolio */

.portfolio{
    padding: 2rem 4rem;
}

.projects {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: repeat(5, 1fr);
    grid-column-gap: 20px;
    grid-row-gap: 20px;
    justify-content: center;
    align-items: center;
    text-align: center;
}
    
    .project1img { 
        grid-area: 1 / 1 / 2 / 2;
    }
    .project1text { 
        grid-area: 1 / 2 / 2 / 3;
        padding: 50px 50px;
    }
    .project2img { 
        grid-area: 2 / 1 / 3 / 2; 
    }
    .project2text { 
        grid-area: 2 / 2 / 3 / 3;
        padding: 50px 50px;
    }
    .project3img { 
        grid-area: 3 / 1 / 4 / 2; 
    }
    .project3text { 
        grid-area: 3 / 2 / 4 / 3;
        padding: 50px 50px;
    }
    .project4img { 
        grid-area: 4 / 1 / 5 / 2; 
    }
    .project4text { 
        grid-area: 4 / 2 / 5 / 3;
        padding: 50px 50px; 
    }
    .project5img { 
        grid-area: 5 / 1 / 6 / 2; 
    }
    .project5text { 
        grid-area: 5 / 2 / 6 / 3;
        padding: 50px 50px;
    }

.projects h3{
    font-size: 40px;
    font-weight: 500;
    padding-bottom: 20px;
}

h3 span{
    display: inline-block;
    padding-bottom: 0.1em;
}

h3 span:after{
    display: block;
    width: 100%;
    border-bottom: 4px solid #406183;
    content: "";
}

.projects p{
    font-size: 16px;
    font-style: italic;
}

.projects a{
    text-decoration: none;
    font-weight: bold;
}

/* Contact Page */

.contact-box{
    display: flex;
    margin: 4em auto 0;
    width: 100%;
    padding-top: 8.5rem;
    position: relative;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.contact-box input[type="text"], .contact-box textarea {
    display: flex;
    width: 30rem;
    padding: 0.7em;
    margin: 0.3em;
    background: rgba(255, 255, 255, 0.8);
    color: #000;
    border: none;
    border-radius: 0.2em;
    outline: none;
    font-size: 0.95em;
}
.contact-box textarea {
    resize: none;
    height: 150px;
}
.contact-box input[type="submit"] {
    display: flex;
    width: 10rem;
    padding: 0.8em;
    margin: 0.5em auto;
    background: #888b92;
	color:#000;
    font-size: 1em;
    justify-content: center;
    border: none;
	cursor: pointer;
    transition: 0.5s all;
	border-radius: 3px;
}
.contact-box input[type="submit"]:hover{
    background: #406183;
	color:#fff;
}
.contact-box input[type="text"]:focus{
    background-color: #fff;
}
.contact-box textarea:focus{
    background-color: #fff;
}

/* Footer */

.footer{
    width: 100%;
    text-align: center;
    padding: 30px 0;
    background: #406183;
}

.footer p{
    font-size: 15px;
    color: #fff;
    padding: 10px 0;
}

.footer a{
    color: #fff;
    text-decoration: none;
}

.icons .lni{
    color: #406183;
    margin: 10px 13px;
    cursor: pointer;
    padding: 10px 10px;
    background: #fff;
    border-radius: 12px;
}

/* Phone/Tablet Settings */

@media(max-width: 700px){
    /* Header/Nav */
    html, body{
        max-width: 100%;
        overflow-x: hidden;
    }

    .text-box h1{
        font-size: 40px;
    }

    nav{
        padding: 1rem 1rem;
    }

    .nav-links ul li{
        display: block;
    }

    .nav-links{
        position: absolute;
        background: #406183;
        height: 100vh;
        width: 160px;
        top: 0;
        right: -160px;
        text-align: left;
        z-index: 2;
        transition: 1s;
    }

    .nav-links ul{
        padding: 2em;
    }

    nav .lni{
        display: block;
        color: #fff;
        margin: 1em;
        font-size: 15px;
        font-weight: bolder;
        cursor: pointer;
    }

    nav img{
        width: 200px;
        height: 30px;
    }

    /* About Me */
    .aboutme{
        flex-direction: column;
        padding: 3rem 0;
    }

    .aboutme-col{
        padding: 2rem;
    }

    .aboutme h1{
        font-size: 25px;
    }

    .aboutme img{
        width: 70%;
    }

    /* Education and Skills */
    .skills{
        flex-direction: column;
        padding: 2rem 0;
    }

    .skills-col{
        padding: 2rem;
    }

    /* Port Box */
    .port-btn{
        font-size: 20px;
        font-weight: 500;
        padding: 1rem 1rem;
        margin: 0 auto;
    }

    /* Portfolio */
    .portfolio{
        padding: 40px 10px;
        margin: 0 10px;
    }

    .projects{
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(10, auto);
        grid-column-gap: 10px;
        grid-row-gap: 10px;
    }

    .projects img{
        max-width: 300px;
    }

    h3 span:after{
        display: block;
        border-bottom: 3px solid #406183;
        content: "";
        width: 100%;
    }

    .project1img{ 
        grid-area: 1 / 1 / 2 / 2; 
    }
    .project1text{ 
        grid-area: 2 / 1 / 3 / 2; 
    }
    .project2img{ 
        grid-area: 3 / 1 / 4 / 2; 
    }
    .project2text{ 
        grid-area: 4 / 1 / 5 / 2; 
    }
    .project3img{ 
        grid-area: 5 / 1 / 6 / 2; 
    }
    .project3text{ 
        grid-area: 6 / 1 / 7 / 2; 
    }
    .project4img{ 
        grid-area: 7 / 1 / 8 / 2; 
    }
    .project4text{ 
        grid-area: 8 / 1 / 9 / 2; 
    }
    .project5img{ 
        grid-area: 9 / 1 / 10 / 2; 
    }
    .project5text{ 
        grid-area: 10 / 1 / 11 / 2; 
    }

    /* Contact Box */

    .contact-box{
        margin: 0 auto;
    }

    .contact-box input[type="text"], .contact-box textarea {
        width: 18rem;
    }

    .contact-box input[type="submit"] {
        width: 10rem;
    }
}