@import url('https://fonts.googleapis.com/css2?family=Gabarito:wght@400..900&display=swap');
/*could be optimizied*/
:root {
    --ecogreen: #1F3A26;
    --eggshell: #FFF8F3;
}

body{
    margin:0;
    padding:0;
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    font-family: "Gabarito", sans-serif;
    background-color: var(--eggshell);
    overflow-x: hidden;
}

.text-half {
    width: 60%;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    box-sizing: border-box;
}

.image-half {
    width: 40%;
    height: 100vh;
    padding: 2rem 2rem 2rem 0;
    box-sizing: border-box;
}

.landingpage {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header{
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    border-radius: 40px;
    background-color: var(--ecogreen);
    height: 6em;
}

.header_ul{
    display: flex;
    align-items: center;
    gap: 3rem;
    list-style: none;
    margin-right: 1em;
}

.header_li{
    position: relative;
}

.header_a{
    color: var(--eggshell);
    text-decoration: none;
}

.header_branding{
    display:flex;
    align-items: center;
    gap: .7rem;
}
.header_logo{
    width: 80px;
}

.header_text{
    color: var(--eggshell);
    font-size: 2em;
    font-weight: lighter;
    white-space: nowrap;
}

.ext_link{
    width:50px;
    margin: 0;
    display: block;
}

.header_nav svg {
    display: block;
}

.header_a--github {
    display: flex;
    align-items: center;
    opacity: .85;
}

.header_a--github svg{
    width: 48px;
    height: 48px;
}

.header_a--linkedin {
    display: inline-block;
    align-items: center;
    gap: 8px;
    opacity: .85;
}

.header_a--linkedin svg{
    width: 44px;
    height: 44px;
}

#open {
    background: none;
    border: none;
    cursor: pointer;
    box-shadow: none;
    transform: none;
}

.modal-container{
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 100;
    min-width: 250px;
    margin-top: 35px;
}

.modal-container.show{
    display: block;
}

.linkedin-modal{
    background-color: var(--eggshell);
    border: 2px solid var(--ecogreen);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.linkedin-modal ul{
    gap: 1rem;
}

.linkedin-link{
    text-decoration: none;
    font-size: 1.15rem;;
}

.linkedin-link:visited{
    color: var(--ecogreen)
}

.linkedin-link a{
    list-style-type:circle;
}

.linkedin-modal span{
    font-size: 1.5em;
    font-weight: bold;
    color: var(--ecogreen)
}

.content{
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.content_title{
    margin-top: 6em;
    margin-left:.2em;
    font-size: 3.7em;
    font-weight: lighter;
    color: var(--ecogreen);
}

.content_bottom {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 2rem;
}

.description{
    margin-bottom:3rem;
    margin-left:1em;
}

.description-line{
    color: var(--ecogreen);
    margin:0;
    font-size: 19px;
}

.content-buttons{
    display: flex;
    flex-direction: row;
    gap: 10rem;
    width: 100%;
    margin-bottom: 1rem;
}

.content-buttons a {
    flex: 1;
    text-decoration: none;
}

.body-buttons{
    width: 100%;
    background-color: transparent;
    border: .15em solid var(--ecogreen);
    border-radius: 40px;
    box-sizing: border-box;
    color: var(--ecogreen);
    cursor: pointer;
    display: inline-block;
    font-size: 19px;
    line-height: normal;
    margin: 0;
    min-height: 3.75em;
    outline: none;
    padding: 1em 2.3em;
    text-align: center;
    transition: all 300ms cubic-bezier(.23, 1, 0.32, 1);
}

.body-buttons:hover {
    color: var(--eggshell);
    background-color: var(--ecogreen);
    box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
    transform: translateY(-2px);
}

button:active {
    box-shadow: none;
    transform: translateY(0);
}

.image {
    width: 45%;
    flex-shrink: 0;
}

.image-half img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 40px;
}

.content_title .textwithbackground.has-bg {
    color: var(--eggshell) !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.textwithbackground {
    display: inline-block;
    padding: 0.1em 0.5em;
    border-radius: 20px;
    transition: all 0.5s ease-in-out;
    background-size: cover;
    background-position: center;
    color: var(--ecogreen);
    position: relative;
    z-index: 1;
    min-width: 120px;
    text-align: center;
    overflow: hidden;
}

.textwithbackground.has-bg{
    color: var(--eggshell);
}

.textwithbackground.has-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: inherit;
    z-index: -1;
}

.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

@media (max-width: 1250px){
    .image {
        width: 0;
    }
    .text-half {
        width: 100%;
    }
}

@media (max-width: 1000px){
    .header{
        height: 4em;
    }

    .header_text{
        font-size: 1.5em;
    }

    .header_logo{
        width: 50px;
    }

    .image-half{
        width: 0;
        height: 0;
        padding:0;
    }
    .text-half {
        width: 100vw;
    }
}

@media (max-width: 750px){
    .header_text{
        font-size: 1em;
    }

    .content_title{
        font-size: 3em;
    }

    .content-buttons{
        gap: 1em;
    }
}

@media (max-width: 560px){
    .header_a--github svg{
        width: 30px;
        height: 30px;
    }

    .header_a--linkedin svg{
        width: 24px;
        height: 24px;
    }

    .header_ul{
        margin-left: 0rem;
        gap: 1rem;
    }

    .body-buttons{
        font-size: 15px;
    }

    .description-line{
        font-size: 16px;
    }

    .content_title{
        font-size: 2.7em;
        margin-top: 9em;
    }
}

@media (max-width: 480px){
    .content_title{
        margin-top: 14em;
        font-size: 2em;
    }

    .header_text{
        display: none;
    }
}

@media (max-width: 400px){
    .content_title{
        margin-top: 18em;
        font-size: 1.4em;
    }

    .header_text{
        display: none;
    }
}

@media (max-height: 700px) {
    .content_title{ 
        font-size: 2.5em; 
        margin-top: 1rem; 
    }
    
    .header{ 
        height: 4em; 
    }

    .header_logo{ 
        width: 50px; 
    }

    .description-line{ 
        font-size: 16px; 
    }
}