/* Reset some defaults */
* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f8f8f8 0%, #dcdcdc 100%);
    font-family: 'Lato', Arial, sans-serif;
    font-weight: 500;
    line-height: 1.6;
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    color: #333;
    display: flex;
    gap: 40px;
    text-align: justify;
}

.left-column {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.left-column img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.contact-details,
.interests,
.languages {
    width: 100%;
}

.contact-details p,
.interests p,
.languages p {
    margin: 6px 0;
}

.contact-details a {
    color: #3498db;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.fa {
    margin-right: 8px;
    vertical-align: middle;
}

.fa-map-marker-alt {
    color: #e74c3c;
}

.fa-envelope {
    color: #3498db;
}

.fa-phone {
    color: #2ecc71;
}

.fa-github {
    color: #333;
}

.fa-linkedin {
    color: #0A66C2;
}

.fa-dumbbell {
    color: #e67e22;
}

.fa-book {
    color: #2980b9;
}

.fa-chess {
    color: #8e44ad;
}

.fa-robot {
    color:#494949;
}

.right-column {
    flex: 1;
    max-width: 700px;
    text-align: justify;
}

h1,
h2,
h3 {
    color: #333;
    margin-top: 0;
}

.section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc;
}

.section:last-child {
    border-bottom: none;
}

ul.projects {
    list-style: none;
    padding-left: 0;
}

ul.projects>li {
    margin-bottom: 20px;
}

.project-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.project-tech {
    font-style: italic;
    color: #555;
    margin-top: 5px;
}

.icon-backend {
    color: #3498db;
}

.icon-frontend {
    color: #e67e22;
}

.icon-database {
    color: #2ecc71;
}

.icon-cloud {
    color: #9b59b6;
}

.icon-design {
    color: #e74c3c;
}

.icon-tools {
    color: #f1c40f;
}

.icon-other {
    color: #34495e;
}

.icon-robot {
    color: #494949;
}

.mr {
    margin-right: 1%;
}

.languages img {
    vertical-align: middle;
    margin-right: 5px;
    width: 24px;
    height: 16px;
    border: 1px solid #ccc;
    border-radius: 2px;
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
        max-width: 100%;
        margin: 20px 10px;
        padding: 0 10px;
    }

    .left-column {
        flex: none;
        width: 100%;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 30px;
        margin-top: -20px;
        order: 2;
    }

    .right-column>.section.projects-separator {
        border-bottom: 1px solid #ccc;
        margin-bottom: 15px;
        padding-bottom: 15px;
    }

    .left-column img {
        display: none;
    }

    .right-column {
        max-width: 100%;
        order: 1;
    }

    .languages img {
        width: 24px;
        height: 16px;
        display: inline-block;
        border: 1px solid #ccc;
    }
}