@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap');

:root {
    --main-bg-color: #2a3140f5;
    --dark-orange: #F25E3D;
    --light-orange: #F27405;
}

a:link,
a:visited,
a:active {
    text-decoration: none;
    /* Supprime le soulignement */
    color: inherit;
    /* Fait en sorte que la couleur du lien soit la même que le texte environnant */
}

a:hover {
    color: var(--dark-orange);
}

body,
html {
    font-family: 'Roboto', sans-serif;
    background-color: var(--main-bg-color);
}


hr {
    border: none;
    border-top: 1px solid var(--light-orange);
    overflow: visible;
    height: 1px;
}

button {
    background-color: var(--dark-orange);
    /* Change to your preferred color */
    color: white;
    /* Change to your preferred color */
    border: none;
    padding: 15px 32px;
    text-align: center;
    display: inline-block;
    cursor: pointer;
    border-radius: 15px;
    transition-duration: 0.4s;
    font-size: large;
}

button:hover {
    background-color: white;
    /* Change to your preferred color */
    color: var(--dark-orange);
    /* Change to your preferred color */
}

li::marker {
    color: var(--dark-orange);
}

.toggleCheckbox {
    display: none;
}

.toggleContainer {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: fit-content;
    border: 1px solid var(--dark-orange);
    border-radius: 20px;
    background: #4a505f;
    cursor: pointer;
    margin-right: 10%;
    margin-left: 10%;
}

.toggleContainer::before {
    content: '';
    position: absolute;
    width: 50%;
    height: 100%;
    left: 0%;
    border-radius: 20px;
    background: var(--dark-orange);
    transition: all 0.3s;
}

.toggleContainer div {
    padding: 6px;
    text-align: center;
    z-index: 1;
}

.toggleCheckbox:checked+.toggleContainer::before {
    left: 50%;
}

.toggleCheckbox:checked+.toggleContainer div:first-child {
    color: white;
    transition: color 0.3s;
}

.toggleCheckbox:checked+.toggleContainer div:last-child {
    color: white;
    transition: color 0.3s;
}

.toggleCheckbox+.toggleContainer div:first-child {
    color: white;
    transition: color 0.3s;
}

.toggleCheckbox+.toggleContainer div:last-child {
    color: white;
    transition: color 0.3s;
}

header {
    background-color: var(--main-bg-color);
    color: white;
    height: 80px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

header .profile {
    flex: 1;
    align-items: center;
    display: flex;
}

header .menu ul {
    padding: 0px;
}

header .profile img {
    height: 100px;
    width: 100px;
    padding-left: 20px;
    padding-top: 40px;
    padding-right: 20px;
}

header .menu {
    flex: 1;
    align-items: center;
    display: flex;
    justify-content: center;
    font-size: large;
}

header .nav-link.current {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 33px;
    text-decoration-color: var(--dark-orange);
}


header .social {
    flex: 1;
    align-items: center;
    display: flex;
    justify-content: right;
}

header .social ul {
    padding: 0%;
    margin-right: 5%;
    align-items: center;
}


header li {
    display: inline;
    margin: 10px
}


header .social img {
    height: 25px;
    width: 25px;
    transition-duration: 0.2s;
}

header .social img:hover {
    transform: scale(1.2);
}


.main-content {
    background-image: url('assets/work_background_opacity15.png');
    background-size: cover;
    background-repeat: no-repeat;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    overflow: auto;
    z-index: 1;
    color: white;
    width: 100%;
}


.main-content h1 {
    padding-top: 10%;
    padding-left: 18%;
    padding-right: 18%;
    padding-bottom: 10%;
    font-size: 5em;
    justify-self: center;
    text-align: center;
    margin: 0%;
}

.main-content h1 .subtitle {
    display: block;
    /* Make the subtitle go to the next line */
    font-size: 0.4em;
    /* Make the subtitle smaller */
    font-weight: normal;
}

.main-content h2 .subtitle {
    display: block;
    /* Make the subtitle go to the next line */
    font-size: 0.4em;
    /* Make the subtitle smaller */
    font-weight: normal;
    padding-top: 20px;
}

.main-content p {
    text-align: justify;
}

.home {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: calc(101vh - 80px);
    margin-top: 80px;
}

.home h1 a {
    color: var(--dark-orange);
    transition-duration: 0.2s;
    cursor: pointer;
}

.home h1 a:hover {
    filter: brightness(150%);
}

.home .social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home .social-icons a {
    padding: 2%;
    font-size: 0px;
}

.home .social-icons img {
    height: 80px;
    width: 80px;
    transition-duration: 0.2s;
}

.home .social-icons img:hover {
    transform: scale(1.2);
}

.services {
    margin-top: 80px;
    margin-bottom: 10%;
}


.services .section {
    padding-top: 10%;
    padding-left: 20%;
    padding-right: 20%;
    opacity: 0.1;
    transition: opacity 0.5s ease-in-out;
}

.services .section h2 {
    font-size: 4em;
    scroll-margin-top: 130px;
}

.services .section .text-content {
    display: flex;
}

.services .section .text-content .paragraph {
    flex: 1;
    padding: 20px;
}

.services .section .text-content h3 {
    font-size: 1.8em;
}


.services .section .text-content li {
    margin: 8px;
}

@keyframes bounce_bottom {

    0%,
    100% {
        transform: translateY(0);
    }

    5% {
        transform: translateY(-20px);
    }
}

@keyframes bounce_top {

    0%,
    100% {
        transform: translateY(0);
    }

    5% {
        transform: translateY(20px);
    }
}

#scroll-arrow {
    margin-top: 100px;
    font-size: 0.5em;
    color: white;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-30px);
    }

    60% {
        transform: translateY(-15px);
    }
}

.about {
    margin-top: 80px;
    margin-bottom: 10%;
}

.about .section {
    align-items: center;
    text-align: center;
    padding-top: 10%;
    padding-left: 20%;
    padding-right: 20%;
    opacity: 0.1;
    transition: opacity 0.5s ease-in-out;
}

.about .section h2 {
    font-size: 3.5em;
    padding-left: 10%;
    padding-right: 10%;
}

.about .section h3 {
    font-weight: normal;
    font-size: 1.8em;
    margin-top: 7%;
    margin-bottom: 1%;
    scroll-margin-top: 100px;
}

.about .section h3 a {
    color: var(--dark-orange);
    transition-duration: 0.2s;
}

.about .section h3 a:hover {
    filter: brightness(150%);
}

.about .section .date {
    font-size: 1.1em;
    font-style: italic;
    color: var(--light-orange);
}

.about .section .place {
    font-size: 1.1em;
    font-style: italic;
    margin-bottom: 2%;
}

.about .section .accomplishments {
    text-align: left;
    padding-top: 15px;
}

.about .section .accomplishments li {
    padding-top: 10px;
}

.about .section .accomplishments::marker {
    color: var(--dark-orange);
}

.about .section .accomplishments a {
    color: var(--dark-orange);
    transition-duration: 0.2s;
}

.about .section .accomplishments a:hover {
    filter: brightness(150%);
}


.about .skills-prog {
    clear: both;
    padding: 15px;
    justify-content: left;
    align-items: left;
    text-align: left;
}

.about .skills-prog ul {
    margin-left: 15px;
}

.about .skills-prog ul li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    transition-duration: 0.3s;
}

.about .skills-prog ul li:hover {
    color: var(--dark-orange);
}

.about .skills-prog ul li:hover .skills-bar .bar {
    background-color: var(--light-orange);
    box-shadow: 0 0 0 1px var(--light-orange);
}

.about .skills-prog ul li span {
    display: block;
    width: 190px;
}

.about .skills-prog ul li .skills-bar {
    background-color: white;
    height: 2px;
    width: 70%;
    position: relative;
    border-radius: 2px;
}

.about .skills-prog ul li .skills-bar .bar {
    position: absolute;
    top: -1px;
    height: 4px;
    background-color: var(--dark-orange);
    box-shadow: 0 0 0 var(--dark-orange);
    border-radius: 5px;
}


/* Mobile devices */
@media only screen and (max-width: 1000px) {

    header .profile {
        flex: 0.4;
    }

    header .menu {
        flex: 0.4;
    }

    header .social {
        flex: 0.2;
    }

    header .social ul {
        display: none;
    }


    .services .section {
        padding-left: 10%;
        padding-right: 10%;
    }

    .about .section {
        padding-left: 10%;
        padding-right: 10%;
    }

    .main-content h1 {
        padding-left: 5%;
        padding-right: 5%;
    }

}


/* Mobile devices */
@media only screen and (max-width: 600px) {

    header {
        height: 60px;
    }

    header .profile {
        flex: 0.2;
    }

    header .profile .title {
        display: none;
    }

    header .profile img {
        height: 65px;
        width: 65px;
        padding-left: 5px;
        padding-top: 20px;
        padding-right: 5px;
    }

    header .menu {
        flex: 0.6;
        font-size: 0.9em;
    }

    header .menu li {
        margin: 5px;
    }

    header .nav-link.current {
        text-underline-offset: 25px;
    }

    header .social {
        flex: 0.2;
        font-size: 0.8em;
    }

    header .social ul {
        display: none;
    }

    .home {
        height: calc(101vh - 60px);
        margin-top: 60px;
        font-size: 0.55em;
    }

    .home .social-icons img {
        height: 50px;
        width: 50px;
    }

    .services {
        margin-top: 60px;
        margin-bottom: 50%;
        font-size: 0.55em;
    }

    .services .section {
        padding-left: 10%;
        padding-right: 10%;
    }

    .services .section .text-content .paragraph {
        padding: 5px;
    }

    .services .section .text-content .paragraph ul {
        padding: 5px;
        font-size: 1.2em;
    }

    .about {
        margin-top: 60px;
        margin-bottom: 50%;
        font-size: 0.55em;
    }

    .about .section {
        padding-left: 10%;
        padding-right: 10%;
        font-size: 1.4em;
    }

    .about .section h2 {
        font-size: 3em;
    }

    .about .section h3 {
        margin-top: 15%;
    }

    .about .skills-prog ul {
        margin-left: 0px;
        padding-left: 0px;
    }

    .main-content h1 {
        padding-left: 5%;
        padding-right: 5%;
    }

}