@font-face {
    font-family: 'Yrsa';
    src: url('../assets/fonts/Yrsa-VariableFont_wght.ttf') format('truetype');
    font-style: normal;
}

@font-face{
    font-family: 'Yrsa';
    src: url('../assets/fonts/Yrsa-Italic-VariableFont_wght.ttf') format('truetype');
    font-style: italic;
}

body{
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #000C22;
    color: #96c6fcad;
    font-family: 'Yrsa', serif;
}

header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.2);
}

main{
    max-width: 1440px;
    margin: 0 auto;
    gap: 100px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex: 1;
}

main.contact{
    max-width: 1440px;
    margin: 0 auto;
    gap: 100px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex: 1;
}

footer{
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius:16px 16px 0 0;
    box-shadow: 0 0 8px 8px rgba(0, 0, 0, 0.2);
}

nav{
    padding: 0 8px;
    
}

h1{
    margin: 0;
}

h2{
    margin-bottom: 8px;
    margin-top: 28px;
}

p{
    font-size: 20px;
    margin: 4px;
}

a{
    color: inherit;
    text-decoration: none;
}

a.active{
    font-weight: bold;
    text-decoration: underline;
    color: #EA8A24;
}

ul{
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.start_img{
    display: flex;
    justify-content: flex-end;
    margin: 16px;
    margin-top: 46px;
}

.main_img{
    height: 200px;
    width: 200px;
    border-radius: 16px;
}

.section_style{
    margin: 16px;
    display: flex;
    flex-direction: column;
}

.projects_style{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
}

.background_form{
    margin-top: 48px;
    width: 320px;
    height: 400px;
    background-color: #263043;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.background_form h2{
    margin-top: 0;
}

.contact_form{
    display: flex;
    flex-direction: column;
    width: 300px;
}

label{
    margin-top: 2px;
}

button{
    margin-top: 8px;
}
@media(max-width: 800px){

main{
    flex-direction: column-reverse;
    gap: 0;
}

main.contact{
    flex-direction: column;
}

.start_img{
    margin: 60px auto 0;
}

}    

@media(max-width: 600px){

.nav_links{
    justify-content: space-around;
    position: absolute;
    width: 100%;
    top: 60px;
    left: 0;
}

p{
    font-size: 18px;
}

header{
    display: flex;
    justify-content: center;
}

.section_style{
    margin: 8px 16px;
}

.projects_style{
    margin-top: 20px;
}
}

@media(max-width: 500px){

.main_img{
    width: 160px;
    height: 160px;
}

h2{
    font-size: 20px;
}

p{
    font-size: 16px;
}
}

@media(max-width: 400px){

.background_form{
    margin-top: 48px;
    padding: 0 12px;
    width: 272px;
    height: 400px;
    background-color: #263043;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

}