@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800&display=swap');

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  list-style: none;
}

:root {
  --bg-color: #e3edf7;
  --pr-color: #eb0000;
  --gradient-red-text: linear-gradient(180deg, rgba(235, 0, 0, 1) 0%, rgba(235, 0, 0, 1) 51%, rgba(235, 0, 0, 1) 100%);
  --gradient-red-bg: linear-gradient(180deg, rgba(235, 0, 0, 1) 0%, rgba(166, 24, 24, 1) 51%, rgba(127, 12, 12, 1) 100%);
  --gradient-white-bg: linear-gradient(0deg, #fff 0%, #edf4fa 51%, #e5eef7 100%);
  --gradient-color-bg: linear-gradient(180deg, rgba(247, 1, 120, 1) 0%, rgba(160, 8, 156, 1) 51%, rgba(99, 13, 178, 1) 100%);
  --main-color: #e6006d;
  --font-color: #90979f;
  --hover-box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
  --gradient-white-bg2: linear-gradient(98deg, #e5eef7 0%, #fff 100%);
}

a {
  text-decoration: none;
  color: #000;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-color);
  overflow-x: hidden;
}

header {
  padding: 15px 8%;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gradient-white-bg);
  z-index: 100;
  transition: .3s;
}

header .logo {
  font-size: 1.7rem;
  font-weight: 700;
}

.logo span {
  color: var(--pr-color);
}

.home span {
  background: var(--pr-color);
  background-clip: text;
  color: transparent;
}

ul.navlist {
  display: flex;
}

.navlist li {
  margin: 0 1rem;
}

.navlist li a {
  display: inline-flex;
  font-weight: 600;
}

.navlist li a:hover,
.navlist li a.active {
  background: var(--pr-color);
  background-clip: text;
  color: transparent;
}

.right-header {
  display: flex;
  align-items: center;
  justify-content: end;
  grid-gap: .8rem;
}

.btn{
  background: var(--pr-color);
  color: #fff;
  padding:8px 10px;
  border-radius:5px;
  font-weight: 500;
  transition:all .3s ease;

}

.btn:hover,
.btn-box .d-CV:hover{
  box-shadow:var(--hover-box-shadow);
}
.menu-icon{
  position:relative;
  display:block;
  width: 30px;
  height: 30px;
  cursor: pointer;

}
.menu-icon .bar,
.menu-icon::after,
.menu-icon::before{
  content: "";
  display:none;
  width: 100%;
  height: 4px;
  border-radius: 3px;
  background: #000;
  margin: 6px 0;
  transition: .4s;

}

.menu-icon.active::before{
  transform: rotate(45deg)translate(-6px,6px);
}

.menu-icon.active::after{
  transform: rotate(45deg)translate(-8px,-8px); 
}

.menu-icon.active .bar{
  opacity:0;
}


.section1, .section2 {
  margin: 0;
  padding: 0;
}

/*---------------------Home section --------------------------*/

.home{
  padding:90px 8%;

}
.home{
    min-height: 100vh;
    height: 100%;
    width: 100%;
    display: flex;
    grid-template-columns:repeat(2,1fr);
    align-items:center;
    grid-gap: 4em;
    background: var(--gradient-white-bg2); 

  }

.hero-info{

  margin-top:1rem;
}

.hero-info h3{
  color: var(--font-color);
  font-weight: 300;
  text-transform: uppercase;
  font-size: 1.1rem;
}

.hero-info h1{
  font-size: 3.5rem;
}

.text-animate{
  width: 22.8rem;
  position: relative;
}

.text-animate h2{
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: transparent;
  -webkit-text-stroke: 0.1vw #eb0000;
  background: var(--gradient-red-text);
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  background-position: 0 0;
  transition:.6s;
  letter-spacing: 2px;
  animation: moveText 3s linear infinite ;
  animation-delay:2s;
}

.text-animate h2::before{
  content: "";
  position:absolute;
  top: 7px;
  left:-3px;
  width: 0;
  height: 70%;
  border-right: 2px solid var(--main-color);
  animation:moveCursorText 3s linear infinite;
  animation-delay:2s; 
}

.hero-info p{
  font-size:.9rem;
  color: var(--font-color);
  line-height: 1.5rem;
}

.btn-box{
  display: flex;
  justify-content: space-between;
  width: 320px;
  margin-top: 2rem;
  margin-bottom:6rem;
}

.btn-box .btn {
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap:8px;

}

.btn-box .d-CV{
  background: var(--gradient-white-bg2);
  padding: 10px;
  border-radius: 5px;
  font-weight: 500;
  color:#000 ;
  box-shadow: rgba(60,64,67,0.3)0px 1px 2px,
              rgba(60,64,67,0.15)0px 2px 6px 2px;
  transition:all .3s ease;
            
}

.social-media{
  display:flex;
  justify-content: space-between;
  width: 220px;
  margin-top:  -50px;

}

.social-media a{

  width: 42px;
  height: 42px;
  font-size: 1.5rem;
  color: var(--pr-color);
  background: #fff;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: .4s;
  border-radius: 50%;
  z-index:1;

}


.social-media a:hover{

  background: var(--gradient-red-bg);
  color:#fff;
}

.bg-icon{
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;

}

.bg-icon span{

    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--gradient-red-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: animate 1s linear infinite;

}

.img-hero{

  position: relative;
  margin: 0 auto;
  animation: floatImage 4s ease-in-out infinite;
  animation-delay: 3s;

}

.img-hero::after, .img-hero::before{
  content: '';
  position: absolute;
  border-radius: 50%;
  height: 83%;
  width: 83%;
  background:conic-gradient(from 0deg, transparent 70%,  var( --pr-color));
  top: 53%;
  left: 44%;
  translate: -50% -50%;
  z-index: -1;
  padding: 6px;
  animation: 3s spin linear infinite;
}

.img-hero::before{
  filter: blur(1.5rem);
  opacity: 0.5;

}

.img-hero img{
  position: relative;
  width: 450px;
  height: auto;
  z-index:10;
  top:30px;
  right: 20px;
  
 
}

.rotate-text{

  position: absolute;
  top: 4%;
  left:-53px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 2rem;

} 

.rotate-text span{

  position: relative;
  width: 442px;
  height: 442px;
  border-radius:50%;
  z-index: 1;
  overflow: hidden;

}




/*.rotate-text span::before{
  content: "";
  position:absolute;
  inset: 20px;
  background: #eb0000;
  border-radius:50%;
  z-index:1;

}

/*.rotate-text span i{

  position: absolute;
  inset:0;
  background: var(--pr-color);
  filter:blur(25px);
  animation: animate 2s linear infinite;

}*/

.rotate-text .text{

  position: absolute;
  width: 490px;
  height: 490px;
  background: #f2f6fb;
  border-radius: 50%;
  box-shadow: 0 1px 6px 5.94px rgba(0,0,0,0);
  animation: rotateText 30s linear infinite;

}

.text b{

  position: absolute;
  transform-origin: 0 247px;
  display: block;
  top:0;
  left:50%;
  font-size: 1.2rem;

}

/*------------------------About Section------------------*/


.about {

  padding: 20px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.about .about-img{
 
  position: relative;

}



.about.about-img .aboutHero{
  width:40vw;
  height: auto;
}



.about-content{
  padding:3rem 0;
}



.about-content h2{
  color:var( --pr-color);
  font-size: 2.1rem;
  text-align: center;
}

.about-content h3{
  font-size: 1.7rem;
  line-height: 3rem;
  margin: .5rem 0;
  text-align: center;
}

.content-btn {
 
  text-align: center; 
}
.content-btn p{
  
  color: var(--pr-color);

}

.content-btn {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* Espacement entre les sections */
}

.content {
  flex: 1; /* Permet de répartir l'espace entre les sections */
  min-width: 250px; /* Largeur minimale pour éviter un écrasement */
  display: block; /* Assure l'affichage */
}




.about span{
  color: var(--font-color);
}


.about_p{
  text-align: center;
  color:var(--font-color);
}

.text-box p{
  font-size: 1.1rem;
  font-weight:500;
  display: flex;
  flex-direction: column; /* Empile le texte */
  margin: 5px 0;
}

.text-box p, .text-box span {
  display: inline-block;
  margin-right: 10px; /* Vous pouvez ajuster l'espacement entre les éléments */
}


.about-btn{
  margin: 2.8rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
}

.about-btn button, .cvContent a{
  background: var(--gradient-white-bg2);

  padding: 13px 25px;
  border-radius: 5px;
  border: none;
  font-size:1.2rem;
  font-weight: 500;
  color: #000;
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0,
              rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
  margin-right: .5rem;
  cursor:pointer;
  transition: all .3s ease; 

}

.cvContent {
  display: flex;
  justify-content: center;  /* Centrer horizontalement */
  align-items: center;      /* Centrer verticalement */
  height: 20vh;            /* Optionnel : pour centrer verticalement par rapport à la hauteur de la page */
}
.about-btn  button.active{
  background: var(--pr-color);
  color:#ffff;
}

.text-box{
  margin: .8rem 0;
}

.content-btn > .content:not(:first-child){
  display:none;
}

.about-btn button:hover{
  box-shadow:var(--hover-box-shadow);

}

.cvContent{
  margin-top: 1.5rem;
}

/* ------------------------- Services Section Css ---------------------*/

.services{
  position: relative;
  padding: 0px 8%;

  
 
}

.main-text{
  width: 100%;
  text-align: center;
  margin-bottom:  2.1rem;
 
}



.main-text .heading{
  color: var(--pr-color);
  font-size: 2.3rem;
  
}

.main-text h3{
  color: #000;
  line-height: 3rem;
  margin: .5rem 0;
  font-size: 1.6rem;
}

.main-text p{
  color: var(--font-color);
  font-size: 1.1rem;
}

.allServices{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,auto));
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 1;

}

.servicesItem{
  box-shadow: rgba(0,0,0,0.1)0px 1px 3px 0px,
              rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
  padding: 2rem 1rem;
  border-radius: 10px;
  background: var(--gradient-white-bg2);
  text-align: center;
}

.icon-services{
  display: inline-flex;
  position: relative;

}

.icon-services i{
  box-shadow: rgba(0, 0,0, 0.1)0px 1px 3px 0px,
              rgba(0, 0, 0, 0.06)0px 1px 2px 0px;
  padding: .5rem;
  border-radius: 50%;
  background: var(--pr-color);
  width: 70px;
  height: 70px;
  color: #fff;
  font-size:2.5rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: .4s;
  z-index: 1;

}

.servicesItem:hover i{
  outline: 1px solid var(--main-color);
  transform: scale(1.2);
}

.icon-services span{
  position: absolute;
  width: 80px;
  height: 80px;
  left: -5px;
  top: -5px;
  background: var(--gradient-red-bg);
  filter: blur(2px);
  border-radius: 50%;
  animation: animate 1s linear infinite;

}

.servicesItem h3{
  margin: 1rem 0 0.5rem;
}

.servicesItem p{
  margin-bottom: 1.5rem;
  font-size: .9rem;
  color: var(--font-color);
}

.readMore{
  background: var(--gradient-white-bg2);
  box-shadow: rgba(0, 0, 0, 0.1)0px 1px 3px 0,
                rgba(0, 0, 0, 0.06)0px 1px 2px 0px;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 500;
  color: #000;
  margin-right: .8rem;
  cursor: pointer;

}

.proposal{
  position:relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: var(--gradient-white-bg2);
  box-shadow: rgba(0, 0, 0, 0.1)0px 1px 3px 0,
              rgba(0, 0, 0, 0.06)0px 1px 2px 0px;
  margin-top: 6rem;
  border-radius: 10px;
  padding: 2rem 2rem;
  z-index:1
}


.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  animation: fadeIn 0.4s ease;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: black;
}

.modal-content p {
  margin-top: 20px;
  font-size: 16px;
}

.modal-content strong {
  color: var(--pr-color);
}

.modal-content i {
  color: var(--pr-color);
  margin-right: 8px; /* petit espace entre l’icône et le texte */
}

.services .text-box span{
  font-size: 1.2rem;
  font-weight: 600;
}

.services .text-box h3{
  margin-top: 1rem;
  margin-bottom: 2rem;
  font-size: 2.3rem;
  font-weight: 800;
}

.services .text-box .btn{
  padding: 10px 20px;
}

.services .showcase .ring{
  width: 100px;
  height: auto;
  position: absolute;
  top: 2%;
  left: -3%;

}

.services .showcase .circle{
  position:absolute;
  width: 70px;
  height: auto;
  top: 2%;
  right: 6%;
  filter: blur(3px);
}

.services .showcase .circle2{
  position: absolute;
  width: 40px;
  height: auto;
  filter: blur(3px);

}

.services .showcase .circle3{
  position: absolute;
  width: 70px;
  height: auto;
  filter: blur(3px);
  bottom: 36%;
  left: 22%;
}

.services .showcase .half-ring{
  position: absolute;
  width: 120px;
  height: auto;
  bottom: 4%;
  right: 6%;
}

/*-----------------Services Section ----------------*/

.fillter-buttons{
  text-align: center;
  padding: .5rem;
  margin-bottom: 2rem;

}

.fillter-buttons button{
  background: var(--gradient-white-bg2);
  padding: 12px 15px;
  border-radius: 5px;
  border: none;
  font-weight: 500;
  color:#000;
  box-shadow:  rgba(60, 64, 67, 0.3)0px 1px 2px 0px,
              rgba(60, 64, 67, 0.15)0px 2px 6px 2px;
  margin-right: .5rem;
  cursor: pointer;
  transition: all .3s ease;
}

.fillter-buttons button:hover, button.mixtup-control-active{
  background: var(--gradient-color-bg);
  color:#fff;

}

.portfolio-gallery{
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(370px, 1fr));
  gap: 1rem;

}

.portfolio-img img{
  display: block;
  width: 100%;
  height: 160px;
  transition: .3s;
}

.portfolio-box{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding: .5rem;
  box-shadow: rgba(0, 0, 0, 0.18)0px 2px 4px;
  background: var(--gradient-white-bg2);
  border-radius: 10px;
  transition: all .3s ease;

}

.portfolio-content{
  width: 100%;
  padding-left:.5rem;
  padding-bottom: .5rem;
}

.portfolio-img{
  width: 100%;
  border-radius: 5px;
  overflow: hidden;
}

.portfolio-box:hover img{
  transform: scale(1.1);
}

.portfolio-content a.readMore{
  padding: 8px 12px ;
  font-size: .8rem;
}

.portfolio-content p{
  font-size: .9rem;
  color:var(--font-color);
  margin: .5rem 0 1rem 0;

}

/*------------------------- Blog Section-------------*/

.blog-box{
  padding: .5rem !important;
}

.blog{
  position: relative;
}

.cards{
  padding: 1rem .1rem;
}

.card{
  background: var(--gradient-white-bg2);
  box-shadow: rgba(0, 0, 0, 0.18)0px 2px 4px;
  padding: 1rem;
  border-radius: 10px;
}

.card-top{
  overflow: hidden;
  border-radius:10px 10px 0 0; 
}

.card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .3s;
  display: block;
}

.card:hover img{
  transform: scale(1.1);
}

.card-info{
  padding-bottom: .5rem;
}

.card-info h2{
  font-size: 1.2rem;
  margin-top:1rem;

}

.data{
  display: block;
  margin: .2rem 0;
}

.card .excerpt{
  color: var(--font-color);
  margin-bottom:  1.5rem;
}

.swiper-pagination{
  position: relative !important;
  margin-top: 3rem;
}

.swiper-pagination-bullet{
  height: 10px !important;
  width: 30px !important;
  border-radius: 25px !important;
  background: var(--gradient-color-bg) !important;
}

.blog .showcase img{
  position: absolute;
  height: 90px;
}

.blog .showcase .circle{
  filter: blur(3px);
}

.blog .showcase .ring{
  top: 0;
  left: -1%;
}

.blog .showcase .half-ring{
  top: 10%;
  right: 10%;
}

.blog.showcase .second-circle{
  top: 30%;
  left: 2%;
  filter: blur(1px);
}


/*----------------------- Contact Section----------------------------*/


.contactSkills{
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.contact-info, .skills{
  width: 100%;
  background: var(--gradient-white-bg2);
  box-shadow: rgba(0, 0, 0, 0.18)0px 2px 4px;
  padding: 1rem;
  border-radius: 10px;
}

.contact-info input,
.contact-info form textarea{
  width: 100%;
}

.contact-info form input
.contact-info form textarea{
  /*width:00%; */
  padding: .8rem;
  border: 2px solid #e8e1e1;
  margin: .5rem 0;
  background: #e8f1f9;
  border-radius: 5px;
  outline: none;
  transition: .3s;
}

.contact-info form .input-box{
  display: flex;
  justify-content: space-between;
}

.input-box input{
  width: 49%;
}

form input:focus, form textarea:focus{
  filter: brightness(100%);
  background: #d2e9ff;
  border: 2px solid #f8caca;

}

form textarea{
  resize: none;

}

form .btn{
  padding: 15px 20px;
  cursor: pointer;
  border: none;
}


/*------------------Skill Section---------------*/

.skillBox{
  padding:0 1rem 1rem;
}

.skillBox .main-text{
  margin-bottom: 1rem;
}

.skill-wrap{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px , auto));
  justify-content: center;
  grid-gap: 2.5rem;

}

.skill{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.outer-circle{
  width: 170px;
  height: 170px;
  position: relative;
  margin-bottom: 1rem;
  padding: 20px;
  border-radius: 50%;
  box-shadow: rgba(50, 50, 93, 0.25)0px 6px 12px -2px,
              rgba(0, 0, 0, 0.3)0px 3px 7px -3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inner-circle{
  width: 130px;
  height: 130px;
  border-radius: 50%;
  box-shadow: rgba(204, 219, 232)3px 3px 6px 0px inset,
              rgba(255, 255, 255, 0.5)-3px -3px 6px 1px inset;

}

.outer-circle svg{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.outer-circle svg circle{
  fill: none;
  stroke-width: 15px;
  stroke: url(#GradientColor);
  stroke-linecap: round;
  stroke-dashoffset: 464;
  stroke-dasharray: 465;
}

.outer-circle h2.counter{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  z-index: 1;
  font-size: .9rem;
  font-weight: 400;
}

h2.counter span{
  font-size: 1.7rem;
}

.sk-title{
  font-size: 1rem;
  font-weight: 500;
}


.project-of-the-moment {
  padding: 60px 0;
  background-color: var(--gradient-white-bg2); /* Couleur de fond claire */
  text-align: center;
  margin-top: 50px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--pr-color);
}

.project-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 100px; /* Espace entre l'image et la description */
}

.stack{
  font-size: 1.0rem;
  margin-bottom: 40px;
  color: #555;
}

.project-image {
  width: 100%;
  max-width: 400px; /* Limite la largeur de l'image */
  height: auto;
  border-radius: 8px;
 
}

.project-info {
  max-width: 600px;
  text-align: left;
}

.project-info h3 {
  font-size: 2rem;
  color: var(--pr-color);
  margin: 10px 0;
}

.project-description {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 20px;
}

.project-btn {
  background-color: var(--pr-color);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1rem;
}

.project-btn:hover {
  background-color: #b30000;
}






/*--------------------------  Footer Section ------------*/

footer{
  text-align: center;
  margin: 0 8%;
  padding: 2rem 0;
  border-top: 2px solid #e8e1e1;
}

#progress{
  position: fixed;
  /*background: #194eb9;*/
  z-index: 1000;
  bottom: 60px;
  right: 10px;
  width: 50px;
  height: 50px;
  display: none;
  place-items: center;
  border-radius: 50%;
  color: #1d002c;
  cursor: pointer;
  box-shadow:rgba(50, 50, 93, 0.25)0px  50px 100px -20px,
             rgba(0, 0, 0, 0.3)0px 30px 60px -30px,
             rgba(10,37,64,0.35)0px -2px 6px 0px inset;

} 

#progress-value{
  display: grid;
  height: calc(100% - 12px);
  width: calc(100% - 12px);
  background: var(--gradient-color-bg);
  border-radius: 50%;
  color: #fff;
  place-items: center;
  font-size: 25px;

}

//* Projects Section */
.projects {
  padding: 80px 0;
  background-color: var(--bg-color);
  position: relative;
}

.projects .main-text {
  text-align: center;
  margin-bottom: 50px;
  padding: 0 20px;
}

.projects .main-text h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

.projects .main-text h3 {
  font-size: 1.2rem;
  color: var(--second-color);
  margin-bottom: 10px;
}

.projects .main-text p {
  color: var(--other-color);
  max-width: 700px;
  margin: 0 auto;
}

/* Swiper Container */
.mySwiper {
  padding: 30px 0 70px;
  width: 90%;
  margin: 0 auto;
  position: relative;
}

.swiper-wrapper {
  padding: 10px 0;
}

.project-slide {
  background: var(--bg-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  margin: 0 10px;
  height: auto;
}

.project-slide:hover {
  transform: translateY(-10px);
}

.project-img {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-slide:hover .project-img img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.project-slide:hover .project-overlay {
  opacity: 1;
}

.project-overlay h4 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 10px;
  text-align: center;
}

.project-overlay p {
  color: #eee;
  text-align: center;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.project-links {
  display: flex;
  gap: 20px;
}

.project-links a {
  color: #fff;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.project-links a:hover {
  color: var(--main-color);
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--text-color);
}

.project-info p {
  color: var(--other-color);
  margin-bottom: 15px;
  line-height: 1.5;
  font-size: 0.95rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-tech span {
  background: var(--second-bg-color);
  color: var(--main-color);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
  color: var(--main-color) !important;
  background: var(--second-bg-color);
  width: 50px !important;
  height: 50px !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1.5rem !important;
  font-weight: bold;
}

.swiper-pagination-bullet {
  background: var(--other-color) !important;
  opacity: 0.7 !important;
  width: 12px !important;
  height: 12px !important;
}

.swiper-pagination-bullet-active {
  background: var(--main-color) !important;
  opacity: 1 !important;
}
.heading h2{
  color: var(--pr-color);
}

/* Responsive */
@media (max-width: 768px) {
  .projects {
    padding: 60px 0;
  }
  
  .project-img {
    height: 200px;
  }
  
  .project-info h3 {
    font-size: 1.3rem;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
  
  .mySwiper {
    width: 85%;
  }
}

@media (min-width: 1200px) {
  .mySwiper {
    width: 85%;
    max-width: 1400px;
  }
  
  .swiper-slide {
    margin: 0 15px;
  }
  
  .project-slide {
    margin: 0 15px;
  }
}

@media (max-width: 768px) {
  .project-img {
    height: 200px;
  }
  
  .project-info h3 {
    font-size: 1.3rem;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
}


















/*----------------------- @KeyFrame ----------------------*/

@keyframes moveText{
  0%, 10%, 100%{
    background-position: -24rem 0;


  }

  65%, 85%{
    background-position: 0rem 0;
  }
}

@keyframes moveCursorText{
  0%, 10%, 100%{
    width: 0;
  }

  65%, 78%, 85%{
    width: 100%;

  }

  75%, 85%{
    opacity: 0;
  }

}

@keyframes animate{
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }

}

@keyframes rotateText{
  0% {
    transform: rotate(360deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

@keyframes progress{
  to {
    stroke-dashoffset: var(--target);
  }
}


@keyframes floatImage{
  0% {
    transform: translateY(0);
  }

  50%{
    transform: translateY(-22px);
  }

  100%{
    transform: translateY(0);
  }
}

@keyframes spin{
  from{
    --angle:0deg;
  }
  to{
    --angle:360deg;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}


/*------------------------ Brank-points -------------------*/

/* Réduire la taille des items en fonction de la largeur de l'écran */
@media (max-width: 768px) {
  .carousel-item {
    min-width: 250px; /* Taille réduite pour mobile */
    margin: 0 5px; /* Moins de marge entre les éléments */
  }

  .section-title {
    font-size: 2rem; /* Taille du titre plus petite */
  }
}

/* Pour les très petits écrans (moins de 480px) */
@media (max-width: 480px) {
  .carousel-item {
    min-width: 200px; /* Taille encore plus réduite */
  }

  .carousel-control {
    font-size: 1.2rem; /* Réduire la taille des boutons */
    padding: 8px; /* Moins de padding */
  }
}


@media (max-width:1200px){
  html{
    font-size: 95%;
  }

}

@media (max-width:991px){
 header, section, footer{
  padding-left: 3%;
  padding-right: 3%;
 }
 
 .home, .portfolio-box{
  flex-direction: column-reverse;

 }

 .about, .contactSkills{
  flex-direction: column;
 }

 .about .about-img .aboutHero{
  width: 100%;
 }

 .proposal img{
  width: 52vw;
 }

 .portfolio-img img{
  width: 100%;
  height: 100%;
 }

 .portfolio-gallery{
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));

 }

 .img-hero{
  margin-top: 3rem;
 }

}


@media(max-width:768px){
  .proposal{
    display: none;
  }

  .menu-icon .bar, .menu-icon::after, .menu-icon::before{
    display: block;
  }

  ul.navlist{
    position: absolute;
    top: -1000px;
    transition: all .3s ease;
    width: 100%;
    text-align: center;
    display: block;
    background: var(--gradient-white-bg);
    left: 0;
    border-top: 2px solid rgba(248, 202, 202, .7);
    
  }

  ul.navlist a{
    font-size: 1.5rem;
    margin: 1rem 0;
  }

  .navlist.active{
    top: 100%;
  }

  .overlay{
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    position: fixed;
    background: rgba(0, 0, 0, 0.5);
    z-index: 8;
    opacity: 0;
    transform: .3s;
    pointer-events: none;

  }

  body .open .overlay{
    opacity: 1;
    pointer-events: auto;
  }

  .btn{
    padding: 10px;
  }

  .home{
    grid-gap: 0;
  }

  .fillter-buttons button{
    padding: 10px;
    font-size: .8rem;
  }




}

/* Correction mobile spécifique */
@media (max-width: 768px) {
  .home {
    padding: 60px 5% !important;
    justify-content: center !important;
    gap: 2em !important;
  }

  .hero-info {
    width: 100% !important;
    max-width: 100vw !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  .text-animate {
    width: 100% !important;
    margin-left: -5px !important;
  }

  .btn-box {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    margin-left: 0 !important;
    gap: 5px;
  }

  .img-hero {
    margin: 0 auto !important;
    right: 0 !important;
    transform: none !important;
    top:25px;
  }

  .img-hero img {
    width: 100% !important;
    max-width: 300px !important;
    height: auto !important;
    right: 0 !important;
    top: 0 !important;
  }

  .social-media {
    width: 100% !important;
    justify-content: center !important;
    gap: 15px !important;
    margin-top: 25px !important;
  }

  /* Correction spécifique pour le texte */
  h1, h3, .text-animate h2, p {
    text-align: center !important;
    padding: 0 10px !important;
    width: 100% !important;
  }

  .text-animate h2 {
    font-size: 1.8rem !important;
    white-space: normal !important;
  }
  .img-hero::before,
  .img-hero::after {
    animation: none !important;
    display: none !important;
  }
}

/* Protection du desktop */
@media (min-width: 769px) {
  .home {
    padding-left: 8% !important;
    padding-right: 8% !important;
  }
  
  .img-hero {
    margin-right: 5% !important;
    transform: translateY(-25px) !important;
  }
  
  .hero-info {
    width: auto !important;
  }
}

/*-----------section about---------*/

@media (max-width: 768px) {
  .about-content {
    padding: 40px 20px !important;
  }

  .heading {
    font-size: 2rem !important;
  }

  .about-content h3 {
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
  }

  .about_p {
    font-size: 0.9rem !important;
    padding: 0 10px !important;
  }

  .about-btn {
    flex-direction: column !important;
    gap: 12px !important;
    margin: 25px 0 !important;
  }

  .about-btn button {
    width: 100% !important;
    padding: 12px 18px !important;
    font-size: 0.9rem !important;
  }

  .content-btn {
    margin-top: 25px !important;
  }

  .text-box {
    width: 100% !important;
    margin: 10px 0 !important;
    padding: 15px !important;
  }

  .text-box p:first-child {
    font-size: 1rem !important;
  }

  .text-box p span {
    font-size: 0.9rem !important;
  }

  .text-box span {
    font-size: 0.85rem !important;
  }

  .cvContent {
    text-align: center !important;
    margin-top: 30px !important;
  }

  .cvContent .btn {
    width: 100% !important;
    max-width: 280px !important;
    padding: 12px 20px !important;
  }
}

/*--------- Section Myskills-----------*/

@media (max-width: 768px) {


  .main-text h3 {
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
  }

  .main-text p{
    font-size: 0.9rem !important;
    padding: 0 10px !important;
  }
}


@media (max-width: 768px) {
  .project-of-the-moment {
    padding: 40px 15px !important;
  }

  .project-content {
    flex-direction: column !important;
    gap: 30px !important;
  }

  .project-image {
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
  }

  .project-info {
    width: 100% !important;
    padding: 0 !important;
  }

  .section-title {
    font-size: 1.8rem !important;
    margin-bottom: 25px !important;
  }

  .project-info h3 {
    font-size: 1.6rem !important;
    text-align: center !important;
  }

  .project-description {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin: 15px 0 !important;
  }

  .stack {
    padding-left: 20px !important;
    margin: 15px 0 !important;
  }

  .stack li {
    font-size: 0.9rem !important;
    margin-bottom: 10px !important;
    line-height: 1.5 !important;
  }

  .project-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 20px !important;
  }

  .project-btn i {
    position: relative;
    top: -1px; /* Micro-ajustement optique */
    margin-right: 8px !important;
    font-size: 1.1em !important;
  }
  .btn_git{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}