body {
  margin: 0;
  padding: 0;
  background: black;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(255, 255, 255, 0.5) black;
}

::selection {
  background: #ffffff;
  color: #000000;
}

.site-footer {
  background: linear-gradient(180deg, #0f0f0f, #090909);
  color: #9a9a9a;
  font-size: 0.85rem;
  padding: 24px 10px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
}

nav {
  position: fixed;
  width: 80%;
  margin-left: 8%;
  margin-top: 1rem;
  border-radius: 50px;
  padding: 0.75rem 1rem;
  border: 1px solid #ffffff50;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

ul {
  display: flex;
  align-items: center;
  height: 10px;
}

.nav-menu {
  display: flex;
  align-items: center;
  flex: 1;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  margin-right: 1rem;
  margin-left: 1rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  margin: 4px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-8px, -8px);
}

.nav-links {
  color: white;
  text-decoration: underline #ffffff35;
  font-size: 20px;
  transition: all 0.5s ease;
  border-radius: 10px;
  padding: 5px;
  margin: 5px;
}

.nav-links:hover {
  text-decoration: underline #ffffff;
}

.theme {
  position: fixed;
  height: 30px;
  width: 30px;
  right: 2rem;
  border: 1px solid #5c5c5c;
  border-radius: 30%;
  background-color: #000000b0;
  z-index: 1001;
}

.btn-theme {
  background: url("assets/icons/dark-mode.svg") no-repeat center center/cover;
  height: 80%;
  width: 80%;
  margin: 10%;
  cursor: pointer;
}

.home {
  background: url("assets/medias/2-chambre3d/Batterie-4K.png") no-repeat center
    center/cover;
  height: 100vh;
  overflow: hidden;
  text-align: center;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
}

.titre {
  color: white;
  font-size: 50px;
  text-shadow: 0px 0px 10px #ffffff;
  transition: all 0.5s ease;
  margin: 0;
}

.titre:hover {
  text-shadow: 0px 0px 20px #ffffff;
}

.sous-titre {
  color: white;
  font-size: 18px;
  text-shadow: 0px 0px 10px #ffffff;
  transition: all 0.5s ease;
  margin: 0;
  height: 10vh;
}

.container-about {
  max-width: 1000px;
  margin-left: 10%;
  margin-right: 10%;
  margin-bottom: 200px;
}

.about {
  margin: 0 auto;
  padding: 20px;
  background: linear-gradient(30deg, #0000002a, #2a1f12);
}

.about-titre {
  margin-top: 20vh;
}

.link-cv {
  text-decoration: none;
  padding: 7px;
  border-radius: 5px;
  transition: all 0.5s ease;
  display: inline-block;
  color: #ffffff;
  text-align: center;
  width: 120px;
  cursor: pointer;
  border: 1px solid #ffffff;
}

.link-cv:hover {
  animation: hover-cv 3s linear infinite;
  background: rgb(255, 255, 255);
  color: rgb(0, 0, 0);
}

@keyframes hover-cv {
  0% {
    box-shadow: 0 0 1px #ffffff;
  }
  50% {
    box-shadow: 0 0 100px #ffffff8e;
  }
  100% {
    box-shadow: 0 0 1px #ffffff;
  }
}

.projects {
  padding: 20px;
  max-width: 1500px;
  margin: 0 auto;
}
.projects-titre {
  text-align: center;
  font-size: 30px;
  padding: 100px 0 40px 0;
  font-weight: 800;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  grid-auto-rows: 1fr;
  gap: 20px;
  padding: 20px 0;
  margin: 0 auto;
}

.project-card {
  background: rgb(20, 20, 20);
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  border: 1px solid #ffffff20;
  transition: all 0.2s ease;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.project-image {
  width: 100%;
  aspect-ratio: 16/9;
  max-width: 100%;
  background: linear-gradient(50deg, #272727, #0e0e0e);
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: all 0.5s ease;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  padding: 25px 16px 0px 16px;
  margin: 0;
}

.project-description {
  padding: 0px 16px 1px 16px;
  color: #dcdcdc;
  flex-grow: 1;
}

.project-link {
  display: inline-block;
  margin: 0 16px 16px 16px;
  padding: 8px 12px;
  background: linear-gradient(90deg, #5b6bf67e, #2e008279);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}

.project-link-X {
  display: inline-block;
  margin: 0 16px 16px 16px;
  padding: 8px 12px;
  background: linear-gradient(90deg, #5353537e, #38383879);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
  transition: transform 0.5s ease;
}

.project-link {
  display: inline-block;
  text-align: center;
  cursor: pointer;
}

.project-link span {
  display: inline-block;
  position: relative;
  transition: 0.5s;
}

.project-link span:after {
  content: "\2192";
  position: absolute;
  opacity: 0;
  right: -20px;
  transition: 0.5s;
}

.project-link:hover span {
  padding-right: 25px;
}

.project-link:hover span:after {
  opacity: 1;
  right: 0;
}

.contact {
  height: 50vh;
  margin-top: 100px;
}

@media (max-width: 575px) {
  nav {
    width: 80%;
    margin-left: 6%;
    margin-top: 1rem;
    border-radius: 50px;
    border: 1px solid #ffffff50;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.5);
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: 0;
    top: 60px;
    flex-direction: column;
    width: 90%;
    padding: 1rem;
    border-bottom: 1px solid #ffffff50;
    gap: 0;
    transform: translateX(-120%);
    transition: transform 0.3s ease;
    height: 225px;
    overflow-y: auto;
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.8);
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-links {
    width: 89%;
    padding: 1rem !important;
    margin: 0 !important;
    border-radius: 0 !important;
    display: block;
    text-align: left;
    font-size: 20px;
    border-bottom: 1px solid #ffffff20;

    text-decoration: underline #ffffff35;
    transition: all 0.5s ease;
  }

  .nav-links:hover {
    text-decoration: underline #ffffff;
  }

  .nav-links:last-child {
    border-bottom: none;
  }

  .theme {
    z-index: 1001;
    right: 2rem;
  }

  .projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 1fr;
    gap: 20px;
    padding: 20px 0;
    margin: 0 auto;
  }
}
