/* ============================================
   PROJECTS PAGE SPECIFIC STYLES
   ============================================ */

#projects {
  height: 89.5%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 0;
  margin: 0;
  padding: 0;
}

.slider {
  position: relative;
  width: 100%;
  height: 500px;
}

.projects_text {
  position: absolute;
  z-index: -99;
  font-size: 12vw;
  font-family: "Arial Black";
  color: #000000;
  opacity: 0.241;
}

.kaarten {
  width: 25vw;
  margin: 1rem;
  padding: 1rem;
  border: 1px solid #ffffff22;
  background: #dfdfdf;
  box-shadow: 0 7px 10px 5px #00000088;
  border-radius: .7rem;
  position: absolute;
  left: calc(50% - 400px / 2);
  transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55),
              opacity 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55),
              filter 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55),
              z-index 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  cursor: pointer;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
}

.kaarten::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(26, 26, 255, 0.2), transparent);
  transition: left 0.5s;
  z-index: 1;
}

.kaarten:hover::before {
  left: 100%;
}

.kaarten:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px 10px rgba(26, 26, 255, 0.3), 0 0 40px rgba(26, 26, 255, 0.2);
  border-color: rgba(26, 26, 255, 0.5);
}

.kaarten:active {
  transform: translateY(-5px) scale(1.01);
}

hr {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ffffff55;
}

ins {
  font-family: "Roboto";
  text-decoration: none;
  margin-left: 10px;
}

.in-kaarten {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.kaarten:hover .in-kaarten {
  transform: translateY(-5px);
}

.kaarten-image {
  border-radius: 15px;
  width: 100%;
  height: 300px;
  margin-bottom: 10px;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), filter 0.4s;
  position: relative;
  z-index: 0;
}

.kaarten:hover .kaarten-image {
  transform: scale(1.05);
  filter: brightness(1.1) contrast(1.1);
}

h2 {
  font-family: "Roboto";
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.kaarten:hover h2 {
  color: #1a1aff;
  transform: translateX(5px);
}

.description {
  font-family: "Roboto";
  font-weight: bold;
  margin: .5rem 0;
  color: #000000;
  transition: color 0.3s ease;
  position: relative;
  z-index: 2;
}

.kaarten:hover .description {
  color: #1a1aff;
}

.creator {
  display: flex;
  align-items: center;
  margin-top: 5px;
}

.wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #ffffff22;
  padding: .3rem;
  border-radius: 100%;
  box-shadow: inset 0 0 0 4px #000000aa;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 2;
}

.kaarten:hover .wrapper {
  transform: scale(1.1) rotate(5deg);
  box-shadow: inset 0 0 0 4px #1a1aff, 0 0 15px rgba(26, 26, 255, 0.5);
}

img {
  border-radius: 100%;
  width: 2rem;
  height: 2rem;
  object-fit: cover;
}

#next,
#prev {
  position: absolute;
  top: 40%;
  color: rgb(0, 0, 0);
  background-color: transparent;
  border: none;
  font-size: 5rem;
  font-family: monospace;
  font-weight: bold;
  left: 50px;
  z-index: 999;
  cursor: pointer;
  transition: 0.5s;
}

#next:hover,
#prev:hover {
  color: blue;
  font-size: 5rem;
  transform: scale(140%) rotate(10deg);
  text-shadow: 0 0 20px rgba(26, 26, 255, 0.8);
}

#next {
  left: unset;
  right: 50px;
}

@media (max-width: 800px) {
  body {
    margin: 0;
    padding: 0;
  }
  header {
    background-color: rgb(255, 255, 255);
    height: 50px;
  }
  .kaarten {
    width: 90%;
    left: -0.00001%;
    top: 10%;
  }
  .slider {
    height: 90vh;
    overflow-x: hidden;
  }
  #next, #prev {
    top: 78%;
  }
}

