* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h2 {
    font-size: 24pt;
}
h3 {
    font-size: 18pt;
}

body {
    font-family: "Poppins", sans-serif;
    background-color: #fff;
    margin: 0 10%;
}
@media (max-width: 950px){
    body {
        margin: 0 5%;
    }
}

/* Seperation Line */

header {
    position: sticky; /*Change back to sticky*/
    z-index: 5;
    top: 0;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1em 0;
}
.logo h1 a {
    text-decoration: none;
    color: #000;
}
nav ul {
    list-style-type: none;
    display: flex;
    gap: 1em;
}
nav ul li a {
    text-decoration: none;
    color: #000;
    transition: .25s ease-in-out;
}
nav ul li a:hover {
    opacity: .6;
}
nav ul li a:target {
    margin-top: 500px;
}
.mobile-nav {
    display: none;
    position: relative;
}
.mobile-nav i {
    font-size: 2em;
}
.mobile-nav i:hover {
    cursor: pointer;
}
.mobile-nav ul {
    position: absolute;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: start;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
    padding: 0.5em 0;
    width: 200px;

    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.mobile-nav ul li {
    width: 100%;
}
.mobile-nav ul li a {
    display: block;
    padding: 10px 15px;
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}
.mobile-nav ul li a:hover {
    color: #5998ff;
}
.mobile-nav .open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
}

@media (max-width: 950px){
    header .main-nav {
        display: none;
    }
    header .mobile-nav {
        display: block;
    }
}

/* Seperation Line */

#about-section {
    height: 70vh;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1em;
    /* overflow: hidden; */
}
.left-about {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.left-about p {
    margin-bottom: 1em;
}

.tech-wheel {
    display: flex;
    gap: 1em;
    justify-content: center;
    width: 100%;
}
.tech-img {
    height: 50px;
    transition: all 0.5s ease-in-out;
}
.right-about {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.right-about img {
    width: 100%;
}

@media (max-width: 950px){
    #about-section {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .tech-img {
        height: 7vw;
    }
    .right-about{
        display: none;
    }
}

/* Seperation Line */
 
#project-section {
    padding-top: 3em;
}

.project {
    width: 100%;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2em;
}

.project-inv {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2em;
}

.project, .project-inv {
    margin-top: 4em;
}

.p-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: left;
}
.p-left img {
    width: 100%;
}
.p-title {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
}
.p-title p, .p-title-mobile p {
    font-weight: 300;
}
.p-title p, .p-title a{
    white-space: nowrap;
}
.p-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: left;
}
.p-right img {
    width: 100%;
}

@media (max-width: 950px){
    #project-section{
        display: none;
    }
}

/* Seperation Line */

#project-section-mobile {
    display: none;
}
.project-mobile {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.project-mobile img {
    width: 100%;
}
.p-title-mobile {
    margin-top: 2em;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 100%;
}
.ptm__right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}


@media(max-width: 950px){
    #project-section-mobile {
        padding-top: 3em;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }
}

/* Separation Line */

#contact-section {
    margin-top: 4em;
    margin-bottom: 4em;
}
.contact-main {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.contact-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    transition: all 0.5s ease-in-out;
}
.contact-socials img{
    height: 40px;
    transition: .25s ease-in-out;
}
.contact-socials img:hover{
    opacity: .7;
}
.email-img {
    opacity: .85;
}
.email-img:hover {
    opacity: .55
}
.contact-form {
    display: flex;
    flex-direction: column;
    width: 50%;
}
.contact-form input {
    padding: .5em;
    border: 1px solid #000;
    border-radius: 8px;
    outline: none;
    background: none;
    margin-bottom: 1em;
}
#inquiry-fld {
    height: 10em;
    border: 1px solid #000;
    border-radius: 8px;
    outline: none;
    margin-bottom: 1em;
    font-family: 'Poppins', sans-serif;
    font-size: 10pt;
    padding: .5em;
}
.contact-form button {
    padding: .75em 0;
    border: none;
    border-radius: 8px;
    background-color: #5998ff;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
}
.contact-form button:hover {
    cursor: pointer;
    opacity: .9;
    box-shadow: 0 0 6px 1px #5998ff;
}

@media (max-width: 950px){
    .contact-form {
        width: 100%;
    }
    .contact-socials {
        margin: 1em 0;
        gap: 2em;
    }
}