/*** CSS RESET ***/

/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 2. Remove default margin */
* {
    margin: 0;
}

body {
    /* 3. Add accessible line-height */
    line-height: 1.5;
    /* 4. Improve text rendering */
    -webkit-font-smoothing: antialiased;
}

/* 5. Improve media defaults */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

/* 6. Inherit fonts for form controls */
input,
button,
textarea,
select {
    font: inherit;
}

/* 7. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* 8. Improve line wrapping */
p {
    text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    text-wrap: balance;
}

/*
  9. Create a root stacking context
*/
#root,
#__next {
    isolation: isolate;
}

/*** END OF CSS RESET ***/

@font-face {
    font-family: "Raleway";
    font-style: normal;
    font-weight: 400;
    src:
        local("Raleway"),
        url("static/Raleway-VariableFont_wght.ttf") format("ttf");
}

@font-face {
    font-family: "Revalia";
    font-style: normal;
    font-weight: 400;
    src:
        local("Revalia"),
        url("static/Revalia-Regular.ttf") format("ttf");
}

html {
    font-family: Raleway, sans-serif;
}

html,
body {
    height: 100vh;
    background-color: #27272c;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    margin: 0 auto;
}

h1,
h2,
h3,
h4,
p {
    color: #c0c0c9;
    line-height: 2;
}

h1 {
    font-family: Revalia, sans-serif;
    font-size: 4rem;
    font-weight: 700;
}

a,
li {
    text-decoration: none;
    color: #d367c1;
}

li > p {
    text-decoration: none;
    color: #d367c1;
}

a:hover {
    text-decoration: underline;
}

header {
    position: sticky;
    top: 0;
}

nav {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    align-items: center;
    background-color: #000;
    border-radius: 6px;
}

nav > ul {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    padding-left: 0;
}

nav > ul > li {
    text-decoration: none;
    list-style-type: none;
    margin: 2rem;
}

.nav-link {
    border-radius: 10px;
    border: 1px solid #2ea9ce;
    padding: 10px;
}

.logo {
    width: 80px;
    height: 80px;
    cursor: pointer;
}



main {
    flex: 1;
    max-width: 1440px;
    margin: 4rem auto 4rem;
}

.home-title-wrap {
    margin: 4rem auto 6rem;
}

.home-sites,
.home-skills {
    margin: 2rem 0;
}

.bold-text > span {
    font-weight: 900;
}

.video {
    width: 640px;
     height: 480px;
}

.skills-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.studies,
.jobs {
    margin: 2rem 0;
}

.no-link > li {
    color: #2ea9ce;
}

.skills-cv {
    margin: 1rem 0;
}

.footer {
    flex-shrink: 0;
    background-color: #29344b;
    padding: 1rem 0 2rem;
    border-radius: 4px;
}

#footer {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.fa-solid {
    width: 20px;
    height: 20px;
}

.blue {
    color: blue;
}

.red {
    color: red;
}

.footer-element {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.footer-element > p {
    margin: 4px;
}

.footer-link > a,
.footer-text {
    display: flex;
    align-items: center;
}

.footer-link > a > img,
.footer-element > p > img {
    width: 24px;
    height: 24px;
}

@media screen and (max-width: 970px) {
    main {
        padding: 0;
    }
    h1 {
        font-size: 4.5rem;
    }
}

@media screen and (max-width: 700px) {
    #home-wrapper,
    .skills-wrapper {
        padding: 2rem;
    }
    h1 {
        font-size: 4rem;
    }

    .video {
    width: 440px;
     height: 280px;
}

    #footer {
        flex-direction: column;
        text-align: center;
    }
    .footer-element {
        align-items: center;
        margin-bottom: 1rem;
    }
    .footer-element > h4 {
        margin: 15px 0 0;
    }
}

@media screen and (max-width: 492px) {
    #home-wrapper,
    .skills-wrapper {
        padding: 1rem;
    }
    h1 {
        font-size: 3rem;
    }
}

@media screen and (max-width: 370px) {
    h1 {
        font-size: 2rem;
    }
    nav > ul > li {
    margin: 1rem;
}
}
