@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Paytone+One&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap");

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
}

body {
  padding: 0;
  color: black;
  font-size: 1.25rem;
  text-align: center;
  font-family: "Poppins", sans-serif;
  margin: 0;
  cursor: default;
  user-select: none;
  background-image: url(/img/Background.png);
}

.forground {
  padding-bottom: 70px;
}

.navbar {
  background-color: #cff6ff;
}

h1 {
  margin-top: 8vh;
}

/* Loading */
#loading-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  transition: opacity 1s ease;
}

.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Poppins", sans-serif;
}

.loader h2 {
  position: relative;
  font-size: 6vw;
  color: #25283900;
  -webkit-text-stroke: 0.1vw #f0047f;
  text-transform: uppercase;
}

.loader h2:before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  color: #009ec4;
  background: linear-gradient(0deg, #fd848c, #f1ffc4);
  -webkit-text-stroke: 0vw #f0047f;
  border-right: 3px solid #a2e3c4;
  overflow: hidden;
  animation: animate 3s linear normal;
}

@keyframes animate {
  0%,
  10%,
  100% {
    width: 0;
  }

  70%,
  90% {
    width: 102%;
  }
}

.main {
  opacity: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;

  transition: opacity 1s ease;
}

.main.loaded {
  opacity: 1;
  display: block;
}

/* Background */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

#background-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.foreground {
  position: relative;
  z-index: 1;
}

/*Navbar */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
}

header .navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  background-color: transparent;
}

header .navbar .logo {
  display: flex;
  align-items: center;
}

header .navbar .logo img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

header .navbar .logo span {
  font-size: 1.25rem;
}

header .navbar .nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

header .navbar .nav li {
  margin-left: 20px;
}

header .navbar .nav li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: color 0.3s ease;
}

header .navbar .nav li a:hover {
  color: #f0047f;
}

header .navbar .nav li a.active {
  color: #f0047f;
}

/*Content */
.content {
  margin-top: 4%;
  color: #333; /* Text color */
  text-shadow: 2px 2px 4px white;
}

.my_name {
  font-size: 6rem;
  margin-bottom: 30px;
  font-family: "Paytone One", sans-serif;
  letter-spacing: 3px;
  position: relative;
  margin-bottom: 36px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  z-index: 1;
}

.my_name:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  width: 100%;
  height: 40%;
  background: #fffbc6;
  background-size: 200% 200%;
  transform: translateY(-50%) rotate(-3deg);
  z-index: -1;
}

.typing h1 {
  margin-top: 0;
  font-family: "PT Sans", sans-serif;
}

.about {
  display: flex;
  justify-content: center;
}

.about-text {
  text-align: justify;
  font-size: 2rem; 
  width: 70%;
}

/*Skillset */
#skillset {
  margin: 0 auto;
  width: fit-content;
  text-align: left;
  width: 70%;
}

#skillset h1 {
  color: #333;
  margin-bottom: 1rem;
  text-align: center;
  font-size: 4rem;
}

.styled {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.styled li {
  position: relative;
  padding: 0.5rem 1rem;
  font-size: 3vh;
  line-height: 1.5;
  margin: 0.5rem;
  border-radius: 4px;
  background-color: #83e6fe;
  box-shadow: 0.2rem 0.2rem 0 #333;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}

.styled li::before {
  content: "🚀 ";
  color: #009ec4;
  text-shadow: none;
}
.styled li:nth-child(2)::before {
  content: "🤔 ";
  color: #ff61b3;
}
.styled li:nth-child(3)::before {
  content: "🎮  ";
  color: #009ec4;
}

.styled li:nth-child(4)::before {
  content: "💡  ";
  color: #009ec4;
}

.styled li:nth-child(5)::before {
  content: "🎨 ";
  color: #ff61b3;
}
.styled li:nth-child(6)::before {
  content: "🥇 ";
  color: #009ec4;
}
.styled li:nth-child(7)::before {
  content: "🎯 ";
  color: #ff61b3;
}
.styled li:nth-child(8)::before {
  content: "📖 ";
  color: #009ec4;
}
.styled li:nth-child(9)::before {
  content: "✨ ";
  color: #ff61b3;
}
.styled li:nth-child(10)::before {
  content: "🎬 ";
  color: #009ec4;
}

.styled li:nth-child(11)::before {
  content: "🥽 ";
  color: #009ec4;
}

.styled li:nth-child(12)::before {
  content: "💻 ";
  color: #009ec4;
}

/*Projects Btns*/
#projecten h1 {
  font-size: 4rem;
}

.project-btns {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  z-index: 999;
  padding: 50px 50px;
  font-size: 1.25rem;
  font-weight: bold;

  width: fit-content;
  cursor: pointer;
  border: 0.125rem solid;
  border-radius: 0.375rem;
  padding: 0.75rem 1.25rem; 
  transition: all 0.3s;
  background-color: #ff9eda;
  box-shadow: 0.3125rem 0.3125rem 0 #333;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  color: #333;
}

.filter-btn.active {
  background-color: #83e6fe;
  color: #fff;
}

.project-cards .project {
  display: block;
}

.project-cards .project.hide {
  display: none;
}

/*Projects Cards*/
.project-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2vh;
}

.project-row {
  display: flex;
  justify-content: center;
  gap: 2vh;
}

.project-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 25vh;
  width: 40vh;
  background-color: #009ec4;
  overflow: hidden;
}

.project-card:hover .card-image {
  transform: scale(1.1);
}

.project-card .card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.project-card .card-description {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1;
  padding: 20px;
  color: #fff;
  text-align: center;
}

#projecten .project-card .title-project h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
  margin-top: 0;
  text-shadow: 2px 2px 4px rgb(0, 0, 0);
}

@media (max-width: 600px) {

  header{
    display: none;
  }

  .my_name{
    font-size: 2.2rem;
  }

  .typed-text{
    font-size: 1.5rem;
  }

  .portret img{
    width: 22rem;
  }

  .about-text p{
    font-size: 1.2rem;
  }

  #skillset h1{
    font-size: 2.2rem;
  }

  .styled{
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem auto;
  }

  .styled li {
    position: relative;
    padding-left: 0.6rem;
    font-size: 1.2rem;
    line-height: 1.5;
    margin: 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    display: inline-flex
  }

  #projecten h1{
    font-size: 2.2rem;
  }

  .project-btns{
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    margin-top: 10px;
    margin-bottom: 40px;
  }

  .filter-btn {
    font-size: 0.6rem;
    font-weight: bold;
  }

  #projecten .project-card .title-project h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    margin-top: 0;
    text-shadow: 2px 2px 4px rgb(0, 0, 0);
  }
}