.content {
    position: relative;
}

:root {
    --text-color: #1a1c20;
    --link-color: #4a76ee;
    --background-color: #eeeff1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
}

/* CV Download Buttons */
.cv-buttons {
    display: flex;
    gap: 16px;
    margin-top: 18px;
    justify-content: center;
}

.cv-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1a1c20;
    color: #fff;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 17px;
    box-shadow: 0 2px 8px rgba(74, 118, 238, 0.10);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.cv-btn:hover {
    background: #4a76ee;
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 16px rgba(74, 118, 238, 0.18);
    text-decoration: none;
}


/* Style for all anchor links */
a {
    text-decoration: none;
    /* color: var(--link-color); */
    color: inherit;
}

/* BUTTON BACK TO TOP */
#back-to-top {
    position: fixed;
    bottom: 10px;
    right: 32px;
    width: 52px;
    height: 52px;
    background: #4a76ee;
    color: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 1000;
    transition: background 0.2s, transform 0.2s;
}

#back-to-top:hover {
    background: #1a1c20;
    transform: scale(1.1);
}


/* NAVBAR (top, external links only) */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    height: 80px;
}

nav .left a {
    color: var(--text-color);
    font-size: 22px;
    font-weight: 600;
}

nav .right a {
    color: var(--text-color);
    margin: 0 10px;
    font-size: 22px;
}

nav .right a:last-child {
    color: var(--background-color);
    background-color: var(--text-color);
    padding: 5px 15px;
    border-radius: 5px;
}

nav .right a span {
    margin-left: 5px;
}

/* SECTION NAVBAR (vertical sidebar for sections) */
.section-navbar {
    position: fixed;
    top: 20%;
    right: 0;
    transform: translateY(-50%);


    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 0 24px 0;
    z-index: 1200;
    gap: 18px;

}

/* Prevent main content from being hidden behind the section-navbar */
@media (min-width: 601px) {
    main {
        margin-right: 90px;
    }

    #back-to-top {
        right: 75px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        width: 40px;
        height: 40px;
    }
}

.section-navbar a {
    color: var(--text-color);
    font-size: 24px;
    margin: 0;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: background 0s, color .4s, box-shadow 0s, border-radius 0s, padding 0s;
    position: relative;
}

.section-navbar a.active {
    background: #fff;
    color: #4a76ee;
    box-shadow: 0 2px 12px rgba(74, 118, 238, 0.18), 0 0 0 2px #4a76ee33;
    z-index: 20;
    padding: 30px 0 30px 0;
    gap: 18px;
    border-radius: 18px 0 0 18px;
    width: 70px;
}

.section-navbar a:hover {
    background: #fff;
    color: #4a76ee;
    box-shadow: 0 2px 8px rgba(74, 118, 238, 0.18);
}

@media (max-width: 910px) {
    .section-navbar {
        width: 54px;
        padding: 12px 0;
    }

    .section-navbar a {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .navbar .right a {
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    .section-navbar {
        flex-direction: row;
        width: 100vw;
        height: 54px;
        top: unset;
        bottom: 0;
        left: 0;
        right: 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.07);
        padding: 0 8px;
        justify-content: center;
        gap: 8px;
        border-radius: 0;
        transform: none;


        background-color: rgba(255, 255, 255, 0.5);
        /* blanc translucide */
        backdrop-filter: blur(10px);
        /* flou fond */
        -webkit-backdrop-filter: blur(10px);
        /* Safari */

        box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .section-navbar a.active {
    background: #fff;
    color: #4a76ee;
    box-shadow: 0 2px 12px rgba(74, 118, 238, 0.18), 0 0 0 2px #4a76ee33;
    z-index: 20;
    padding: 27px 5px 25px 5px;
    gap: 18px;
    border-radius: 0 18px 0 18px;
    width: 70px;
}

    .section-navbar a {
        margin-bottom: 0;
    }

    main {
        margin-right: 0;
    }

    #back-to-top {
        right: 32px;
    }
}


/* SECTION 1: HERO */

.hero {
    display: flex;
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically */
    gap: 48px;
    /* Space between text and headshot */
    padding: 0 20px;
    margin: 60px 0 100px 0;
}

.hero .text,
.hero .headshot {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center content inside each block */
    justify-content: center;
}

.hero .text {
    flex: none;
    text-align: center;
}

.hero .greeting {
    font-size: 17px;
    color: #535456;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0px;
}

.hero .headline {
    font-size: 25px;
    color: #535456;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1.5px;
}

.hero .headshot {
    flex: none;
    justify-content: center;
}

.hero .headshot img {
    width: 350px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero .text h2 {
    font-size: 45px;
    color: var(--text-color);
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}



/* SECTION 2: about */
.about {
    padding: 0 50px;
    margin-left: auto;
    /* Center the section */
    margin-right: auto;
    /* Center the section */
    max-width: 800px;

    margin-bottom: 100px;
}

.about h2 {
    font-size: 35px;
    text-align: center;
    margin-bottom: 20px;
}

.about .text {
    font-size: 20px;
    text-align: justify;
    margin-top: 20px;
}

/* SECTION 3: Skills */
/* === SECTION 3: SKILLS === */
.skills {
    padding: 0 50px;
    margin-bottom: 100px;
}

.skills h2 {
    font-size: 35px;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-color);
}

/* Container général autour des sous-sections */
.skills-mainbox {
    background: #f7f9fc;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(74, 118, 238, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1.5px solid #e0e4ea;
    padding: 0px 32px 0px;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Chaque sous-section : Hard, Soft, Langues */
.skills-subsection {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: 28px 0 18px;
    border-bottom: 1.5px solid #e0e4ea;
    margin: 0 -32px;
    padding: 28px 32px 18px;
}

.skills-subsection:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Backgrounds dégradés pour chaque sous-section */
.skills-bg-hard {
    background: linear-gradient(90deg, #eaf3ff 0%, #f7f9fc 100%);
    border-radius: 14px 14px 0 0;
}

.skills-bg-soft {
    background: linear-gradient(90deg, #f3f7fa 0%, #eaf6ff 100%);
}

.skills-bg-lang {
    background: linear-gradient(90deg, #f7f9fc 0%, #f5eaff 100%);
    border-radius: 0 0 14px 14px;
}

/* Icône circulaire en début de chaque sous-section */
.skills-icon {
    font-size: 38px;
    color: var(--link-color);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(74, 118, 238, 0.08);
    border: 1.5px solid #e0e4ea;
    flex-shrink: 0;
}

/* Contenu textuel de chaque carte */
.skills-card-content {
    flex: 1;
}

.skills-card-content h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--link-color);
}

/* ==== 1. Hard Skills ==== */
/* Titres des sous-sous-sections */
.hard-subsection h4 {
    margin: 24px 0 12px;
    font-size: 1.1rem;
    color: var(--text-color);
}

/* Conteneur de barres */
.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Label avant chaque barre */
.skill-bar span {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 4px;
}

.skill-percent {
    font-size: 0.93em;
    color: var(--link-color);
    font-weight: 600;
    margin-left: 8px;
    align-self: flex-end;
}

/* Fond de la barre */
.skill-bar .bar {
    width: 100%;
    height: 6px;
    background: #ececec;
    border-radius: 3px;
    overflow: hidden;
}

/* Remplissage animé */
.skill-bar .fill {
    height: 100%;
    background: var(--link-color);
    width: 0;
    transition: width 1s ease;
}

/* Après animation AOS, on laisse le inline style prendre effet */
.skill-bar[data-aos] .fill {
    width: inherit;
}

/* Thématique “Theoretical” en ton plus léger */
.skill-bars.theoretical .fill {
    background: rgba(74, 118, 238, 0.6);
}

/* ==== 2. Soft Skills ==== */
.soft-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    padding: 0;
    margin: 12px 0 0;
}

.soft-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.soft-list li i {
    font-size: 24px;
    color: var(--link-color);
}

/* === SOFT SKILLS ICON GRID === */
.soft-skills-section {
    margin: 60px auto;
    max-width: 700px;
    text-align: center;
}

.soft-skills-section h3 {
    font-size: 1.5rem;
    color: var(--link-color);
    margin-bottom: 24px;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 24px;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.icon-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.icon-item i {
    font-size: 1.8rem;
    color: var(--link-color);
}

.icon-item span {
    font-size: 0.9rem;
    color: var(--text-color);
    text-align: center;
}

/* --- Hard Skills Row: Technical & Theoretical side by side --- */
.hard-skills-row {
    display: flex;
    flex-direction: row;
    gap: 0px;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 18px;
}

.hard-col {
    flex: 2 1 0;
    min-width: 0;
}

.hard-col.technical {
    margin-right: 18px;
}

.hard-col.theoretical {
    flex: 3 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 18px;
}

.circular-skills {
    display: flex;
    flex-direction: row;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 12px;
}

.circular-skill {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90px;
}

.circular-progress {
    position: relative;
    width: 72px;
    height: 72px;
    margin-bottom: 8px;
}

.circular-progress svg {
    width: 72px;
    height: 72px;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: #e0e4ea;
    stroke-width: 3.5;
}

.circle {
    fill: none;
    stroke: var(--link-color);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-dasharray: 100, 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 1s ease;
}

.circular-progress[data-percent="90"] .circle {
    stroke-dasharray: 100;
    stroke-dashoffset: 10;
}

.circular-progress[data-percent="80"] .circle {
    stroke-dasharray: 100;
    stroke-dashoffset: 20;
}

.circular-progress[data-percent="75"] .circle {
    stroke-dasharray: 100;
    stroke-dashoffset: 25;
}

.circular-progress[data-percent="70"] .circle {
    stroke-dasharray: 100;
    stroke-dashoffset: 30;
}

.circular-progress[data-percent="60"] .circle {
    stroke-dasharray: 100;
    stroke-dashoffset: 40;
}

.circular-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.1rem;
    color: var(--link-color);
    font-weight: 600;
}

.circular-skill-name {
    margin-top: 2px;
    font-size: 0.95rem;
    color: var(--text-color);
    text-align: center;
}

/* ==== 3. Languages ==== */
.lang-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 20px 0 20px 0;
    margin: 12px 0 0;
    justify-content: center;
}

.lang-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    margin-bottom: 12px;
    padding-left: 0;
    justify-content: flex-start;
    width: 100%;
    color: var(--text-color);
}

.lang-list .flag {
    font-size: 1.4rem;
}

.lang-list small {
    font-size: 1.05em;
    color: #555;
    margin-left: 8px;
}

.lang-list .fi {
    font-size: 2.2em;
    line-height: 1;
    margin-right: 10px;
    min-width: 2.2em;
    text-align: left;
}

.lang-list span {
    font-size: 1.15em;
    font-weight: 600;
    text-align: left;
}






/* SECTION 4 & 5: WORK EXPERIENCE + EDUCATION */
/* Conteneur global */
.content {
    margin: 20px;
    padding: 20px;
    padding-top: 18px;
    /* reduced to bring title higher */
    padding-right: 90px;
    background-color: #f7f9fc;
    /* matches publications and interests */
    position: relative;
    border-radius: 12px;
    /* more rounded, matches other cards */
    border: 1px solid #e0e4ea;
    /* soft, light border */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    /* subtle shadow for depth */
}

.content p {
    letter-spacing: 1px;
    margin-top: 10px;
}

.content h2 {
    color: darkblue;
    letter-spacing: 2px;
}

.work-experience {

    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.work-experience h2 {
    font-size: 35px;
    text-align: center;
    margin-bottom: 30px;
}

.experience-cells {
    position: relative;
    /* Ajoute cette ligne */
    max-width: 1200px;
    margin: 0 auto;
}

.xp-list {
    margin: 10px 0;
    padding-left: 1.2em;
}

.xp-list li {
    margin-bottom: 0.5em;
    line-height: 1.4;
}




.experience-cells::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 6px;
    height: 100%;
    background-color: #d3d3d3;
    border-radius: 6px;
    margin-left: -3px;
    /* Centrer la ligne */
}

.container {
    padding: 10px 10px;
    position: relative;

    z-index: 10;
    width: 50%;
}

.container[data-aos][data-aos^="fade-"] .content,
.container .content {
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
}

.container:hover .content {
    box-shadow: 0 4px 24px rgba(74, 118, 238, 0.15), 0 1.5px 6px rgba(0, 0, 0, 0.06);
    background: #f0f6ff;
    transform: translateY(-4px) scale(1.02);
    cursor: pointer;
}

.container:hover::after {
    background-color: #4a76ee;
    border-color: #1a1c20;
    box-shadow: 0 0 12px #4a76ee55;
    transition: background 0.2s, border 0.2s, box-shadow 0.2s, transform 0.2s;
    transform: translateY(-4px);
}

/*TODO: Fix the circle position*/
/* Circle */
.container::after {
    content: "";
    position: absolute;

    width: 20px;
    height: 20px;

    right: -17px;

    top: 45px;
    left: 100%;
    margin-left: -14px;
    background-color: #d3d3d3;
    border-radius: 50%;
    border: 4px solid darkblue;

    z-index: 1;
    transition: background 0.2s, border 0.2s, box-shadow 0.2s, transform 0.2s;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.right::after {
    left: 0px;
}



.left .content::before {
    content: "";
    height: 0px;
    position: absolute;
    top: 21px;
    width: 0px;
    z-index: 1;
    left: 100%;
    border: 1px solid black;
    border-width: 10px 0px 10px 10px;
    border-color: transparent transparent transparent black;
}

.right .content::before {
    content: "";
    height: 0px;
    position: absolute;
    top: 21px;
    width: 0px;
    z-index: 1;
    right: 100%;
    border: 1px solid black;
    border-width: 10px 10px 10px 0px;
    border-color: transparent black transparent transparent;
}


.education {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
}

.education h2 {
    font-size: 35px;
    text-align: center;
    margin-bottom: 30px;
}

.education .text {
    font-size: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.cell-title {
    font-size: 22px;
    color: darkblue;
    margin-bottom: 8px;
    letter-spacing: 1px;
    margin-top: 2px;
    /* move title higher in the cell */
}

.edu-location {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 6px;
    color: #222;
}

.edu-location a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s, text-decoration 0.2s;
}

.edu-location a:hover {
    color: #1a1c20;
    text-decoration: underline;
}

.entity-logo-topright {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: scale-down;
    background: #fff;
    border: 2px solid #e0e4ea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 2;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.entity-logo-topright:hover {
    box-shadow: 0 4px 16px rgba(74, 118, 238, 0.18), 0 2px 8px rgba(0, 0, 0, 0.10);
    transform: scale(1.08) rotate(-4deg);
    border-color: #4a76ee;
    cursor: pointer;
}

/* FAROS project link hover effect */
a[href*="h2020faros.eu"] {
    color: #0077cc;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s, text-decoration 0.2s;
}

a[href*="h2020faros.eu"]:hover {
    color: #1a1c20;
    text-decoration: underline;
}


/* SECTION 6: PUBLICATIONS */
/* === Publications Section === */
/* SECTION 6: Publications */
.publications {
    max-width: 900px;
    margin: 100px auto;
    padding: 0 20px;
}





.publications h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
}

.publications-box {
    background: #f7f9fc;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 30px 20px;
    max-height: 60vh;
    overflow-y: auto;
    position: relative;
}

.pub-year {
    background: #4a76ee;
    color: #fff;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 20px;
    width: 100%;
    /* Étend sur toute la largeur */
    box-sizing: border-box;
    text-align: left;
    /* ou center si tu veux centrer le texte */
}

.pub-type h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    color: #1a1c20;
}

.pub-item {
    background: #fff;
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 18px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pub-title {
    font-size: 18px;
    color: #4a76ee;
    font-weight: 600;
    text-decoration: none;
}

.pub-title:hover {
    text-decoration: underline;
}

.pub-authors,
.pub-ref {
    font-size: 15px;
    color: #444;
}

.pub-links {
    margin-top: 6px;
    display: flex;
    gap: 12px;
}

.pub-links a {
    color: #4a76ee;
    font-size: 20px;
    transition: color 0.2s;
}

.pub-links a:hover {
    color: #1a1c20;
}

/* SECTION 7: Interests */
.interests {
    max-width: 900px;
    margin: 100px auto 200px auto;
    padding: 0 20px;
}

.interests h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
}

.interests-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 32px;
    justify-items: center;
    align-items: center;
}

/* SECTION 8: Footer */
.footer {
    width: 100%;
    margin-top: 60px;
    text-align: center;
    position: relative;
}

.footer-line {
    width: 200px;
    height: 2px;
    background: #4a76ee;
    margin: 0 auto 16px auto;
    border-radius: 2px;
}

.footer-text {
    font-size: 24px;
    color: #1a1c20;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Responsive : repasse en flex sur mobile */
@media (max-width: 850px) {
    .interests-list {
        display: flex;
        flex-wrap: wrap;
        gap: 24px;
        justify-content: center;
        align-items: center;
    }
}

.interest {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: #f7f9fc;
    border-radius: 10px;
    padding: 24px 28px 10px 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    min-width: 120px;
    width: 100%;
    max-width: 180px;
}

.interest:hover {
    box-shadow: 0 4px 16px rgba(74, 118, 238, 0.18), 0 2px 8px rgba(0,0,0,0.10);
    background: #eaf3ff;
    transform: translateY(-4px) scale(1.04);
}

.interest i {
    font-size: 36px;
    color: #4a76ee;
}

.interest image {
    font-size: 36px;
    color: #4a76ee;
}

.interest span {
    font-size: 18px;
    color: #1a1c20;
    font-weight: 500;
    text-align: center;
}

.interest img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
}

.interest i {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
    font-size: 50px;
}

/* ====================================== */
/* REACTIVE DESIGN */
@media (max-width: 860px) {

    /* SECTION 1: HERO */

    .hero .text h2 {
        font-size: 35px;
    }

    /* SECTION 1: HERO */
    .hero {
        flex-direction: column;
    }

}




@media (max-width: 740px) {

    

    .hero .headshot img {
        width: 250px;
    }

}

@media (max-width: 800px) {

    /*NAVBAR*/
    nav {
        padding: 0 20px;
    }

    nav .left a {
        font-size: 22px;
    }

    nav .right a {
        font-size: 22px;
    }

    nav .right a:last-child {
        color: var(--text-color);
        background-color: transparent;
        padding: 0;
    }

    nav .right a span {
        display: none;
    }

    @media (max-width: 600px) {

        /*NAVBAR*/
        nav {

            padding: 0 20px;
        }

        nav .right a {
            font-size: 22px;
        }

        nav .right a:last-child {
            color: var(--text-color);
            background-color: transparent;
            padding: 0;
        }

        nav .right a span {
            display: none;
        }

        #back-to-top {
        bottom: 60px;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);

        font-size: 20px;
        width: 35px;
        height: 35px;

        background-color: transparent;
        color: blue

    }


        /* SECTION 1: HERO */
        .hero {
            padding: 0 20px;
        }

        .hero .text h2 {
            font-size: 30px;
        }

        /* SECTION 2: ABOUT */
        .about {
            padding: 0 20px;
        }

        .about text {
            font-size: 16px;
        }

        .about p{
            font-size: 16px;
        }

        .about h2 {
            font-size: 30px;
        }

        /* SECTION 3: SKILLS */
        .skills .skills-cells .skill-cell span {
            font-size: 16px;
        }

        .skills h2 {
            font-size: 30px;
        }

        /* SECTION 4: WORK EXPERIENCE */

        .experience-cells::after {
            left: 30px;
        }

        .container {
            width: 100%;
            padding-left: 50px;
            padding-right: 25px;
        }

        .left .content::before {
            content: "";
            height: 0px;
            position: absolute;
            top: 21px;
            width: 0px;
            z-index: 1;
            right: 100%;
            left: unset;
            border: 1px solid black;
            border-width: 10px 10px 10px 0px;
            border-color: transparent black transparent transparent;
        }

        .right .content::before {
            content: "";
            height: 0px;
            position: absolute;
            top: 21px;
            width: 0px;
            z-index: 1;
            right: 100%;
            border: 1px solid black;
            border-width: 10px 10px 10px 0px;
            border-color: transparent black transparent transparent;
        }

        .left::after,
        .right::after {
            left: 30px;
        }

        .right {
            left: 0%;
        }

    }
}


@media (max-width: 450px) {

        /* Mobile language list: flag on top, name below, level below name */
    .lang-list li {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        width: 100%;
        margin-bottom: 18px;
        padding-left: 0;
        font-size: 1rem;
        background: none;
        box-sizing: border-box;
    }

    .lang-list small {
        margin-left: 0;
    }

    #back-to-top {
        right: 5px;
        
    }

}







































