/**************************************************************
        * Nom du projet : Mon Portfolio Professionnel
        * Auteur       : Alain DA-ROS
        * Description  : Feuille de style principale
**************************************************************/


/* ================================
 * Section : Éléments Généraux
 * Description : Styles fixes
 * Description 2 : Réinitialisation des styles
================================ */

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}





/* ================================
 * Section : Animation
 * Description : Animations du site
================================ */

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}





/* ================================
 * Section : Header
 * Description : Styles du header
================================ */

/* Style général du header */

header {
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    left: 0;
    right: 0;
    z-index: 10;
    padding-left: 32px;
    padding-right: 32px;
}

/* Style "JOUR" */

.headerjour {
    background-color: #E5DCD2;
    color: #485E6B;
    border-bottom: solid 2px #CDB79E;
}

/* Style "NUIT" */

.headernuit {
    background-color: #222B30;
    color: #EAEFF2;
    border-bottom: solid 2px #394A53;
}

/* --------------------------------
 Style pour les liens
-------------------------------- */

/* Style "JOUR" */

.ajour {
    color: #485E6B;
}

/* Style "NUIT" */

.anuit {
    color: #EAEFF2;
}

/* --------------------------------
 Style de la navigation du header
-------------------------------- */

/* Style général */

.Navigation {
    display: flex;
    align-items: center;
    gap: 48px;
}


.Navigationjour {
    background-color: #E5DCD2;
}

.Navigationnuit {
    background-color: #222B30;
}

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

/* Styles pour le menu hamburger */

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 20;
}

.hamburgerjour {
    color: #485E6B;
}

.hamburgernuit {
    color: #EAEFF2;
}

.hamburger span {
    width: 25px;
    height: 3px;
    transition: all 0.3s;
}

.spanjour {
    background-color: #485E6B;
}

.spannuit {
    background-color: #EAEFF2;
}


.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Media Queries pour les écrans de taille maximale de 720px */

@media (max-width: 720px) {
    .Navigation {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100%;
        text-align: center;
        gap: 16px;
        padding: 64px 0 16px 0;
        /* Ajustement du padding pour commencer plus bas */
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
        transition: right 0.3s ease-in-out;
    }

    .hamburger {
        display: flex;
    }

    .Navigation.active {
        display: flex;
        right: 0;
    }

    .aheader h2 {
        font-size: 18px;
        /* Adjusting font size for smaller screens */
    }
}





/* ================================
 * Section : Body
 * Description : Styles du body
================================ */

/* Style général du body */

body {
    margin: 0;
}

/* Style pour le mode jour */

.bodyjour {
    background-color: #F3F1EE;
}

/* Style pour le mode nuit */

.bodynuit {
    background-color: #151A1D;
}





/* ================================
 * Section : DarkMode
 * Description : Bouton de changement de style
================================ */

/* Taille de l'icon pour le changement de style */

.darkmode {
    width: 50px;
    height: 50px;
    cursor: pointer;
}

/* Icon pour le style "JOUR" */

.jour {
    content: url(/SVG/dark-mode1.svg);
}

/* Icon pour le style "NUIT" */

.nuit {
    content: url(/SVG/dark-mode2.svg);
}





/* ================================
 * Section : Page d'accueil
 * Description : Styles pour la page d'accueil
================================ */

/* --------------------------------
 Style de la page d'accueil du site 
-------------------------------- */

/* Style général de la page d'accueil du site */

.Home {
    display: flex;
    justify-content: space-around;
    align-items: center;
    min-height: 100vh;
    z-index: 1;
}

@media screen and (max-width: 900px) {
    .Home {
        display: flex;
        flex-direction: column;
        padding-top: 16px;
    }
}

@media screen and (max-width: 720px) {
    .Home {
        display: flex;
        flex-direction: column;
        padding-top: 16px;
    }
}

/* Style "JOUR" du background de la page d'accueil */

.Homejour {
    color: #627D8D;
}

/* Style "Nuit" du background de la page d'accueil */

.Homenuit {
    color: #6A7F8B;
}

/* --------------------------------
 Style pour la div qui contient les éléments textuels 
-------------------------------- */

.Hometexte {
    display: flex;
    flex-direction: column;
}

/* --------------------------------
 Style pour le H1 de la page d'accueil 
-------------------------------- */

.h1Home {
    font-size: 75px;
    margin: 0;
    transform: translateX(-10px);
}

@media screen and (max-width: 900px) {
    .h1Home {
        font-size: 50px;
        margin: 0;
        transform: translateX(-5px);
    }
}

@media screen and (max-width: 720px) {
    .h1Home {
        font-size: 25px;
        margin: 0;
        transform: translateX(-5px);
    }
}

/* --------------------------------
 Styles pour une partie du H1 de la page d'accueil 
-------------------------------- */

/* Style général de la partie du H1 */
.h2Home {
    margin: 0;
    font-size: 150px;
    transform: translateX(100px);
}

@media screen and (max-width: 900px) {
    .h2Home {
        margin: 0;
        font-size: 75px;
        transform: translateX(5px);
    }
}

@media screen and (max-width: 720px) {
    .h2Home {
        margin: 0;
        font-size: 50px;
        transform: translateX(5px);
    }
}

/* Style "JOUR" */

.h2Homejour {
    background: #627D8D;
    background: linear-gradient(to right, #627D8D 0%, #485E6B 30%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Style "NUIT" */

.h2Homenuit {
    background: #6A7F8B;
    background: linear-gradient(to right, #6A7F8B 0%, #A6B6C0 30%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* -------------------------------- 
 Style pour le H2 de la page d'accueil 
-------------------------------- */

.h3Home {
    font-size: 50px;
    margin: 0;
    transform: translateX(50px);
}

@media screen and (max-width: 900px) {
    .h3Home {
        margin: 0;
        font-size: 25px;
        transform: translateX(0);
    }
}

@media screen and (max-width: 720px) {
    .h3Home {
        margin: 0;
        font-size: 15px;
        transform: translateX(0);
    }
}

/* --------------------------------
 Styles pour la photo de profil de la  page d'accueil 
-------------------------------- */

/* Style général de la photo de profil */

.photoprofil {
    max-height: 600px;
    border-radius: 100%;
    justify-content: center;
}

@media screen and (max-width: 900px) {
    .photoprofil {
        max-height: 450px;
    }
}

@media screen and (max-width: 720px) {
    .photoprofil {
        max-height: 300px;
    }
}

/* Style "JOUR" */

.photoprofiljour {
    border: solid 4px #CDB79E;
}

/* Style "NUIT" */

.photoprofilnuit {
    border: solid 4px #2F3C43;
}

/* --------------------------------
 Styles pour la partie des réseaux sociaux de la page d'accueil 
-------------------------------- */

/* Style général de la partie */

.reseaux {
    display: flex;
    margin-top: 16px;
    gap: 16px;
    transform: translateX(80px);
}

@media screen and (max-width: 900px) {
    .reseaux {
        display: flex;
        flex-direction: column;
        justify-content: start;
        transform: translateX(0px);
    }
}

@media screen and (max-width: 720px) {
    .reseaux {
        display: flex;
        flex-direction: column;
        justify-content: start;
        transform: translateX(0px);
    }
}

/* --------------------------------
 Styles des boutons pour les réseaux sociaux
-------------------------------- */

/* Style général des boutons */

.reseauxsociaux {
    cursor: pointer;
    padding: 4px 32px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 25px;
}

@media screen and (max-width: 720px) {
    .reseauxsociaux {
        padding: 2px 16px;
        font-size: 15px;
    }
}

/* Style "JOUR" */

.reseauxsociauxjour {
    background-color: #DFD2C4;
    border: solid 2px #CDB79E;
    color: #485E6B;
}

.reseauxsociauxjour:hover {
    background-color: #5B717E;
    border: solid 2px #2F3C43;
    color: #EAEFF2;
}


/* Style "NUIT" */

.reseauxsociauxnuit {
    background-color: #5B717E;
    border: solid 2px #2F3C43;
    color: #EAEFF2;
}

.reseauxsociauxnuit:hover {
    background-color: #DFD2C4;
    border: solid 2px #CDB79E;
    color: #485E6B;
}

/* --------------------------------
 Styles pour le contenu du bouton GitHub 
-------------------------------- */

/* Style "JOUR" */

.GitHubjour {
    content: url(/SVG/GitHubjour.svg)
}

/* Style "NUIT" */

.GitHubnuit {
    content: url(/SVG/GitHubnuit.svg)
}

/* --------------------------------
 Styles pour le contenu du bouton LinkedIn 
-------------------------------- */

/* Style "JOUR" */

.LinkedInjour {
    content: url(/SVG/LinkedInjour.svg);
}

/* Style "NUIT" */

.LinkedInnuit {
    content: url(/SVG/LinkedInnuit.svg);
}

/* --------------------------------
 Styles pour le contenu du bouton Mail 
-------------------------------- */

/* Style "JOUR" */

.Mailjour {
    content: url(/SVG/Mailjour.svg);
}

/* Style "NUIT" */

.Mailnuit {
    content: url(/SVG/Mailnuit.svg);
}





/* ================================
 * Section : APropos
 * Description : Styles pour la section à propos
================================ */

/*--------------------------------
 Style général de la section 
--------------------------------*/

.APropos {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 32px;
}

/* Style "JOUR" */

.AProposjour {
    background-color: #ECE6E0;
}

/* Style "NUIT" */

.AProposnuit {
    background-color: #1D2428;
}


/*-------------------------------- 
 Styles pour le titre de la section 
--------------------------------*/

/* Style général du titre */

.h2APropos {
    margin: 0;
    font-size: 100px;
}

@media screen and (max-width: 900px) {
    .h2APropos {
        font-size: 50px;
    }
}

@media screen and (max-width: 720px) {
    .h2APropos {
        font-size: 50px;
    }
}

/* Style "JOUR" */

.h2AProposjour {
    color: #485E6B;
}

/* Style "NUIT" */

.h2AProposnuit {
    color: #A6B6C0;
}

/*-------------------------------- 
 Styles pour la partie présentation de la section 
--------------------------------*/




/*-------------------------------- 
 Styles pour la partie langues de la section 
--------------------------------*/

/* Style général des titres dans la partie a propos : langues*/

.h3Langues {
    margin: 0;
    font-size: 25px;
}

/* Style général de la dive*/

.Languesflex {
    display: flex;
    gap: 16px;
}

@media screen and (max-width: 720px) {
    .Languesflex {
        flex-direction: column;
    }
}

/* Styles des éléments de la div */

.Languescolonne {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.imgLangues {
    max-width: 400px;
}

@media screen and (max-width : 720px) {
    .imgLangues{
        max-width: 250px;
        max-height: 150px;
    }
}


/*--------------------------------
 Styles pour la disposition de ma présentation
--------------------------------*/

/* Style général */

.tab-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-width: 50%;
    gap: 32px;
}

.tabs {
    display: flex;
    gap: 32px;
}

@media screen and (max-width: 720px) {
    .tabs {
        flex-direction: column;
        gap: 16px;
    }
}

.tabs-bouton {
    cursor: pointer;
    padding: 4px 32px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 25px;
}

.tabs-boutonjour {
    background-color: #DFD2C4;
    border: solid 2px #CDB79E;
    color: #485E6B;
}

.tabs-boutonjour:hover {
    background-color: #5B717E;
    border: solid 2px #2F3C43;
    color: #EAEFF2;
}

.tabs-boutonnuit {
    background-color: #5B717E;
    border: solid 2px #2F3C43;
    color: #EAEFF2;
}

.tabs-boutonnuit:hover {
    background-color: #DFD2C4;
    border: solid 2px #CDB79E;
    color: #485E6B;
}

.activejour {
    background-color: #5B717E;
    border: solid 2px #2F3C43;
    color: #EAEFF2;
}

.activenuit {
    background-color: #DFD2C4;
    border: solid 2px #CDB79E;
    color: #485E6B;
}


.tab-content {
    display: none;
    padding: 20px;
    min-height: 200px;
    max-width: 775px;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 720px) {
    .tab-content {
        max-width: 300px;
    }
}

.tab-contentjour {
    background-color: #DFD2C4;
    border: solid 2px #CDB79E;
    color: #485E6B;
}

.tab-contentnuit {
    background-color: #5B717E;
    border: solid 2px #2F3C43;
    color: #EAEFF2;
}

.tab-content p {
    margin: 0;
    font-size: 25px;
}

@media screen and (max-width : 720px){
    .tab-content p {
        font-size: 15px;
    }
}

#tab-content-3
{
    text-align: left;
}





/* ================================
 * Section : Parcours
 * Description : Styles pour la section parcours
================================ */

/*-------------------------------- 
 Style pour la partie Parcours 
--------------------------------*/

/* Style général de la partie */

.Parcours {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    margin-top: 128px;
    min-height: 100vh;
}


/*--------------------------------
 Styles pour le titre de la partie Parcours
--------------------------------*/

/* Style général */

.h2Parcours {
    font-size: 100px;
    margin: 0;
}

@media screen and (max-width: 900px) {
    .h2Parcours {
        font-size: 50px;
    }
}

@media screen and (max-width: 720px) {
    .h2Parcours {
        font-size: 50px;
    }
}

/* Style "JOUR" */

.h2Parcoursjour {
    color: #485E6B;
}

/* Style "NUIT" */

.h2Parcoursnuit {
    color: #A6B6C0;
}


.h3Parcours
{
    margin: 0;
    font-size: 50px;
}

/*--------------------------------
 Styles pour la mise en page de la partie
--------------------------------*/

.timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
    position: relative;
    margin: 50px 0;
    gap: 48px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: #ccc;
    z-index: -1;
}

.timeline::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    margin-top: -7px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent transparent #ccc;
}

.container {
    position: relative;
    width: 24%;
    text-align: center;
}

.container:nth-child(odd) .box {
    margin-top: -30px;
}

.container:nth-child(even) .box {
    margin-top: 30px;
}

.box {
    position: relative;
    border-radius: 16px;
    padding: 20px;
    width: 350px;
    height: 250px;
    margin: 0 auto;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;   
}

.boxjour
{
    background-color: #DFD2C4;
    border: solid 2px #CDB79E;
    color: #485E6B;
}

.boxnuit
{
    background-color: #5B717E;
    border: solid 2px #2F3C43;
    color: #EAEFF2;
}

.box h3 {
    margin: 0;
    font-size: 40px;
}

.box p {
    font-size: 25px;
}

@media (max-width: 720px) {
    .timeline {
        flex-direction: column;
        padding: 20px;
    }

    .timeline::before {
        height: 100%;
        width: 4px;
        left: 50%;
        top: 0;
        bottom: 0;
    }

    .timeline::after {
        top: 100%;
        right: 50%;
        left: auto;
        bottom: -20px;
        margin-top: 0;
        margin-left: -7px;
        border-color: #ccc transparent transparent transparent;
        transform: translateX(12px);
    }

    .container {
        width: 100%;
        margin-bottom: 50px;
    }

    .container:nth-child(odd) .box, .container:nth-child(even) .box {
        margin-top: 0;
    }

    .box {
        width: 100%;
        max-width: 300px;
        height: auto;
    }
}







/* ================================
 * Section : Compétences
 * Description : Styles pour la section compétences
================================ */

/*--------------------------------
 Style général de la section 
--------------------------------*/

.Competences {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Style "JOUR" */

.Competencesjour {
    background-color: #ECE6E0;
}

/* Style "NUIT" */

.Competencesnuit {
    background-color: #1D2428;
}

/*-------------------------------- 
 Styles pour le titre de la section 
--------------------------------*/

/* Style général du titre */

.h2Competences {
    margin: 0;
    font-size: 100px;
}

@media screen and (max-width: 900px) {
    .h2Competences {
        font-size: 50px;
    }
}

@media screen and (max-width: 720px) {
    .h2Competences {
        font-size: 50px;
    }
}

/* Style "JOUR" */

.h2Competencesjour {
    color: #485E6B;
}

/* Style "NUIT" */

.h2Competencesnuit {
    color: #A6B6C0;
}

/*-------------------------------- 
 Styles pour la div Listes
--------------------------------*/

.Listes {
    display: flex;
    justify-content: space-around;
    gap: 128px;
    margin-top: 32px;
    padding: 64px 96px;
    border-radius: 16px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 900px) {
    .Listes {
        display: flex;
        flex-direction: column;
    }
}

@media screen and (max-width: 720px) {
    .Listes {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 48px 80px;
    }
}


/* Style "JOUR" */

.Listesjour {
    background-color: #DFD2C4;
    border: solid 2px #CDB79E;
}

/* Style "NUIT" */

.Listesnuit {
    background-color: #5B717E;
    border: solid 4px #2F3C43;
}


/*--------------------------------
 Styles pour les H3 de la div
--------------------------------*/

/* Style général des H3 de la div */

.h3Listes {
    margin: 0;
    font-size: 50px;
}

@media screen and (max-width: 900px) {
    .h3Listes {
        font-size: 50px;
    }
}

@media screen and (max-width: 720px) {
    .h3Listes {
        font-size: 40px;
    }
}

/* Style "JOUR" */

.h3Listesjour {
    color: #627D8D;
}

/* Style "NUIT" */

.h3Listesnuit {
    color: #EAEFF2;
}

/*--------------------------------
 Styles pour les H4 de la div
--------------------------------*/

/* Style "JOUR" */

.h4Listesjour {
    color: #485E6B;
}

/* Style "NUIT" */

.h4Listesnuit {
    color: #EAEFF2;
}

/*--------------------------------
 Styles pour la div design 
--------------------------------*/

/* Style général de la div */

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

/* Style des H4 de la div */

.h4design {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
}

/*--------------------------------
 Styles pour la div Front-End
--------------------------------*/

/* Style général de la div */

.Front-End {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Style des H4 de la div */

.h4Front {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
}

/*--------------------------------
 Styles pour la div Back-End
--------------------------------*/

/* Style général de la div */

.Back-End {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Style des H4 de la div */

.h4Back {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
}

/*--------------------------------
 Styles pour la div Autres
--------------------------------*/

/* Style général de la div */

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

/* Style des H4 de la div */

.h4Autres {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
}





/* ================================
 * Section : Projets
 * Description : Styles pour la section projets
================================ */

/*-------------------------------- 
 Style pour la partie Projets 
--------------------------------*/

/* Style général de la partie */

.Projets {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}



/*--------------------------------
 Styles pour le titre de la partie Projets
--------------------------------*/

/* Style général */

.h2Projets {
    font-size: 100px;
    margin: 0;
}

@media screen and (max-width: 900px) {
    .h2Projets {
        font-size: 50px;
    }
}

@media screen and (max-width: 720px) {
    .h2Projets {
        font-size: 50px;
    }
}

/* Style "JOUR" */

.h2Projetsjour {
    color: #485E6B;
}

/* Style "NUIT" */

.h2Projetsnuit {
    color: #A6B6C0;
}

/*--------------------------------
 Styles pour les div de la partie présentaion des Projets
--------------------------------*/

/* Style général des div projet*/

.Projet {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 48px;
    border-radius: 16px;
    max-width: 500px;
    min-height: 200px;
    justify-content: space-between;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 900px) {
    .Projet {
        padding: 12px 48px;
        max-width: 400px;
    }
}

@media screen and (max-width: 720px) {
    .Projet {
        padding: 12px 48px;
        max-width: 300px;
    }
}

/* Style "JOUR" */

.Projetjour {
    background-color: #DFD2C4;
    border: solid 2px #CDB79E;
    color: #485E6B;
}

/* Style "NUIT" */

.Projetnuit {
    background-color: #5B717E;
    border: solid 4px #2F3C43;
    color: #EAEFF2;
}

/*--------------------------------
 Styles pour les H3 des div de la partie présentaion des Projets
--------------------------------*/

/* Style général des H3 */

.h3Projet {
    margin: 0;
    font-size: 50px;
}

@media screen and (max-width: 900px) {
    .h3Projet {
        font-size: 50px;
    }
}

@media screen and (max-width: 720px) {
    .h3Projet {
        font-size: 45px;
    }
}

/* Style "JOUR" */

.h3Projetjour {
    color: #627D8D;
}

/* Style "NUIT" */

.h3Projetnuit {
    color: #EAEFF2;
}

/*--------------------------------
 Styles pour les infos des projets
--------------------------------*/

/* Style général des infos */

.infosprojet {
    font-size: 20px;
}

/* Style pour la div des compétences utilisées */

.infoscompetences {
    display: flex;
    justify-content: space-around;
    gap: 16px;
}

/*--------------------------------
 Styles pour la disposition des projets
--------------------------------*/

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

.container {
    width: 100%;
    max-width: 1564px;
    margin: auto;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(500px, 1fr));
    grid-gap: 32px;
    margin: 80px 0;
}

.card-wrapper {
    position: relative;
    min-height: 300px;
    perspective: 2000px;
    perspective-origin: top;
}

.card-wrapper:hover .card {
    transform: rotateY(180deg);
}

.card {
    position: relative;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.86, 0, 0.07, 1);
    color: white;
    font-weight: bold;
}

.card-front,
.card-back {
    position: absolute;
    height: 100%;
    width: 100%;
    padding: 30px;
    border-radius: 8px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.card-front {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-back {
    transform: rotateY(180deg);
    display: flex;
    justify-content: center;
    align-items: center;

}

.card-back a {
    display: inline-block;
    border-radius: 10px;
    padding: 15px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: normal;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    transition:
        background-color 0.3s ease-out,
        color 0.3s ease-out;
}

.card-image {
    position: relative;
    width: 100%;
}

@media (max-width: 720px) {
    .card-container {
        grid-template-columns: repeat(1, minmax(0, 300px));
        grid-gap: 16px;
        margin: 40px 0;
    }

    .card-wrapper {
        min-height: 300px;
    }

    .card-front,
    .card-back {
        padding: 20px;
    }

    .card-back a {
        padding: 10px;
        font-size: 12px;
    }
}