* {
  scrollbar-width: thin;
  scrollbar-color: #e74c3c #111;
}

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: #111;
}

::-webkit-scrollbar-thumb {
  background: #e74c3c;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff6b6b;
}

body {
  background: linear-gradient(36deg, #222f3e, #090909, #222f3e);
  background-size: 400% 400%;
  animation: gradientMove 10s ease infinite;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  height: 100vh;
  overflow: hidden;
  color: #fff;
}

body * {
  box-sizing: border-box;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  position: fixed;
  width: 100%;
  z-index: 10;
  gap: 24px;
}

.main-content {
  text-align: center;
}

.main-content__top {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-content: flex-end;
  padding-inline: 16px;
}

.main-content__title {
  font-size: 40px;
  font-weight: 500;
  color: #e74c3c;
  text-shadow: #ffffff 1px 0 2px;
}

.main-content__description {
  font-size: 20px;
  font-weight: 300;
  color: #fff;
  margin-top: 16px;
}

.background__star {
  background: radial-gradient(circle at center, #090909 0%, #161616 100%);
}

.background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.services__item.material-symbols-outlined {
  font-size: 50px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
  background-color: transparent;
  padding: 0;
  border: none;
  color: #fff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0));
  transition: 0.3s ease;
  cursor: default;
}

.services__item.material-symbols-outlined:hover {
  /* filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5)); */
  color: #e74c3c;
}

.services__item.material-symbols-outlined:nth-child(1) {
  animation-delay: 0s;
}
.services__item.material-symbols-outlined:nth-child(2) {
  animation-delay: 0.3s;
}
.services__item.material-symbols-outlined:nth-child(3) {
  animation-delay: 0.6s;
}
.services__item.material-symbols-outlined:nth-child(4) {
  animation-delay: 0.9s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo {
  width: 80px;
  height: auto;
  position: relative;
}

.logo__wrapper {
  width: 110px;
  height: 80px;
  position: absolute;
  background-color: #fff;
  top: 1px;
  left: 7px;
  transform: rotate(80deg);
}

.background__line {
  width: 0;
  height: 100%;
  border: 2px solid #222f3e;
  border-right: none;
  z-index: -1;
  background-color: transparent;
  opacity: 0.1;
}

.background {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  display: flex;
  justify-content: center;
  gap: 100px;
}

.halo-area {
  width: 100%;
  height: 100vh;
  background: radial-gradient(circle 100px at 50% 50%, rgba(255, 255, 255, 0.4), transparent 70%);
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
}

nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav li {
  display: flex;
  justify-content: center;
  position: relative;
  width: max-content;
}

nav li:last-child {
  background-color: #e74c3c;
  overflow: hidden;
}

/* nav li:last-child a {
  color: #fff;
} */

nav li a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: 0.3s ease;
  position: relative;
  padding: 8px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

nav li a::before {
  content: "";
  position: absolute;
  transform: translateX(-50%);
  left: 50%;
  width: 0;
  bottom: 0;
  border-top: solid 2px #e74c3c;
  z-index: 1;
  transition: 0.3s ease;
  transition: 0.3s;
}

nav li a:hover::before,
nav li a.active::before {
  width: 100%;
}

nav li:last-child a::before {
  border-color: #fff;
}

main {
  width: 100%;
  scroll-snap-type: y proximity;
  height: 100vh;
  overflow-y: auto;
}

.form-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

form {
  background-color: #fff;
  width: 100%;
  position: relative;
  margin-inline: auto;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: all;
  text-align: center;
  transform: translateY(150%);
  animation: formAppear 0.3s ease forwards;
  animation-delay: 2s;
  padding-top: 30px;
  min-height: 370px;
  z-index: 2;
}

.form-container {
  transform: translateY(150%);
  animation: formAppear 0.3s ease forwards;
  animation-delay: 1.2s;
}

@keyframes formAppear {
  to {
    transform: translateY(0);
  }
}

.form__title {
  font-size: 20px;
  padding: 8px;
  color: #000;
}

.form-control {
  padding: 8px;
  width: 100%;
  border: solid 1px rgba(0, 0, 0, 0.1);
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

.form-control:focus,
.form-control:focus-visible,
.form-control:focus-within,
.form-control:focus-visible {
  outline: none;
}

form button {
  width: fit-content;
  margin-inline: auto;
  padding: 8px 16px;
  background-color: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  transition: 0.3s ease;
}

form button:hover {
  background-color: #c0392b;
}

nav {
  background-color: #fff;
  border-radius: 50px;
  display: flex;
  justify-content: center;
  min-height: 40px;
  overflow: hidden;
  text-align: center;
}

section {
  min-height: 100vh;
  scroll-snap-align: center;
  padding-bottom: 370px;
  padding-top: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

section:not(.section-5):not(.section-1) {
  padding-bottom: 132px;
}

.iphone-x {
  position: relative;
  background-color: #7371ee;
  background-image: linear-gradient(60deg, #7371ee 1%, #a1d9d6 100%);
  border-radius: 40px 40px 0 0;
  box-shadow: 0px 0px 0px 11px #1f1f1f, 0px 0px 0px 13px #191919, 0px 0px 0px 20px #111;
  max-width: 400px;
  width: 100%;
  overflow: hidden;
  transition: transform 0.3s;
  cursor: pointer;

  &:hover {
    transform: translateY(0) !important;
  }

  &:before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
  }

  &:before {
    top: 0px;
    width: 56%;
    height: 30px;
    background-color: #1f1f1f;
    border-radius: 0px 0px 40px 40px;
  }

  i,
  b,
  s,
  span {
    position: absolute;
    display: block;
    color: transparent;
    z-index: 2;
  }

  i {
    top: 0px;
    left: 50%;
    transform: translate(-50%, 6px);
    height: 8px;
    width: 15%;
    background-color: #101010;
    border-radius: 8px;
    box-shadow: inset 0px -3px 3px 0px rgba(256, 256, 256, 0.2);
    z-index: 4;
  }

  s {
    top: 50px;
    color: #fff;
    text-align: center;
    text-decoration: none;
    width: 100%;
    font-size: 70px;
    font-weight: 100;
    padding-top: 60px;
  }

  span {
    bottom: 50px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    left: 30px;

    & + span {
      left: auto;
      right: 30px;
    }
  }
}

h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #fff;
}

.stack-container {
  color: #000;
  padding: 16px;
  border-radius: 16px;
  text-align: left;
  position: relative;
}

.stack-container h2 {
  background-color: inherit;
}

.stack-container ul {
  column-gap: 16px;
  color: #000;
  column-count: 2;
}

.stack-container ul li {
  font-size: 16px;
  background-color: #fff;
  padding: 8px;
  border-radius: 8px;
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

.stack-container ul li:not(:last-child) {
  margin-bottom: 16px;
}

.stack-container ul li span {
  display: block;
}

.stack-container ul li span:last-child {
  font-size: 12px;
}

.section-5 p {
  font-size: 40px;
}

.section-5 p > span:last-child {
  font-weight: 700;
}

.menu-button {
  padding: 0;
  border: none;
  background-color: transparent;
  cursor: pointer;
}

.stack-container ul li,
.stack-container img {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stack-container ul li.show,
.stack-container img.show {
  opacity: 1;
  transform: translateY(0);
}

.infomaniak-partner {
  width: 200px;
  margin-top: 16px;
  display: block;
}

.infomaniak-partner__link {
  display: block;
  width: fit-content;
  margin-inline: auto;
  transition: 0.3s;
}

.infomaniak-partner__link:hover {
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .menu-button-burger {
    display: none;
  }
}

@media (max-width: 768px) {
  section:not(.section-5):not(.section-1) {
    justify-content: flex-start;
  }

  header {
    position: fixed;
    top: 0;
    left: 0;
    padding: 0;
    gap: 0;
    background-color: #fff;
    max-height: 80px;
    transition: 0.3s;
    overflow: hidden;
  }

  header.active {
    max-height: 200px;
  }

  nav {
    width: 100%;
    border-radius: 0;
    background-color: transparent;
    transition: 0.3s;
  }

  nav ul {
    opacity: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  header.active nav ul {
    opacity: 1;
  }

  nav ul {
    transition: 0.3s;
    overflow: hidden;
    background-color: #fff;
  }

  .menu-button-burger {
    cursor: pointer;
    padding: 16px;
    background-color: #fff;
    border: none;
    overflow: hidden;
    flex-shrink: 0;
    transition: 0.3s;
    font-size: 30px;
  }

  .iphone-x {
    max-width: 80vw;
  }

  .background {
    display: none;
  }

  .logo__wrapper {
    display: none;
  }

  nav li:last-child a {
    color: #e74c3c;
  }

  nav li:last-child {
    background-color: transparent;
  }

  section {
    padding-top: 80px;
    padding-bottom: 320px;
    justify-content: center;
  }

  .main-content__title {
    font-size: 20px;
  }

  .main-content__description {
    font-size: 16px;
  }

  form {
    min-height: 320px;
  }

  .services__item {
    font-size: 40px;
  }

  .stack-container ul {
    column-count: 1;
  }

  .form__title {
    font-size: 16px;
    padding-bottom: 0;
  }

  .form-control {
    padding: 4px;
  }

  .services__item.material-symbols-outlined {
    font-size: 40px;
  }

  .main-content__top {
    padding-top: 16px;
  }

  section {
    scroll-snap-align: start;
  }

  .section-5 p {
    padding-top: 16px;
  }

  .services-container {
    margin-top: 16px;
  }

  nav li:last-child a::before {
    border-color: #000;
  }

  nav li a {
    padding: 4px;
  }
}
