/* Tag */
.tag,
.btn {
  font-weight: 400;
  font-size: clamp(1rem, 2vw, 1.25rem);
  padding: 5px 10px;
  border-radius: 12px;
  width: fit-content;
  display: inline-flex;
  line-height: 1;
  margin: 0.3em 0;

  @media (min-width: 768px) {
    padding: 7px 20px;
    border-radius: 15px;
  }
}

.tag {
  border: 1px solid var(--neutral-950);
  color: var(--neutral-950);
  /* background-color: var(--neutral-50); */
}

.tag.colored {
  color: var(--neutral-50);
  border: none;
  background-color: var(--neutral-950);
  transition: background-color 0.3s ease;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-tiny);
  transition: 0.3s ease;
  /* margin: 0.3em 0; */

  &:hover {
    scale: 0.95;
  }
}

.btn.primary {
  background-color: var(--neutral-950);
  color: var(--neutral-50);

  &:hover {
    background-color: var(--neutral-950-hover);
  }

  svg {
    fill: currentColor;
    height: 1.25em;
    width: 1.25em;
    transition: 0.3s ease;
  }
}

.btn.link {
  padding: 0;
  color: var(--neutral-950);
  /* font-weight: 500; */

  svg {
    fill: currentColor;
    height: 1.25em;
    width: 1.25em;
    transition: 0.3s ease;
  }

  &:hover {
    color: var(--neutral-950-hover);
    svg {
      fill: var(--neutral-950-hover);
    }
  }
}
/* Header */
header {
  margin-top: var(--space-sides);
  margin-bottom: var(--space-sections);
  /* width: 100%; */

  @media (min-width: 768px) {
    margin-top: var(--space-inner);
    margin-bottom: var(--space-sides);
    /* background: var(--neutral-50); */
    /* z-index: 999; */
  }

  .header-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    padding: 0 var(--space-sides);

    .desktop-navigation {
      display: none;

      h3 {
        @media (min-width: 768px) {
          display: none;
        }
      }

      ul {
        display: flex;
        flex-direction: row;
        gap: var(--space-sides);
      }

      @media (min-width: 768px) {
        display: block;
      }
    }

    .openmenu-btn,
    .closemenu-btn {
      margin-bottom: -1em;

      @media (min-width: 768px) {
        display: none;
      }
    }

    .closemenu-btn {
      margin-right: 0.3em;
    }

    svg {
      fill: var(--neutral-950);
    }
  }

  #sidebar {
    padding-top: 1.15em;
    padding-bottom: 25px;
    width: 100%;
    height: 100dvh;
    z-index: 999;
    position: absolute;
    top: 0;
    transform: translateY(-100%);
    transition: 0.3s ease-out;
    background-color: var(--neutral-50);

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    &:target {
      transform: translateY(0);
    }

    .sidebar-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: var(--space-medium);

      ul li {
        margin: auto;
      }
    }
    .sidebar-footer {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      padding: 0 var(--space-sides);
    }

    @media (min-width: 768px) {
      display: none;
    }
  }
}

/* Page title */
.page-title {
  margin-bottom: var(--space-sections);

  .page-title-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-tiny);

    h1 {
      width: 85%;
    }
  }

  .plus-icon {
    display: block;
    text-align: right;
    font-size: 5em;
    font-weight: 500;
    opacity: 50%;
    /* color: var(--primary-color); */
  }

  .btn.link {
    align-items: baseline;
    svg {
      transform: rotate(-40deg);
    }
  }
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-medium);

  @media (min-width: 768px) {
    grid-template-columns: 1fr 1fr;
    grid-template-row: auto;
  }

  /* Project card component */
  .project-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-inner);
    height: 100%;

    .project-cover-frame {
      overflow: hidden;
      border-radius: var(--border-radius);

      .project-cover {
        display: block;
        width: 100%;
        transition: transform 0.3s ease;
      }
    }

    .project-content {
      display: flex;
      flex-direction: column;
      gap: var(--space-tiny);
    }

    &:hover {
      .project-cover {
        transform: scale(1.05);
      }
    }
  }
}

/* Footer */
footer {
  margin-bottom: var(--space-sides);
  margin-top: var(--space-sections);

  .footer-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-medium);

    @media (min-width: 768px) {
      flex-direction: row;
    }
  }

  .footer-menus {
    display: flex;
    flex-direction: column;
    gap: var(--space-medium);

    @media (min-width: 768px) {
      flex-direction: row;
    }

    .footer-col-01,
    .footer-col-02 {
      padding: 0;
    }
  }

  .footer-cta {
    width: fit-content;
    margin: auto;

    @media (min-width: 768px) {
      margin-right: 0;
    }

    span {
      font-size: 3rem;
      /* font-weight: 600; */
      color: var(--neutral-950);
      font-family: "Neue Power", sans-serif;

      @media (min-width: 768px) {
        font-size: 5rem;
      }

      svg {
        width: 1.5em;
        height: 1.5em;
        transform: rotate(-35deg);
        fill: currentColor;

        transition: all 0.3s ease-in-out;
      }

      &:hover {
        svg {
          transform: rotate(-45deg);
          scale: 0.8;
        }
      }
    }
  }

  .copyright {
    margin-top: var(--space-sections);
    padding: 0;
    text-align: center;
  }
}
