body {
    font-family: 'Roboto', sans-serif;
    padding: 0;
    margin: 0;
    font-size: 100%;
    line-height: 1.5;
    color: #555;
    background: #fff;
    text-align: center;
}

.html {
    -webkit-text-size-adjust: 100%;
}

*, html {
    scroll-behavior: smooth !important;
}

/* ###### */
/* Header */
/* ###### */

/* Particles */

#particles-js {
    background: linear-gradient(#1e3c72, #2a5298);
    display: flex;
    vertical-align: bottom;
    width: 100%;
    min-height: 100vh;
    max-height: 100vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.div {
    unicode-bidi: isolate
}

/* Text */

.header {
    text-align: center;
    z-index: 1;
    text-align: center;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0 auto;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

@media only screen and (min-width: 768px) {
    .header .site-title {
        margin: 0;
        font-size: 76px;
    }
}

.header .site-title {
    font-size: 2em;
    font-weight:500;
    display: block;
    line-height: 1;
    color: #fff;
}

@media only screen and (min-width: 768px) {
    .header .site-description {
        font-size: 34px;
    }
}
.header .site-description {
    font-size: 20px;
    display: block;
    line-height: 1;
    color: #fff;
    margin-top: 10px;
}

/* Icons */

.fa {
    display: inline-block;
    font: 14px / 1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.header-icons .icon {
    height: 25px;
    width: 25px;
    font-size: 25px;
    padding: 10px;
    margin: 5px;
    border-radius: 50%;
    transition: all .5s;
    border: 2px solid #fff;
    text-decoration: none;
    color: white;
}

.header-icons .leetcode {
    height: 25px;
    width: 25px;
    border-radius: 50%;
    transition: all .5s;
    border: 2px solid #fff;
    text-decoration: none;
    color: white;
}

.i .leetcode {
    background-image: url("assets/img/leetcode.svg");
}

.header-icons .icon:hover{
    background-color: rgba(1, 1, 11, 0.5);
    padding: 15px;
}

/* Down */

.down, .header-icons .icon {
    color: #fff;
    text-align: center;
}

.down .icon {
    position: absolute;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    fill: #fff;
    -webkit-animation: pulse 1.3s infinite;
    animation: pulse 1.3s infinite;
}

.down {
    position: absolute;
    bottom: 25px;
    width: 100%;
    margin: 0 auto;
    display: block;
    font-size: 30px;
    line-height: 30px;
    cursor: pointer;
    border: none !important;
}

@keyframes pulse {
    0%, 100% {
        -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=40)";
        filter: alpha(opacity = 40);
        opacity: .4;
        top: 0;
    }

    50% {
        -ms-filter: none;
        -webkit-filter: none;
        filter: none;
        opacity: 1;
        top: -10px;
    }
}

/* #### */
/* Body */
/* #### */

/* Avatar */

.avatar {
    margin: 10px auto;
}

.avatar, .intro {
    text-align: center;
    margin: 25px auto;
}

.avatar img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 50%;
}

/* Other */

h1, h2, h3 {
    font-family: 'Open Sans', sans-serif;
    font-weight: bold;
    color:black;
}

.footer {
    background-color: rgb(1, 1, 11);
}

.intro {
    margin-right: 15%;
    margin-left: 15%;
}

/* ############## */
/* Projects cards */
/* ############## */

#project-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centers cards */
    gap: 20px; /* Space between cards */
    padding: 20px;
}

.project-card {
    background-color: white;
    border: 1px solid;
    border-radius: 10px;
    min-height: 250px;
    max-width: 250px;
    width: 100%; /* Ensures consistency */
    margin: 1em;
    padding: 10px;
    cursor: pointer;
    box-shadow: 1px 1px;
    flex: 1 1 calc(33.333% - 2em); /* Ensures 3 per row, adjusting for margins */
    text-align: center;
}

.project-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows the container to expand */
}

.types {
    margin-top: auto; /* Pushes the types to the bottom */
    display: flex;
    justify-content: center;
    gap: 10px;
}


/* Responsive adjustments */
@media (max-width: 900px) {
    .project-card {
        flex: 1 1 calc(50% - 2em); /* 2 per row on smaller screens */
    }
}

@media (max-width: 600px) {
    .project-card {
        flex: 1 1 100%; /* 1 per row on very small screens */
    }
}

.project-card:hover {
    transform: scale(1.05);
}

.project-image {
    width: 100%;
    height: 170px;
    border-radius: 10px;
    background: rgba(1,1,1,0.25) url('/images/forecast.png') no-repeat scroll left center;
}

.project-details {
    display:flex;
    flex-direction: column;
}

.project-title {
    color: black;
    font: 1.2em "Fira Sans", sans-serif;
    font-size: 1.5em;
    padding-top: 10px;
    font-weight: 750;
    color: black;
}

.project-text {
    padding-top: 10px;
    color:black;
}

.types {
    padding-top: 15px;
    gap: 10px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    place-content: center;
}

.project-type {
    background: #b2b2fd;
    color: #1a41cd;
    font-weight: bold;
    padding: 0.3em 0.7em;
    border-radius: 15px;
    font-size: 12px;
    letter-spacing: -0.6px
}

/* ############## */
/* Job experience */
/* ############## */

.timeline * {
    box-sizing: border-box;
}

/* The actual timeline (the vertical ruler) */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* The actual timeline (the vertical ruler) */
.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: lightgray;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

/* Container around content */
.container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

/* The circles on the timeline */
.container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: white;
    border: 4px solid orange;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

/* Place the container to the left */
.left {
    left: 0;
}

/* Place the container to the right */
.right {
    left: 50%;
}

/* Add arrows to the left container (pointing right) */
.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid #E8E8E8;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #E8E8E8;
}

/* Add arrows to the right container (pointing left) */
.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid #E8E8E8;
    border-width: 10px 10px 10px 0;
    border-color: transparent #E8E8E8 transparent transparent;
}

/* Fix the circle for containers on the right side */
.right::after {
    left: -16px;
}

/* The actual content */
.content {
    padding: 20px 30px;
    background-color: #E8E8E8;
    position: relative;
    border-radius: 6px;
}

.timeline {
    text-align: left;
}

.timeline .experience-date {
    font-weight:normal;
    font-size:small;
}

.timeline .experience-title {
    font-weight: 650;
    font-size:large;
}
.timeline .experience-company {
    color: orange;
    font-weight: 650;
    font-size:medium;
}
.timeline .experience-location {
    font-weight:normal;
    font-style: italic;
    font-size:small;
}

/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {
    /* Place the timelime to the left */
    .timeline::after {
        left: 31px;
    }

    /* Full-width containers */
    .container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    /* Make sure that all arrows are pointing leftwards */
    .container::before {
        left: 61px;
        border: medium solid orange;
        border-width: 10px 10px 10px 0;
        border-color: transparent orange transparent transparent;
    }

    /* Make sure all circles are at the same spot */
    .left::after, .right::after {
        left: 15px;
    }

    /* Make all right containers behave like the left ones */
    .right {
        left: 0%;
    }
}

/* ############## */
/* Certifications */
/* ############## */

.certification-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px; /* Largeur réduite */
    margin: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.certification-badge {
    width: 80px; /* Taille réduite */
    height: auto;
    margin-bottom: 10px;
}

.certification-title {
    font-size: 0.9em;
    font-weight: bold;
}

#certification-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}


/* ##### */
/* Other */
/* ##### */

.spacer {
    padding-top: 5px;
    padding-bottom: 5px;
}

.spacer2 {
    padding-top: 15px;
    padding-bottom: 15px;
}

.back {
    cursor:pointer;
    border-radius: 5px;
    font-size: 15px;
    padding: 5px;
    color: black
}