/* ScrollBar*/
::-webkit-scrollbar {
  background-color: #1b1b1b;
  width: 6px;

}
::-webkit-scrollbar-thumb {
  background: white;
  border-radius: 10px;
}

/* 确保 html 和 body 没有外边距和内边距 */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif; /* 设置全局字体 */
  font-weight: bold; /* 设置全局字体为粗体 */
}

body {
  overflow-x: hidden; /* Hide horizontal scrollbar */
  overflow-y: auto; /* Display vertical scrollbar when needed */
}

.hero {
  position: relative;
  background-image: url('Night Sky Full Of Stars An Anurora With Vibrant Co.png');
  background-size: cover;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}

  .icon {
  background-image: url('COOL DUDE.png');
  background-repeat: no-repeat;
  background-size: 44px 44px;
  width: 44px;
  height: 44px;
  margin-right: 5px;
}

.header-background {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 1600px;
  height: 45px;
  background-color: rgba(232, 232, 232, 0.09);
  padding: 5px 50px;
  border-radius: 21px;
  z-index: 1;
  box-shadow: 0 0 0 1px rgba(232, 232, 232, 0.17);
}

.text {
  font-size: 20px;
  font-family: 'Outfit', sans-serif;
  font-weight: bold;
  margin: 0;
  position: absolute;
  top: 18px;
  left: 100px;
}

.home-link {
  font-size: 16px;
  font-weight: bold;
  font-family: 'Outfit', sans-serif;
  margin: 0;
  position: absolute;
  top: 20px;
  left: 1350px;
}

.about-link {
  font-size: 16px;
  font-weight: bold;
  font-family: 'Outfit', sans-serif;
  margin: 0;
  position: absolute;
  top: 20px;
  left: 1434px;
}

.content-link {
  font-size: 16px;
  font-weight: bold;
  font-family: 'Outfit', sans-serif;
  margin: 0;
  position: absolute;
  top: 20px;
  left: 1510px;
}

.goals-link {
  font-size: 16px;
  font-weight: bold;
  font-family: 'Outfit', sans-serif;
  margin: 0;
  position: absolute;
  top: 20px;
  left: 1602px;
}

.home-link,
.about-link,
.content-link,
.goals-link {
  color: white;
  text-decoration: none;
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

h1 {
  margin-bottom: 0;
  font-size: 140px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.vertical-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100vh;
  background-color: #333;
  display: none;
}

.about .additional-section {
  text-align: center;
}

.about .additional-section h2 {
  position: absolute;
  top: 1225px;
  left: 900px;
  font-size: 56.23px;
  color: white;
}

.about .additional-section h2 span {
  color: #6579ff;
}

.about .additional-section .creator-text {
  position: absolute;
  left: 900px;
  top: 1300px;
  color: white;
  font-weight: bold;
  font-size: 42px;
}

.about .additional-section .lorem-text {
  position: absolute;
  left: 900px;
  top: 1390px;
  text-align: left;
  white-space: pre-line;
  max-height: calc(1.2em* 5);
  overflow: hidden;
  color: white;
  font-weight: bold;
  line-height: 20px;
}

.about .additional-section { /*lemme have a white page*/
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 100vh;
}

.about {
  background-color: #19204B;
  padding: 20px; /* Add padding as needed */
}

.big-icon {
  position: absolute;
  left: 350px;
  top: 1250px;
  width: 413px;
  height: 413px;
}

.additional-section {
  display: flex;
  align-items: center;
}

body {
  overflow-x: hidden; /* Hide horizontal scrollbar */
  overflow-y: auto; /* Display vertical scrollbar when needed */
}

@keyframes typing-typing {
  0% { width: 0; }
  100% { width: 100%; }
}

.my-button {
  padding: 10px 20px;
  background-color: transparent;
  box-shadow: 0 0 0 1px white;
  color: white;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  position: absolute;
  bottom: -620px;
  left: 900px;
  font-weight: bold;
}

.my-button:hover {
  background: linear-gradient(45deg,#667EEA, #764BA2);
  box-shadow: none;
}

p.create {
  position: absolute; /* Position the element relative to the nearest positioned ancestor */
  top: 1300px; /* Adjust the vertical position */
  left: 900px; /* Adjust the horizontal position */
  color: white;
  font-weight: bold;
  font-size: 42px;
}

span.typing {
  color:#fff724
}

/* 在文件末尾添加以下样式 */

#typing-text {
  display: inline-block;
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  position: relative;
}

#cursor {
  display: inline-block;
  vertical-align: middle;
  width: 2px;
  height: 1em;
  background-color: #fff;
  animation: blink 0.7s infinite;
  margin-left: 2px;
  position: relative;
  top: -0.1em;
}

@keyframes blink {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

/* 更新或添加以下样式 */

.typing-container {
  display: inline-block;
  font-size: 1.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  line-height: 1.5;
  position: relative;
}

#animated-text {
  display: inline-block;
}

.typing-container::after {
  content: '|';
  position: absolute;
  right: -10px;
  top: 0;
  bottom: 0;
  width: 2px;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

h1 {
  font-size: 140px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.contact {
  background-color: #293379;
  color: white;
  padding: 20px; /* 调整内边距 */
  text-align: center;
  width: 100vw; /* 设置宽度为视口宽度 */
  min-height: 100vh; /* 设置高度为视口高度 */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* 内容放在最上方 */
  align-items: center; /* 水平居中 */
  box-sizing: border-box; /* 确保尺寸计算包括内边距和边框 */
  position: relative;
  overflow: hidden;
  justify-content: flex-start;
}

.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.shape {
  position: absolute;
  opacity: 0.1;
  animation: float 15s infinite;
  border-radius: 50%; /* 添加这行来创建圆形 */
}

.shape:nth-child(1) { top: 20%; left: 10%; width: 80px; height: 80px; animation-delay: 0s; }
.shape:nth-child(2) { top: 60%; left: 20%; width: 60px; height: 60px; animation-delay: 2s; }
.shape:nth-child(3) { top: 40%; left: 80%; width: 40px; height: 40px; animation-delay: 4s; }
.shape:nth-child(4) { top: 10%; left: 60%; width: 100px; height: 100px; animation-delay: 6s; }
.shape:nth-child(5) { top: 80%; left: 70%; width: 50px; height: 50px; animation-delay: 8s; }
.shape:nth-child(6) { top: 30%; left: 40%; width: 70px; height: 70px; animation-delay: 10s; }
.shape:nth-child(7) { top: 70%; left: 90%; width: 55px; height: 55px; animation-delay: 12s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  33% { transform: translateY(-20px) rotate(120deg) scale(1.1); }
  66% { transform: translateY(10px) rotate(240deg) scale(0.9); }
  100% { transform: translateY(0) rotate(360deg) scale(1); }
}

.contact h2 {
  font-size: 48px; /* 增大字体大小 */
  margin-bottom: 20px;
  color: white; /* 设置文字颜色为白色 */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* 添加外部阴影效果 */
}

.contact p {
  font-size: 24px; /* 增大字体大小 */
  margin-bottom: 40px;
  background: linear-gradient(45deg, #21D4FD, #B721FF);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.contact-images {
  display: flex;
  justify-content: center;
  align-items: center; /* 垂直居中 */
  gap: 90px; /* 增加图片之间的间距 */
  margin-top: 20px; /* 增加顶部间距 */
  height: 100%; /* 使图片容器高度填满 */
}

.contact-item {
  text-align: center; /* 使图片和文字居中对齐 */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
}

.contact-item.animate {
  opacity: 1;
  transform: translateY(0);
}

.contact-item p {
  margin-top: 10px; /* 增加图片和文字之间的间距 */
  font-size: 18px; /* 设置文字大小 */
  color: white; /* 设置文字颜色 */
  position: relative;
  overflow: hidden;
}

.contact-item p::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.contact-item:hover p::after {
  transform: translateX(0);
}

.contact-images img {
  border-radius: 10px; /* 圆角 */
  object-fit: cover; /* 保持图片比例 */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* 添加过渡效果 */
}

.contact-images img.discord {
  width: 200px; /* 设置 Discord 图片宽度 */
  height: auto; /* 设置 Discord 图片高度 */
  transform: translateY(-20px); /* 向上移动 Discord 图片 */
}

.contact-images img.gmail {
  width: 200px; /* 设置 Gmail 图片宽度 */
  height: auto; /* 设置 Gmail 图片高度 */
  transform: translateY(0); /* 保持 Gmail 图片位置不变 */
}

.contact-images img.github {
  width: 200px; /* 设置 GitHub 图片宽度 */
  height: auto; /* 保持 GitHub 图片比例 */
  transform: translateY(-20px); /* 向上移动 GitHub 图片 */
}

/* 向下箭头样式 */
.down-arrow {
  position: absolute;
  bottom: 20px; /* 距离底部20px */
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer; /* 鼠标悬停时显示手型光标 */
  animation: bounce 2s infinite; /* 添加动画效果 */
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 1703px; /* 设置导航栏宽度 */
  height: 57px; /* 设置导航栏高度 */
  background-color: rgba(232, 232, 232, 0.09); /* 设置背景颜色和透明度 */
  color: white;
  display: flex;
  justify-content: flex-start; /* 左对齐 */
  align-items: center;
  padding: 0 20px; /* 调整内边距 */
  border-radius: 23px; /* 圆角 */
  border: 1px solid rgba(255, 255, 255, 0.3); /* 边框 */
  transition: top 0.3s, opacity 0.3s; /* 添加透明度过渡效果 */
  z-index: 1000;
}

.navbar .icon {
  margin-right: 20px; /* 将图标与文字分开 */
}

.navbar .text {
  margin-right: auto; /* 将文字与导航链接分开 */
}

.navbar .nav-links {
  display: flex;
  gap: 20px; /* 调整导航链接之间的间距 */
  margin-left: auto; /* 将导航链接推到右边 */
}

.navbar a {
  color: white;
  text-decoration: none;
  padding: 10px 15px; /* 调整内边距 */
  margin: 0; /* 调整外边距 */
  position: relative; /* 为伪元素定位 */
  overflow: hidden; /* 隐藏溢出内容 */
}

.underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px; /* 下划线高度 */
  background-color: white; /* 下划线颜色 */
  transition: width 0.3s ease-out;
}

.goals {
  background-color: #19204B;
  color: white;
  padding: 20px;
  text-align: center;
  background-image: url('your-background-image.jpg'); /* 替换为您的背景图片路径 */
  background-size: cover; /* 使背景图片覆盖整个容器 */
  background-position: center; /* 使背景图片居中 */
  background-repeat: no-repeat; /* 防止背景图片重复 */
  min-height: 100vh; /* 使 section 至少占满整个视口高度 */
}

.goals h2 {
  font-size: 48px;
  margin-bottom: 20px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.goal-item {
  margin: 40px 70px; /* 增加上下间距 */
  max-width: 600px; /* 设置图片的最大宽度 */
  max-height: 400px; /* 设置图片的最大高度 */
  position: relative;
  display: inline-block;
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s, transform 0.6s;
}

.goal-item.animate {
  opacity: 1;
  transform: translateX(0);
}

.goal-item img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* 添加过渡效果 */
}

.goal-item img:hover {
  transform: scale(1.05); /* 鼠标悬停时放大 */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* 添加阴影 */
}

.goal-item p {
  font-size: 18px;
  color: white;
  margin-top: 10px;
  padding: 10px; /* 增加内边距 */
  background: rgba(0, 0, 0, 0.5); /* 添加背景色 */
  border-radius: 10px; /* 添加圆角 */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* 添加阴影 */
  border: 1px solid rgba(255, 255, 255, 0.2); /* 添加边框 */
  transition: transform 0.3s ease; /* 添加过渡效果 */
  word-wrap: break-word; /* 自动换行 */
  word-break: break-all; /* 强制换行 */
  min-height: 40px; /* 最小高度 */
  display: flex;
  align-items: center; /* 垂直居中 */
  justify-content: center; /* 水平居中 */
  text-align: center; /* 文本居中 */
}

.goal-item p:hover {
  transform: scale(1.05); /* 鼠标悬停时放大 */
}

.goals-content {
  position: relative;
  z-index: 1;
}

.browser-buttons {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 5px;
}

.browser-buttons span {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.browser-buttons .close {
  background-color: #ff5f56;
}

.browser-buttons .minimize {
  background-color: #ffbd2e;
}

.browser-buttons .maximize {
  background-color: #27c93f;
}

.goal-item:hover .browser-buttons {
  display: flex;
  visibility: visible;
}

.footer {
  background-color: #222222;
  color: white;
  text-align: center;
  padding: 20px 0;
  position: relative;
  bottom: 0;
  width: 100%;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.footer p {
  margin: 0;
  font-size: 16px;
}

/* 页面加载时的淡入效果 */
.fade-in {
  opacity: 0;
  transition: opacity 1s ease-in;
}

.fade-in.visible {
  opacity: 1;
}

/* 滚动时的元素淡入效果 */
.scroll-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.scroll-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 加载动画样式 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #19204B;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-content {
  text-align: center;
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.loading-overlay::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #19204B; /* 与加载背景相同的颜色 */
  transition: top 0.5s ease-out;
}

.loading-overlay.opening::after {
  top: 0;
}

.loading-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.loading-icon {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.loading-title {
  color: white;
  font-size: 24px;
  margin: 0;
}

.loading-progress-container {
  width: 300px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.loading-progress-bar {
  width: 0;
  height: 100%;
  background-color: #6579ff;
  transition: width 0.5s ease-out;
}

.loading-progress-percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.rgb-line {
  height: 3px;
  width: 100%;
  background: linear-gradient(to right, red, green, blue, red);
  background-size: 200% 100%;
  animation: rgb-animation 5s linear infinite;
}

@keyframes rgb-animation {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.halftone-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.halftone-dot {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: scale(0);
  animation: pulse 4s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(0); opacity: 1; }
  50% { transform: scale(1); opacity: 0; }
}

.goals-content {
  position: relative;
  z-index: 1;
}

.goal-button {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2); /* 添加边框 */
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 15px;
}

.goal-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
}

@media screen and (max-width: 768px) {
  .contact {
    justify-content: flex-start; /* 在小屏幕上改回顶部对齐 */
    padding: 40px 20px;
    height: auto;
  }

  .contact-images {
    flex-direction: column;
    gap: 40px;
  }

  .contact-item {
    width: 100%;
    margin-bottom: 30px;
  }

  .contact-images img.discord,
  .contact-images img.gmail,
  .contact-images img.github {
    width: 150px;
    height: auto;
    transform: translateY(0); /* 重置所有图片的垂直位移 */
  }

  .contact h2 {
    font-size: 36px;
    margin-bottom: 20px;
  }

  .contact p {
    font-size: 18px;
    margin-bottom: 30px;
  }
}
