:root {
  --main-branding-color: rgb(59, 177, 251);
  --background-color: rgb(219, 254, 254);
  --white-color: rgb(255, 255, 255);
  --grey-color: rgb(244, 244, 244);
  --box--shadow: inset 0 0 6px rgb(255, 255, 255);
  --defualt-font-family: Times New Roman, Times, serif;
}
body {
  font-family: var(--defualt-font-family);
  padding-top: 100px;
}
h1 {
  display: flex;
  justify-content: center;
  font-size: 56px;
}

h1 :hover {
  color: var(--main-branding-color);
}
h2 {
  display: flex;
  justify-content: center;
  font-size: 46px;
}
a {
  justify-content: center;
  text-decoration: none;
  color: rgb(0, 0, 0);
  display: block; /* 让链接变成块级元素，独占一行 */
  text-align: center; /* 居中文本 */
}
a:hover {
  color: var(--main-branding-color);
  text-decoration: none;
}
h3 {
  display: flex;
  justify-content: center;
  color: rgba(0, 0, 0, 0.8);
  font-size: 20px;
  font-family: var(--defualt-font-family);
}

p {
  display: flex;
  justify-content: center;
  font-size: 14px;
  margin-top: 0;
  margin-bottom: 1rem;
  font-family: var(--defualt-font-family);
}
.navigation-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 40px;
  padding-bottom: 80px;
}
.navigation-links a {
  border: 1px solid black;
  padding: 20px;
  border-radius: 12px;
  width: 200px;
  text-align: center;
  text-decoration: none;
  color: rgb(0, 0, 0);
}
.navigation-links a:hover {
  background-color: var(--main-branding-color);
  color: var(--white-color);
  border: 1px solid var(--white-color);
  box-shadow: var(--box--shadow);
}
.primary-link {
  border: 1px solid black;
  padding: 20px;
  border-radius: 12px;
  width: 200px;
  text-align: center;
  text-transform: capitalize;
  text-decoration: none;
  color: rgb(0, 0, 0);
}
.primary-link:hover {
  background-color: var(--main-branding-color);
  color: var(--white-color);
  border: 1px solid var(--white-color);
  box-shadow: var(--box--shadow);
}
.btn-branding {
  background: var(--main-branding-color);
  border-radius: 4px;
  color: white;
  font-size: 18px;
  line-height: 27px;
  padding: 15px 30px;
}

.btn-branding-outline {
  color: var(--branding-color);
  border: 1px solid var(--branding-color);
  border-radius: 4px;
  font-size: 18px;
  line-height: 27px;
  padding: 15px 30px;
}
footer {
  display: flex;
  flex-direction: column; /* 让整个 footer 里的内容垂直排列 */
  align-items: center; /* 水平居中 */
  background-color: var(--background-color);
  margin-top: 100px;
  padding: 60px;
}

footer .contact-me {
  display: flex;
  flex-direction: column; /* 让 h3 和 email 竖着排列 */
  align-items: center; /* 水平居中 */
  text-align: center;
  gap: 10px; /* 控制 h3 和 email-link 之间的间距 */
}

footer .email-link {
  text-decoration: none;
  color: black;
  font-size: 24px;
  font-weight: bold;
}

footer .email-link:hover {
  color: var(--main-branding-color);
}

/* 确保 .social-links 在 email-link 下面，并水平居中 */
footer .social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px; /* 控制 email 和 social links 之间的间距 */
}

footer .social-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px; /* 让按钮大小一致 */
  height: 40px;
  background: transparent;
  color: var(--main-branding-color);
  border-radius: 50%;
  font-size: 18px;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

footer .social-links a:hover {
  color: white;
  background: var(--main-branding-color);
}

.about-me {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.about-me-1,
.about-me-2 {
  width: 100%; /* 小屏幕时占满整个宽度 */
  max-width: 100%; /* 确保不会超出父容器 */
  background-color: var(--grey-color);
  border-radius: 12px;
  padding: 12px;
}

.project-desciption {
  padding: 120px 60px;
}

@media (max-width: 900px) {
  h1 {
    font-size: 44px;
    line-height: 2;
  }

  h2 {
    font-size: 44px;
  }

  .project-desciption {
    padding: 0;
    text-align: center;
  }

  .content {
    text-align: center;
    padding: 0;
  }
}
