body {
    background-size: cover;
}

html,
body {
    height: fit-content;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

@keyframes animate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }

    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

.background {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    background: #3E3E39;
    z-index: 0;
    /* Ensure background is behind everything else */
}

.menu {
    text-align: center;
    position: sticky;
    top: 20px;
    z-index: 4;
    /* Set higher z-index for menu */
}

.center {
    text-align: center;
    z-index: 2;
    /* Set higher z-index for center elements */
    position: relative;
    /* Ensure positioning context */
}

.solo-link {
    background-color: #333333;
    color: white;
    padding: 16px;
    font-size: 16px;
    border-radius: 10px;
    width: auto;
    border-right: 1px solid #CCCCCC;
    border-left: 1px solid #CCCCCC;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    min-width: 170px;
    z-index: 2;
    /* Set higher z-index for solo links */
    position: relative;
    /* Ensure positioning context */
}

.solo-link:hover {
    background-color: #414141;
}

#delay {
    font-size: 14px;
    transition-property: font-size;
    transition-duration: 4s;
    transition-delay: 2s;
    z-index: 2;
    /* Set higher z-index for delay element */
    position: relative;
    /* Ensure positioning context */
}

#delay:hover {
    font-size: 36px;
}

.profil {
    border-radius: 4px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    z-index: 2;
    /* Set higher z-index for profil element */
    position: relative;
    /* Ensure positioning context */
}

.background li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    animation: animate 17s linear infinite;
}

.background li:nth-child(0) {
    left: 33%;
    width: 185px;
    height: 185px;
    bottom: -185px;
    animation-delay: 1s;
}

.background li:nth-child(1) {
    left: 37%;
    width: 166px;
    height: 166px;
    bottom: -166px;
    animation-delay: 4s;
}

.background li:nth-child(2) {
    left: 78%;
    width: 190px;
    height: 190px;
    bottom: -190px;
    animation-delay: 6s;
}

.background li:nth-child(3) {
    left: 73%;
    width: 109px;
    height: 109px;
    bottom: -109px;
    animation-delay: 11s;
}

.background li:nth-child(4) {
    left: 71%;
    width: 101px;
    height: 101px;
    bottom: -101px;
    animation-delay: 5s;
}

.background li:nth-child(5) {
    left: 4%;
    width: 141px;
    height: 141px;
    bottom: -141px;
    animation-delay: 24s;
}

.background li:nth-child(6) {
    left: 56%;
    width: 180px;
    height: 180px;
    bottom: -180px;
    animation-delay: 11s;
}

.background li:nth-child(7) {
    left: 47%;
    width: 132px;
    height: 132px;
    bottom: -132px;
    animation-delay: 9s;
}

.background li:nth-child(8) {
    left: 56%;
    width: 133px;
    height: 133px;
    bottom: -133px;
    animation-delay: 15s;
}

.background li:nth-child(9) {
    left: 58%;
    width: 105px;
    height: 105px;
    bottom: -105px;
    animation-delay: 34s;
}

.title {
    color: lightgrey;
    font-family: "Josefin Sans", sans-serif;
    margin-left: 15px;
    z-index: 2;
    /* Set higher z-index for title element */
    position: relative;
    /* Ensure positioning context */
}

.fade-in-down {
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

h1 {
    color: #D1D1D1;
    font-family: "Josefin Sans", sans-serif;
    z-index: 2;
    /* Set higher z-index for text elements */
    position: relative;
    /* Ensure positioning context */
}

.form {
    position: relative;
    /* Ensures positioning context for absolute positioning */
    display: flex;
    /* Use flexbox for alignment */
    width: auto;
    z-index: 2;
    flex-wrap: wrap;
}

.container {
    max-width: 1000px;
    position: relative;
    margin: 50px auto;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* For Safari support */
    padding: 30px;
    border-radius: 10px;
    border-color: #333333;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    z-index: 3;
    flex: 1;
}

.container h1,
h2 {
    color: #222;
    font-family: "Josefin Sans", sans-serif;
}

.container h1 {
    text-align: center;
}

.container p {
    font-family: "Josefin Sans", sans-serif;
}

.container a {
    text-decoration: none;
    color: white;
}

.section {
    margin-bottom: 40px;
}

.timeline {
    border-left: 3px solid #483752;
    padding-left: 20px;
}

.timeline-item {
    margin-bottom: 20px;
}

.timeline-item h3 {
    margin: 0;
    color: #382344;
    font-family: "Josefin Sans", sans-serif;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill,
.language,
.atout,
.certif {
    background: #382344;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-family: "Josefin Sans", sans-serif;
}

.certif:hover {
    background: #221529;
}

.download-btn {
    display: inline-block;
    font-family: "Josefin Sans", sans-serif;
    background: #333333;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 20px;
    margin-bottom: 20px;

}

.download-btn:hover {
    background: #414141;
}

footer {
    z-index: 3;
    background-color: #333333;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    height: 48px;
}

footer p {
    display: grid;
    text-align: center;
    color: #D1D1D1;
    font-family: "Josefin Sans", sans-serif;
    margin: 0;
}

footer .social-links {
    margin-top: 5px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

footer .social-links a {
    color: #D1D1D1;
    font-size: 24px;
    transition: color 0.3s;
}

footer .social-links a:hover {
    color: #ffffff;
}