* {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.window {
    background-color: rgb(29, 86, 110);
    width: 100vw;
    /* height: 100vh; */
}

.nav-container {
    width: 100%;
    height: 2.5rem;
}

.nav-toggle {
    display: none;
    width: 100%;
    padding: 1rem;
    font-size: 2rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgb(69, 235, 165);
    color: rgb(69, 235, 165);
    font-weight: 700;
    /* background: rgb(20, 70, 110); */
}

.nav {
    display: flex;
    height: 100%;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

nav a {
    text-decoration: none;
}

.nav-link {
    color: rgb(69, 235, 165);;
}

.nav-link:hover {
    background-color: rgb(20, 70, 110);
    color: white;
}

.nav-link.active {
    background-color: rgb(20, 70, 110);
    padding: 0.5rem;
}

@media screen and (max-width: 480px) {
    .nav-container {
        height: auto;
    }

    .nav-toggle {
        display: block;
    }

    .nav {
        display: none;
        background: rgb(22, 58, 95);
        flex-direction: column;
        height: calc(100vh - 18px);
        position: relative;
        justify-content: start;
        align-items: center;
        padding-top: 2rem;
    }

    .nav.active {
        display: flex;
    }

    .nav-link {
        padding: 1rem 0;
        width: 90%;
        text-align: center;
        border: 1px teal solid;
        color: white;
    }
}

.hero, 
.about, 
.skills,
.projects,
.contact {
    height: calc(100vh - 2.5rem);
}

.home-containter {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.home-title_containter, .home-subtitle_container {
    margin-bottom: 1.5rem;
}

.home-title {
    padding: 0.5rem;
    font-size: 2rem;
    color: rgb(69, 235, 165);
    font-weight: 900;
}

.home-subtitle {
    padding: 0.5rem;
    font-size: 1.3rem;
}

.home-img_container {
    margin-top: 2rem;
}

.home-img {
    width: 15rem;
    height: 15rem;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: -43px 28px 22px 0px rgba(0, 0, 0, 0.1);
}

.about-container {
    width: 50%;
    max-width: 1000px;
    margin: 0 auto;
}

.about-title_container {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.about-title {
    text-align: right;
    color: rgb(69, 235, 165);
    font-size: 2rem;
}

.about-header {
    margin-top: 1rem;
    margin-bottom: 1rem;
    text-align: right;
    background-color: rgb(20, 70, 110);
    color: white;
    font-size: 1.2rem;
    padding: 0.5rem;
}

.about-text {
    color: white;
}

.skills {
    background-color: rgb(22, 58, 95);
}

.skills-title {
    text-align: center;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
    font-size: 2rem;
    color: rgb(69, 235, 165);
}

.skills-container {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
    width: 50%;
    margin: 0 auto;
    margin-top: 3rem;
}

.skill {
    width: 7rem;
    display: flex;
    justify-self: center;
    align-items: center;
    flex-direction: column;
    color: white;
}

.skill-img > img {
    width: 100%;
    height: 8rem;
}

.projects-title {
    text-align: center;
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    color: rgb(69, 235, 165);
}

.projects-body {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10rem;
}

.projects-temp {
    font-size: 5rem;
    font-weight: bold;
}

.contact {
    background: rgb(22, 58, 95);
    width: 100%;
    padding-bottom: 6.25rem;
    padding-top: 6.25rem;
}

.contact-container {
    max-width: 25rem;
    margin: 0 auto;
}

.contact-container_inner {
    color: white;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 11px 15px -7px, 
                rgba(0, 0, 0, 0.14) 0px 24px 38px 3px, 
                rgba(0, 0, 0, 0.12) 0px 9px 46px 8px;
    padding: 2rem;
    background: rgb(20, 70, 110);
}

.contact-title {
    margin: 0 0 1rem;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.334;
    letter-spacing: 0;
}

hr {
    border-color: rgb(69, 235, 165);
}

.contact-name {
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.6;
    letter-spacing: 0.0075em;
    padding-top: 16px;
    padding-bottom: 16px;
}

.contact-phone_div,
.contact-email_div {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.contact-phone_call,
.contact-email_text {
    font-size: 1rem;
    font-weight: 700;
}

.contact-email_div a {
    color: rgb(69, 235, 165);
}

.contact-apps {
    display: flex;
    gap: 1rem;
}

.contact-link {
    text-decoration: none;
    color: rgb(69, 235, 165);
    font-size: 1.3rem;
}

@media screen and (max-width: 480px) {
    .window {
        height: auto;
    }

    .nav-link.active {
        background-color: rgb(29, 86, 110);
    }

    .home-title {
        padding: 0.5rem;
        font-size: 3rem;
        color: rgb(69, 235, 165);
        font-weight: 900;
        margin-top: -5rem;
    }
    
    .home-subtitle {
        padding: 1rem;
        font-size: 1.6rem;
        text-wrap: wrap;
        text-align: center;
    }

    .about {
        height: auto;
    }

    .about-container {
        width: 90%;
        margin-top: 2rem;
    }

    .about-title{
        text-align: center;
    }

    .about-header {
        padding: 0.7rem;
    }

    .about-text {
        line-height: 1.3;
    }

    .skills-title {
        font-size: 2.5rem;
        padding-top: 2.5rem;
    }

    .skills-container {
        width: 90%;
        grid-template-columns: repeat(2, 1fr);
        margin-top: 2rem;
    }

    .skill {
        width: 6rem;
    }

    .projects-title {
        font-size: 2.5rem;
    }

    .projects-body {
        margin-top: 8rem;
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .projects-temp {
        font-size: 2rem;
        text-align: center;
    }

    .contact {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .contact-title {
        font-weight: 900;
        font-size: 2rem;
    }

    hr {
        border-width: 2px;
    }
}

@media screen and (max-width: 768px) {

    .nav-container {
        width: 100%;
        height: 3.5rem;
    }

    .nav-container > nav {
        gap: 2rem;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .home-title {
        padding: 0.5rem;
        font-size: 4rem;
        color: rgb(69, 235, 165);
        font-weight: 900;
        margin-top: -5rem;
    }

    .home-subtitle {
        padding: 1rem;
        font-size: 2rem;
        text-wrap: wrap;
        text-align: center;
    }

    .about-container {
        width: 80%;
        margin-top: 2.5rem;
        padding-bottom: 2rem;
    }

    .about-title{
        text-align: center;
    }

    .about-header {
        padding: 1rem;
    }

    .about-text {
        line-height: 1.3;
    }

    .skills-title {
        font-size: 3rem;
        padding-top: 3rem;
    }

    .skills-container {
        width: 80%;
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-title {
        font-size: 3.5rem;
    }

    .projects-body {
        margin-top: 8rem;
        margin-left: 2rem;
        margin-right: 2rem;
    }

    .contact {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .contact-title {
        font-weight: 900;
        font-size: 2rem;
    }

    hr {
        border-width: 0.3rem;
    }
}

@media screen and (max-height: 667px) {
    .home-title {
        font-size: 2rem;
        
    }
    .home-subtitle {
        font-size: 1.5rem;
    }
}

@media screen and (max-height: 568px) {
    .home-subtitle {
        font-size: 1rem;
    }
    .home-img {
        max-width: 10rem;
        max-height: 10rem;
    }
    .skills-title {
        padding-top: 0.5rem;
        font-size: 2rem;
        padding-bottom: 1rem;
    }
    .skills-container {
        width: 100%;
        margin-top: 0;
        gap: 0;
        align-items: start;
    }
    .skill {
        width: 3rem;
        align-self: auto;
    }
    .skill-img > img{
        height: 5rem; 
    }
    .skill-name {
        display: none;
    }
}