.bubble {
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  position: absolute;
  bottom: 0;
  opacity: 0;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(100, 100, 100, 0.4),
    rgba(10, 10, 10, 0.9) 70%,
    rgba(0, 0, 0, 0.95) 100%
  );
  pointer-events: none;
}

.container {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

main {
  height: 90%;
  width: 90%;
  background-repeat: no-repeat;
  background-size: cover;
  background: linear-gradient(#33333391, #11111191);
  position: relative;
  overflow: hidden;
  border-radius: 0 4rem 0 4rem;
}

nav {
  animation: bg-color1 20s ease-in-out infinite;
  border-radius: 0 10rem 10rem 0;
  position: absolute;
  top: 0;
  left: 0;
  padding: 2rem 3.2rem;
  transition: background-color 5s ease;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4.2rem;
}

nav ul li {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

nav ul li a {
  font-size: 1.8rem;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  cursor: url("../pointer.png") 0 0, auto;
}

.underline {
  width: 100%;
  background-color: orange;
  height: 2px;
  opacity: 0;
}

nav ul li a:hover,
:focus {
  color: orange;
}

nav ul li a:hover .underline {
  animation: slide 0.3s linear;
  opacity: 1;
}

nav ul li a:focus .underline {
  animation: slide 0.3s linear;
  opacity: 1;
}

@keyframes slide {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

.sticky {
  position: sticky !important;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 99999;
  background-color: rgba(0, 0, 0, 0.469);
}

.hero {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
}

.hero h1 {
  font-size: 8.2rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  text-transform: capitalize;
}

.intro {
  font-size: 2.4rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.type-writter {
  font-size: 2.4rem;
  font-weight: 500;
  color: orange;
}

.typed-cursor {
  font-size: 2.4rem;
  color: orange;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.hero a {
  height: 0px;
  cursor: url("cursor.png") 0 0, auto;
}

.footer ul {
  animation: bg-color1 20s ease-in-out infinite;
  transition: background-color 5s ease;
  border-radius: 10rem 0 0 10rem;
  position: absolute;
  bottom: 0;
  right: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  gap: 4.2rem;
  padding: 1.2rem 2.4rem;
}

.footer ul a {
  cursor: url("../pointer.png") 0 0, auto;
  position: relative;
}

.footer ul a:hover::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 4rem;
  width: 4rem;
  border-radius: 50%;
  z-index: -1;
  border: 8px solid transparent;
  border-top-color: orange;
  animation: spin 0.8s linear;
}

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

.footer ul li {
  height: 5rem;
  width: 5rem;
  background-color: #242424;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 0.8rem;
}

.footer ul li img {
  filter: invert(100%);
  height: 100%;
  width: 100%;
  transition: all 0.3s ease;
}

.footer ul a:hover img {
  filter: invert(51%) sepia(93%) saturate(743%) hue-rotate(1deg)
    brightness(102%) contrast(101%);
}

.loader {
  position: absolute;
  z-index: 999;
  transition: all 0.3s ease;
  pointer-events: none;
  background-color: #000;
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

#work {
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 0;
  margin: 5rem 0;
}

.work-container {
  gap: 3.2rem;
  width: 90%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.work-container .work-box {
  height: 100%;
  width: 100%;
  border-radius: 4rem;
  animation: bg-color 20s ease-in-out infinite;
  transition: transform 1.2s ease;
  padding: 4rem;
  overflow: hidden;
}

@keyframes bg-color1 {
  0% {
    background-color: hsl(0, 0%, 7%);
  }
  10% {
    background-color: hsl(0, 0%, 5%);
  }
  20% {
    background-color: hsl(0, 0%, 10%);
  }
  100% {
    background-color: hsl(0, 0%, 2%);
  }
}

.work-container .work-box:nth-child(1) {
  grid-column: 1/4;
  transform: translateX(-100%);
}

.work-container .work-box:nth-child(2) {
  grid-column: 4/6;
  transform: translateX(100%);
}

.work-container .work-box:nth-child(3) {
  grid-column: 1/3;
  transform: translateX(-200%);
}

.work-container .work-box:nth-child(4) {
  grid-column: 3/6;
  transform: translateX(600%);
}

.center {
  transform: translateX(0%) !important;
}

.heading {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}

.heading img {
  height: 4rem;
  width: 4rem;
}

.heading p {
  font-size: 3.2rem;
  font-weight: 600;
  color: orange;
}

.work-box .about {
  margin-top: 4rem;
  font-size: 2rem;
  font-weight: 600;
  color: #999;
}

.shine {
  background: linear-gradient(
    100deg,
    transparent 0%,
    transparent 20%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%,
    transparent 100%
  );
  height: 80rem;
  width: 20rem;
  position: absolute;
  top: -10%;
  left: -100%;
  pointer-events: none;
  animation: shine 2s ease-in-out infinite;
  z-index: 9;
  opacity: 0.03;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

#project {
  width: 100vw;
  height: 70vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.row:hover .scroll-left {
  animation-play-state: paused;
}

.row:hover .scroll-right {
  animation-play-state: paused;
}

#project::after {
  content: "";
  height: 52vh;
  width: 40rem;
  background: linear-gradient(to right, transparent, #111111be);
  position: absolute;
  top: 13%;
  right: 0;
  z-index: 9;
  pointer-events: none;
}

#project::before {
  content: "";
  height: 52vh;
  width: 20vw;
  background: linear-gradient(to left, transparent, #111111be);
  position: absolute;
  top: 13%;
  left: 0;
  z-index: 9;
  pointer-events: none;
}

.scroll-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  overflow: hidden;
}

.row {
  overflow: hidden;
  width: 100%;
}

.project-grid {
  display: flex;
  gap: 2rem;
  width: max-content;
  will-change: transform;
}

.scroll-left {
  animation: scroll-left 40s linear infinite;
}

.scroll-right {
  animation: scroll-right 40s linear infinite;
}

.project-box {
  border-radius: 2rem;
  flex-shrink: 0;
  padding: 2.4rem;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-direction: column;
  background-color: #222;
  animation: bg-color 20s ease-in-out infinite;
}

.project-box h1 {
  font-size: 2.2rem;
  color: orange;
}

.project-box p {
  width: 18rem;
  height: 12rem;
  font-size: 1.6rem;
  color: #999;
}

.project-box button {
  border-radius: 20rem;
  padding: 1rem 2rem;
  box-shadow: 2px 2px 4px rgba(221, 221, 221, 0.59),
    -2px -2px 4px rgba(255, 255, 255, 0.689);
  transition: all 0.3s ease;
  background-color: rgba(0, 0, 0, 0.555);
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.689);
  font-weight: 900;
  font-size: 1.2rem;
  cursor: url("../pointer.png") 0 0, auto;
  overflow: hidden;
}

.project-box button:hover {
  background-color: rgba(0, 0, 0, 0.404);
  scale: 1.1;
}

.project-box button:active {
  scale: 1;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scroll-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}
