/* Navigation */

.navigation {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 70px;
    background: linear-gradient(45deg, #236eb5, #969b1f);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: .2;
  }

  .navigation:hover {
    transition: 0.5s;
    opacity: 1;
  }

  .navigation ul {
    display: flex;
    width: 350px;
  }

  .navigation ul li {
    position: relative;
    width: 70px;
    height: 70px;
    list-style: none;
    z-index: 1;
  }

  .navigation ul li a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    text-align: center;
    font-weight: 500;
  }

  .navigation ul li a .icon {
    position: relative;
    display: block;
    line-height: 75px;
    font-size: 1.5em;
    color: var(--white-color);
    transition: 0.5s;
  }

  .navigation ul li a .text {
    position: absolute;
    color: var(--white-color);
    font-weight: 400;
    font-size: 0.75em;
    letter-spacing: 0.05em;
    transition: 0.5s;
    transform: translateY(20px);
    opacity: 0;
  }

  .navigation ul li .circle {
    position: absolute;
    display: block;
    width: 50px;
    height: 50px;
    background: transparent;
    border-radius: 50%;
    border: 1.8px solid white;
    transform: translateY(-37px) scale(0);
    opacity: 0;
  }

  /* Only apply hover effects on devices with hover capability */
  @media (hover: hover) {
    .navigation ul li a:hover .icon {
      transition: 0.5s;
      transform: translateY(-32px);
    }

    .navigation ul li a:hover .text {
      transform: translateY(10px);
      opacity: 1;
    }

    .navigation ul li a:hover .circle {
      transition: 0.5s;
      transition-delay: .5s;
      transform: translateY(-37px) scale(1);
      opacity: 1;
    }
  }

  /* Active page: lift icon and show circle on mobile */
  .navigation ul li.active-page a .icon {
    transform: translateY(-32px);
  }

  .navigation ul li.active-page a .circle {
    transform: translateY(-37px) scale(1);
    opacity: 1;
  }

  .navigation ul li.active-page a .text {
    transform: translateY(10px);
    opacity: 1;
  }

  /* Navbar always visible on mobile */
  @media (max-width: 768px) {
    .navigation {
      opacity: 1;
      bottom: 0;
      border-radius: 10px 10px 0 0;
    }
  }

  .indicator {
    position: absolute;
    background: linear-gradient(45deg, #1f90f9, #f7ff1d);
    width: 70px;
    height: 70px;
    border: 6px solid var(--background-color);
    border-radius: 50%;
    transition: 0.5s;
    top: -50%;
  }

  /*.indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -22px;
    width: 20px;
    height: 20px;
    background: transparent;
    border-top-right-radius: 20px;
    box-shadow: 1px -10px 0 var(--background-color);
  }

  .indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -22px;
    width: 20px;
    height: 20px;
    background: transparent;
    border-top-left-radius: 20px;
    box-shadow: -1px -10px 0 var(--background-color);
  }

  .navigation ul li:nth-child(1).active ~ .indicator {
    transform: translateX(calc(70px * 0));
  }

  .navigation ul li:nth-child(2).active ~ .indicator {
    transform: translateX(calc(70px * 1));
  }

  .navigation ul li:nth-child(3).active ~ .indicator {
    transform: translateX(calc(70px * 2));
  }

  .navigation ul li:nth-child(4).active ~ .indicator {
    transform: translateX(calc(70px * 3));
  }

  .navigation ul li:nth-child(5).active ~ .indicator {
    transform: translateX(calc(70px * 4));
  }
