html {
  scroll-behavior: smooth;
}

:root {
  --font-primary: Nunito, sans-serif;
  --font-title: "Advent Pro", sans-serif;
  --font-size: 16px;
  --line-height: 1.5;

  --color-gray-100: #bababa;
  --color-gray-500: #818181;
  --color-dark-500: #252525;
  --color-light-500: #ffffff;

  --primary-color-500: #5b248b;
  --primary-color-100: #8d43cd;
  --secondary-color: #fff;

  --gradient-primary: linear-gradient(
    101deg,
    rgba(39, 0, 73, 0.95) 7.09%,
    rgba(62, 0, 117, 0.95) 58.61%
  );
  --gradient-secondary: linear-gradient(96deg, #f2f2f2 5.08%, #dfdfdf 55.08%);
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  font-size: var(--font-size);
  line-height: var(--line-height);

  a {
    text-decoration: none;
  }
}

.hidden {
  display: none !important;
}

header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  color: var(--color-dark-500);
  background: var(--color-light-500);
  z-index: 100;
}

header nav {
  display: flex;
  padding: 16px 48px;
  flex-direction: column;
  align-items: center;
}

header nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

nav ul li a:link,
nav ul li a:visited {
  display: flex;
  padding: 16px 32px;
  justify-content: center;
  align-items: center;
  /* border-radius: 1rem; */
  border-bottom: 2px solid transparent;
  cursor: pointer;

  /* NavLink */
  font-size: 0.875rem;
  line-height: 1rem;
  text-transform: uppercase;

  transition: all 300ms ease-in-out;

  color: var(--color-gray-500);
}

nav ul li a:hover,
nav ul li a:active {
  /* border-bottom: 2px solid var(--primary-color-100); */
  padding-top: 6px;
  padding-bottom: 26px;
  font-weight: 700;

  transition: all 300ms ease-in-out;

  color: var(--primary-color-100);
}

nav ul li a .icon_menu {
  display: none;
}

.buttons {
  display: flex;
  padding: 10px 0px;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;

  .button {
    text-decoration: none;
    font-size: 0.875rem;
    display: flex;
    padding: 16px 32px;
    align-items: center;
    gap: 10px;
    border-radius: 16px;
    border: 1px solid transparent
  }

  .primary {
    color: var(--color-light-500);
    background: var(--primary-color-500);
  }

  .primary:hover {
    background: var(--primary-color-100);
    transition: all 300ms ease-in-out;
  }

  .secondary {
    color: var(--primary-color-500);
    border-bottom: 1px solid var(--primary-color-500);
  }

  .secondary:hover {
    border: 1px solid var(--primary-color-500);
    transition: all 300ms ease-in-out;
  }
}

.hero-section {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  background: var(--gradient-primary);
  height: 90vh;
  position: relative;

  #particles-js {
    width: 100%;
    height: 100%;
  }

  .logo {
    position: absolute;
    top: 50%;
    left: 50%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    transform: translate(-50%, -50%);
    color: var(--color-light-500);
    text-transform: uppercase;
    text-align: justify;

    span {
      display: block;
      line-height: 1em;
      font-family: var(--font-title);
      font-weight: 300;
    }

    .name {
      font-size: 3rem;
    }
    .surname {
      font-size: 2.45rem;
    }
    .line {
      height: 1px;
      width: 100%;
      background-color: var(--color-light-500);
      margin: 10px 0px;
    }
    .position {
      font-size: 1.75rem;
    }
  }
}

.section {
  display: flex;
  padding: 32px 0px;
  justify-content: center;
  align-items: flex-start;
  align-self: stretch;

  .content {
    display: flex;
    width: 1140px;
    padding: 32px;
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  h2 {
    color: var(--primary-color-500);
    font-family: Advent Pro;
    font-size: 2rem;
    font-weight: 500;
    line-height: 80%;
    text-transform: uppercase;
  }
}

#about {
  .content {
    gap: 32px;
    align-self: stretch;
  }

  h2 {
    color: var(--primary-color-500);
  }

  a {
    color: var(--primary-color-500);
    text-decoration: none;
    font-weight: 500;
  }

  .icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    line-height: 0;
    bottom: -3px;
    position: relative;
    margin-inline: 8px;
  }

  .icon:hover {
    transform: scale(1.1);
  }
}

#portfolio {
  background: var(--gradient-secondary);

  .content {
    flex-direction: column;
  }

  .projects {
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: center;
  }

  .project {
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    max-height: 250px;
    max-width: 40%;
    border-radius: 16px;
    box-shadow: 4px 4px 4px 0px rgba(0, 0, 0, 0.1);
  }

  .project img {
    max-width: 100%;
    object-fit: cover;
    object-position: center;
  }

  .project .details {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--gradient-primary);
    color: #e3e3e3;
    font-weight: 100 !important;
    font-size: 0.875rem;
    line-height: 1rem;
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 20px;
    gap: 16px;
    position: absolute;
    top: 0;
    bottom: 0;
    transform: translateY(100%);
    transition: all 500ms ease-in-out;
    h3 {
      font-weight: inherit !important;
      margin-block: 0px;
      text-transform: uppercase;
    }

    p {
      margin-block: 0px;
    }
  }

  .project:hover .details {
    display: flex;
    transform: translateY(0);

    transition: all 500ms ease-in-out;
  }
}

#contact {
  background: var(--gradient-primary);
  color: var(--color-light-500);

  .content {
    flex-direction: column;
  }

  h2 {
    color: var(--color-light-500);
    margin-block: 0px;
  }
}

#breadcrumbs {
  color: var(--color-light-500, #FFF);
  text-align: center;
  font-family: Advent Pro;
  font-size: 32px;
  font-style: normal;
  font-weight: 500;
  line-height: 80%;
  background: var(--gradient-primary);

  a {
    color: var(--color-light-500, #FFF);
  }
}

#details {
  font-family: Nunito;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  color: var(--color-dark-500);

  .content {
    justify-content: space-between;
    align-items: flex-start;
  }

  .content > div {
    width: calc(50% - 32px);
  }

  h2 {
    color: var(--primary-color-500);
    font-size: 24px;
    text-transform: uppercase;
  }

  .description {
    padding: 24px;
    border-radius: 16px;
    background: #F5F5F5;
    box-shadow: 2px 2px 10px 0px rgba(0, 0, 0, 0.10);
    color: var(--color-dark-500);
    font-family: Nunito;
    font-size: 1rem;
    font-weight: 300;
    line-height: 150%;

    .buttons {
      justify-content: space-between;
      text-transform: uppercase;
    }

    .button {
      font-size: 0.75rem !important;
      padding: 8px 16px !important;
    }
  }

  .solution ul {
    line-height: 200%;
    margin:0;
    padding-left:1rem
  }
}

.galleria{
  width: 100%;
  aspect-ratio: 16/9;
  background: #000
}


@media (max-width: 830px) {
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .section {
    .content {
      max-width: 100%;
      flex-direction: column;
      overflow-x: hidden;
    }
  }

  header {
    max-width: 100%;
    overflow: hidden;

    nav {
      padding: 1rem;
    }

    nav ul {
      gap: 0.5rem;
    }

    nav ul li a:link,
    nav ul li a:visited {
      padding: 0.75rem;
      display: flex;
      flex-direction: column-reverse;
    }

    nav ul li a span {
      font-size: 0.75rem;
    }
    nav ul li a .icon_menu {
      display: block;
      margin-block: 4px;
    }
  }

  #portfolio {
    .offset {
      margin-left: 0;
      width: calc(100% + 180px);
    }

    h2 {
      width: 100%;
      margin-top: 0;
    }
    .projects {
      display: flex;
      align-items: center;
      overflow-x: scroll;

      -ms-overflow-style: none; /* Internet Explorer 10+ */
      scrollbar-width: none; /* Firefox */
    }

    .projects::-webkit-scrollbar {
      display: none; /* Safari and Chrome */
    }

    .projects img {
      border-radius: 16px;
      margin-bottom: -16px;
      z-index: 1;
      overflow: hidden;
    }

    .project {
      min-width: 65%;
      display: flex;
      flex-direction: column;
      max-height: 100%;
    }

    .project:last-child {
      margin-right: 80px;
    }

    .project:first-child {
      margin-left: 80px;
    }

    .project .details {
      transform: translateY(0%);
      position: relative;
      padding: 40px 32px 32px;
      text-align: left;
      align-items: flex-start;
      line-height: 1.5;
      font-size: 1rem;
    }
  }

  #contact {
    text-align: center;
    .buttons {
      flex-direction: column;
      width: 70%;
      display: flex;
      justify-content: center;
      flex-wrap: nowrap;
      align-items: center;

      a {
        display: flex;
        width: 100%;
        justify-content: center;
      }
    }
  }

  #breadcrumbs {
    .content {
      padding: 1rem;
      flex-direction: row;
    }
  }

  #details {
    .content {
      flex-direction: column;
    }

    .content > div {
      width: 100%; !important
    }
  }
}



/* PROJECTS */

