/* General Document Styles */

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

::selection {
  color: #f4f4f6;
  background-color: var(--accent-purple);
}

html {
  scroll-behavior: smooth;
}
/* 

Color root and switch theme 

*/

:root {
  --bg-main: #0f0f12;
  --text-main: rgb(244, 244, 246);
  --text-secondary: #cfcfd6;
  --line-color: #27272a;
  --glass-bg: rgba(80, 78, 78, 0.2);
  --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  --accent-purple: #6f5bff;
  --accent-green: rgb(63, 213, 139);
  --glow-purple: rgba(128, 0, 255, 0.28);
  --glow-green: rgba(63, 213, 139, 0.28);
  --green-shadow: -1px -1px 27px rgba(63, 213, 139, 0.94);
  --purple-shadow: -1px -1px 27px #6f5bfff0;
  --fill-color: #f4f4f6;
  --bg-button-shadow: -1px -1px 31px 1px rgba(244, 244, 246, 0.52);
  --bg-button-skill: rgba(255, 255, 255, 0.05);
}

body.light-theme {
  --bg-main: #f4f4f6;
  --text-main: #0f0f12;
  --text-secondary: #2b2b31;
  --line-color: #a0a1a7;
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-shadow: 0 4px 30px rgba(15, 15, 18, 0.08);
  --accent-purple: rgb(91, 72, 230);
  --accent-green: rgb(28, 160, 103);
  --glow-purple: rgba(128, 0, 255, 0.74);
  --glow-green: rgba(63, 213, 139, 1);
  --green-shadow: -1px -1px 27px rgba(28, 160, 103, 0.35);
  --purple-shadow: -1px -1px 27px rgba(91, 72, 230, 0.35);
  --fill-color: #0f0f12;
  --bg-button-shadow: -1px -1px 31px 1px rgba(15, 15, 18, 0.52);
  --bg-button-skill: rgba(223, 223, 223, 0.55);
}

body {
  font-family: "Space Grotesk", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Navbar Style */

.logo {
  z-index: 2;
}

.logo img {
  width: 5rem;
  height: auto;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  display: flex;
  border-bottom: 0.05em solid var(--line-color);
  justify-content: center;
  padding: 1.5em 0;
}

nav::before {
  content: "";
  position: absolute;
  inset: 0;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  z-index: -1;
}

.container-nav {
  position: relative;
  width: 80%;
  height: auto;
  display: flex;
  justify-content: space-between;
  padding: 0 5em;
  align-items: center;
}

.navbar {
  display: flex;
  gap: 2em;
}

.nav-items {
  text-decoration: none;
  list-style: none;
}
.nav-items a {
  font-family: "Space Mono", monospace;
  color: var(--text-main);
  text-decoration: none;
  text-shadow: none;
  transition:
    color 0.2s ease-in-out,
    text-shadow 0.2s ease-in-out;
}

.navbar li:nth-child(odd) a:hover,
.navbar li:nth-child(odd) a:active,
.navbar li:nth-child(odd) a.is-active {
  color: var(--accent-green);
  text-shadow: var(--green-shadow);
}
.navbar li:nth-child(even) a:hover,
.navbar li:nth-child(even) a:active,
.navbar li:nth-child(even) a.is-active {
  color: var(--accent-purple);
  text-shadow: var(--purple-shadow);
}

/* Style for Light and Dark Mode and Language Switcher */

.buttonThemeAndLanguage {
  display: flex;
  gap: 1em;
}

.buttonTheme {
  width: 3em;
  height: 3em;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
  margin: 0;
  -webkit-backdrop-filter: blur(10.7px);
  backdrop-filter: blur(10.7px);
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out;
}

.fa-moon,
.fa-sun {
  color: var(--text-main);
}

.buttonTheme:hover {
  transform: rotate(60deg);
  -webkit-box-shadow: -1px -1px 31px 1px rgba(128, 0, 255, 0.52);
  -moz-box-shadow: -1px -1px 31px 1px rgba(128, 0, 255, 0.52);
  box-shadow: -1px -1px 31px 1px rgba(128, 0, 255, 0.52);
}

.buttonTheme:active {
  transform: scale(0.7) rotate(180deg);
}

/* Switcher Language */

.lang-switcher {
  position: relative;
  display: inline-block;
}

.lang-switcher__toggle {
  width: 3em;
  height: 3em;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
  margin: 0;
  -webkit-backdrop-filter: blur(10.7px);
  backdrop-filter: blur(10.7px);
  border: none;
  cursor: pointer;
  color: var(--text-main);
  transition: box-shadow 0.2s ease-in-out;
  font-family: "Space Mono", monospace;
}

.lang-switcher__toggle:hover {
  -webkit-box-shadow: -1px -1px 31px 1px rgba(128, 0, 255, 0.52);
  -moz-box-shadow: -1px -1px 31px 1px rgba(128, 0, 255, 0.52);
  box-shadow: -1px -1px 31px 1px rgba(128, 0, 255, 0.52);
}

.lang-switcher__toggle:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.lang-switcher__arrow {
  font-size: 0.8rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.lang-switcher.is-open .lang-switcher__arrow {
  transform: rotate(180deg);
}

.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 150px;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
  margin: 0;
  -webkit-backdrop-filter: blur(10.7px);
  backdrop-filter: blur(10.7px);
  border-radius: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  z-index: 1;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.lang-switcher.is-open .lang-switcher__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switcher__menu a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  font-family: "Space Mono", monospace;
  color: var(--text-main);
  font-size: 0.8em;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.lang-switcher__menu a:hover,
.lang-switcher__menu a:focus-visible {
  background-color: var(--accent-purple);
  outline: none;
}

.menu-toggle {
  position: relative;
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  width: 3em;
  height: 3em;
  z-index: 1;
}

/* Main Style */

main {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5em 0;
  margin-top: 5rem;
}

.terms-container,
.privacy-container,
.cookie-container {
  width: 40%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.terms-updated,
.privacy-updated,
.cookie-updated {
  margin-bottom: 2rem;
}

.terms-container p,
.privacy-container p,
.cookie-container p {
  line-height: 1.3rem;
  text-align: justify;
}

.terms-container ul,
.privacy-container ul,
.cookie-container ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

a {
  color: var(--accent-purple);
}

/* 

Style Footer 

*/

.logoFooter img {
  width: 7rem;
  height: auto;
}

footer {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-bottom: 2rem;
  border-top: 0.05em solid var(--line-color);
}

.copy {
  position: absolute;
  width: 100%;
  height: 20%;
  background: #6f5bff;
  background: linear-gradient(
    0deg,
    rgba(111, 91, 255, 1) 31%,
    rgba(111, 91, 255, 0.01) 100%
  );
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.containerCopy {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  bottom: 0;
}

.copy p {
  margin-bottom: 1rem;
  color: #f4f4f6;
}

.footerContentPrincipal {
  width: 100%;
  max-width: 80.1%;
  position: relative;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 0;
  border-left: 0.05em solid var(--line-color);
  border-right: 0.05em solid var(--line-color);
}

.footerContent {
  padding: 5rem;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10rem;
}

.leftSideFooter {
  display: flex;
  width: 50%;
  flex-direction: column;
  gap: 1.3rem;
}

.leftSideFooter p {
  width: 70%;
  line-height: 1.6rem;
}

.leftSideFooter .backToTop {
  font-family: "Space Mono", monospace;
  width: fit-content;
  padding: 1rem;
  background-color: var(--accent-purple);
  border: none;
  outline: none;
  color: #f4f4f6;
  text-decoration: none;
}

.socialIconFooter a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.5rem;
}

.rightSideFooter {
  display: flex;
  gap: 5rem;
}

.siteMap .menu .navbar,
.menuLegal .navbar {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}

.socialIconFooter {
  transition: opacity 0.15s ease-in-out;
}

.socialIconFooter a:hover {
  opacity: 0.9;
}

/* 



Object Glow Styles and Lines



*/

/* Lines */

main::after {
  position: absolute;
  content: "";
  width: 80%;
  height: 100%;
  border-left: 0.05em solid var(--line-color);
  border-right: 0.05em solid var(--line-color);
  top: 0;
  pointer-events: none;
}

nav::after {
  position: absolute;
  content: "";
  width: 80%;
  height: 100%;
  border-left: 0.05em solid var(--line-color);
  border-right: 0.05em solid var(--line-color);
  top: 0;
  pointer-events: none;
}

.container-nav::before {
  position: absolute;
  content: "";
  width: 0.5em;
  height: 0.5em;
  bottom: 0;
  left: 0;
  background-color: var(--line-color);
  transform: translate(-50%, 350%);
  pointer-events: none;
}

.container-nav::after {
  position: absolute;
  content: "";
  width: 0.5em;
  height: 0.5em;
  bottom: 0;
  right: 0;
  background-color: var(--line-color);
  transform: translate(50%, 350%);
  pointer-events: none;
}

/* Square for footer */

.left-top-square-footer,
.right-top-square-footer {
  position: absolute;
  width: 0.5em;
  height: 0.5em;
  background-color: var(--line-color);
  pointer-events: none;
}

.left-top-square-footer {
  top: 0;
  left: 0;
  transform: translate(-60%, -60%);
}

.right-top-square-footer {
  top: 0;
  right: 0;
  transform: translate(60%, -60%);
}

/* 



Media Query 



*/

@media (max-width: 576px) {
  .logo img {
    width: 4rem;
    height: auto;
  }
}

@media (max-width: 1200px) {
  /* Style for Menù for Mobile */

  .logo {
    z-index: 35;
  }

  .menu-toggle {
    display: block;
    z-index: 35;
  }

  .hamburger {
    width: 100%;
    height: 100%;
    position: relative;
  }

  .menu-toggle span {
    position: absolute;
    width: 2em;
    height: 0.2em;
    background-color: var(--text-main);
    border-radius: 1em;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.5s ease;
  }
  .menu-toggle span:nth-child(1) {
    top: 0.6em;
  }
  .menu-toggle span:nth-child(2) {
    top: 1.2em;
  }
  .menu-toggle span:nth-child(3) {
    top: 1.8em;
  }

  .menu-toggle span.firstLineMenu.open {
    top: 1.2em;
    transform: translateX(-50%) rotate(45deg);
  }

  .menu-toggle span.secondLineMenu.open {
    transform: scale(0);
  }

  .menu-toggle span.thirthyLineMenu.open {
    top: 1.2em;
    transform: translateX(-50%) rotate(-45deg);
  }

  /* Status button on click */

  .menu.menu-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.menu-open-body {
    overflow: hidden;
  }

  .menu .navbar,
  .menu .navbar.items-open {
    list-style: none;
    margin: 0;
    padding: 0 3rem 0 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 1.25rem;
    font-size: clamp(1.8rem, 4vw, 2rem);
    font-weight: 500;
    max-width: 14rem;
    width: 100%;
  }

  .buttonThemeAndLanguage.button-setting-open {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 35;
    display: flex;
    gap: 1rem;
    animation: button-setting-enter 1.2s ease-in-out 1.9s both;
  }

  @keyframes button-setting-enter {
    from {
      opacity: 0;
      transform: translate(00vw, 100vh);
    }
    to {
      opacity: 1;
      transform: translate(0, 0);
    }
  }

  .menu .nav-items.single-items-open:nth-child(1) {
    animation: items-enter 1s ease-in-out 0.4s both;
  }
  .menu .nav-items.single-items-open:nth-child(2) {
    animation: items-enter 1s ease-in-out 0.8s both;
  }
  .menu .nav-items.single-items-open:nth-child(3) {
    animation: items-enter 1s ease-in-out 1.2s both;
  }
  .menu .nav-items.single-items-open:nth-child(4) {
    animation: items-enter 1s ease-in-out 1.6s both;
  }
  @keyframes items-enter {
    from {
      opacity: 0;
      transform: translate(0vw, 1000vh);
    }
    to {
      opacity: 1;
      transform: translate(0, 0);
    }
  }

  .lang-switcher__menu.items-open-mobile {
    top: auto;
    bottom: calc(100% + 0.45rem);
    right: 0;
    min-width: 150px;
    padding: 0.4rem;
    transform: translateY(6px);
  }

  .menu {
    display: flex;
    position: fixed;
    justify-content: flex-end;
    width: 100vw;
    height: 100vh;
    background: var(--glass-bg);
    box-shadow: var(--glass-shadow);
    -webkit-backdrop-filter: blur(10.7px);
    backdrop-filter: blur(10px);
    top: 0;
    right: 0;
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(100%);
    transition: none;
  }

  body.page-ready .menu {
    transition:
      opacity 0.45s ease-in-out,
      transform 1.8s ease-in-out,
      visibility 0.45s ease-in-out;
  }

  .container-nav {
    width: 80%;
    padding: 0 1rem;
  }

  nav::after {
    width: 80%;
    height: 100%;
  }

  .buttonThemeAndLanguage {
    display: none;
  }

  /* Style Footer for mobile */

  .logoFooter img {
    width: 7rem;
    height: auto;
  }

  footer {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-bottom: 2rem;
    border-top: 0.05em solid var(--line-color);
  }

  .copy {
    position: absolute;
    width: 100%;
    height: 15%;
    background: #6f5bff;
    background: linear-gradient(
      0deg,
      rgba(111, 91, 255, 1) 31%,
      rgba(111, 91, 255, 0.01) 100%
    );
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }

  .copy p {
    margin-bottom: 0.8rem;
    color: #f4f4f6;
  }

  .footerContentPrincipal {
    width: 100%;
    max-width: 80.5%;
    position: relative;
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    padding: 3rem 0;
    border-left: 0.05em solid var(--line-color);
    border-right: 0.05em solid var(--line-color);
  }

  .footerContent {
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .leftSideFooter {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 1.3rem;
    padding: 1rem;
  }

  .leftSideFooter p {
    width: 100%;
    line-height: 1.6rem;
  }

  .leftSideFooter .backToTop {
    font-family: "Space Mono", monospace;
    width: fit-content;
    padding: 1rem;
    background-color: var(--accent-purple);
    border: none;
    outline: none;
    color: #f4f4f6;
    text-decoration: none;
  }

  .socialIconFooter a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.5rem;
  }

  .rightSideFooter {
    display: flex;
    gap: 5rem;
  }

  .siteMap .menu .navbar,
  .legal .menu .navbar {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6em;
  }

  .socialIconFooter {
    transition: opacity 0.15s ease-in-out;
  }

  .socialIconFooter a:hover {
    opacity: 0.9;
  }

  .siteMap {
    display: none;
  }

  .legal {
    padding: 1rem;
  }

  .legal .menuLegal,
  .navbar {
    display: flex;
    flex-direction: column;
  }
}
