:root {
    --main-font-color: #024d5a;
    --second-text-color: #4b5b63;
    --main-bg-color: #024d5a;
    --title-color: #024d5a;
    --level-title-color: hsl(14, 73%, 94%);
    --advanced-bg: hsla(284, 61%, 74%, 1);
    --intermediate-bg: hsl(171, 44%, 74%);
    --basic-bg: hsla(22, 62%, 76%, 1);
    --card-border-color: rgba(0, 0, 0, 0.15);
}
html {
    scroll-behavior: smooth;
}
* {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: fixed, linear-gradient(
            to bottom,
            rgba(252, 198, 208, 0.6),
            rgba(194, 170, 252, 0.8),
            rgba(166, 255, 196, 0.6)

    );
}


/* Transition de la page */
.page-content {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.page-content.visible {
    opacity: 1;
}

.container-titre {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.grand-titre {
    text-align: center;
    color: var(--main-font-color);
    margin-bottom: 10px;
    font-size: 7em;
    font-weight: bold;
}

/* --- Typewriter --- */
.animation {
    width: 100%;
    color: var(--second-text-color);
    display: block;
    text-align: center;
    font-size: 3.2em;
    font-weight: lighter;
    margin-bottom: 0.5em;
    overflow-wrap: break-word; /* Permet de couper le texte si trop long */
    word-wrap: break-word;
}

.text {
    display: inline; /* obligatoire pour le span */
}

.btn-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
    margin-top: 1.5em;
}

/* Base pour les boutons de la homepage */
.button-33 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 9px 24px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.90rem;
    cursor: pointer;
    border: 2px solid var(--main-font-color);
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    text-decoration: none;
}

/* Me découvrir = style view-btn */
.me-decouvrir-btn {
    background-color: var(--advanced-bg);
    color: var(--main-font-color);
}

.me-decouvrir-btn::after {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--main-font-color);
    border-radius: 40px;
    transition: all 0.4s ease;
    z-index: -1;
}

.me-decouvrir-btn:hover {
    color: beige;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.me-decouvrir-btn:hover::after {
    top: 0;
}

/* Mes réalisations = style github-btn */
.mes-realisations-btn {
    background-color: var(--intermediate-bg);
    color: var(--main-font-color);
}

.mes-realisations-btn::after {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--main-font-color);
    border-radius: 40px;
    transition: all 0.4s ease;
    z-index: -1;
}

.mes-realisations-btn:hover {
    color: beige;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.mes-realisations-btn:hover::after {
    top: 0;
}
/* Media Queries pour les petits écrans */
@media (max-width: 768px) {
    .grand-titre {
        font-size: 4.5em;
        line-height: 1.1em;
    }

    .animation {
        font-size: 2em;
    }

    .btn-container {
        display: flex;
        justify-content: space-between; /* Les boutons côte à côte avec un espace entre */
        flex-wrap: wrap; /* Si les boutons ne tiennent pas, ils passeront à la ligne */
        gap: 1em; /* Espacement entre les boutons */
    }

    .button-33 {
        font-size: 14px; /* Réduction de la taille du texte des boutons */
        padding: 10px 20px;
        flex: 1 1 45%; /* Les boutons prennent 45% de la largeur et s'ajustent */
    }
}

@media (max-width: 480px) {
    .grand-titre {
        font-size: 3.5em;
        line-height: 1.15em;
    }

    .animation {
        font-size: 1.5em;
    }

    .btn-container {
        display: flex;
        justify-content: space-between; /* Les boutons côte à côte avec un espace entre */
        flex-wrap: wrap; /* Permet aux boutons de passer à la ligne si nécessaire */
        gap: 1em; /* Espacement entre les boutons */
    }

    .button-33 {
        font-size: 14px; /* Réduction de la taille du texte des boutons */
        padding: 8px 20px;
        flex: 1 1 45%; /* Les boutons prennent 45% de la largeur et s'ajustent */
    }
}

@media (max-width: 320px) {
    .grand-titre {
        font-size: 3em;
    }

    .animation {
        font-size: 1.2em;
    }
}


body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/*about*/


.presentation {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 4em;
}

.presente {
    text-align: left;
    margin-top: 1em;
    font-family: "Poppins ExtraBold";
    font-size: 3em;
    padding: 0 3em;
    color: var(--main-font-color);
}

.homepage-premier {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1em;
}

.moi-homepage {
    display: grid;
    grid-template-columns: 1fr 2fr;
}

.premier-parag {
    padding: 0 3em;
    text-align: justify;
    font-size: 1.2em;
    line-height: 1.3em;
    margin-top: 1em;
    color: var(--second-text-color);
}

.img {
    display: flex;
    flex-direction: column; /* mettre les éléments en colonne */
    justify-content: center;
    align-items: center;
}

.image {
    border-radius: 50%;
    width: 17em;
    box-shadow: 7px 5px 10px black;
    margin-top: 4em;
}

/* --- Competence Section --- */
.competence-container {
    max-width: 900px;
    margin: 3em auto;
    padding: 3em;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.titre-competence {
    text-align: center;
    font-size: 2.5em;
    color: var(--title-color); /* Bleu */
    margin-bottom: 2em;
    font-weight: bold;
}

.category {
    margin-bottom: 2.5em;
    padding: 2em;
    border-radius: 25px;
    box-shadow: 0 4px 10px var(--card-border-color);
}

.advanced-category {
    background-color: var(--advanced-bg);
}

.intermediate-category {
    background-color: var(--intermediate-bg);
}

.basic-category {
    background-color: var(--basic-bg);
}

.titre-language {
    margin: 0 0 1.5em 0;
    font-size: 1.8em;
    color: var(--main-font-color);
    text-transform: uppercase;
}

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

.competence {
    padding: 0.6em 1em;
    border-radius: 25px;
    text-align: center;
    font-size: 1.1em;
    font-weight: bold;
    color: beige; /* Beige */
    background-color: var(--main-bg-color); /* Bleu */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.competence:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* --- Formations Section --- */
.menu-container {
    display: flex;
    justify-content: center;
    margin-top: 2em;
}

.tab-button {
    padding: 0.8em 2em;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.2s;
}


.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.year {
    font-weight: bold;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .homepage-premier {
        flex-direction: column;
        text-align: center;
    }

    .moi-homepage {
        grid-template-columns: 1fr;
        margin: 0;
    }

    .image {
        width: 12em;
        margin-top: 2em;
    }

    .presente {
        font-size: 2.5em;
        padding: 0 1.5em;
    }

    .premier-parag {
        font-size: 1em;
        padding: 0 1.5em;
    }

    .competence-container {
        padding: 2em;
    }

    .skills {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .competence {
        font-size: 1em;
        padding: 0.5em 0.8em;
    }

    .tab-button {
        font-size: 1em;
        padding: 0.8em 1.5em;
    }

    .tab-content {
        padding: 1em;
    }
}

@media (max-width: 480px) {
    .presente {
        font-size: 2em;
        padding: 0 1em;
    }

    .premier-parag {
        font-size: 0.9em;
        padding: 0 1em;
    }

    .image {
        width: 10em;
    }

    .competence-container {
        padding: 1.5em;
    }

    .competence {
        font-size: 0.9em;
        padding: 0.5em;
    }
}
/* Formations et Expériences Section */
.formations-experiences {
    margin: 4em auto;
    padding: 2em;
    max-width: 900px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.1); /* Transparence */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    color: var(--second-text-color); /* Couleur secondaire pour le texte */
}

.section-title {
    text-align: center;
    font-size: 2.2em;
    color: var(--main-font-color);
    margin-bottom: 1.5em;
    font-weight: bold;
    border-bottom: 3px solid var(--level-title-color);
    display: inline-block;
    padding-bottom: 0.3em;
}
.tab-content ul {
    list-style-type: none;
    padding: 0;
}

.tab-content li {
    margin-bottom: 2em;
    padding: 1.5em;
    border-radius: 15px;
    transition: transform 0.2s;
    color: var(--main-font-color);
}


/* Menu Tabs */
.menu-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2em;
}

.menu {
    display: flex;
    gap: 2em;
}

.tab-button {
    padding: 0.8em 2em;
    border: none;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.2); /* Transparence */
    color: var(--second-text-color); /* Texte couleur secondaire */
    cursor: pointer;
    box-shadow: 1px 4px 6px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s, transform 0.2s;
}

.tab-button.active {
    background-color: var(--advanced-bg); /* Bleu pastel foncé */
    color: white;
    transform: scale(1.05);
}

.tab-button:hover {
    background-color: var(--basic-bg); /* Vert pastel foncé */
    color: white;
}

/* Contenu des catégories */
.content {
    width: 100%;
}

.tab-content {
    display: none;
    font-size: 1.2em;
    line-height: 1.8em;
}

.tab-content.active {
    display: block;
}

.tab-content ul {
    list-style-type: none;
    padding: 0;
}

.tab-content li {
    margin-bottom: 1.5em;
    padding: 1em;
    background: var(--intermediate-bg);
    border-radius: 25px;

    /* Ombre beaucoup plus légère */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);

    transition: all 0.3s ease;
}

/* Hover plus smooth */
.tab-content li:hover {
    transform: translateY(-3px) scale(1.01);

    /* Ombre subtile + propre */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);

    /* petit effet visuel en plus */
    background: var(--advanced-bg);
}

.year {
    font-weight: bold;
    color: var(--title-color); /* Bleu principal */
    margin-right: 1em;
}

.certif-link {
    text-decoration: none;
    color: var(--main-font-color);
    font-weight: bold;
    position: relative;
    transition: color 0.3s ease;
}

/* petit underline stylé */
.certif-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background: var(--main-font-color);
    transition: width 0.3s ease;
}

.certif-link:hover {
    color: var(--title-color);
}

.certif-link:hover::after {
    width: 100%;
}

/* Responsiveness */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5em; /* Réduction de la taille du titre */
    }

    .menu {
        flex-direction: column;
        gap: 1em;
    }

    .tab-button {
        padding: 0.8em 1.5em;
        font-size: 1em;
    }

    .tab-content li {
        font-size: 1em;
        padding: 0.8em;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.2em; /* Réduction supplémentaire pour les petits écrans */
    }

    .tab-button {
        padding: 0.9em 1.8em;
        font-size: 0.9em;
    }

    .tab-content li {
        font-size: 0.9em;
        padding: 0.6em;
    }

    .competence {
        font-size: 0.9em;
    }

    .img {
        display: flex;
        justify-content: center;
        margin-bottom: 2em;
    }

    .image {
        max-width: 100%; /* Assurez-vous que l'image ne dépasse pas la largeur de l'écran */
    }

    .moi-homepage {
        display: block;
        text-align: center;
    }

    .homepage-premier {
        padding: 0 1em;
    }
}

@media (max-width: 320px) {
    .section-title {
        font-size: 1.1em; /* Pour les très petits écrans */
    }

    .tab-button {
        font-size: 0.8em;
    }

    .tab-content li {
        font-size: 0.8em;
    }
}


/*!*portfolio*!*/
.realisations {
    padding: 2rem;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    margin-top: 2em;
}


.menu-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.menu {
    margin-bottom: 2rem;
}



.content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-content {
    display: none;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: space-between;
}

.tab-content.active {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    width: 350px;
    margin: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: var(--intermediate-bg);
    transition: 0.4s ease;
    color: var(--main-font-color)
}

.card:hover{
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background-color: var(--basic-bg);
}

.card img {
    width: 90%;
    height: 200px;
    object-fit: cover;
    margin-top: 1em;
    border-radius: 10px;
}

.card-title {
    color: var(--main-font-color);
    font-weight: bold;
    padding: 1rem;
    text-align: center;
    font-size: 1.2rem;
}

.btn {
    background-color: var(--main-font-color);
    color: beige;
    font-weight: bold;
    font-size: 1em;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    width: 200px;
    border-radius: 10px;
    margin-bottom: 1em;
    transition: scale 0.3ms ease-in-out;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Media Queries pour la responsivité */
@media (max-width: 768px) {
    .menu {
        flex-direction: column;
    }

}

/*popup*/

.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.popup {
    background-color: var(--basic-bg);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 3em;
    font-size: 16px;
    max-width: 800px;
    max-height: 80vh;
    width: 90%;
    position: relative;
    overflow-y: auto;
}

.popup .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

.popup h2 {
    color: var(--title-color);
    margin-bottom: 10px;
}

.popup p {
    color: var(--second-text-color);
    margin: 10px 0;
    line-height: 1.6;
}

.popup .tools-used, .view-project {
    margin-top: 15px;
    font-size: 0.9em;
    color: var(--main-font-color);
    font-weight: bold;
}

@media (max-width: 480px) {
    .popup {
        margin: 1em;
    }

}

.cv-img{
    width: 40%;
    margin-top: 10em;
    margin-bottom: 4em;
    box-shadow:  0 0 2em #000000;
}

.cv-img{
    width: 40%;
    margin-top: 10em;
    margin-bottom: 4em;
    box-shadow:  0 0 2em #070707;
    display : block;
}

.cv{
    display: flex;
    justify-content: center;
    align-items: center;
}
.telecharge{
    display: flex;
    justify-content: center;
    align-items: center;
}



.cv-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    padding: 1em 3em; /* un peu réduit */
    margin: 0 0 4em 0;

    border-radius: 50px;
    background-color: var(--basic-bg);
    box-shadow: 1px 4px 6px rgba(0, 0, 0, 0.3);

    font-size: 1rem;
    font-weight: bold;
    color: var(--main-font-color);

    overflow: hidden;
    position: relative;
    z-index: 0;

    cursor: pointer;
    text-align: center;
    white-space: nowrap; /* évite retour à la ligne */
}

.cv-btn::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--advanced-bg);
    border-radius: 50% 50% 0 0;
    transition: ease-in-out .7s;
    z-index: -1;
}

.cv-btn:hover::before {
    top: 0;
    border-radius: 0;
}

.cv-btn:hover {
    color: var(--main-font-color);
}

/*responsive CV*/
@media screen and (max-width: 1025px){
    .cv-img{
        width: 60%;

    }
}
.cardss-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 1rem;
    align-items: start; /* clé : chaque carte s'aligne en haut indépendamment */
}

.cards {
    width: 300px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    background-color: var(--intermediate-bg);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.3s ease;
}

.cards:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    background-color: var(--basic-bg);
}

.card-header {
    padding: 1rem 1.2rem;
    text-align: center;
}

.card-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--main-font-color);
    margin: 0;
}

.icon-passion {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
    display: block;
}

.card-body {
    padding: 0 1.2rem;
    color: var(--second-text-color);
    font-size: 0.92rem;
    line-height: 1.6;
}

.short-text {
    display: block;
}

.cards.active .short-text {
    display: none;
}

.full-text {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.4s ease;
}

.cards.active .full-text {
    max-height: 400px;
    opacity: 1;
}

.card-footer {
    padding: 1rem 1.2rem;
    display: flex;
    justify-content: center;
}

.toggle-btn {
    padding: 7px 20px;
    border-radius: 50px;
    border: 2px solid var(--main-font-color);
    background: transparent;
    color: var(--main-font-color);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.toggle-btn:hover {
    background: var(--main-font-color);
    color: beige;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cards { width: 90%; }
}
/* container boutons */

.popup-buttons{
    display:flex;
    justify-content:center;
    gap:20px;
    margin-top:25px;
}

/* style général */

.project-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:12px 24px;
    border-radius:50px;
    text-decoration:none;
    font-weight:bold;
    font-size:0.95rem;
    transition:all 0.3s ease;
}

/* Bouton Voir Projet */
.view-btn {
    position: relative;
    padding: 8px 20px; /* plus petit */
    border-radius: 40px; /* arrondi élégant */
    border: 2px solid var(--main-font-color);
    background-color: var(--advanced-bg);
    color: var(--main-font-color);
    font-weight: bold;
    font-size: 0.95em;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
}

.view-btn::after {
    content: "";
    position: absolute;
    top: -100%; /* départ au-dessus */
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--main-font-color);
    border-radius: 40px;
    transition: all 0.4s ease;
    z-index: -1;
}

.view-btn:hover {
    color: beige;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.view-btn:hover::after {
    top: 0; /* remplit de haut en bas */
}

/* Bouton GitHub */
.github-btn {
    position: relative;
    padding: 8px 20px; /* plus petit */
    border-radius: 40px;
    border: 2px solid var(--main-font-color);
    background-color: var(--intermediate-bg);
    color: var(--main-font-color);
    font-weight: bold;
    font-size: 0.95em;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
}

.github-btn::after {
    content: "";
    position: absolute;
    top: -100%; /* départ au-dessus */
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--main-font-color);
    border-radius: 40px;
    transition: all 0.4s ease;
    z-index: -1;
}

.github-btn:hover {
    color: beige;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.github-btn:hover::after {
    top: 0; /* remplit de haut en bas */
}


/* Croix popup stylée simple */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: var(--main-font-color); /* Bleu de la typo */
    color: var(--basic-bg); /* Croix contrastante */
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.close-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    color: var(--basic-bg); /* Beige/contraste sur hover si tu veux */
}
.btn{
    background-color: var(--main-font-color);
    color: beige;
    font-weight:bold;
    font-size:1em;
    border:none;
    padding:10px 20px;
    cursor:pointer;
    border-radius:30px;
    margin-bottom:1em;
    transition:all 0.3s ease;
}

.btn:hover{
    transform:translateY(-3px) scale(1.05);
    box-shadow:0 6px 18px rgba(0,0,0,0.25);
}

.popup{
    padding:35px;
    border-radius:20px;
    max-width:500px;
    width:90%;
    position:relative;
    animation:popupFade 0.4s ease;
}

@keyframes popupFade{
    from{
        transform:scale(0.8);
        opacity:0;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}

.popup em{
    font-size: 0.9rem;
}

.btn-container{
    display: flex;
    justify-content: center;
    margin-top: 2em;
}

.me-connaitre-btn {
    background-color: var(--advanced-bg);
    color: beige;
    font-size: 0.9em;
    position: relative;
}

.me-connaitre-btn::before {
    background-color: var(--intermediate-bg);
}

.me-connaitre-btn:hover {
    color: beige;
}


.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--main-font-color);
    color: beige;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
    background-color: var(--advanced-bg);
    color: var(--main-font-color);
}

.lang-btn {
    padding: 6px 16px;
    border-radius: 50px;
    border: 2px solid var(--main-font-color);
    background: transparent;
    color: var(--main-font-color);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background-color: var(--main-font-color);
    color: beige;
    transform: translateY(-2px);
}

.lang-btn.active {
    background-color: var(--advanced-bg);
    color: var(--main-font-color);
}