/* Général */
/*Récupérer les polices*/
@import url('https://fonts.googleapis.com/css2?family=Genos:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Genos:ital,wght@0,100..900;1,100..900&family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at top right, #69005b 0%, #0c0d13 50%);
  background-attachment: fixed;
  font-family: "Kanit", sans-serif;
}

/* Transition de page */

.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.page-transition.active {
  opacity: 1;
  pointer-events: all;
}

body {
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.loaded {
  opacity: 1;
}

/* Nav Barre */
.fixed-nav-bar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  background-color: #222;
  box-shadow: 0 0 15px 2px rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  z-index: 1000;
  height: 8vh;
  width: 100%;
  max-width: 1700px;
  margin: 10px auto;
}

.nav-links {
  display: flex;
  gap: 15px;
  transition: all 0.3s ease;
}

.nav-links.hidden {
  display: none;
}

@media screen and (min-width: 768px) {
  .nav-links {
    display: flex !important;
    gap: 15px;
  }

  .hamburger-menu {
    display: none;
  }
}

.logo {
  text-transform: uppercase;
  color: #ffffff;
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
}

span {
  color: #a80092;
  font-weight: 600;
}

.drop-down-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.3s ease;
  height: 8vh;
}

.nav-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #CCC;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  z-index: 1;
  height: 100%;
  width: 100%;
}

.nav-links a:hover {
  color: #FFF;
}

.drop-down-item::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: #a80092;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
  z-index: 0;
}

.drop-down-item:hover {
  background-color: #444;
}

.drop-down-item:hover::after {
  transform: scaleX(1);
}

.hamburger-menu {
  display: none;
  font-size: 24px;
  color: #CCC;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #222;
    width: 100%;
    z-index: 1000;
    border-radius: 0;
  }

  .nav-links.hidden {
    display: none;
  }

  .hamburger-menu {
    display: block;
  }

  .drop-down-item {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 20px;
  }

  .fixed-nav-bar {
    justify-content: space-between;
  }
}


/* Texte */

.about-me {
  max-width: 1300px;
  margin: 50px auto;
  padding: 20px;
}

.about-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 60px;
  padding-top: 5%;
}

.about-text {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #FFF;
  flex: 1 1 50%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-text h1 {
  font-family: "Genos", sans-serif;
  font-size: 2rem;
  margin-bottom: 10px;
}

.blue-line {
  border: 2px solid #a80092;
  width: 50px;
  margin: 0 0 20px 0;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #FFF;
}

.stat {
  width: 50%;
  transition-duration: 0.4s;
}

.stat:hover {
  background-color: #444;
}

.stat p {
  padding: 5px;
  margin: 5px;
}

.sep-line {
  border: 2px solid #ffffff;
  margin: 0;
}

@media screen and (max-width: 1200px) {

  .about-text {
    align-items: center;
        text-align: center; 
  }

  .about-container,
  .hobbies-list {
    flex-direction: column;
    text-align: center;
  }

  .about-text,
  .about-image {
    max-width: 100%;
  }

  .stat {
    width: 100%; 
    display: flex;
    align-items: center; 
    justify-content: center; 
    flex-direction: column;
  }
  
  .stat p {
    margin: 0;
    width: 100%;
  }

  .sep-line {
    width: 100%;
  }

  .blue-line {
    margin: 0 auto 20px auto;
  }
}

/*animation images*/

.image-gallery {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.main-image {
  width: 500px; 
  height: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s, opacity 0.2s;
}

.main-image:hover {
transform: scale(1.1); 
z-index: 100;
}

.main-image img,
.thumbnail {
  width: auto; 
  height: auto;
  max-width: 100%; 
  max-height: 350px; 
  object-fit: cover; 
  box-shadow: 0 0 15px 2px rgba(0, 0, 0, 0.5);
  border-radius: 10px;

}

.thumbnails {
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 0;
}

.thumbnail {
  cursor: pointer;
  max-width: 100px; 
  max-height: 70px; 
  border-radius: 5px;
  object-fit: cover;
  transition: transform 0.2s, opacity 0.2s;
}

.thumbnail:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.image-content {
  position: relative;
  display: block;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 15px;
  transition: all .5s ease;
}

@media screen and (max-width: 1200px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    max-width: 100%;
    text-align: center;
  }

  .image-gallery {
    flex-direction: column;
    align-items: center;
  }

  .main-image {
    width: 100%;
  }

  .thumbnails {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .thumbnail {
    margin: 10px 15px;
  }
}


/* Sections connaissances */

.about-text {
  font-size: 2.5rem;
  font-family: "Genos", sans-serif;
  margin-bottom: 15px;
  color: #FFF;
  flex: 1 1 50%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.learned {
  max-width: 1300px;
  margin: 50px auto;
  padding: 20px;
}

.learned-list {
  margin-bottom: 30px;
}

.learned-right {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #222;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.learned-right.visible {
  opacity: 1;
  transform: translateY(0);
}


.learned-right:hover {
  transform: scale(1.02);
}


.learned-container .learned-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #FFF;
  margin-top: 5px;
}

@media screen and (max-width: 1200px) {

  .learned-list {
    margin: 0 auto;
  }
  
  .learned-text {
    text-align: left;
  }

  .learned-desc {
    width: -webkit-fill-available;
  }

  .learned-text,
  .learned-image {
    max-width: 100%;
  }
}


/* lien externe */

button {
  all: unset;
  display: inline-block;
}

.btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #69005b;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #500045;
}

/* Fond */  

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

canvas {
  display: block;
  vertical-align: bottom;
}