@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap");

:root {
  --swiper-navigation-color: #a7ffff;
  --swiper-pagination-color: #a7ffff;
  --swiper-pagination-bullet-inactive-color: white;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: "Space Grotesk", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #0d0d0d;
  color: white;
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 1200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  background-color: #1a1a1a;
}

header div {
  display: flex;
  flex-direction: row;
  align-items: left;
  gap: 10px;
}

div a {
  color: white;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  text-decoration: none;
  font-size: 24px;
  color: white;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: white;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.menu-icon {
  font-size: 24px;
  cursor: pointer;
}

main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto;
  text-align: center;
}

#landing {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 15px;
}

.left {
  opacity: 0;
  animation: moveInLeft 1s forwards;
}

.right {
  opacity: 0;
  animation: moveInRight 1s forwards;
}

#landing h1 {
  font-size: 60px;
  font-weight: 300;
  margin: 0;
  text-align: center;
}

#about {
  width: 75%;
}

.button-work {
  position: relative;
  display: flex;
  align-items: center;
  text-decoration: none;
  border: solid #a7ffff;
  border-radius: 4px;
  padding: 5px 20px;
  font-size: 24px;
  gap: 10px;
  transition: transform;
  opacity: 0;
  animation: moveInBottom 1s forwards;
  animation-delay: 0.5s;
}

.button-work:hover {
  transform: translateY(-5px) !important;
}

.button-work button {
  cursor: pointer;
  color: #a7ffff;
  background-color: transparent;
  border: none;
  box-shadow: none;
  font-size: inherit;
}

h1 span {
  color: #a7ffff;
}

.project-box .fa-github {
  color: #1a1a1a;
}

.fa-external-link {
  color: #1a1a1a;
}

.fa-arrow-down {
  color: #a7ffff;
}

.school-link {
  text-decoration: none;
  color: #1677ff;
  position: relative;
  display: inline-block;
}

.school-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #1677ff;
  transition: width 0.5s ease;
}

.school-link:hover::after {
  width: 100%;
}

@media (max-width: 992px) {
  main {
    width: 85% !important;
  }

  #landing {
    margin-bottom: 100px;
  }

  #landing h1 {
    font-size: 48px;
  }

  .skills-grid {
    grid-template-columns: repeat(1, 1fr) !important;
  }

  .skill {
    align-items: center !important;
    margin-right: 0 !important;
  }

  .skill div {
    gap: 40px !important;
  }
}

@media (min-width: 769px) {
  .menu-icon {
    display: none !important;
  }

  #menuDialog {
    display: none !important;
  }
}

@media (max-width: 768px) {
  main {
    width: 95% !important;
  }

  .menu-icon {
    display: block !important;
  }

  #landing {
    margin-bottom: 50px;
  }

  #landing h1 {
    font-size: 36px;
  }

  .mobile {
    display: none;
  }

  .section-body {
    flex-direction: column;
  }

  section h1 {
    font-size: 36px !important;
    text-align: center !important;
  }

  .me {
    width: 30% !important;
    margin: 0 !important;
  }

  .skill div {
    gap: 30px !important;
  }

  .skill img {
    width: 60px !important;
  }

  .back-to-top {
    bottom: 45px !important;
  }
}

@media (max-width: 480px) {
  header {
    padding: 15px 30px;
  }
  #landing {
    margin-bottom: 0px;
  }

  #landing h1 {
    font-size: 24px !important;
    text-align: center;
  }

  p {
    font-size: 18px !important;
  }

  .mobile {
    display: none;
  }

  .button-work {
    font-size: 18px;
  }

  .me {
    width: 50% !important;
    margin: 0 !important;
  }

  .skill h2 {
    white-space: wrap !important;
  }

  .skill div {
    gap: 20px !important;
  }

  .project-box {
    width: 275px !important;
  }

  .project-title {
    font-size: 24px !important;
  }

  .contact-infos {
    flex-direction: column !important;
    gap: 0px !important;
  }

  .back-to-top {
    bottom: 20px !important;
    right: 20px !important;
    width: 35px !important;
    height: 35px !important;
  }
}

p {
  font-size: 24px;
  text-align: justify;
  margin: 15px;
}

section h1 {
  font-size: 48px;
  text-align: left;
  margin: 20px;
}

.section-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px 0px;
}

#skills {
  width: 75%;
}

#projects {
  width: 75%;
}

#projects .section-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 75px;
}

#certificates .section-body {
  display: flex;
  align-items: center;
  justify-content: center;
}

.me {
  width: 25%;
  height: auto;
  margin: 15px;
  border-radius: 16px;
}

.skill h2 {
  margin-top: 30px !important;
  white-space: nowrap;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.skills-grid a {
  color: white;
  text-decoration: none;
}

.skill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-right: 50px;
}

.skill img {
  width: 75px;
  transition: transform 0.3s ease-in-out;
}

.skill div {
  display: flex;
  gap: 50px;
}

.skill-item {
  position: relative;
}

.skill-item:hover img {
  transform: scale(1.1);
}

.tooltip {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  background-color: transparent;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.skill-item:hover .tooltip {
  display: block;
  opacity: 1;
  visibility: visible;
}

.project-image {
  width: 100%;
  border-radius: 20px;
  transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.project-image:hover {
  box-shadow: 0px 0px 25px #a7ffff;
}

.project-box {
  width: 400px;
  height: 520px;
  background-color: #1a1a1a;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
}

.project-title {
  text-align: center;
  font-size: 36px;
  margin: 20px 0px;
}

.project-description {
  margin: 0px 30px;
  font-size: 20px;
}

.button {
  display: flex;
  align-items: center;
  gap: 5px;
  background-color: #ffffff;
  color: #1a1a1a;
  width: max-content;
  margin: 20px;
  font-size: 16px;
  padding: 10px 20px;
  text-align: start;
  border-radius: 10px;
}

.button:hover {
  filter: brightness(0.8);
}

swiper-container {
  width: 100%;
  height: 100%;
  max-width: 100vw;
}

swiper-slide {
  background: transparent;
  display: flex;
  flex-direction: column;
}

swiper-slide img {
  width: 75%;
  border-radius: 20px;
}

.swiper-name {
  color: #ffffff;
  font-size: 24px !important ;
}

.icon {
  display: flex;
  gap: 20px;
  font-size: 20px;
}

.icon-item:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease-in-out;
}

i {
  color: white;
}

#contact {
  padding-bottom: 40px;
  background-color: #1a1a1a;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#certificates {
  background-color: #1a1a1a;
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-whole {
  width: 75%;
}

.contact-infos {
  display: flex;
  flex-direction: row;
  gap: 30px;
}

.contact-label {
  color: grey;
  font-size: 18px;
}

.contact-method {
  color: #e6e6e6;
  font-size: 18px;
  font-weight: bold;
}

#tsparticles {
  z-index: -1;
  position: absolute;
  height: 100vh;
}

dialog {
  inset: 120px 50% auto;
  transform: translateX(-50%) translateY(-20%) !important;
  position: absolute;
  width: 75vw;
  padding: 20px;
  border-radius: 16px;
  border: none;
  text-align: center;
  background-color: #1a1a1a;
  z-index: 1000;
}

.dialog-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 !important;
}

.dialog-content a {
  outline: none;
  text-decoration: none;
  font-size: 24px;
  color: white;
}

p a {
  text-decoration: none;
  color: white;
  position: relative;
}

p a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: white;
  transition: width 0.4s ease;
}

p a:hover::after {
  width: 100%;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.back-to-top:hover {
  opacity: 1;
  transform: scale(1.1);
  transition: transform 0.3s ease-in-out;
}

@keyframes moveInLeft {
  0% {
    opacity: 0;
    transform: translateX(-10rem);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes moveInRight {
  0% {
    opacity: 0;
    transform: translateX(10rem);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes moveInBottom {
  0% {
    opacity: 0;
    transform: translateY(4rem);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
