/* Stylesheet */

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

body {
  display: flex;
  justify-content: center;
  min-height: 100vh; 
  align-items: center;
  color: white;
  font-family: "Manrope", serif;
  background-image: url(../assets/Accueil/back-aboutme.png);
  background-size: cover;
  background-attachment: fixed;
  overflow:hidden;
}

/* Styles pour le loader */
.particles-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: opacity 0.8s ease;
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.loader-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.loader-logo-container {
  margin-bottom: 30px;
  transform-origin: center;
  animation: float 3s ease-in-out infinite;
}

.loader-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px #24daf2);
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.loader-progress-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.progress-circle {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.progress-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-background {
  fill: none;
  stroke: #333333;
  stroke-width: 5;
}

.progress-indicator {
  fill: none;
  stroke: #24daf2;
  stroke-width: 5;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.3s ease;
}

.progress-text {
  position: absolute;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  color: #ffffff;
}

.loading-message {
  margin-top: 15px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  color: #ffffff;
  letter-spacing: 1px;
  position: relative;
}

.loading-message::after {
  content: '...';
  position: absolute;
  animation: dots 1.5s infinite;
  width: 24px;
  text-align: left;
}

@keyframes dots {
  0% { content: '.'; }
  33% { content: '..'; }
  66% { content: '...'; }
  100% { content: '.'; }
}

.transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #75dfff, #ce7eff);
  transform: translateX(100%);
  z-index: 10;
  transition: transform 0.8s ease-in-out;
}

.animatezoom {
  animation: animateZoom 1s;
}

/* Animation: page accueil */
@keyframes animateZoom {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

/* Animation pour l'apparition du contenu après le loader */
@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.main {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.container {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  height: 100%;
  gap: 70px; 
}

/* Flip Card */
.flip-card {
  background-color: transparent;
  width: 200px;
  height: 200px;
  perspective: 1000px;
  margin-bottom: 60px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

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

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #3498db;
}

.flip-card-front {
  border: dotted #24daf2c6 2px;
}

.flip-card-back {
  background-color: #24daf2c6;
  border: ridge white 2px;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: rotateY(180deg);
}

/* Photo de profil */
.profile-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bouton */
.btn {
  padding: 10px 20px;
  background-color: transparent;
  color: white;
  border: dotted 2px;
  border-radius: 25px 0px 25px 0px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 40px; 
  margin-bottom: 60px; 
  letter-spacing: 2px;
  font-family: "IBM Plex Mono", serif;
  font-weight: lighter;
  line-height: 1.5; 
}

.btn:hover {
  box-shadow: -2px 2px #9c2af4, 2px -2px #2aa7f4;
}

/* Icones Sociales */
.social-icons {
  margin-top: 40px;
  margin-bottom: 40px;
}

.social-icons a {
  margin: 0 15px;
  text-decoration: none;
  color: #ffffff;
  font-size: 16px;
  transition: color 0.3s;
}

.social-icons i {
  padding: 10px;
  font-size: 25px;
}

.social-icons i::after {
  width: 60px;
  height: 60px;
  position: relative;
  content: "";
  bottom: 45px;
  display: flex;
  border: 1px solid #fff;
  border-radius: 9px;
  transform: rotate(45deg);
}

.social-icons i:hover {
  color: #5ce4f4;
  animation: skakeRotate 3s ease 0s 1 normal none;
}

@keyframes skakeRotate {
  0%,
  100% {
    transform: rotate(0deg);
    transform-origin: 50% 50%;
  }
  10% {
    transform: rotate(8deg);
  }
  20%,
  40%,
  60% {
    transform: rotate(-10deg);
  }
  30%,
  50%,
  70% {
    transform: rotate(10deg);
  }
  80% {
    transform: rotate(-8deg);
  }
  90% {
    transform: rotate(8deg);
  }
}

/* Espacement entre les divs */
.container > div {
  margin-bottom: 50px;
}

/* Styles pour les écrans mobiles standards (max-width: 768px) */
@media screen and (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .container {
    margin-top: 40px;
  }

  .flip-card {
    width: 160px;
    height: 160px;
    margin-bottom: 40px;
  }

  .btn {
    font-size: 14px;
    padding: 8px 16px;
    margin-top: 30px;
    margin-bottom: 40px;
  }

  .social-icons {
    margin-top: 40px;
    margin-bottom: 30px;
  }

  .social-icons i {
    font-size: 20px;
  }
  
  /* Styles loader pour mobile */
  .loader-logo {
    width: 80px;
    height: 80px;
  }
  
  .progress-circle {
    width: 60px;
    height: 60px;
  }
  
  .progress-text {
    font-size: 14px;
  }
  
  .loading-message {
    font-size: 12px;
  }
}

/* Styles pour les très petits écrans (max-width: 300px) */
@media screen and (max-width: 300px) {
  body {
    font-size: 14px;
  }

  .container {
    margin-top: 20px;
    padding: 10px;
  }

  .flip-card {
    margin-bottom: 20px;
  }

  .btn {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .social-icons {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .social-icons a {
    margin: 0 10px; /* Espacement légèrement augmenté pour les très petits écrans */
  }

  .social-icons i {
    font-size: 18px; /* Taille des icônes réduite */
  }
  
  /* Styles loader pour très petits écrans */
  .loader-logo {
    width: 60px;
    height: 60px;
  }
  
  .progress-circle {
    width: 50px;
    height: 50px;
  }
  
  .progress-text {
    font-size: 12px;
  }
  
  .loading-message {
    font-size: 10px;
  }
}