/* Variables */
:root {
  --primary_text_color: whitesmoke;
}

body {
  color: #f1f1f1;
  font-family: sans-serif;
  margin: 0;
  background: -webkit-linear-gradient(to right, #434343, #000000);
  background: linear-gradient(to right, #434343, #000000);
}

li {
  list-style-type: none;
  color: var(--primary_text_color);
}

p,
h3,
h1 {
  color: var(--primary_text_color);
}

#donateBtn {
  color: var(--primary_text_color);
  text-decoration: none;
  position: fixed;
  top: 5%;
  left: 5%;
  z-index: 99;
  width: 55px;
  height: 25px;
}

#donateBtn:hover {
  animation: liftOff 1s ease forwards;
}

#donateBtn:not(:hover) {
  animation: putDown 1s ease;
}

.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  0% {
    gap: 50px;
    opacity: 0.5;
  }
  100% {
    gap: 0;
    opacity: 1;
  }
}

.fadeIn {
  animation: fadeIn 1s ease-out forwards;
}

/*============================*/
/* Hero Section */
/*============================*/
#landingPage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  opacity: 0;
}

#landingPage h1 {
  color: var(--primary_text_color);
  width: fit-content;
  height: fit-content;
  font-size: clamp(2rem, 5vw, 5rem);
  margin: 0;
}
#landingPage h2 {
  text-align: center;
  margin: 0;
}
#landingPage p {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  padding: 10px;
  margin: 0;
}
#pinpicture {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}
#socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
#socials ul {
  padding-inline-start: 0;
}
#socials li {
  display: inline-block;
  margin: 0 5px;
}
#socials li img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}
.cursor {
  display: inline-block;
  color: #fff;
  font-weight: bold;
  animation: blink 0.8s infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
#scrollDown {
  opacity: 0;
  position: relative;
  top: 150px;
  width: 60px;
  height: 60px;
  transform: translateY(20px) rotate(90deg);
  filter: brightness(0) invert(1);
  animation: bounce 2s ease-in-out infinite;
  animation-delay: 3s;
  animation-fill-mode: both;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
#scrollDown.show {
  opacity: 1;
  transform: translateY(0) rotate(90deg);
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0) rotate(90deg);
  }
  50% {
    transform: translateY(-10px) rotate(90deg);
  }
}

/*=================================*/
/* LANGUAGES AND FRAMEWORK SECTION */
/*=================================*/
#skills h3 {
  height: fit-content;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

#skills {
  /* background-color: orange; */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  height: auto;
}

.wrapper {
  width: 90%;
  max-width: 1536px;
  margin-inline: auto;
  position: relative;
  height: 100px;
  margin-top: 5rem;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 1) 20%,
    rgba(0, 0, 0, 1) 80%,
    rgba(0, 0, 0, 0)
  );
}

@keyframes scrollLeft {
  to {
    left: -200px;
  }
}

.item {
  border-radius: 6px;
  position: absolute;
  left: max(calc(200px * 8), 100%);
  animation-name: scrollLeft;
  animation-duration: 30s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.item img{
  width: 50px;
  height: 50px;
  filter: brightness(0) invert(1);
}

.item1 {
  animation-delay: calc(30s / 12 * (12 - 1) * -1);
}

.item2 {
  animation-delay: calc(30s / 12 * (12 - 2) * -1);
}

.item3 {
  animation-delay: calc(30s / 12 * (12 - 3) * -1);
}

.item4 {
  animation-delay: calc(30s / 12 * (12 - 4) * -1);
}

.item5 {
  animation-delay: calc(30s / 12 * (12 - 5) * -1);
}

.item6 {
  animation-delay: calc(30s / 12 * (12 - 6) * -1);
}

.item7 {
  animation-delay: calc(30s / 12 * (12 - 7) * -1);
}

.item8 {
  animation-delay: calc(30s / 12 * (12 - 8) * -1);
}

.item9{
  animation-delay: calc(30s / 12 * (12 - 9) * -1);
}

.item10{
  animation-delay: calc(30s / 12 * (12 - 10) * -1);
}

.item11{
  animation-delay: calc(30s / 12 * (12 - 11) * -1);
}

.item12{
  animation-delay: calc(30s / 12 * (12 - 12) * -1);
}

/*==============================*/
/*  EXPERIENCE SECTION          */
/*==============================*/
#experienceSection {
  width: 90%;
  margin: 0 auto;
  padding: 64px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#experienceSection h3 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin: 0 0 32px 0;
  text-align: center;
}

.jobPost{
  height: fit-content;
  width: 50%;
  border-radius: 15px;
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  margin: 2%;
}

.jobPost h4{
  font-size: 25px;
}

.jobPost h5{
  font-size: 15px;
}

.jobPic{
  height: 80px;
  width: 80px;
  border-radius: 15px;
  margin: 2%;
}

.jobInfo{
  margin-left: 3%;
}
.jobTitle{
  width: 100%;
  height: fit-content;
  margin-top: 10%;
  margin-bottom: 0;
}

.jobDate{
  margin-top: 0;
  width: 100%;
}

.jobPosition{
  padding-bottom: 5px;
  margin-top: 0;
  margin-bottom: 0;
}

/*============================*/
/*  PROJECT SECTION           */
/*============================*/
@keyframes liftOff {
  0% {
    box-shadow: 1px 1px 10px #17212d;
  }
  100% {
    box-shadow: 20px 20px 25px #17212d;
  }
}

@keyframes putDown {
  0% {
    box-shadow: 20px 20px 25px rgb(43, 41, 41);
  }
  100% {
    box-shadow: 1px 1px 10px rgb(43, 41, 41);
  }
}

.projectPost {
  margin: 2%;
  width: 250px;
  height: 325px;
  border-radius: 15px;
  border: 1px solid rgb(43, 41, 41);
  box-shadow: 1px 1px 10px rgb(43, 41, 41);
}

.projectPost:hover {
  animation: liftOff 1s ease forwards;
}

.projectPost:not(:hover) {
  animation: putDown 1s ease;
}

.projectPost img {
  width: 200px;
  height: 200px;
  border-radius: 15px;
  margin-left: 25px;
  margin-top: 10px;
}

.projectPost h4 {
  margin-left: 90px;
}

#projectSection {
  width: 100vw;
  height: 75vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#projectSection h3 {
  font-size: 40px;
}

#projectDisplay {
  display: flex;
  border-radius: 15px;
  width: 90%;
  height: 375px;
  background: rgba(255, 255, 255, 0.06);
}

/*===========================*/
/*  EXTRA INFO. SECTION      */
/*===========================*/
#extraInfo {
  width: 100vw;
  height: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#extraInfo h3 {
  font-size: 40px;
}

#extraInfo p {
  margin: 0 10%;
}

/*This is for the breakpoints*/
/*When arrow breaks & hero section resize*/
@media screen and (max-width: 768px) {
  #landingPage h1 {
    font-size: 3rem;
  }
  #socials {
    flex-direction: column;
    align-items: center;
  }
  #skills ul {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  #skills li {
    flex: 0 0 auto;
    scroll-snap-align: center;
  }
}

/* when project section breaks */
@media screen and (max-width: 840px) {
  #projectSection {
    height: fit-content;
    padding-bottom: 50px;
  }
  #projectDisplay {
    width: 90vw;
    height: fit-content;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-padding: 24px;
  }
  .projectPost {
    margin: 20px;
    max-width: 250px;
    height: 325px;
    flex: 0 0 100%;
    scroll-snap-align: start;
  }
}

@media screen and (max-width: 750px) {
  #landingPage h1 {
    font-size: 69px;
  }
}

@media screen and (max-width: 650px) {
  #landingPage h1 {
    font-size: 55px;
  }
}

@media screen and (max-width: 619px) {
  #socials p {
    font-size: 12px;
  }
  #socials li img {
    width: 15px;
    height: 15px;
  }
}

@media screen and (max-width: 556px) {
  #socials p {
    font-size: 10px;
  }
  #pinpicture {
    width: 12px;
    height: 12px;
  }
  #socials li img {
    width: 15px;
    height: 15px;
  }
}

@media screen and (max-width: 520px) {
  #landingPage h1 {
    font-size: 45px;
  }
  #pinpicture {
    width: 12px;
    height: 12px;
  }
  #socials li img {
    width: 12px;
    height: 12px;
  }
}

@media screen and (max-width: 420px) {
  #landingPage h1 {
    font-size: 37px;
  }
  #experienceSection h3 {
    font-size: 15px;
  }
  #projectSection h3 {
    font-size: 20px;
  }
  #skills h3 {
    font-size: 15px;
  }
}

@media screen and (max-width: 480px) {
  #landingPage h1 {
    font-size: 2rem;
  }
  #landingPage h2 {
    font-size: 1rem;
  }
}
