*::before, *::after, *{
    margin:0;
    padding:0;
    scroll-behavior: smooth;
}

body{
    overflow-x:hidden;
    box-sizing:border-box;
}

.background-black{
    background-image: linear-gradient(rgba(4, 9, 30, 0.7),rgba(4, 9, 30, 0.7)), url(../images/mountain.jpeg);
    min-height:40vh;
    background-size:cover;
    background-position:center;
    background-position-y:-30vh;
    position:relative;
}
header{
    color:white;
}

nav{
    display:flex;
    align-items:center;
    justify-content: space-around;
    color:orange;
    background-color:rgba(0,0,0,.3);
    padding:20px;
}
nav .logo{
    flex-basis:30%;
    font-weight:bold;
}


nav .logo::first-letter{
    color:white;
    font-size:1.25em;
}

nav ul {
    display:flex;
    width:50%;
    justify-content: space-evenly;
    transition:ease-out .5s;

}
nav ul li{
    list-style:none;
}
nav ul li a{
    color:white;
    text-decoration:none;
}

nav ul li a::after{
    content:"";
    display:block;
    height:3px;
    background-color:red;
    width:0%;
}

nav ul li a:hover::after{
    width:100%;
    transition:.4s;
    margin:auto;
}

@media screen and (max-width:576px){
    nav ul {
        position:absolute;
        top:0;
        right:-1000px;
        flex-direction:column;
        justify-content: space-evenly; 
        align-items:center;
        background-color:#3F3F44;
        height: 100vh;
    }
    nav .logo{
        font-family:serif;
        flex-basis:30%;

    }

    nav {
        padding:12px 8px;
        justify-content:space-around;
    }
    .menu span{
        flex-basis:30%;
        transition:.3s;
    }
}

span {
    display:block;
    background-color: white;
    width:15px;
    margin:5px;
    height:3px;

    
}

.contact-me{
    border:1px solid orangered;
    color:orangered;
    padding:10px 20px;
    text-align:center;
}

.contact-me:hover{
    cursor:pointer;
    color:white;
    transition:ease-out .2s;
}

.menu:hover{
    cursor:pointer;
}

.toggle-active span:first-child{
    background-color:red;
    transform:rotate(45deg) translate(1.5px, 1.5px);
    transform-origin: 0 0;
}

.toggle-active span:last-child{
    background-color:red;
    transform:rotate(-45deg) translate(3px, -3px);
    transform-origin:0 100%;
    

}

.toggle-active span:nth-child(2){
    /* display:none; */
    opacity: 0;
}
.toggle-active span{
    transition:.3s;
}


.left {
    right:0;
    width:40%;
}

.profile-photos{
    padding:30px;
    display:flex;
    flex-direction:column;
    text-align:center;
    line-height:35px;
}
.frame-photo{
    height:20vh;
    margin:auto;
    margin-bottom:10px;
    border-radius:100%;
    overflow:hidden;
    display:flex;
}

.profile-photos h2{
    color:orangered;
    font-weight:bold;
    font-size: 1.6em;
}

main{
    min-height:40vh;
    background-color:#1E2233;
    display:flex;
    justify-content: center;
    padding:50px;
}

.left-image{
    width:40vw;
    height:40vh;
    background-image:url(../images/self.jpg);
    background-position:top;
    background-size:cover;
    border-radius:10%;
}
.left{
    margin-right:20px;
    flex-basis:50%;

}

.container{
    color:white;
    display:flex;
}
.right{
    flex-basis:50%;
}
.right h1{
    font-size: 2em;
    margin-bottom:2vh;
}
.right h1::after{
    content : "";
    display:block;
    background-color:red;
    height:2px;
    width:10vw;
}
.right p{
    line-height:24px;
    font-size:13px;
}

.bio{
    border: 1px solid orangered;
    padding:10px;
    margin-top:10px;
    display:flex;
}

.bio-left{
    flex-basis:60%;
}
.bio-right{
    flex-basis:40%;
}
.button{
    padding:10px;
    width:50%;
    text-align:center;
    border-radius:5px;
    font-weight:bold;
    border:1px solid red;
    margin-top:2vh;
    transition: color .3s;
    position:relative;
}
.button:hover{
    cursor: pointer;
    color:orangered;
}

footer{
    min-height:40vh;
    background-color:#24273D;
    color:white;
    padding:30px;
}

footer h4{
    color:orangered;
    margin-bottom:8px;
}

footer h2::after{
    content : "";
    margin-top:2px;
    display:block;
    height:1px;
    background-color:orangered;
    width:35px;
}

.box-container{
    display:flex;
    margin-top:25px;
    flex-direction:column;

}

.box{
    margin-top:20px;
    border:1px solid orangered;
    max-width:400px;
    padding:20px;
}
.box p{
    margin-top:5px;
    line-height:24px
}


@media screen and (min-width:769px){
    .menu{
        display:none;
    }
    body{
        overflow-x:hidden;
    }
    
    .box-container {
        flex-direction: row;
        justify-content: space-between;
    }
    .box{
        max-width:400px;
        margin-right:10px;
    }
    footer{
        padding:60px;
        min-height:30vh;
    }

    .left{
        flex:.35;
    }
    .left-image{
        max-width:300px;
        position:relative;
        overflow:hidden;
    }

    .right{
        flex-basis:60%;
        text-align:justify;
        

    }
    .background-black{
        background-position:center;
        background-position-y:2000px;
        min-height:50vh;
    }
    .button{
        max-width:130px;
    }

    .logo{
        font-size:1.5em;
    }
    nav ul li a{
        font-size:1.1em;
    }
    nav ul li a:hover::after{
        height:2px;
    }
    .profile-photos{
        padding:50px 0;
    }
    .frame-photo{
        height:25vh;
    }
    .right h1::after{
        width:8%;
    }

    footer h4{
        font-size:1.25em;
    }
    footer h2::after{
        height:2px;
    }

}

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


    .box-container{
        flex-direction: row;
        justify-content: space-around;
    }
    .box{
        max-width:180px;
    }
    .logo{
        font-size:1.25em;
    }
    nav ul li a{
        font-size:1em;
    }

}

@media screen and (max-width:576px){
    html{
        overflow-x:hidden;
    }
    .box-container{flex-direction: column;}
    .box{
        max-width:80%;
    }
}
@media screen and (max-width:768){
    .menu{
        display:none;
    }
}

