@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,500;9..40,700&family=Kanit:wght@500&family=Poppins:wght@500&display=swap");

body {
  background-color: #171717;
  font-family: "Poppins", sans-serif;
  margin: 30px;
  cursor: url(https://cur.cursors-4u.net/cursors/cur-4/cur330.cur), auto !important;
  user-select: none;
  position: relative;
  opacity: 0; /* Start with the page hidden */

  /* Add animation properties for slide-in effect */
  animation-name: slideIn;
  animation-duration: 1s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

#loading {
  display: flex;
}

#contentt {
  visibility: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s, transform 1s;
}

body.show-contentt #contentt {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

#contentt * {
  opacity: 0;
  transition: opacity 0.5s;
}

body.show-contentt #contentt * {
  opacity: 1;
}
@keyframes slideIn {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.image,
.image:hover {
  -webkit-filter: brightness(100%);
  -webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  -o-transition: all 1s ease;
  -ms-transition: all 1s ease;
  transition: all 1s ease;
}

h1,
h2,
h3,
h4,
h5,
h6,
a {
  color: rgb(206, 206, 206);
}

.spotify-song {
  padding-bottom: 7.5px;
  font-weight: normal;
  color: var(--text-color);
  opacity: 0.8;
}

.greetings {
  font-size: 75px;
  font-weight: 600;
  color: var(--text-color);
}
.color-text {
  background-image: linear-gradient(to right, #b40000, #e34a2b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

a {
  font-weight: 600;
}

nav {
  width: 100%;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-left: auto;
  overflow: hidden;
}

.link-btn {
  transition: transform 0.2s;
  transition: 0.8s ease;
}

.link-btn:hover {
  transition: transform 0.2s;
  transition: 0.8s ease;
  outline: none;
  border-color: #a1a3a3;
}

.pfp {
  border: 1px solid #242424;
  box-shadow: rgba(0, 0, 0, 0.75) 0px 6px 16px;
  transition: transform 0.2s;
  transition: 0.8s ease;
}

.pfp:hover {
  transition: 0.8s ease;
  outline: none;
  border-color: #a1a3a3;
  box-shadow: 0 0 10px #545454;
}

#buttons {
  transition: transform 0.2s;
  transition: 0.8s ease;
}

#buttons:hover {
  transition: transform 0.2s;
  transition: 0.8s ease;
  outline: none;
  border-color: #a1a3a3;
}

.links {
  display: flex;
  float: right;
  justify-content: flex-end;
}

.link-btn {
  background: #1b1b1b;
  padding: 8px 22px 3px;
  margin: 10px;
  border-radius: 30px;
  border: 1px solid #242424;
}

.mainlogo {
  display: inline;
  padding-right: 10px;
  float: right;
  margin-top: 19px;
  padding-top: 2px;
  transition: transform 0.5s ease; /* Adjust the duration and timing function as needed */
  transform: translateX(0);
  overflow: hidden;
}

.mainlogo:hover {
  transform: translateX(50px);
}

#dcr {
  transition: all 0.3s ease-in-out 0s;
}

#dcr:hover {
  cursor: default;
  transform: rotate(360deg);
  transition: all 0.3s ease-in-out 0s;
}

.mainlogo:active {
  transform: translateX(0);
}

.main-text {
  padding-right: 100px;
}

.mainlogo2 {
  display: inline;
  padding-right: 10px;
  float: right;
  margin-top: 19px;
  margin-right: 160px;
  width: 20px;
}

.name {
  margin-left: 15px;
}

.rectangle {
  background: #1b1b1b;
  border-radius: 10px;
  border: 1px solid #242424;
  float: left;
  overflow: hidden;
}

#project {
  box-shadow: rgba(0, 0, 0, 0.4) 0px 6px 16px;
  transition: transform 0.2s;
  transition: 0.8s ease;
}

#project:hover {
  transition: 0.8s ease;
  outline: none;
  border-color: #a1a3a3;
}

.lanyard {
  box-shadow: rgba(0, 0, 0, 0.4) 0px 6px 16px;
  transition: transform 0.2s;
  transition: 0.8s ease;
}

.lanyard:hover {
  transition: 0.8s ease;
  outline: none;
  border-color: #a1a3a3;
}

#arrow {
  margin-left: -25px;
  margin-top: 10px;
  transition: transform 0.5s ease; /* Adjust the duration and timing function as needed */
  transform: translateX(0);
  overflow: hidden;
  margin-right: 10px;
}

#arrow:hover {
  transform: translateX(50px);
}

#arrow:active {
  transform: translateX(0);
}
.hero {
  width: auto;
  height: fit-content;
}

span {
  font-family: "Poppins", sans-serif !important;
}

.text {
  width: 800px;
}

.wave {
  animation-name: wave-animation; /* Refers to the name of your @keyframes element below */
  animation-duration: 2.5s; /* Change to speed up or slow down */
  animation-iteration-count: infinite; /* Never stop waving :) */
  transform-origin: 70% 70%; /* Pivot around the bottom-left palm */
  display: inline-block;
}

@keyframes wave-animation {
  0% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(14deg);
  } /* The following five values can be played with to make the waving more or less extreme */
  20% {
    transform: rotate(-8deg);
  }
  30% {
    transform: rotate(14deg);
  }
  40% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(10deg);
  }
  60% {
    transform: rotate(0deg);
  } /* Reset for the last half to pause */
  100% {
    transform: rotate(0deg);
  }
}

.wrap {
  width: 100%;
}
.gradient-text {
  background: linear-gradient(
    to right,
    rgb(72, 0, 14),
    rgb(194, 34, 34),
    rgb(255, 181, 181)
  );
  background-size: 200% 200%;
  animation: rainbow 2s ease-in-out infinite;
  -webkit-background-clip: text;
  -webkit-background-clip: text;
  color: rgb(161, 160, 160);
}
.gradient-text:hover {
  color: rgba(255, 255, 255, 0);
}
@keyframes rainbow {
  0% {
    background-position: left;
  }
  50% {
    background-position: right;
  }
  100% {
    background-position: left;
  }
}

#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

#popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  background: transparent;
  z-index: 2;
}

#closeButton {
  cursor: pointer;
}

.proj {
  -webkit-filter: brightness(100%);
}

.proj:hover {
  -webkit-filter: brightness(50%);
  -webkit-transition: all 5s ease;
  -moz-transition: all 5s ease;
  -o-transition: all 5s ease;
  -ms-transition: all 5s ease;
  transition: all 5s ease;
}

#loading {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 50%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  z-index: 1;
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 4px solid #fff;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
