* {
  margin: 0;
  padding: 0;
}

body {
  background-color: black;
  color: white;
  font-family: "Inter", sans-serif;
}

.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.5)),
    url("/fond_header.jpg");
  background-size: cover;
  background-position: center;

  h1 {
    font-size: 3rem;
    margin: 1rem;
    text-align: center;
  }
}

.presentation {
  padding: 3rem 5rem;
  display: flex;
  align-items: center;
  align-content: center;
  text-align: center;
  gap: 2rem;
}

.flip-container {
  width: 20rem;
  height: 20rem;
  transform-style: preserve-3d;
  perspective: 100rem;
  margin: 0 auto;
}

.flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  animation: rotation 5s infinite linear;
}

@keyframes rotation {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

.back {
  transform: rotateY(180deg);
}

.front,
.back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  backface-visibility: hidden;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(255, 244, 229, 0.2),
    0 0 20px rgba(255, 244, 229, 0.3), 0 0 40px rgba(255, 204, 153, 0.4);
}

.front img,
.back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio {
  width: 60%;
  background: rgba(255, 255, 255, 0.1); /* semi-transparent */
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(10px); /* support Safari */
  border-radius: 1.5rem;
  padding: 2rem;
  margin: 4rem auto;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

  h2 {
    font-size: 2rem;
    margin: 2rem;
  }

  p {
    font-size: 1.4rem;
    line-height: 170%;
    text-align: justify;
    margin: 2rem;
  }
}

.personnalite {
  padding: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  text-align: center;
  gap: 2rem;
  margin-left: 10rem;
}

.personnalite_bio {
  width: 40%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
  border-radius: 2rem;
  color: white;
  box-shadow: 10px 10px 20px rgba(255, 244, 229, 0.2);

  h2 {
    font-size: 2rem;
    margin: 2rem;
  }

  p {
    font-size: 1.4rem;
    line-height: 170%;
    text-align: justify;
    margin: 2rem;
  }
}

.personnalite_img {
  width: 25rem;
  height: 40rem;
  margin: 0 auto;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 244, 229, 0.2),
      0 0 20px rgba(255, 244, 229, 0.3), 0 0 40px rgba(255, 204, 153, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: neonFlicker 4s ease-in-out forwards;
  }

  img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 244, 229, 0.2),
      0 0 30px rgba(255, 244, 229, 0.3), 0 0 60px rgba(255, 204, 153, 0.4);
  }
}

@keyframes neonFlicker {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  20% {
    opacity: 0.4;
  }
  30% {
    opacity: 1;
  }
  40% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
  60% {
    opacity: 0.8;
  }
  70% {
    opacity: 1;
  }
  80% {
    opacity: 0.6;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

.experiences {
  h2 {
    font-size: 2rem;
    margin: 4rem;
    text-align: center;
  }
}

.experiences_img {
  width: 50%;
  height: 50%;
  margin: auto;
  img {
    width: 100%;
    height: 80%;
    object-fit: cover;
    border-radius: 2rem;
    box-shadow: 0 0 10px rgba(255, 244, 229, 0.2),
      0 0 20px rgba(255, 244, 229, 0.3), 0 0 40px rgba(255, 204, 153, 0.4);
  }
}

.experiences_bio {
  font-family: "Courier New", monospace;
  font-size: 1.1rem;
  line-height: 1.6;
  white-space: pre-wrap;
  border-right: 2px solid black; 
  animation: blink 1s step-end infinite;
  padding: 1rem;
  width: 60%;
  max-width: 100%;
  margin: 2rem auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
  border-radius: 2rem;
  color: white;
  box-shadow: 10px 10px 20px rgba(255, 244, 229, 0.2);
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

.social-links {
  display: flex;
  gap: 5rem;
  list-style: none;
  padding: 0;
  justify-content: center;
  margin: 3rem auto;
}

.social-links a {
  font-size: 5rem;
  color: white;
}

.social-links a:hover {
  color: #09cc47;
}
