* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  text-decoration: none;
  scroll-behavior: smooth;
  list-style: none;
}

header {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 3rem;
  z-index: 1000;
}

.logo {
  font-size: 1.3rem;
  font-weight: 600;
  color: white;
  text-wrap: nowrap;
  transition: 0.3s ease-in-out;
}

.logo:hover {
  transform: scale(1.1);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

li a {
  position: relative;
  color: white;
  font-weight: 300;
}

li a::before {
  position: absolute;
  content: "";
  width: 0;
  height: 5px;
  background-color: white;
  bottom: 0;
  left: 0;
  top: 25px;
  border-radius: 1rem;
  transition: 0.3s ease-in-out;
  background: linear-gradient(to right, rgb(0, 157, 255), rgb(255, 0, 255));
}

li a:hover::before {
  width: 100%;
}

.visit-btn {
  padding: 0.8rem 1.5rem;
  border-radius: 3rem;
  border: none;
  font-weight: 500;
  font-size: 1rem;
  color: white;
  cursor: pointer;
  text-wrap: nowrap;
  transition: 0.3s ease-in-out;
  background: linear-gradient(to right, rgb(0, 157, 255), rgb(255, 0, 255));
}

.visit-btn:hover {
  background: linear-gradient(to right, rgb(0, 157, 255), rgb(255, 0, 255));
  transform: scale(1.03);
}

#menu-icon {
  font-size: 2rem;
  display: none;
}

nav ul {
  display: flex;
  gap: 2rem;
  /* Add gap between list items */
  align-items: center;
  /* Ensure items are centered vertically */
}

/* section */
section {
  min-height: 100vh;
  padding: 8rem 12%;
  width: 100%;
  position: relative;
}


.about .about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10rem;
  position: relative;
  /* Pour placer l'élément d'animation à l'intérieur */
}

.about .profile-container {
  position: relative;
}

.about img {
  width: 30vw;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  /* Pour garder l'image devant */
}

.about .border-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 10px solid transparent;
  background: linear-gradient(white, white) padding-box,
    linear-gradient(to right, rgb(0, 157, 255), rgb(255, 0, 255));
  border-width: 10px;
  animation: rotateBorder 3s linear infinite;
}

@keyframes rotateBorder {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


.info-box {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  gap: 1.5rem;
}

.info-box h3 {
  font-size: 1.8rem;
  font-weight: 500;
  opacity: 0.8;
}

.info-box h3 {
  font-size: 1.8rem;
  font-weight: 500;
}

.info-box span {
  background: linear-gradient(to right, rgb(0, 157, 255), rgb(255, 0, 255));
  background-clip: text;
  color: transparent;
  font-size: 2rem;
}

.btn-cv {
  display: center;
}

@keyframes draw-border {
  0% {
    width: 0%;
    height: 0%;
  }

  50% {
    width: 100%;
    height: 100%;
  }

  100% {
    width: 0%;
    height: 0%;
  }
}

.btn {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  animation: buttons-scale 3s infinite ease-in-out;
}

@keyframes buttons-scale {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.btn-group {
  display: flex;
  gap: 1rem;
}

.btn {
  border-radius: 3rem;
  padding: 0.5rem 1.5rem;
  border: 2px solid black;
  cursor: pointer;
  font-weight: 500;
  text-wrap: nowrap;
  transition: 0.2s ease-in-out;
}

.btn:hover {
  background: linear-gradient(to right, rgb(0, 157, 255), rgb(255, 0, 255));
  color: white;
  border-color: white;
}

.socials {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.socials i {
  font-size: 2.5rem;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

.socials i:hover {
  transform: scale(1.1);
}

.socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  /* Espace entre les icônes */
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.socials i:hover {
  animation: rotate 0.5s linear;
}

.socials::after {
  content: "";
  position: absolute;
  margin-top: 60px;
  width: 50px;
  /* Longueur du trait */
  height: 4px;
  /* Épaisseur du trait */
  background: linear-gradient(to right, rgb(0, 157, 255), rgb(255, 0, 255));
  border-radius: 5px;
  animation: moveLine 5s ease-in-out infinite;
}

@keyframes moveLine {

  0%,
  100% {
    transform: translateX(-50px);
  }

  50% {
    transform: translateX(50px);
  }
}

/* experience */

.section-title {
  text-align: center;
  font-size: 4rem;
  font-weight: 600;
  margin-bottom: 3rem;
}

.experience-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
}

.experience img {
  width: 24vw;
  border-radius: 3rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-card {
  border: 2px solid black;
  border-radius: 3rem;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: baseline;
  justify-content: left;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.grid-card:hover {
  transform: scale(1.05);
  background: linear-gradient(to right, rgb(0, 157, 255), rgb(255, 0, 255));
  color: white;
}

.grid-card i {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.grid-card span {
  font-size: 1.5rem;
  font-weight: 500;
  background: linear-gradient(to right, rgb(0, 157, 255), rgb(255, 0, 255));
  background-clip: text;
  color: transparent;
}

.grid-card:hover span {
  font-size: 1.5rem;
  font-weight: 500;
  color: white;
}



::-webkit-scrollbar {
  width: 20px;
}

::-webkit-scrollbar-track {
  background-color: rgb(219, 219, 219);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, rgb(0, 157, 255), rgb(255, 0, 255));
}

/* style section projects */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.project-card {
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
  border: 2px solid black;
  border-radius: 3rem;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.project-card:hover {
  background: linear-gradient(to right, rgb(0, 157, 255), rgb(255, 0, 255));
  color: white;
  transform: translateY(-10px) scale(1.02);
}

.project-card img {
  width: 20vw;
}

.project-card:hover .btn {
  border: 2px solid white;
  color: white;
}

.project-card:hover .btn:hover {
  border: 2px solid white;
  background-color: white;
  color: white;
}

.project-card h3 {
  font-size: 2rem;
  font-weight: 500;
}

/* style footer */

footer {
  bottom: 0;
  left: 0;
  height: 6rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
}

footer ul {
  display: flex;
  align-items: center;
  gap: 3rem;
}

footer ul li a {
  color: white;
  font-weight: 500;
}

.copyright {
  font-weight: 300;
}





/* ✅ Responsive Design */
@media (max-width: 1280px) {
  .about .about-container {
    gap: 3rem;
  }

  .experience-info {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  h2 {
    font-size: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 1rem;
    letter-spacing: 1px;
  }
}

@media (max-width: 375px) {
  h2 {
    font-size: 0.2rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 1rem;
    letter-spacing: 1px;
  }
}

@media (max-width: 768px) {

  .header {
    max-width: 70%;
    /* Réduit la largeur à 90% de l'écran */
    margin: 0 auto;
    /* Centre le header horizontalement */
    border-radius: 15px;
    /* Ajoute un effet arrondi pour plus d'esthétique */
  }

  .logo {
    font-size: 1.2rem;
  }



  /* ✅ Sections en colonne */
  .about .about-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .about img {
    width: 60vw;
  }

  /* ✅ Grilles adaptées */
  .grid,
  .projects-grid,
  .veille-grid {
    grid-template-columns: 1fr;
  }

  /* ✅ Boutons */
  .btn,
  .visit-btn {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
  }
}

@media (max-width: 600px) {

  /* ✅ Footer responsive */
  footer {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    /* Augmente l’espace intérieur */
    min-height: 250px;
    /* Augmente la hauteur minimale */
  }

  footer ul {
    flex-direction: column;
    gap: 1.5rem;
  }

  .copyright {
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 768px) {
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: relative;
  }

  .fa-bars {
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background: #333;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .nav-links a {
    color: white;
    text-decoration: none;
    font-size: 18px;
  }

  /* Ajustement du bouton GitHub */
  .visit-btn {
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    width: 50%;
    max-width: 200px;
    text-align: center;
  }
}

/* Styles pour le menu burger */
#menu-icon {
  display: none;
  /* Caché par défaut sur grand écran */
  font-size: 2rem;
  cursor: pointer;
  color: white;
}

/* Responsive: activation du menu burger */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  #menu-icon {
    display: block;
    /* Affiche l'icône du menu burger */
  }
}

/* style section veille technologique */
.veille-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.veille-card {
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
  border: 2px solid black;
  border-radius: 3rem;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.veille-card:hover {
  background: linear-gradient(to right, rgb(0, 157, 255), rgb(255, 0, 255));
  color: white;
  transform: translateY(-10px) scale(1.02);
}

.veille-card img {
  width: 20vw;
}

.veille-card:hover .btn {
  border: 2px solid white;
  color: white;
}

.veille-card:hover .btn:hover {
  border: 2px solid white;
  background-color: white;
  color: white;
}

.veille-card h3 {
  font-size: 2rem;
  font-weight: 500;
}

.input textarea {
  border: 2px solid black;
  border-radius: 2rem;
  padding: 1.5rem;
  font-size: 1.5rem;
  width: 100%;
  max-width: 500px;
  height: 150px;
  /* Hauteur par défaut */
  outline: none;
  transition: 0.3s ease-in-out;
}

.input textarea::placeholder {
  font-size: 1.2rem;
  color: #aaa;
}

.input textarea:focus {
  border-color: #007BFF;
  /* Couleur bleue au focus */
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}



h2 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: transparent;
  background-image: linear-gradient(to right, rgb(0, 157, 255), rgb(255, 0, 255));
  -webkit-background-clip: text;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 3px;
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

h2::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, rgb(0, 157, 255), rgb(255, 0, 255));
  bottom: 0;
  left: 0;
  animation: underlineAnimation 30s ease-in-out infinite;
}

@keyframes underlineAnimation {
  0% {
    transform: scaleX(0);
  }

  50% {
    transform: scaleX(1);
  }

  100% {
    transform: scaleX(0);
  }
}

.contact {
  color: white;
  position: relative;
  display: inline-block;
}

.contact::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 25%;
  height: 3px;
  background: linear-gradient(to right, rgb(0, 157, 255), rgb(255, 0, 255));
  animation: ricochet 10s linear infinite;
}

@keyframes ricochet {
  0% {
    left: 0%;
  }

  50% {
    left: 50%;
  }

  100% {
    left: 100%;
  }
}

.about img:hover {
  transform: scale(1.1);
  /* Agrandit légèrement l'image */
  box-shadow: 0px 0px 20px rgba(0, 157, 255, 0.6);
  /* Ajoute une lueur autour */
  filter: brightness(1.1);
  /* Augmente légèrement la luminosité */
}