@import "/assets/css/sweiGothic.css";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-image: url("/assets/image/cat.jpg");
  background-size: cover; /* 讓圖片覆蓋整個畫面 */
  background-position: center; /* 圖片置中 */
  background-repeat: no-repeat; /* 不重複 */
  background-attachment: fixed;
  padding: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100vw;
  height: auto;
  position: relative;
  gap: 35px;
  overflow-x: hidden;
}

.card {
  align-items: center;
  border-radius: 25px;
  background: rgba(70, 70, 70, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 2px 2px 1px -2px inset rgba(255, 255, 255, 0.7), 0px 0px 10px rgba(255, 255, 255, 0.5);
}

.card1 {
  position: relative;
  width: 640px;
  height: 300px;
}

.card1 .container {
  display: flex;
  flex-shrink: 0;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 0px;
  margin: 0px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.pfp {
  width: 163px;
  height: 163px;
  flex-shrink: 0;
  aspect-ratio: 1/1;
  background: url(/assets/image/pfp.png) lightgray 50% / cover no-repeat;
  border-radius: 50%;
  user-select: none;
}

.card1 .rightCon {
  display: flex;
  width: max-content;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
}

.card1 h1 {
  color: #fff;
  font-family: "SweiGothic-Black";
  font-size: 48px;
  font-style: normal;
  font-weight: 900;
  line-height: normal;
  margin-bottom: -20px;
}

.card1 h2 {
  color: #fff;
  font-family: "SweiGothic-medium";
  font-size: 30px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.card1 p {
  color: #fff;
  font-family: "SweiGothic-regular";
  font-size: 19px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  transform: translateX(-10px);
  text-wrap: nowrap;
}

.iconCon {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  user-select: none;
}

.iconCon .icon {
  height: 34px;
  width: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  cursor: pointer;
}

.iconCon .icon img {
  width: 24px;
  height: 24px;
}

.gmail {
  border-radius: 5px;
  /* border: 2px solid #ea5335; */
  transition: all 0.3s ease;
  position: relative;
}

.discord {
  border-radius: 5px;
  /* border: 2px solid #5e6cff; */
  transition: all 0.3s ease;
}

.github {
  border-radius: 5px;
  /* border: 2px solid #ffffff; */
  transition: all 0.3s ease;
}

.instagram {
  border-radius: 5px;
  /* border: 2px solid #bd5cad; */
  transition: all 0.3s ease;
}

.decoDot {
  position: absolute;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  background-color: #ffffff;
  border-radius: 50%;
  top: 20px;
}

.decoDot1 {
  right: 20px;
}

.decoDot2 {
  right: 45px;
}

.gmail:hover {
  background-color: rgba(234, 83, 53, 0.1);
  filter: drop-shadow(0px 0px 10px rgb(234, 83, 53));
}

.discord:hover {
  background-color: rgba(88, 101, 242, 0.1);
  filter: drop-shadow(0px 0px 10px rgb(88, 101, 242));
}

.github:hover {
  background-color: rgba(255, 255, 255, 0.1);
  filter: drop-shadow(0px 0px 10px rgb(255, 255, 255));
}

.instagram:hover {
  background-color: rgba(189, 92, 173, 0.1);
  filter: drop-shadow(0px 0px 10px rgb(189, 92, 173));
}

.iconCon .icon.active {
  transform: scale(0.9);
}

.copyText {
  position: absolute;
  height: 17px;
  width: auto;
  opacity: 0;
}

@keyframes slideOut {
  0% {
    transform: translateY(-10px) scale(0.5);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes fade {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.info {
  color: #fff;
  font-family: "SweiGothic-regular";
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  transform: translateX(-10px);
  text-wrap: nowrap;
  text-align: center;
}

/* card2 start from here*/
/* card2 start from here*/
/* card2 start from here*/

.card2 {
  width: 640px;
  overflow-x: scroll;
  height: auto;
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
  padding: 45px;
  gap: 30px;
  flex-wrap: nowrap;
}

.projectCard {
  display: flex;
  flex-direction: column;
  width: 260px;
  height: 470px;
  flex-shrink: 0;
  border-radius: 25px;
  background: rgba(53, 53, 53, 0.25);
  backdrop-filter: blur(10px);
  padding: 20px;
  justify-content: start;
  align-items: start;
  gap: 20px;
  user-select: none;
}

.projectCard img {
  width: 220px;
  height: 220px;
  flex-shrink: 0;
  aspect-ratio: 1/1;
  border-radius: 15px;
  flex-shrink: 0;
}

.projectCard h2 {
  color: #fff;
  font-family: "SweiGothic-black";
  font-size: 24px;
  font-style: normal;
  font-weight: 900;
  line-height: 30px; /* 125% */
}

.projectCard p {
  width: 192px;
  color: #fff;
  font-family: "SweiGothic-regular";
  font-size: 19px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.projectCard .linkBut {
  position: absolute;
  bottom: 15px;
  width: 220px;
  height: 34px;
  flex-shrink: 0;
  padding: 5px;
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
  border: #df6b97 1px solid;
  border-radius: 5px;
  padding: 0 20px 0 20px;
  gap: 10px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.projectCard .linkBut::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0%;
  height: 34px;
  z-index: -2;
  border-radius: 5px;
  transition: width 0.2s ease-out;
}

.projectCard .githubLinkBut::before {
  background-color: #ffffff;
}

.projectCard .mabyDesigningLinkBut::before {
  background-color: rgba(223, 107, 151);
}

.projectCard .linkBut:hover::before {
  width: 100%;
}

.projectCard .linkBut img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  aspect-ratio: 1/1;
  border-radius: 0;
}

.projectCard .linkBut p {
  color: #df6b97;
  font-family: "SweiGothic-black";
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  line-height: normal;
  width: auto;
}

.githubLinkBut {
  border: #ffffff 1px solid !important;
}

.githubLinkBut p {
  color: #ffffff !important;
}

.githubLinkBut:hover p {
  color: black !important;
  transition: all 0.2s ease;
}

.githubLinkBut:hover img {
  filter: invert(1);
  transition: all 0.2s ease;
}

.mabyDesigningLinkBut:hover p {
  color: white;
  transition: all 0.2s ease;
}

.linkBut:hover {
  background-color: rgba(223, 107, 151, 0.1);
  filter: drop-shadow(0px 0px 10px #df6b97);
}

.githubLinkBut:hover {
  background-color: rgba(255, 255, 255, 0.1);
  filter: drop-shadow(0px 0px 10px #ffffff);
}

.linkBut.active {
  transform: scale(0.9);
  transition: 0.1s ease;
}

@media screen and (max-width: 750px) {
  .card1 {
    width: 300px;
    height: 500px;
  }

  .card1 .container {
    flex-direction: column;
  }

  .card1 .container .rightCon {
    align-items: center;
  }

  .card1 .container .rightCon p {
    font-size: 15px;
    transform: none;
  }

  .card2 {
    width: 300px;
    flex-direction: column;
    height: auto;
    overflow: hidden;
  }
}

.loadingScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 50px;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0);
  z-index: 10;
  opacity: 1;
  backdrop-filter: blur(20px);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.spinner {
  animation: spin 1s ease-in-out infinite;
}

.loadingScreen .wordmark {
  width: min(60%, 456px);
}
