/* ----- POPPINS FONT Link ----- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ----- VARIABLES ----- */
:root{
	background: radial-gradient(circle at right 40%, #34185d 0%, black 60%);
    
    --color-white: rgb(255, 255, 255);
	

    --text-color-second: rgb(255, 255, 255);
    --text-color-third: rgb(30, 159, 171);

    --first-color: rgb(110, 87, 224);
    --first-color-hover: rgb(40, 91, 212);

    --second-color: rgb(110, 87, 224);
    --third-color: rgb(192, 166, 49);
    --first-shadow-color: rgba(0, 0, 0, 0.1);
 
}

/* ----- BASE ----- */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;    
}

/* ----- SMOOTH SCROLL ----- */
html{
    scroll-behavior: smooth;
    overflow-x: hidden; /* Empêche le scroll horizontal */
    -ms-overflow-style: -ms-autohiding-scrollbar;
    
}

/* ----- CHANGE THE SCROLL BAR DESIGN ----- */
::-webkit-scrollbar{
    width: 10px;
    border-radius: 25px;
}
::-webkit-scrollbar-track{
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb{
    background: #ccc;
    border-radius: 30px;
}
::-webkit-scrollbar-thumb:hover{
    background: #bbb;
}


/* ---##-- REUSABLE CSS --##--- */
.hidden{
    transform: translateY(-100%);
}
.nav-name{
    position: fixed;
}

.alternant{
    text-transform: none;
    color: var(--first-color)

}
/* ----- GLOBAL BUTTON DESIGN ----- */
.btn{
    font-weight: 500;
    padding: 12px 20px;
    background: #efefef;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: .4s;
}
.btn>i{
    margin-left: 10px;
}
/* ----- GLOBAL ICONS DESIGN ----- */
i{
    font-size: 16px;
}

/* ------- BASE -------- */
body{
    background: var(--body-color);
    height: 16rem;
}
.container{
    width: 100%;
    position: relative;  
}

/* ----- NAVIGATION BAR ----- */
nav{
    position: fixed;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 90px;
    line-height: 90px;
    background: var(--body-color);
    padding-inline: 9vw;
    transition: .3s;
    z-index: 100;
}
nav {
    opacity: 0; /* Rendre le nav invisible au départ */
    transition: opacity 1s ease-in-out; /* Durée et type de transition */
}

nav.show {
    opacity: 1; /* Rendre le nav visible lorsque la classe 'show' est ajoutée */
}
.nav-logo{
   position: relative;
}
.nav-name{
    font-size: 30px;
    font-weight: 600;
    color: var(--text-color-third);
}
.nav-logo .ellipsis {
	font-size: 24px;
	font-weight: bold;
	color: #ffffff; /* Ou une autre couleur */
	display: inline-block;
  }
  
  .ellipsis::after {
	content: '.';
	animation: ellipsisAnimation 1.5s infinite steps(3, end);
    color: var(--color-white);
  }
  
  @keyframes ellipsisAnimation {
	0% {
	  content: '.';
	}
	33% {
	  content: '..';
	}
	66% {
	  content: '...';
	}
	100% {
	  content: '.';
	}
  }
  
	  
.nav-menu, .nav_menu_list{
    display: flex;
}
.nav-menu .nav_list{
    list-style: none;
    position: relative;
}
.nav-link{
    text-decoration: none;
    color: var(--text-color-second);
    font-weight: 500;
    padding-inline: 15px;
    margin-inline: 20px;
}
.nav-menu-btn{
    display: none;
}
.nav-menu-btn i{
    font-size: 28px;
    cursor: pointer;
    color: white;
}
.nav-button .btn:hover{
    background: var(--first-color);
    color: white;
}
.active-link{
    position: relative;
    color: var(--first-color);
    transition: .3;
}
.active-link::after{
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    background: var(--first-color);
    border-radius: 50%;
}


/* ----- WRAPPER DESIGN ----- */
.wrapper{
    padding-inline: 10vw;
}

/* ----- FEATURED BOX ----- */
.featured-box{
    position: relative;
    display: flex;
    height: 100vh;
    min-height: 700px;
}

/* ----- FEATURED TEXT BOX ----- */
.featured-text{
    position: relative;
    display: flex;
    justify-content: center;
    align-content: center;
    min-height: 80vh;
    flex-direction: column;
    width: 50%;
    padding-left: 20px;
}
.featured-text-card span{
    background: var(--third-color);
    color: var(--color-white);
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 5px;
}
.featured-name{
    font-size: 45px;
    font-weight: 600;
    color: var(--text-color-second);
    margin-block: 20px;
}
.typedText{
    text-transform: capitalize;
    color: var(--text-color-third);
}
.featured-text-info{
    font-size: 15px;
    margin-bottom: 30px;
    color: var(--text-color-second);
}
.featured-text-btn{
    display: flex;
    gap: 20px;
}
.featured-text-btn>.blue-btn{
    background: var(--first-color);
    color: var(--color-white);
}
.featured-text-btn>.blue-btn:hover{
    background: var(--first-color-hover);
}
.blue-btn{
    background-color: var(--first-color);
    color: white;
}
 /* Appliquer l'effet au survol des boutons bleus */
 .btn.blue-btn:hover {
    animation: vertical-shake 0.6s ease; /* Animation plus lente et fluide */
  }
    @keyframes vertical-shake {
        0%, 100% {
          transform: translateY(0); /* Position initiale */
        }
        25% {
          transform: translateY(-4px); /* Monte légèrement */
        }
        50% {
          transform: translateY(4px); /* Descend légèrement */
        }
        75% {
          transform: translateY(-2px); /* Monte un peu moins */
        }
      }
.blue-btn i {
        margin-left: 8px; /* Espace entre le texte et l'icône */
        font-size: 14px; /* Ajuste la taille de l'icône */
        vertical-align: middle; /* Assure un bon alignement */
      }
.social_icons{
    display: flex;
    margin-top: 3em;
    gap: 30px;

}
.social_icons a {
    text-decoration: none; /* Retirer le soulignement */
    color: inherit; /* Hérite de la couleur de l'icône ou de l'élément parent */
}

.social_icons a:hover {
    color: var(--first-color); /* Couleur violette au survol */
}

.social_icons a:visited {
    color: inherit; /* Garde la même couleur que l'élément parent même après avoir visité le lien */
}

.icon{
    display: flex;
    color: #ffffff;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
}
.icon:hover{
    color: var(--first-color);
}
/* ----- FEATURED IMAGE BOX ----- */
.featured-image{
    display: flex;
    justify-content: right;
    align-content: center;
    min-height: 80vh;
    width: 50%;
}
.image{
    margin: auto 0;
    width: 380px;
    height: 380px;
    overflow: hidden;
	display: inline-block;
	animation: bounce infinite;
    animation: imgFloat 4s ease-in-out infinite;
}
.image img{
    width: 380px;
    height: 380px;
    object-fit: cover;
}
@keyframes imgFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px); /* Augmente l'amplitude pour "flotter" plus */
    }
}
.scroll-btn{
   position: absolute;
   bottom: 0;
   left: 50%;
   translate: -50%;
   justify-content: center;
   text-align: center;
   align-items: center;
   width: 150px;
   height: 50px;
   gap: 5px;
   text-decoration: none;
   color: black;
   background: var(--color-white);
   border-radius: 30px;
   box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);
   
}
.scroll-btn i{
    font-size: 40px;
    margin-bottom: -10px;
    transition: 3s;
}

/* ----- MAIN BOX ----- */
.section{
    padding-block: 5em;
}
.row{
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}
.col{
    display: flex;
    width: 50%;
}

/* -- ## --- RESUABLE CSS -- ## -- */
/* Cacher le header avec une animation fluide */
header.hidden {
    transform: translateY(-100%); /* Déplace le header hors de l'écran */
    transition: transform 0.3s ease-in-out; /* Ajoute une transition fluide */
  }

.top-header{
    text-align: center;
    margin-bottom: 5em;
}
.top-header h1{
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 10px;
}
.top-header span{
    color: #999;
}
h3{
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 15px;
}
.about-info h3{
    color: black;
}
/* ----- ABOUT INFO ----- */
.about-info{
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-block: 30px 70px;
    padding-inline: 20px;
    width: 100%;
    background: var(--color-white);
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    border-radius: 20px;
    text-align: left;
    padding-top: 10px;
}
.about-info p{
    font-size: 15px;
    color: #777;
}
.about-btn button{
    position: absolute;
    right: 20px;
    bottom: 20px;
    background: var(--first-color);
    color: var(--color-white);
    border-radius: 30px;
}
.about-btn button:hover{
    background: var(--first-color-hover);
}

/* ----- ABOUT / SKILLS BOX ----- */
.skills-box{
    margin: 10px;
}
.skills-header{
    margin-bottom: 30px;
}
.skills-list{
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.skills-list span{
    font-size: 14px;
    background: var(--first-color);
    color: var(--color-white);
    padding: 2px 10px;
    border-radius: 5px;
}
/* ----- PROJECTS BOX ----- */
.project-container {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.project-box {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 365px;
    height: 250px;
    background: black;
    border-radius: 15px;
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    overflow: hidden;
}

.project-box .image-container1 {
    width: 100%; /* Ajuste pour qu'il s'adapte au conteneur */
    max-width: 100%; /* Empêche le débordement */
    height: 100%; /* Assure que l'image occupe toute la hauteur du conteneur */
    display: flex;
    justify-content: center;
    align-items: center;
}
.project-box .image-container2 {
    width: 100%; /* Ajuste pour qu'il s'adapte au conteneur */
    max-width: 100%; /* Empêche le débordement */
    height: 100%; /* Assure que l'image occupe toute la hauteur du conteneur */
    display: flex;
    justify-content: center;
    align-items: center;
}
.project-box .image-container3 {
    width: 100%; /* Ajuste pour qu'il s'adapte au conteneur */
    max-width: 100%; /* Empêche le débordement */
    height: 100%; /* Assure que l'image occupe toute la hauteur du conteneur */
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Ajouter le texte au survol */
.project-box .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
    color: white;
    display: flex;
    flex-direction: column; /* Disposer les éléments en colonne */
    justify-content: center;
    align-items: flex-start; /* Aligner à gauche */
    padding-left: 20px; /* Espace à gauche */
    padding-top: 10px; /* Espace en haut de l'overlay */
    text-align: left;
    opacity: 0; /* Masqué par défaut */
    transition: opacity 0.3s ease;
    z-index: 2;
}

.project-box:hover .overlay {
    opacity: 1; /* Affiche le texte au survol */
}

.project-box .overlay h2 {
    margin-bottom: 10px; /* Espacement entre le titre et la description */
}

.project-box .overlay p {
    margin-top: 0; /* Optionnel, pour éviter l'espacement par défaut */
    color: #c6c6c6;
    font-size: 13px;
}
.project-box .overlay .projet_stack{
    margin-top: 19px;
}
.project-box .overlay .projet_stack span{
    margin-top: 10px;
    background: var(--first-color);
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: capitalize;
    font-size: 11px;
    font-weight: 300;
    margin-right: 6px;
    color: #fff;
}
.project-box > i {
    font-size: 50px;
    color: #00B5E7;
    margin-bottom: 25px;
}

.project-box label {
    font-size: 15px;
    color: #777;
}

.project-box::after, .contact-info::after {
    content: "";
    position: absolute;
    bottom: -100%;
    background: linear-gradient(rgba(0, 0, 0, .1) 10%, rgba(0, 0, 0, .78) 80%);
    width: 100%;
    height: 100%;
    transition: .4s;
    z-index: 1;
}

.project-box:hover.project-box::after,
.contact-info:hover.contact-info::after {
    bottom: 0;
}

.project-box:hover .project-box i,
.project-box:hover .project-box > h3,
.project-box:hover .project-box > label {
    color: var(--color-white);
    z-index: 2;
}

/* ----- CONTACT BOX ----- */
.contact-info{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 30px;
    width: 100%;
    height: 315px;
    background: white;
    border-radius: 10px;
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    overflow: hidden;
}
.contact-info>h2{
    color: black;
    margin-bottom: 20px;
}
.contact-info>p{
    display: flex;
    align-items: center;
    gap: 10px;
    color: black;
    margin-block: 5px;
}
.contact-info p>i{
    font-size: 18px;
}
.contact-info::after{
    background: var(--first-color);
}
.contact-info:hover.contact-info h2,
.contact-info:hover.contact-info p,
.contact-info:hover.contact-info i{
    color: #ffffff;
    z-index: 2;
}

/* ----- CONTACT FORM ----- */
.form-control{
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.form-inputs{
    display: flex;
    gap: 10px;
    width: 100%;
}
.input-field{
    caret-color: white;
    color: #ffffff;
    width: 50%;
    height: 55px;
    background: transparent;
    border: 2px solid #AAA;
    border-radius: 10px;
    padding-inline: 20px;
    outline: none;
}
textarea{
    width: 100%;
    color: #ffffff;
    height: 250px;
    background: transparent;
    border: 2px solid #AAA;
    border-radius: 10px;
    padding: 15px 20px;
    outline: none;
    resize: none;
}
.form-button>.btn{
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--second-color);
    color: var(--color-white);
}
.form-button i{
    font-size: 18px;
    rotate: -45deg;
}
/* ----- FOOTER BOX ----- */
footer{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    row-gap: 30px;
    
}
.top-footer p{
    font-size: 25px;
    font-weight: 600;
}
.middle-footer .footer-menu{
    display: flex;
}
/* Appliquer un style actif sur le lien du footer */
footer .footer-menu a.active-link {
    color: var(--first-color);   /* Remplace par la couleur de ton choix */
    font-weight: bold;           /* Optionnel, pour mettre le texte en gras */
  }
  
.active-link {
    color: var(--first-color);  /* Couleur ou style que tu souhaites */
  }
  
.footer_menu_list{
    list-style: none;
}
.footer_menu_list a{
    text-decoration: none;
    color: var(--text-color-second);
    font-weight: 500;
    margin-inline: 20px;
}
.footer-social-icons{
    display: flex;
    gap: 30px;   
}
.bottom-footer{
    font-size: 14px;
    margin-top: 10px;
    color: var(--color-white);
}
.footer-social-icons a {
    text-decoration: none; /* Retirer le soulignement */
    color: inherit; /* Hérite de la couleur de l'icône ou de l'élément parent */
}

.footer-social_icons a:hover {
    color: var(--first-color); /* Couleur violette au survol */
}

.footer-social_icons a:visited {
    color: inherit; /* Garde la même couleur que l'élément parent même après avoir visité le lien */
}

/* ----- MEDIA QUERY == 1024px / RESPONSIVE ----- */
@media only screen and (max-width: 1024px){
    .featured-text{
        padding: 0;
    }
    .image, .image img{
        width: 320px;
        height: 320px;
    }
}

/* ----- MEDIA QUERY == 900px / RESPONSIVE ----- */
@media only screen and (max-width: 900px) {
    .nav-button{
        display: none;
    }
    .nav-menu.responsive{
        left: 0;
    }
    .nav-menu{
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        backdrop-filter: blur(20px);
        width: 100%;
        min-height: 450px;
        height: 90vh;
        transition: .3s;
    }
    .nav_menu_list{
        flex-direction: column;
    }
    .nav-menu-btn{
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .featured-box{
        flex-direction: column;
        justify-content: center;
        height: 100vh;
    }
    .featured-text{
        width: 100%;
        order: 2;
        justify-content: center;
        align-content: flex-start;
        min-height: 60vh;
    }
    .social_icons{
        margin-top: 2em;
    }
    .featured-image{
        order: 1;
        justify-content: center;
        min-height: 150px;
        width: 100%;
        margin-top: 65px;
    }
    .image, .image img{
        width: 150px;
        height: 150px;
    }
    .row{
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 50px;
    }
    .col{
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .about-info, .contact-info{
        width: 100%;
    }
    .project-container{
        justify-content: center;
    }
    .project-box{
        width: 80%;
    }

}

/* ----- MEDIA QUERY == 540px / RESPONSIVE ----- */

@media only screen and (max-width: 540px){
    .featured-name{
        font-size: 40px;
    }
    .project-box{
        width: 100%;
    }
    .form-inputs{
        flex-direction: column;
    }
    .input-field{
        width: 100%;
    }
}
