* {
  padding: 0;
  margin: 0;
  font-family: 'Courier';
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  background-image: linear-gradient(45deg, rgba(229, 249, 255, 1), rgb(248, 253, 255));

  cursor: url(img/CursorOnly.png), auto;
}

h1 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 2rem;
  color: #5455A5;
}

.parent {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  grid-template-rows: 0.15fr repeat(5, 1fr) 0.15fr;
  grid-column-gap: 0px;
  grid-row-gap: 0px;
}

.div1 {
  grid-area: 1 / 1 / 2 / 4;
}

.div2 {
  grid-area: 2 / 2 / 7 / 3;
}

.div3 {
  grid-area: 7 / 1 / 8 / 4;
}

.div4 {
  grid-area: 2 / 3 / 7 / 4;
}

header>.logo {
  /*done*/
  display: block;
  position: fixed;
  z-index: 999;
  width: 100px;
  height: 100px;
  padding: 20px;
  background-color: #FFC700;
  border-radius: 0 0 50% 50%;
}

.navigation {
  /*Side Navbar done*/
  display: flex;
  flex-direction: column;
  gap: 8%;
  position: fixed;
  z-index: 999;
  right: 0;
  bottom: 0;
  height: 400px;
  width: 170px;
  background-color: #FFC700;
  text-align: center;
  align-items: center;
  justify-content: end;
  border-radius: 999em 999em 0 0;
}

.navigation a {
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 120%;
  height: 10%;
  font-size: 24px;
  color: #EE7323;
  background-color: #ECECEC;
  border-radius: 999em 0 0 999em;
}

.navigation a:hover {
  background-color: #5455A5;
  /* width: 250px; */
  color: #FFC700;
  box-shadow: 0 0 4px rgba(91, 90, 90, 0.72);
  cursor: pointer;
}

.navigation a.active {
  background-color: #5455A5;
  /* width: 200px; */
  color: #FFC700;
  box-shadow: 0 0 4px rgba(91, 90, 90, 0.72);
  cursor: pointer;
}

.navigation.show-menu {
  display: block;
  bottom: 27px;
  height: 300px;
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.burger-menu {
  display: none;
}

.home {
  /* top: 30px; */
  display: flex;
  justify-content: center;
  align-items: start;
  height: 60vh;
  width: 80vw;
  margin-bottom: 15rem;
}

.home .intro {
  z-index: 0;
  width: 80%;
  align-items: center;
  position: absolute;
  background-color: #ECECEC;
  padding: 6rem 4rem;
  border-radius: 10px;
  text-align: center;
  line-height: 150%;
}

.intro p {
  display: flex;
  flex-direction: column;
  font-size: 1.5rem;
  align-items: right;
  padding-left: 3em;
  color: #2F2F2F;
  line-height: 150%;
}

.Nada {
  font-size: 1.5em;
  font-weight: 700;
  color: #EE7323;
  padding-bottom: 0.5rem;
  line-height: 150%;
}

.photo {
  position: absolute;
  z-index: 999;
  max-width: 80%;
  max-height: 80%;
  left: -100px;
  top: 30px;
}

.title {
  display: flex;
  justify-content: center;
  color: #EE7323;
  font-size: 2em;
  font-weight: 800;
  margin-bottom: 30px;
}

.pic img {
  width: 100px;
}

/* Porjects */
.projects {
  width: 80%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  flex-basis: 100%;
  flex: 1;
  justify-content: center;
  align-items: center;
  /* margin-bottom: 30rem; */
}

.flip-card {
  display: flex;
  margin: 30px;
  width: 100%;
  max-width: 400px;
  height: 430px;
  perspective: 1000px;
  background-color: transparent;
}

.flip-card-img {
  border-radius: 30px 30px 0 0;
  /* max-height: 300px; */
  overflow: hidden;
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  object-fit: cover;
}

.flip-card img {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 20rem;
  object-fit: cover;
}

.flip-card-text {
  padding: 10px;
}

.flip-card h2 {
  font-size: 1.8em;
  color: #FFC700;
  /* letter-spacing: 2px; */
  font-weight: 200;
  line-height: 150%;
}

.flip-card p {
  color: #EDF2F3;
  font-size: 1.3em;
  line-height: 1.5rem;
  line-height: 150%;
}

.flip-card-inner {
  border-radius: 30px;
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow:
    0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front a,
.flip-card-back a {
  text-decoration: none;
  font-size: 22px;
  color: black;
}


.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-card-front {
  color: #ECECEC;
  background-color: #EE7323;
  border-radius: 30px;
}

.flip-card-back {
  color: #ECECEC;
  border-radius: 30px;
  transform: rotateY(180deg);
  background-color: #eeeeee;
}

.flip-card-back i {
  padding: 15px;
}

/* Education */
main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.timeline {
  position: relative;
  max-width: 70vw;
}

.container {
  padding: 10px 50px;
  position: relative;
  width: 50%;
  border-radius: 6px;
  animation: movedown 4s linear forwards;
}

@keyframes movedown {
  0% {
    opacity: 1;
    transform: translateY(-30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}

.container:nth-child(2) {
  animation-delay: 1s;
}

.container:nth-child(3) {
  animation-delay: 3.5s;
}

.left-container {
  left: 0;
}

.right-container {
  left: 50%;
}

.text-box {
  padding: 20px 30px;
  background: #ECECEC;
  position: relative;
  border-radius: 6px;
  font-size: 15px;
}

.container img {
  position: absolute;
  width: 40px;
  border-radius: 50%;
  right: -20px;
  top: 32px;
  z-index: 1;
}

.right-container img {
  left: -20px;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 100%;
  background: #EE7323;
  top: 0;
  left: 50%;
  margin-left: -3px;
  z-index: -1;
  animation: moveLine 6s linear forwards;
}

@keyframes moveLine {
  0% {
    height: 0;
  }

  100% {
    height: 100%;
  }
}

.text-box h2 {
  font-weight: 600;
  color: #5455A5;
}

.text-box small {
  color: #EE7323;
  display: inline-block;
  margin-bottom: 15px;
}

.text-box ul li,
p {
  display: inline-block;
  margin-bottom: 1em;
  color: #2F2F2F;
  font-size: 1em;
  line-height: 1.2rem;
  font-weight: lighter;
  font-family: Helvetica;
  line-height: 150%;
}

.left-container-arrow {
  height: 0;
  width: 0;
  position: absolute;
  top: 28px;
  z-index: 1;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 15px solid #ECECEC;
  right: -15px;
}

.right-container-arrow {
  height: 0;
  width: 0;
  position: absolute;
  top: 28px;
  z-index: 1;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-right: 15px solid #ECECEC;
  left: -15px;
}

/* Skills */
.skills-inner {
  padding-top: 20px;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr;
  justify-content: center;
  align-items: center;
  text-align: center;
  grid-gap: 1rem;
  padding: 1rem 80px;
  font-size: 1.2rem;
}

.skill-box {
  padding: 1rem;
  background-color: #5455A5;
  border-radius: 1rem;
  height: 100%;
  /* cursor: pointer; */
}

.skill-box-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.skill-box:hover>.skill-box-title::after,
.skill-box:hover>.skill-box-title::before {
  width: 35px;
  background-color: #EE7323;
}

.skill-box:hover .skill-box-img {
  transform: translateY(-10px);
}

.skill-box-title::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 20px;
  height: 4px;
  border-radius: 0 2px 2px 0;
  background-color: #eeeeee;
  transition: 0.5s;
}

.skill-box-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 50%;
  width: 20px;
  height: 4px;
  border-radius: 2px 0 0 2px;
  background-color: #eeeeee;
  transition: 0.5s;

}

.skill-box-title h3 {
  color: #FFC700;
  font-weight: lighter;
  margin-top: 0.5rem;
}

.skill-box p {
  padding-top: 1rem;
  color: #EDF2F3;
  text-align: justify;
  font-size: 1rem;
  font-family: Helvetica;
  line-height: 150%;
}

.skill-box-img {
  width: 90px;
  height: 90px;
  position: relative;
  border-radius: 45px;
  background-color: #5455A5;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
}

.skill-box-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 90px;
  background: #FFC700;
  border-radius: 45px 0 0 45px;
}

.skill-box-icon {
  width: 70px;
  z-index: 2;
}

.footer {
  display: flex;
  align-items: center;
  padding-left: 0.5rem;
  position: fixed;
  bottom: 0;
  height: 5vh;
  width: 100vw;
  background-color: #FFC700;
  z-index: 998;
}

.div3>p {
  font-size: 90%;
  color: #ECECEC;
  position: absolute;
  margin: auto;
}

/* Contact */
.contact-container {
  position: relative;
  width: 100%;
  min-height: 80vh;
  /* padding: 2rem; */
  /* background-color: #ffc80087; */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form {
  width: 100%;
  max-width: 820px;
  background-color: #EE7323;
  border-radius: 10px;
  /* box-shadow: 0 0 20px 1px #EE7323; */
  z-index: 20;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.contact-form {
  background-color: #5455A5;
  position: relative;
}

form {
  padding: 2.3rem 2.2rem;
  z-index: 2;
  overflow: hidden;
  position: relative;
}

.contact-title {
  color: #FFC700;
  border-bottom: 1px solid #FFC700;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.7rem;
}

.input-container {
  position: relative;
  margin: 1rem 0;
}

.input {
  width: 100%;
  outline: none;
  border: 2px solid #FFC700;
  background: none;
  padding: 0.7rem;
  color: #eeeeee;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border-radius: 25px;
  transition: 0.3s;
}

textarea.input {
  padding: 0.8rem 1.2rem;
  min-height: 150px;
  border-radius: 22px;
  resize: none;
  overflow-y: auto;
}

.input-container label {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translatey(-50%);
  padding: 0 0.4rem;
  color: #eeeeee;
  font-size: 0.9rem;
  font-weight: 400;
  pointer-events: none;
  z-index: 999;
  transition: 0.5s;
}

.input-container.textarea label {
  top: 1rem;
  transform: translateY(0);
}

.btn {
  width: 100%;
  padding: 0.6rem 1.3rem;
  background-color: #FFC700;
  border: 2px solid #FFC700;
  font-size: 0.95rem;
  color: #5455A5;
  font-weight: bold;
  line-height: 1;
  border-radius: 25px;
  outline: none;
  cursor: pointer;
  transition: 0.3s;
  margin: 0;
}

.btn:hover {
  background-color: transparent;
  color: #FFC700;
}

.input-container span {
  position: absolute;
  top: 0;
  left: 15px;
  transform: translateY(-50%);
  font-size: 0.8rem;
  padding: 0 0.4rem;
  color: transparent;
  pointer-events: none;
  z-index: 4;
}

.input-container span::before,
.input-container span::after {
  content: '';
  position: absolute;
  width: 20%;
  opacity: 0;
  transition: 0.3s;
  height: 1.5rem;
  background-color: #5455A5;
  top: 50%;
  transform: translateY(-50%);
}

.input-container span::before {
  left: 50%;
  border-radius: 0.5rem 0;
}

.input-container span::after {
  right: 50%;
  border-radius: 0 0.5rem;
}

.input-container.focus label {
  top: 0;
  transform: translateY(-50%);
  font-size: 0.8rem;
}

.input-container.focus span::before,
.input-container.focus span::after {
  width: 50%;
  opacity: 1;
}

.contact-info {
  padding: 2.3rem 2.2rem;
  position: relative;
}

.contact-info .contactInfo-title {
  color: #eeeeee;
  border-bottom: 1px solid #2F2F2F;
}

.text {
  color: #ECECEC;
  margin: 1.5rem 0 2rem 0;
}

.information {
  display: flex;
  color: #ECECEC;
  margin: 0.7rem 0;
  align-items: center;
  font-size: 0.95rem;
  position: relative;
  text-align: center;
}

.information p {
  color: #EDF2F3;
  position: absolute;
  margin: auto 0;
  left: 40px;
}

.info-icon {
  width: 28px;
  margin-right: 0.7rem;
}

.social-media {
  display: flex;
  justify-content: left;
  flex-direction: row;
  flex-wrap: wrap;
  column-gap: 1rem;
}

.social-media p {
  padding-top: 2rem;
  width: 100%;
  color: #ECECEC;
  border-bottom: 1px solid #5455A5;
}

.social-icon {
  display: flex;
  margin-top: 0.5rem;
}

.social-icon a {
  width: 35px;
  height: 35px;
  border-radius: 5px;
  margin-right: 0.5rem;
  transition: 0.3s;
}

.social-icon a:hover {
  transform: scale(1.5);
}

/* mediaQuery */

@media screen and (max-width: 480px) {
  h1 {
    font-size: 1.7rem;
  }

  .home {
    top: 50px;
    height: 70vh;
    width: 100vw;
    margin-bottom: 10em;
  }

  .home .intro {
    width: 90%;
  }

  .intro p {
    font-size: 1rem;
    line-height: 2em;
    padding: 0;
  }

  .photo {
    max-width: 50%;
    max-height: 80%;
    left: 90px;
    top: -50px;
  }

  .flip-card {
    height: 400px;
  }

  .flip-card-img {
    height: 250px;
  }

  .flip-card h2 {
    margin-top: 0.8em;
    font-size: 1.3em;
    font-weight: 600;
  }

  .flip-card p {
    font-size: 1em;
    line-height: 150%;
  }

  .Nada {
    font-size: 1.4em;

    .timeline {
      margin: 50px auto;
    }

    .timeline::after {
      left: 31px;
    }

    .container {
      width: 90%;
      padding-left: 80px;
      padding-right: 25px;
    }

    h2 {
      font-size: 0.9em;
    }

    .text-box {
      font-size: 0.5em;
    }

    .text-box small {
      margin-bottom: 10px;
    }

    .text-box ul li,
    p {
      font-size: 1em;
      line-height: 0.6rem;

    }

    .right-container {
      left: 0;
    }

    .left-container img,
    .right-container img {
      left: 10px;
    }

    .left-container-arrow,
    .right-container-arrow {
      border-right: 15px solid #ECECEC;
      border-left: 0;
      left: -15px;
    }
  }

  .skills-container {
    grid-template-columns: repeat(2, 1fr);
    padding: 2rem, 50px;
  }

  .skill-box p {
    font-size: 0.6rem;
    line-height: 0.6rem;
  }

  /* contact */
  .container {
    padding: 1.5rem;
  }

  form,
  .contact-info {
    padding: 1.7rem 1.6rem;
  }

  .text,
  .information,
  .social-media p {
    font-size: 0.8rem;
  }

  .title {
    font-size: 1.15rem;
  }

  .social-icons a {
    width: 30px;
    height: 30px;
    line-height: 30px;
  }

  .icon {
    width: 23px;
  }

  .input {
    padding: 0.45rem 1.2rem;
  }

  .btn {
    padding: 0.45rem 1.2rem;
  }

  .burger-menu {
    display: block;
    cursor: pointer;
    position: fixed;
    top: 0rem;
    right: 0rem;
    background-color: #FFC700;
    font-size: 2rem;
    color: #ECECEC;
    width: 3rem;
    border-radius: 1rem 0rem 0rem 1rem;
    padding: 0.5rem;
  }

  .navigation {
    /*Side Navbar done*/
    display: none;
    border-radius: 0.5rem;
    position: fixed;
    z-index: 999;
    right: 0;
    top: 0rem;
    height: 30rem;
    width: 20rem;
    background-color: #FFC700;
    padding: 2rem;
  }

  .navigation a {
    width: 100%;
    height: 10%;
    background-color: transparent;
    background-color: transparent;
    color: #ECECEC;
    font-weight: 700;
    font-size: 2rem;
  }

  .navigation a:hover {
    width: 100%;
  }

  .navigation a.active {
    background: transparent;
    color: #5455A5;
    /* width: 200px; */
    box-shadow: 0 0 0px rgba(91, 90, 90, 0.72);
    cursor: pointer;
  }

}

@media screen and (max-width: 800px) {
  .home {
    top: 50px;
    height: 70vh;
    width: 100vw;
    margin-bottom: 10em;
  }

  .home .intro {
    width: 90%;
  }

  .intro p {
    font-size: 1rem;
    line-height: 1.2rem;
    padding: 0;
  }

  .photo {
    max-width: 50%;
    max-height: 80%;
    left: 90px;
    top: -100px;
  }

  .navigation {
    /*Side Navbar done*/
    bottom: 3px;
    height: 200px;
    width: 100px;
  }

  .navigation a {
    width: 110%;
    height: 10%;
    font-size: 16px;
  }

  .timeline {
    margin: 50px auto;
  }

  .timeline::after {
    left: 31px;
  }

  .container {
    width: 100%;
    padding-left: 5rem;
    padding-right: 1.5rem;
    /* background-color: #5455A5; */
  }

  h2 {
    font-size: 0.9em;
  }

  .text-box {
    font-size: 0.5em;
    /* background-color: #a51111; */
    padding: 0.5rem;
    width: 15rem;
  }

  .text-box small {
    margin-bottom: 10px;
  }

  .text-box ul li,
  p {
    font-size: 1.2em;
    line-height: 140%;
    /* background-color: #EE7323; */

  }

  .right-container {
    left: 0;
  }

  .left-container img,
  .right-container img {
    left: 10px;
  }

  .left-container-arrow,
  .right-container-arrow {
    border-right: 15px solid #ECECEC;
    border-left: 0;
    left: -15px;
  }

  .skills-container {
    grid-template-columns: 1fr;
  }

  .skill-box p {
    font-size: 0.6rem;
    line-height: 0.6rem;
    font-weight: lighter;
  }

  /* Contact */
  .form {
    grid-template-columns: 1fr;
  }

  .text {
    margin: 1rem 0 1.5rem 0;
    color: #FFC700;
    line-height: 1rem;
  }

  .social-media {
    padding: 1.5rem 0 0 0;
  }
}

@media screen and (max-width: 3000px) and (min-width:2000px) {
  .intro p {
    font-size: 1rem;
    line-height: 1.5rem;
    padding: 0;
  }

  .flip-card {
    width: 100%;
    max-width: 600px;
    height: 600px;
  }

  .flip-card-img {
    max-height: 500px;
  }

  .flip-card h2 {
    font-size: 2.4em;
  }

  .flip-card p {
    color: #EDF2F3;
    font-size: 1.5em;
  }


}


p {
  cursor: auto;
}