body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(to right, #26243f, #7f62aa);

    margin: 0;
    padding: 0;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    background-color: #333;
    color: #f2f2f2;
}

header {
    background-color: #23093f;
    color: #fff;
    padding: 20px;
    text-align: center;
    flex-direction: column;
    align-items: center;
}

header img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

header img:hover {
    transform: scale(1.1);
}

header h1 {
    margin-bottom: 20px;
    transition: transform 0.5s, color 0.5s;
}

header h1:hover {
    transform: translateY(-10px);
    color: #ff6b6b;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: right;
}

nav li {
    margin: 0 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
}

nav a:hover {
    color: #ccc;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.content {
    align-items: center;
    flex: 1;
    padding: 40px;
}

.sidebar-image {
    width: 300px;
    height: 100vh;
    overflow: visible;
}

.sidebar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.download-btn {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background-color: #0056b3;
}

main {
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.skill {
    flex-basis: 48%;
    margin-bottom: 30px;
}

.skill h3 {
    margin-bottom: 10px;
}

.contact {
    display: flex;
    justify-content: right;
    margin-top: 20px;
    flex-basis: 48%;
    text-align: right;
}

.contact a {
    margin: 0 10px;
    transition: transform 0.3s;
    display: block;
    margin-bottom: 10px;
    color: #2196f3;
    text-decoration: none;
    transition: transform 0.3s, color 0.3s;
}

.contact a:hover {
    transform: translateX(10px);
    color: #0d47a1;
    transform: translateY(-5px);
}

.contact img {
    width: 30px;
    height: 30px;
}

.formation {
    background-color: transparent;
    padding: 50px 0;
}

.formation h2 {
    text-align: right;
    margin-bottom: 50px;
}

.formation-container {
    justify-content: right;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: X mandatory;
    -webkit-overflow-scrolling: touch;
}

.formation-item {
    flex: 0 0 300px;
    margin-right: 30px;
    scroll-snap-align: start;
}

.formation-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    animation: panorama 10s linear infinite;
}

@keyframes panorama {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.dark-mode .contact a {
    color: #f2f2f2;

}