@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;800&family=Noto+Sans+TC:wght@300;400;500;700&display=swap');

:root {
  --mainTextColor: #000;
  --secondaryTextColor: (51 51 51);
  --mainLinkColor: #0da2b8;
  --mainBorderColor: rgb(218, 218, 218);
  --mainBgColor: rgb(249, 250, 251);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: 0.2s linear;
}

html,
body {
  font-family: 'Inter', sans-serif;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 62.5%;
  text-decoration: none;
  line-height: 1.5;
  color: var(--mainTextColor);
  background-color: var(--mainBgColor);
}

ul {
  margin: 1rem 0 0 3rem;
}

li {
  line-height: 2;
  font-size: 1.6rem;
}

a {
  text-decoration: none;
  color: var(--secondaryTextColor);
  font-size: 1.6rem;
  font-weight: 400;
}

a:hover {
  color: var(--mainLinkColor);
}

img {
  max-width: 100%;
  vertical-align: top;
  object-fit: cover;
}

p {
  color: var(--secondaryTextColor);
  font-size: 1.6rem;
}

h2 {
  font-size: 2.4rem;
  font-weight: 500;
  margin: 2rem 0;
}

strong {
  font-size: 1.8rem;
}

.container {
  max-width: 70rem;
  margin: 0 auto;
  padding: 2rem;
}

/* header section */
.header {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.header img {
  width: 25%;
  border-radius: 50%;
}

.header .content h1 {
  font-size: 4.8rem;
  line-height: 1;
}

.header .content .en-name {
  font-size: 3.6rem;
}

.header .content p {
  font-weight: 300;
  margin-top: 2rem;
}

.header .content .email {
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 1rem;
}

/* links section */
.links {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.link-card i {
  font-size: 2.5rem;
  color: var(--mainTextColor);
}

.link-card:hover i,
.link-card:hover a {
  color: var(--mainLinkColor);
}

/* skill section */
.skill-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1rem;
}

.skill-card img {
  height: 60px;
}

.skill-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skill-card span {
  font-size: 18px;
  font-weight: bold;
}

.skill-card .Tailwind {
  height: 40px;
}

.text-space {
  margin-top: 18px;
}

/* tech section */
.tech-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 1.6rem;
  margin-top: 1rem;
}

.tech-container .tech-card {
  border: 1px solid var(--mainBorderColor);
  border-radius: 0.5rem;
  padding: 1rem 1.8rem;
}

/* work-history section */
.line-break {
  background-color: var(--mainBorderColor);
  height: 1px;
}

.work-history-card {
  display: block;
  border-left: 1px solid var(--mainBorderColor);
  margin-top: 3rem;
  margin-bottom: 3rem;
  padding-left: 2.5rem;
}

.work-history-card p {
  margin: 1.6rem 0;
}

.work-history-card ul li {
  font-size: 1.6rem;
  font-weight: 300;
}

.work-history-card-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.work-history-card img {
  width: 2.1rem;
}

/* project & accomplishment */
.project-card {
  padding: 1.5rem 0;
  border-top: 1px solid var(--mainBorderColor);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.project-card i {
  font-size: 2.2rem;
}

.project-card a {
  color: var(--mainTextColor);
  font-weight: 300;
  cursor: pointer;
}

.project-card:hover a,
.project-card:hover i {
  color: var(--mainLinkColor);
}

/* media queries */
@media (max-width: 600px) {
  /* header section */
  .header {
    flex-direction: column;
    gap: 1.8rem;
  }

  .header img {
    width: 20rem;
  }

  .header .content h1 {
    text-align: center;
    font-size: 3.8rem;
  }

  .header .content .en-name {
    font-size: 2.8rem;
  }

  /* links section */
  .links {
    gap: 1rem;
  }

  /* work history section */
  .work-history-card {
    border-left: none;
    padding-left: 0;
  }
}
