* {
  margin: 0px;
  padding: 0px;
}

body {
  overflow-x: hidden;
  width: 100%;
  background-color: #252324;

  font-family: "Poppins";
}
html {
  scroll-behavior: smooth;
}

#projcard :hover {
  background-size: 110%;
  opacity: 1;
}

#projcard img {
  border-radius: 60px;
  width: 400px;
  height: 300px;
  padding: 50px;
}
.projects {
  width: 100vw;
  padding-bottom: 70px;
  overflow: hidden;
}
.head {
  padding: 20px;
  display: flex;
  background-color: rgba(0, 0, 0, 0);
  color: #f4f3ea;
  /* width: 100%; */
  height: 50px;
  justify-content: space-between;
}
#navbar {
  width: 35%;
  display: flex;
  justify-items: center;
  justify-content: space-evenly;
  align-self: center;
  margin: 5%;
}

:root {
  --bg-color: #252324;
  --typewriterSpeed: 2s;
  --typewriterCharacters: 21;
}
#name {
  font-family: "Source Code Pro", sans-serif;
  font-size: xx-large;
  display: flex;
  align-self: center;
  margin: 5%;
}

#name {
  /*   */
  position: relative;
  font-family: "Source Code Pro", monospace;
  position: relative;
  width: max-content;
}

#name::before,
#name::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

#name::before {
  background: var(--bg-color);
  animation: typewriter var(--typewriterSpeed)
    steps(var(--typewriterCharacters)) 1s forwards;
}

#name::after {
  width: 0.125em;
  background: black;
  animation: typewriter var(--typewriterSpeed)
      steps(var(--typewriterCharacters)) 1s forwards,
    blink 750ms steps(var(--typewriterCharacters)) infinite;
}

.subtitle {
  color: hsl(0 0% 0% / 0.7);
  color: white;
  font-size: 2rem;
  font-weight: 400;
  opacity: 0;
  transform: translateY(3rem);
  animation: fadeInUp 2s ease calc(var(--typewriterSpeed) + 2s) forwards;
}

@keyframes typewriter {
  to {
    left: 100%;
  }
}

@keyframes blink {
  to {
    background: transparent;
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navcont {
  padding: 5px;
  border: 1px solid #cbd0d8;
  border-radius: 5px;
  transition: all 0.2s ease-in-out;
}

.navcont:hover {
  box-shadow: 1px 1px #cbd0d8, 2px 2px #cbd0d8, 3px 3px #cbd0d8;
  transform: translateX(-3px);
}
.intro img {
  border-radius: 20px;
  width: 500px;
}
.intro {
  /* font-family: 'Source Code Pro', sans-serif; */

  margin-left: 100px;
  margin-top: 100px;
  display: flex;
  justify-content: space-evenly;
  font-size: 30px;
  align-items: center;
}
.logo img {
  width: 40px;
  height: auto;
  margin: auto;
  padding: 25px;
  /* display: inline; */
}
#skills-box {
  display: flex;
  margin: 20px 30%;
  flex-wrap: wrap;
  justify-content: space-evenly;
  max-width: 600px;
}

.skill-card {
  display: flex;
  justify-content: center;
  width: 100px;
  height: 100px;
  margin: 10px 10px;
  /* border: 2px solid rgb(233, 235, 247); */
  background-color: rgb(233, 235, 247);
  border-radius: 10%;
  transition: all 0.2s ease-in-out;
  box-shadow: 10px 10px 10px #53a7ea;
}

.skill-card:hover {
  box-shadow: 10px 10px 18px #d3ac2b;
  transform: translate(-3px, -3px);
  background-color: rgb(25, 27, 60);
}

.skill-card img {
  width: 80px;
  height: 80px;
  margin: auto;
}
h2 {
  color: white;

  display: block;
  width: auto;
  margin: auto;
  padding: 20px 0px;
  text-align: center;
  margin-top: 50px;
}

.projects {
  display: flex;
  /* margin: 20px 30%; */
  flex-wrap: wrap;
  justify-content: space-evenly;
  flex-direction: row;
  /* max-width: 600px; */
}
/* #projects{
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
margin: 10px;
}  */

#projcard .interactable {
  display: flex;
  justify-content: center;
  width: 40%;

  align-self: center;
}

body:hover > #trailer {
  opacity: 1;
}

#trailer {
  height: 20px;
  width: 20px;
  background-color: white;
  border-radius: 20px;

  position: fixed;
  left: 0px;
  top: 0px;
  z-index: 10000;

  pointer-events: none;
  opacity: 0;
  transition: opacity 500ms ease;

  display: grid;
  place-items: center;
}

#trailer:not([data-type=""]) > #trailer-icon {
  opacity: 1;
}

#trailer-icon {
  display: flex;
  justify-content: center;
  align-items: center;
}
#trailer-icon img {
  width: 6px;
  height: 6px;

  opacity: 1;
  transition: opacity 400ms ease;
}

.not-hover {
  transition: opacity 200ms ease;

  opacity: 0;
}
.interactable {
  background-position: center 50%;
  background-size: 100%;
  opacity: 0.5;
  transition: background-size 400ms ease, opacity 400ms ease;
}
.interactable {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  /* width: auto ; */
  /* aspect-ratio: 1 / 1.5; */
  /* width: clamp(120px, 40vmin, 600px); */
  background-position: center 50%;
  background-size: 100%;
}
.interactable > p {
  color: #f4f3ea;
  font-family: "Poppins";
  font-size: 18px;
}

.interactable:hover {
  background-size: 110%;
  transform: scale(1.1);
  transition: 0.4s;
  opacity: 0.8;
}

.contact {
  margin: 100px 45px;
}
.contact-logo {
  width: 600px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: auto;
}
a:-webkit-any-link {
  text-decoration: none;
  color: white;
}

.contact img {
  transition: transform 0.7s ease-in-out;
}
.contact img:hover {
  transform: rotate(360deg);
}

@media only screen and (max-width: 600px) {
  .container {
    margin-left: 20px;
    margin-right: 20px;
  }
  * > .intro,
  .contact {
    overflow-x: hidden;
  }
  body:hover > #trailer {
    opacity: 0;
  }
  body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    width: 600px;
  }
  .head {
    /* z-index: 10000; */
    height: 0px;
    padding: 0px;

    margin-top: 100px;

    width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  #navbar {
    margin: 0px;
    width: 60%;
    display: flex;
    justify-content: space-around;
    margin-bottom: 100px;
  }
  .subtitle {
    font-family: "Poppins";
    margin-bottom: 40px;
  }
  .intro {
    width: 100%;
    margin: 0;
    margin-top: 50px;
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
  }

  .interactable {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    /* width: auto ; */
    /* aspect-ratio: 1 / 1.5; */
    /* width: clamp(120px, 40vmin, 600px); */
    background-position: center 50%;
    background-size: 100%;
    opacity: 1;
  }
  .interactable > p {
    color: #f4f3ea;
    font-family: "Poppins";
    font-size: 18px;
  }
  h2 {
    font-size: 32px;
  }
  .contact {
    margin-bottom: 100px;
  }
}
