@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&family=Reenie+Beanie&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  --oswald: "Oswald", sans-serif, medium;
  --courier: "Courier New", monospace;
  --reenie: "Reenie Beanie", cursive;
  --maincolor: rgb(243, 243, 243);
  --secondcolor: rgb(16, 16, 16);
  font-size: 16px;
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  font-family: var(--courier);
  color: var(--secondcolor);
  background-color: var(--maincolor);
  padding-inline: 3rem;
  padding-block: 0.5rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 110px;
  user-select: none;
}

.center {
  justify-content: center;
  align-items: center;
}

.scroll {
  scroll-margin-top: 45px;
}

nav {
  background-color: var(--maincolor);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 6;
}

.menu {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

header {
  display: flex;
  flex-direction: column;
}

h1 {
  font-family: var(--oswald);
  font-weight: bold;
  font-size: 150px;
  letter-spacing: -9px;
  transform: translateX(-40px);
}

h2 {
  font-family: var(--reenie);
  font-size: 96px;
  line-height: 50%;
  font-weight: 200;
  rotate: -8deg;
  transform: translateX(120px);
}

h3 {
  font-family: var(--oswald);
  font-size: 16px;
  text-transform: uppercase;
}

nav h3:hover {
  cursor: pointer;
}

h4 {
  font-family: var(--oswald);
  font-size: 24px;
  text-transform: uppercase;
}

.about {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  align-items: baseline;
  gap: 40px;
  text-wrap: nowrap;
}

.skills {
  display: flex;
  flex-direction: row;
  gap: 40px;
}

/* .gradient {
  position: relative;
  display: flex;
}

.gradient::before {
  content: "";
  position: absolute;
  left: 0;
  width: 150px;
  height: 100%;
  background: linear-gradient(
    to right,
    var(--maincolor),
    var(--maincolor),
    transparent
  );
}
.gradient::after {
  content: "";
  position: absolute;
  right: 0;
  width: 150px;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    var(--maincolor),
    var(--maincolor)
  );
} */

.projectlist {
  white-space: nowrap;
  overflow: scroll;
  -ms-overflow-style: none;
  scrollbar-width: none;
  display: flex;

  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    white 10%,
    white 90%,
    transparent 100%
  );
  min-height: 350px;
  margin-inline: 10%;
  align-items: center;
}

/* .projectlist {
  padding: 15px 0;
  width: 100%;
  display: flex;

  align-items: center;
  min-height: 350px;
  overflow-x: scroll;
  overflow-y: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-snap-type: none;
  scroll-snap-align: center;
} */

.displaynone {
  display: none;
}

.displayflex {
  display: flex;
}

.scrollspace {
  min-width: 150px;
  min-height: 200px;
  margin: 2px;
}

.projectlist img {
  width: 150px;
  height: 200px;
  object-fit: cover;
  margin: 2px;
}

.projectlist img:hover {
  width: 200px;
  height: 266px;
  cursor: pointer;
}

.info {
  min-width: 100%;
  min-height: 100px;
}

.projectview {
  min-height: 800px;
  min-width: 100%;
  border: solid, 3px, black;
  position: relative;
  padding: 10px;
  overflow: hidden;
}

.overlay {
  min-width: 100%;
  min-height: 100%;
  position: absolute;
}

.title-close-bar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  min-width: 100%;
}

.link {
  position: absolute;
  bottom: 0;
  margin-bottom: 10px;
  font-family: var(--oswald);
  text-transform: lowercase;
}

.description-tools {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 50px;
  bottom: 0;
  right: 0;
  margin-bottom: 10px;
  margin-right: 10px;
  max-width: 40%;
}

.description {
  background-color: var(--maincolor);
  text-align: justify;
}

.tools {
  display: flex;
  flex-wrap: wrap;
}

ul {
  list-style-type: none;
}

/* ul .photo:hover {
  top: 30%;
  left: 20%;
}  */

.photo {
  cursor: pointer;
  transition: 1s ease;
  position: absolute;
  box-sizing: border-box;
  background-color: white;
  padding: 7px;
  box-shadow: lightgray 1.95px 1.95px 2.6px;
}

@keyframes appear {
  0% {
    display: none;
  }
  50% {
    display: none;
  }
  100% {
    display: block;
  }
}

.photo0 {
  animation: appear 1.5s;
  top: 30%;
  left: 20%;
  -webkit-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  transform: rotate(25deg);
  max-height: 30%;
  max-width: 40%;
  z-index: 5;
}
.photo1 {
  animation: appear 0.5s;
  top: 10%;
  left: 30%;
  transform: rotate(-5deg);
  max-height: 30%;
  max-width: 30%;
  z-index: 4;
}
.photo2 {
  animation: appear 1s;
  top: 50%;
  left: 20%;
  transform: rotate(5deg);
  max-height: 30%;
  max-width: 50%;
  z-index: 3;
}
.photo3 {
  animation: appear 2s;
  top: -10%;
  left: 55%;
  transform: rotate(20deg);
  max-height: 40%;
  max-width: 30%;
  z-index: 4;
}
.photo4 {
  animation: appear 2.5s;
  top: 70%;
  left: 30%;
  transform: rotate(-10deg);
  max-height: 40%;
  max-width: 28%;
  z-index: 4;
}

.photo5 {
  top: 0%;
  left: 0%;
  max-height: 40%;
  max-width: 30%;
  z-index: 0;
}

.photo-clicked {
  animation-play-state: running;
  transition: all 1s;
  z-index: 5;
  transform: rotate(0deg);
  height: fit-content;
  top: 50%;
  left: 50%;
  -webkit-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  max-height: 60%;
  max-width: 60%;
}

.title-desc-link {
  display: flex;
  flex-direction: column;
  min-height: 50%;
  justify-content: space-between;
  text-align: justify;
}

.title-close-bar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  min-width: 100%;
}

.closebutton {
  height: 34px;
}

.closebutton:hover {
  rotate: 90deg;
  transition-duration: 1s;
  cursor: pointer;
}

button {
  all: unset;
}

.outlinebox {
  border: solid, 1px, rgb(16, 16, 16);
  -webkit-border: solid, 1px, rgb(16, 16, 16);
  border-radius: 50px;
  padding: 5px;
  margin-right: 5px;
  margin-block: 5px;
  width: fit-content;
}

.contact {
  display: flex;
  flex-direction: row;
  min-height: 500px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 70%;
  min-width: 40%;
}

.contact h2 {
  rotate: 0deg;
  transform: translateX(0px);
  margin-bottom: 50px;
}

.contact-info-in {
  display: block;
}

.contact .outlinebox {
  padding-inline: 10px;
  margin-block: 30px;
  margin-inline: 0;
  margin-right: 10px;
  font-family: inherit;
}

.contact .outlinebox:hover {
  cursor: pointer;
  box-shadow: 10px 5px 5px lightgray;
}

button:active {
  background-color: lightgray;
}

@keyframes modalAnimation {
  0% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
  }
}

.copymodal {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 10px 5px 5px lightgray;
  width: 150px;
  height: 50px;
  z-index: 10;
  background-color: var(--maincolor);
  animation: modalAnimation 2.1s;
}

.mail-form {
  display: flex;
  min-height: 70%;
  min-width: 40%;
}

@media screen and (max-width: 1024px) {
  html {
    font-size: 12px;
  }

  nav {
    font-size: 16px;
  }
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: 120px;
  }

  h2 {
    font-size: 66px;
  }

  .about {
    justify-content: center;
    align-items: baseline;
  }

  .projectview {
    min-height: 500px;
  }
}

@media screen and (max-width: 425px) {
  body {
    gap: 90px;
  }

  .datetime {
    display: none;
  }

  nav {
    justify-content: center;
  }

  h1 {
    font-size: 80px;
    letter-spacing: -6px;
    transform: translateX(0px);
  }

  h2 {
    font-size: 46px;
    rotate: -8deg;
    transform: translateX(0px);
    rotate: 0deg;
  }

  .about {
    justify-content: center;

    align-items: baseline;
  }

  .skills {
    flex-direction: column;
    gap: 0px;
  }

  .projectlist {
    min-height: 350px;
  }

  .projectview {
    flex-direction: column;
    min-height: 700px;
  }

  .projectgallery {
    min-width: 100%;
    max-width: 100%;
    min-height: 40%;
    max-height: 40%;
  }

  .projectdetails {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 60%;
    padding: 10px;
  }
  .contact {
    min-height: 400px;
  }

  .contact-info {
    min-height: 50%;
    min-width: 100%;
  }
  .mail-form {
    min-width: 0%;
  }

  .photo0 {
    animation: appear 1.5s;
    top: 30%;
    left: 20%;
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    transform: rotate(25deg);
    max-height: 40%;
    max-width: 60%;
    z-index: 5;
  }
  .photo1 {
    animation: appear 0.5s;
    top: 15%;
    left: 10%;
    transform: rotate(-5deg);
    max-height: 30%;
    max-width: 60%;
    z-index: 4;
  }
  .photo2 {
    animation: appear 1s;
    top: 40%;
    left: 20%;
    transform: rotate(5deg);
    max-height: 30%;
    max-width: 50%;
    z-index: 3;
  }
  .photo3 {
    animation: appear 2s;
    top: 10%;
    left: 70%;
    transform: rotate(-20deg);
    max-height: 40%;
    max-width: 30%;
    z-index: 4;
  }
  .photo4 {
    animation: appear 2.5s;
    top: 50%;
    left: 10%;
    transform: rotate(-10deg);
    max-height: 40%;
    max-width: 40%;
    z-index: 4;
  }

  .photo5 {
    top: 0%;
    left: 0%;
    max-height: 40%;
    max-width: 30%;
    z-index: 0;
  }

  .photo-clicked {
    animation-play-state: running;
    transition: all 1s;
    z-index: 5;
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
    top: 50%;
    left: 50%;
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    max-height: 80%;
    max-width: 80%;
    -webkit-max-height: 80%;
    -webkit-max-width: 80%;
    height: auto;
    width: auto;
  }

  .description-tools {
    gap: 30px;
    max-width: 50%;
  }

  .outlinebox {
    border: solid, 1px, rgb(16, 16, 16);
    -webkit-border: solid, 1px, rgb(16, 16, 16);
  }
}

@media screen and (max-width: 375px) {
  body {
    padding-inline: 0.5rem;
    padding-block: 0.5rem;
  }
  h1 {
    font-size: 70px;
  }

  h2 {
    font-size: 36px;
  }
}
