:root {
  --primary-color: #333;
  --secondary-color: #555;
  --tertiary-color: #777;
  --quaternary-color: #999;
  --text-color: white;
  --background-image: url('photo-1575058752200-a9d6c0f41945.jpg');
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-image: var(--background-image);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  overflow-x: hidden;
}

header {
  background-color: var(--primary-color);
  color: var(--text-color);
  text-align: center;
  padding: 100px 0;
  position: relative;
  animation: fadeInDown 1s ease;
  background: linear-gradient(45deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--primary-color) 100%);
  background-size: 200% 200%;
  animation: gradient 10s ease infinite;
}

.profile-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  display: inline-block;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.profile-card img {
    margin: 0%;
    transform: translateY(-55px);
    padding-bottom: 0%;
}

.profile-card h1{
    transform: translateY(-15px);
    margin: 0%;
    padding-top: 0%;
}

.profile-picture {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
}

.profile-description {
  font-size: 1.2em;
  margin-top: 10px;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

h1 {
  font-size: 3em;
  margin-bottom: 10px;
  animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
  from {
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #e60073, 0 0 40px #e60073;
  }
  to {
    text-shadow: 0 0 20px #fff, 0 0 30px #ff4da6, 0 0 40px #ff4da6, 0 0 50px #ff4da6;
  }
}

h2 {
  font-size: 2em;
  margin-bottom: 20px;
  animation: scaleText 2s ease-in-out infinite alternate;
}

@keyframes scaleText {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

.intro {
  padding: 50px;
  text-align: center;
  animation: fadeInUp 1s ease 0.5s both;
}

.intro p {
  /* 修改为新的字体 */
  /* 修改字体颜色为对比度强烈的金色 */
  color: white;
  font-family: 'Cursive', 'Brush Script MT', cursive; 
  font-size: 3em;
  margin-bottom: 20px;
  /* 添加黑色描边 */
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skills {
  background-color: var(--primary-color);
  color: var(--text-color);
  padding: 50px;
  text-align: center;
  animation: fadeInLeft 1s ease 1s both;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.skills ul {
  list-style-type: none;
  padding: 0;
}

.skills li {
  display: inline-block;
  margin: 10px;
  padding: 10px 20px;
  background-color: var(--secondary-color);
  border-radius: 5px;
  animation: scaleIn 0.5s ease 1.5s both;
  transition: all 0.3s ease;
  animation: colorChange 5s ease infinite alternate;
}

.skills li:hover {
  background-color: var(--tertiary-color);
  transform: scale(1.1);
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes colorChange {
  0% {
    background-color: var(--secondary-color);
  }
  50% {
    background-color: var(--tertiary-color);
  }
  100% {
    background-color: var(--quaternary-color);
  }
}

.projects {
  background-color: white;
  padding: 50px;
  text-align: center;
  animation: fadeInRight 1s ease 1.5s both;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.project {
  display: inline-block;
  width: 300px;
  margin: 20px;
  padding: 20px;
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  transition: transform 0.3s ease;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
  animation: shadowChange 3s ease infinite alternate;
}

.project:hover {
  transform: scale(1.05);
  border-color: var(--primary-color);
}

@keyframes shadowChange {
  from {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
  to {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  }
}

footer {
  background-color: var(--primary-color);
  color: var(--text-color);
  text-align: center;
  padding: 20px 0;
  animation: fadeInUp 1s ease 2s both;
  position: relative;
  bottom: -50px;
  animation: footerSlideUp 1s ease 2s forwards;
}

@keyframes footerSlideUp {
  from {
    bottom: -50px;
  }
  to {
    bottom: 0;
  }
}
