/*font-family: 'Barlow', sans-serif;
font-family: 'Staatliches', cursive;
font-family: 'Permanent Marker', cursive;*/

/*          GLOBAL          */

:root {
    --bright-yellow: #CAFF32;
    --soft-pink: #BFA6AE;
    --dark-theme: #121726;
    --basic-grey: #939EBF;
    --buttons-light: #8090BF;
    --buttons-dark: #111;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: 'Barlow', sans-serif;
}

/*          HOME            */

nav {
    color: var(--bright-yellow);
    height: 100px;
    font-family: 'Staatliches', cursive;
    display: flex;
    align-items: center;
}

.nav-links {
    width: 70%;
    display: flex;
    justify-content: space-between;
}

#logo {
    font-size: 30px;
    margin-left: 50px;
    margin-right: 50px;
    color: var(--bright-yellow);
}

nav a {
    color: var(--bright-yellow);
    text-decoration: none;
    font-size: 25px;
}

nav a:hover {
    font-size: 27px;
}

.expertise-link {
    margin-left: 190px;
}

.contact-link {
    color: var(--dark-theme);
    margin-right: 90px;
}

.home {
    min-height: calc(100vh - 100px);
    color: white;
}

.home, nav {
    background: linear-gradient(to right, var(--dark-theme) 0% 80%, var(--bright-yellow) 80% 100%);
}

#selfie {
    width: 280px;
    position: absolute;
    top: 30%;
    left: 70%
}

.mode {
    position: fixed;
    top: 60%;
    right: -50px;
    padding: 10px;
    height: 50px;
    width: 150px;
    background: var(--buttons-dark);
    color: var(--bright-yellow);
    border: none;
    transform: rotate(-90deg);
    cursor: pointer;
    font-family: 'Staatliches', cursive;
    font-size: 20px;
    z-index: 2;
}

.home h1 {
    font-size: 60px;
    padding: 200px 0 50px 80px;
    margin: 0;
}

.home p {
    font-size: 40px;
    padding: 0 0 100px 80px;
    margin: 0;
}

/*       EXPERTISE      */

.expertise, .projects, .contact {
    min-height: 100vh;
}

.expertise,
.contact {
    background-size: cover;
    background-attachment: fixed;
}

.expertise {
    background-image: url(images/nic-chi-guvnhd3hbxw-unsplash.jpg);
    display: flex;
    justify-content: space-around;
}

.right, .projects, .contact-container {
    color: white; 
    background-color: var(--dark-theme);
    line-height: 2;
}

.right {
    font-size: 25px;
    width: 60%;
    align-self: center;
    box-shadow: grey 0px 8px 20px;
}

.right div {
    padding: 50px;
    margin: 10px;
}

.expertise h2,
.contact h2 {
    margin: 0;
    color: var(--bright-yellow);
    padding: 50px 0 0 50px;
    font-size: 30px;
    font-family: 'Staatliches', cursive;
    color: var(--bright-yellow);
}

/*         PROJECTS         */

.projects h3 {
    font-family: 'Staatliches', cursive;
    color: var(--bright-yellow);
    margin: 0;
    padding-top: 100px;
    font-size: 30px;
    text-align: center;
}

.projects, .project {
    display: flex;
    flex-direction: column;
}

.screenshot, .site-description {
    width: 70%;
    position: relative;
    left: 15%;
    margin-top: 50px;
}

.site-description {
    font-size: 25px;
    line-height: 2;
}

.tech-stack {
    padding-top: 50px;
}

.fa-brands.fa-html5.fa-xl, .fa-brands.fa-css3-alt.fa-xl, .fa-brands.fa-square-js.fa-xl, .fa-brands.fa-wordpress.fa-xl, .fa-brands.fa-bootstrap.fa-xl, .fa-brands.fa-react.fa-xl {
    padding: 22px 10px;
    border: var(--bright-yellow) solid 1px;
    border-radius: 50%;
    margin-right: 5px;
}

/*          CONTACT            */

.contact {
    background-image: url(images/jaanus-jagomagi-Bg1hgJEU3Es-unsplash.jpg);
}

.contact-container {
    position: relative;
    left: 15%;
    margin-top: 200px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    line-height: 2;
    width: 70%;
    font-size: 25px;
    box-shadow: grey 0px 8px 20px;
}

.link-to-contact {
    text-decoration: none;
    color: var(--bright-yellow);
    font-size: 25px;
}

.link-to-contact:hover {
    font-weight: bold;
    font-size: 27px;
}

#github {
    color: var(--dark-theme);
    text-decoration: none;
}

.fa-regular.fa-envelope, .fa-brands.fa-github, .fa-brands.fa-linkedin {
    padding: 10px;
    border: var(--bright-yellow) solid 1px;
    border-radius: 50%;
    margin-right: 20px;
}

.fa-solid.fa-angle-up.fa-2xl {
    padding: 22px 10px;
    border-radius: 50%;
    border: var(--bright-yellow) solid 2px;
    color: var(--bright-yellow);
    background-color: transparent;
    position: fixed;
    right: 5px;
    bottom: 50px;
}

.glowing {
    width: 200px;
    height: 50px;
    margin: 50px 20px 50px 0;
    border: var(--bright-yellow) solid 1px;
    outline: none;
    color: var(--bright-yellow);
    font-family: 'Staatliches', cursive;
    font-size: 22px;
    background: var(--buttons-dark);
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 10px;

}

.glowing:before {
    content: '';
    background: linear-gradient(45deg, #65AF72, #599E68, #3C744F, #479075, #5DAF71, #7DD08C);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;
}

.glowing:active {
    color: #000
}

.glowing:active:after {
    background: transparent;
}

.glowing:hover:before {
    opacity: 1;
}

.glowing:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #111;
    left: 0;
    top: 0;
    border-radius: 10px;
}

@keyframes glowing {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 400% 0;
    }

    100% {
        background-position: 0 0;
    }
}

.dark-font {
    color: var(--dark-theme);
}

.mode-btn {
    background-color: var(--buttons-light);
    color: var(--dark-theme);
}

.glowing-light {
    background-color: var(--buttons-light);
}

.glowing-light:before {
    background: linear-gradient(45deg, #E8B3EE, #B898D9, #E2B4F0, #E69795, #D998D4, #BD95E6);
}

.glowing-light:active {
    color: var(--buttons-light)
}

.glowing-light:after {
    background: var(--buttons-light);
}

.light-mode-home {
    background: linear-gradient(to right, var(--basic-grey) 0% 80%, var(--soft-pink) 80% 100%);
    color: var(--dark-theme);
}

.light-mode-projects {
    background-color: var(--basic-grey);
    color: var(--dark-theme);
}

.expertise-light {
    background-size: cover;
    background-attachment: fixed;
    background-image: url(images/lukasz-lada-LtWFFVi1RXQ-unsplash.jpg);
}

.contact-light {
    background-size: cover;
    background-attachment: fixed;
    background-image: url(images/davies-designs-studio-f5_lfi2S-d4-unsplash.jpg);
}

@media (max-width:1500px) {

    .right {
        margin-top: 50px;
        margin-bottom: 50px;
    }
}

@media (max-width:950px) {
    #logo {
        font-size: 28px;
    }

    nav a {
        font-size: 20px;
        margin-left: 50px;
    }

    .home {
        display: flex;
        flex-direction: column;
    }

    nav a:hover {
        font-size: 22px;
    }

    .home h1, .home p {
        padding: 50px 0 0 50px;
    }

    .home h1 {
        font-size: 40px;
    }

    .home p {
        font-size: 30px;
    }

    #selfie {
        width: 230px;
        align-self: center;
        position: inherit;
        margin-top: 50px;
        margin-left: 400px;
    }
}

@media (max-width:800px) {

    nav {
        height: 300px;
    }

    #logo {
        font-size: 40px;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-end;
        color: var(--dark-theme);
    }

    .expertise-link,
    .projects-link,
    .contact-link {
        color: var(--dark-theme);
        font-size: 28px;
        margin-right: 20px;
        margin-bottom: 40px;
    }

    .home {
        min-height: calc(100vh - 300px);
    }

    .home h1 {
        font-size: 55px;
    }

    #selfie {
        width: 300px;
        margin: 0;
    }

    .home p {
        width: 70%;
        font-size: 40px;
        line-height: 2;
    }

    .expertise {
        flex-direction: column;
    }

    .right {
        width: 80%;
        padding: 1.2%;
        font-size: 30px;
    }

    .buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .glowing {
        margin: 30px 0 0 0;
    }

    .contact-container {
        left: 15%;
        padding: 2.5%;
        font-size: 30px;
        width: 65%;
    }
}

@media (max-width: 600px) {

    nav, .home {
        background: linear-gradient(to right, var(--dark-theme) 0% 70%, var(--bright-yellow) 70% 100%); 
    }

    .light-mode-home {
        background: linear-gradient(to right, var(--basic-grey) 0% 70%, var(--soft-pink) 70% 100%);
    }

    #logo {
        font-size: 30px;
        margin-right: 0;
    }

    .nav-links {
        align-items: center;
    }

    .expertise-link, .projects-link, .contact-link {
        font-size: 20px;  
    }
    .expertise-link {
        margin-left: 50px;
    }

    .home h1 {
        font-size: 30px;
        width: 200px;
    }

    #selfie {
        width: 200px;
    }

    .home p, .right, .site-description, .contact-container {
        font-size: 20px;
        margin-bottom: 50px;
    }

    .expertise {
        flex-direction: column;
    }

}

span {
    color: var(--bright-yellow);
    font-weight: bolder;
}
