/* BASE */

:root {
    --base: #1D3557;
    --accent: #E63946;
    --deccent: #457B9D;
    --clear: #A8DADC;
    --white: #EBEFF6;
    --shadow: #627998;
}

html {
    background-color: var(--base);
}

body {
    height: 100%;
    padding: 0;
    margin: 0;
    font-family: "Rubik", sans-serif;
    background-color: var(--white);
}

h1,
h2 {
    display: inline-block;
    margin: 0;
    padding: 0;
    color: var(--accent);
    font-weight: 600;
}

ul {
    padding-inline-start: 0;
}

button {
    width: 160px;
    height: 40px;
    background-color: var(--accent);
    color: var(--white);
    font-weight: 600;
    border: none;
    border-radius: 30px;
    cursor: pointer;
}

button:hover {
    background-color: var(--white);
    color: var(--accent);
    border: 3px solid var(--accent);
}

a,
a:hover,
a:focus,
a:active {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a:hover {
    color: var(--white);
}

.anchor {
    position: relative;
    top: -80px;
}


/* NAV */

nav {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 60px;
    position: fixed;
    z-index: 1000;
    background-color: var(--base);
    color: var(--white);
    text-align: center;
}

.nav-border {
    border-bottom: 1px solid var(--deccent);
}

#nav-title {
    position: absolute;
    display: flex;
    align-items: center;
    align-self: flex-start;
    width: auto;
    height: 100%;
    color: var(--white);
    font-size: 1.4rem;
    z-index: 1200;
    left: 30px;
    opacity: 0;
    /* transition: opacity 1s; */
}

#nav-title img {
    width: auto;
    height: 70%;
    margin-right: 10px;
    border-radius: 100px;
    background-color: var(--accent);
    /* border: 2px solid var(--deccent); */
}

#nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    color: var(--deccent);
}

#nav-list li {
    width: 100px;
}




/* HEADER */

header {
    display: flex;
    width: 100%;
    height: 100vh;
    justify-content: center;
    background-color: var(--base);
    margin-bottom: 120px;
    box-shadow: 0px 5px 10px var(--shadow);
}

#intro-block {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    justify-content: space-evenly;
    width: 600px;
    height: 240px;
    top: 35%;
}

#intro-photo {
    width: 100px;
    height: 100px;
    border-radius: 100px;
    /* border: 5px solid var(--deccent); */
    background-color: var(--accent);
}

#intro-name {
    color: var(--white);
    font-weight: 600;
}

#intro-catch {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 600;
}

#intro-social {
    display: flex;
    width: 80px;
    height: 35px;
}


/* MAIN */

main {
    max-width: 1000px;
    height: 2700px;
    margin: auto;
}

section {
    display: flex;
    flex-wrap: wrap;
    width: 1000px;
    height: auto;
    margin-top: 30px;
    margin-bottom: 200px;
}


/* ABOUT ME */

#aboutme {
    display: flex;
    flex-wrap: wrap;
}

#aboutme-portrait {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-around;
    width: 200px;
    height: auto;
}

#aboutme-portrait img {
    width: 160px;
    height: 160px;
    border-radius: 100px;
    border: 3px solid var(--base);
    background-color: var(--base);
}

#aboutme-text {
    width: 800px;
    height: auto;
    color: var(--base);
}

#aboutme-text p:nth-child(1) {
    margin-top: 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 2.5rem;
}

#aboutme-text p {
    margin-left: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
    line-height: 1.5rem;
}

#aboutme-text p:nth-child(3) {
    margin-bottom: 0;
}

#aboutme-skills {
    display: flex;
    width: 100%;
    height: 230px;
    background-color: var(--base);
    border-radius: 30px;
    margin-top: 80px;
    padding: 20px;
    box-shadow: 5px 5px 10px var(--shadow);
}

#skills-left-pane {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 160px;
    height: 100%;
}

#hard-skills-button,
#soft-skills-button,
#language-skills-button {
    width: 100%;
    height: 60px;
}

#hard-skills-button:hover,
#soft-skills-button:hover,
#language-skills-button:hover {
    border: none;
}

#hard-skills-button {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

#soft-skills-button {
    border-radius: 0;
}

#language-skills-button {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.active-skilltype {
    background-color: var(--white);
    color: var(--accent);
}

#aboutme-skills h2 {
    color: var(--white);
}

#skillset {
    overflow: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    /* justify-content: space-between; */
    align-content: space-between;
    gap: 10px;
    padding-left: 40px;
    width: 760px;
    height: 100%;
}

.skill-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background-color: var(--white);
    color: var(--base);
    font-weight: 500;
}

.hard-skill-card {
    flex-direction: row;
    width: 140px;
    height: 70px;
}

.soft-skill-card {
    flex-direction: column;
    gap: 10px;
    width: 140px;
    height: 110px;
    text-align: center;
    font-size: 0.8rem;
}

.language-skill-card {
    flex-direction: column;
    gap: 10px;
    width: 180px;
    height: 100%;
    text-align: center;
}

.hard-skill-icon {
    width: 20px;
    height: 20px;
    margin-top: 7px;
}

.soft-skill-icon {
    justify-self: flex-start;
    width: 40px;
    height: 40px;
}

.language-skill-icon {
    width: 40px;
    height: 40px;
}

.skill-card-header {
    position: relative;
    left: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 40px;
    margin-bottom: 15px;
}

.skill-title {
    margin-left: 10px;
}

.hard-skill-card .skill-title {
    margin-top: 7px;
}
.hard-skill-card .skill-rank {
    margin-bottom: 7px;
}

.soft-skill-card .skill-title {
    margin-left: 0;
}

.language-sub {
    width: 25px;
    height: 25px;
    margin-right: 10px;
}

.skill-line {
    display: flex;
    align-items: center;
}

.skill-rank {
    overflow: hidden;
    display: flex;
    gap: 2px;
    width: 100px;
    height: 18px;
    border-radius: 8px;
}

.skill-block {
    width: 20px;
    height: 18px;
    border-radius: 1px;
    background-color: var(--accent);
}

.empty-block {
    width: 20px;
    height: 18px;
    border-radius: 1px;
    background-color: var(--deccent);
}


/* PROJECTS */

#projects {
    width: 102%;
}

.projects-introduction {
    color: var(--base);
}

.project-infos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 450px;
    height: 650px;
    background-color: var(--base);
    color: var(--white);
    padding: 15px;
    box-shadow: 5px 5px 10px var(--shadow);
    border-radius: 30px;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}

#project-image {
    width: 120px;
    height: 120px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    opacity: 0;
}

#project-title {
    position: relative;
    width: 100%;
    height: 40px;
    text-align: center;
    text-transform: uppercase;
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: 20px;
}

#project-content {
    width: 100%;
    height: 500px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    opacity: 0;
}

#project-description {
    color: var(--white);
    margin: 10px;
}

#project-content h3 {
    position: relative;
    left: 10px;
    font-weight: 400;
    color: var(--accent);
    margin-top: 30px;
}

#project-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    left: 10px;
}

.project-techs-element {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100px;
    height: 35px;
    border-radius: 10px;
    background-color: var(--white);
    color: var(--base);
    font-weight: 300;
    font-size: 0.8rem;
}

.project-techs-element img {
    width: 18px;
    height: 18px;
}

#project-updates {
    position: relative;
    left: 10px;
}

.project-updates-element {
    position: relative;
    left: 5px;
    list-style: none;
}

.project-updates-element::before {
    content: '| ';
    position: relative;
    left: -5px;
}

.project-updates-element:not(:last-child) {
    margin-bottom: 5px;
}

#projects-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 540px;
    height: 680px;
}

.project-card {
    position: relative;
    left: 20px;
    display: flex;
    align-items: center;
    width: 500px;
    min-height: 80px;
    border-radius: 15px;
    box-shadow: 5px 5px 10px var(--shadow);
    background-color: var(--base);
    color: var(--white);
    font-weight: 400;
    font-size: 1.2rem;
}

.project-card:hover {
    background: var(--accent);
}

.project-card-image {
    position: relative;
    left: 20px;
    width: 60px;
    height: 60px;
}

.project-card-title {
    position: absolute;
    left: 100px;
}

.project-card-buttons {
    position: absolute;
    left: 320px;
    display: flex;
    gap: 10px;
    width: 160px;
    height: 40px;
    opacity: 0;
}

.active-buttons .project-card-buttons {
    opacity: 1;
}

.card-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 100%;
    border: none;
    background-color: var(--white);
    color: var(--base);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.card-button:hover {
    border: none;
}

.test-button img {
    position: relative;
    left: 4px;
    width: 25px;
    height: 25px;
}

.github-button img {
    position: relative;
    width: 30px;
    height: 30px;
}


/* FORM */

form {
    width: 740px;
    height: 440px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    border-radius: 30px;
    padding: 20px;
    background-color: var(--base);
    box-shadow: 5px 5px 10px var(--shadow);
}

.form-field {
    border-radius: 30px;
    border: none;
    background-color: var(--white);
}

.form-field:focus-visible {
    outline: var(--deccent) auto 1px;
}

#name,
#email {
    width: 330px;
    height: 30px;
}

#subject {
    width: 730px;
    height: 30px;
}

#message {
    width: 730px;
    height: 150px;
}

#submit-button {
    margin-top: 20px;
    width: 250px;
    height: 60px;
    background-color: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 30px;
    cursor: pointer;
}

input {
    font-family: "Rubik", sans-serif;
    padding: 15px;
    font-size: 1rem;
    color: var(--base);
}

input::placeholder {
    text-transform: capitalize;
    color: var(--deccent);
}

input:nth-child(2) {
    text-transform: lowercase;
}

textarea {
    font-family: "Rubik", sans-serif;
    color: var(--base);
    font-size: 1rem;
    font-weight: 400;
    padding: 15px;
}

textarea::placeholder {
    color: var(--deccent);
}

#email-me {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 160px;
    align-items: flex-start;
    margin-left: 40px;
    color: var(--base);
    font-size: 1.2rem;
}

#email-me a {
    color: var(--accent);
}

#email-icon {
    position: absolute;
    margin-left: 5px;
    opacity: 0;
}

#submit-button:hover {
    background-color: var(--white);
    color: var(--accent);
}


/* FOOTER */

footer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 160px;
    background-color: var(--base);
}

#footer-content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 1000px;
    height: auto;
}

#footer-copyright {
    color: var(--deccent);
    font-weight: 300;
    font-size: 0.8rem;
    width: 195px;
}

#footer-nav {
    display: flex;
    position: relative;
    gap: 15px;
    color: var(--deccent);
    font-weight: 300;
    margin: auto;
}

#footer-nav a:hover {
    color: var(--accent);
}

.deccent-button {
    width: 30px;
    height: 30px;
    background-repeat: no-repeat;
    background-color: var(--base);
    border-radius: 0;
}
.deccent-button:hover {
    border: none;
    background-color: var(--base);
}

.github-deccent-button {
    background-image: url("images/github-deccent.svg");
}
.github-deccent-button:hover {
    background-image: url("images/github-accent.svg");
}
.linkedin-deccent-button {
    background-image: url("images/linkedin-deccent.svg");
    margin-left: 15px;
}
.linkedin-deccent-button:hover {
    background-image: url("images/linkedin-accent.svg");
}
#arrow-up-button {
    width: 40px;
    height: 40px;
    background-image: url("images/arrow-up-deccent.svg");
    margin-left: 80px;
}
#arrow-up-button:hover {
    background-image: url("images/arrow-up-accent.svg");
}

#footer-copyright:hover {
    cursor: pointer;
    color: var(--white);
}
#footer-copyright-heart:hover {
    color: var(--accent);
    cursor: not-allowed;
}


/* SCROLL ICON & TEXT */
#scroll {
    position: absolute;
    top: 85%;
    color: var(--deccent);
    font-weight: 300;
}

.icon-scroll,
.icon-scroll:before {
    position: absolute;
    top: 70%;
    left: 50%;
}

.icon-scroll {
    width: 20px;
    height: 35px;
    margin-left: -10px;
    top: 90%;
    margin-top: -20px;
    box-shadow: inset 0 0 0 1px var(--deccent);
    border-radius: 25px;
}

.icon-scroll:before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--deccent);
    margin-left: -4px;
    top: 8px;
    border-radius: 4px;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
    animation-name: scroll
}

@keyframes scroll {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(20px)
    }
}

/* MOBILE */
.mobileView {
    display: none;
    color: var(--base);
}

@media (max-width: 999px) {
    .mobileView {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin-top: 60px;
        width: 100%;
        height: 180px;
        background-color: var(--accent);
        color: var(--white);
        font-weight: 300;
        line-height: 1.5rem;
    }
}