body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #F4F4F9; /* Light neutral background */
    color: #333333; /* Dark charcoal text color */
}

.main {
    position: absolute;
    top: 8%;
    width: 100%;
    z-index: -1;
    padding: 0 20px;
}

.main h1 {
    text-align: center;
    color: #FF6F61; /* Warm coral color for main headers */
}

.main img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    border-radius: 8px;
}

.main h2 {
    text-align: center;
    color: #4A90E2; /* Calm blue for secondary headers */
}

.main p {
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
}

.socials a {
    color: #4A90E2; /* Consistent use of secondary blue color */
    text-decoration: none;
    margin: 0 10px;
    font-size: 24px;
}

.socials a:hover {
    color: #FF6F61; /* Coral color on hover for contrast */
}

.photo img {
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
}

.stats img {
    display: block;
    margin: 20px auto;
}

.languages-tools .logos a {
    margin: 10px;
}

.languages-tools .logos img {
    width: 60px;
    height: 60px;
}

.image-item a {
    display: block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #4A90E2; /* Blue for buttons */
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.image-item a:hover {
    background-color: #FFA726; /* Vibrant orange on hover */
}

.favorite-item h3 {
    text-align: center;
    color: #FF6F61; /* Use coral color for consistency */
}

.favorite-item p {
    text-align: center;
    margin: 0;
}

@media screen and (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    .sidebar nav ul li {
        float: left;
    }
    .main {
        margin-left: 0;
    }
    .content {
        flex-direction: column;
    }
    .content .socials, .content .photo {
        flex: none;
        margin-bottom: 20px;
    }
    .photo img {
        max-width: 100%;
    }
}
