@import url("https://fonts.googleapis.com/css?family=Cardo:400i|Rubik:400,700&display=swap");
:root {
  --d: 700ms;
  --e: cubic-bezier(0.19, 1, 0.22, 1);
  --font-sans: "Rubik", sans-serif;
  --font-serif: "Cardo", serif;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  background-color: black;
}

body {
  display: grid;
  place-items: center;
  background-color: black;
}

header {
  background-color: transparent;
  padding-top: 0.5%;
  padding-bottom: 0%;
  width: 100%;
  height: 100%;
  font-family: var(--font-sans);
}

header a:hover {
  color: black;
  text-decoration: none;
}

header a:hover span {
  display: none;
}

header a.logo:hover::before {
  content: "{ return }";
}

.header-right {
  float: right;
  padding-top: 0.6%;
  padding-right: 1%;
}

.header-right a:hover {
  font-size: large;
  color: black;
  text-decoration: none;
}

.logo {
  font-size: xx-large;
  color: black;
  padding-top: 0%;
  padding-left: 1%;
}

.link {
  color: black;
  padding-left: 10px;
}

.section-1 {
  text-align: center;
  font-family: var(--font-sans);
}

.section-2 {
  padding-top: 1%;
  text-align: center;
  font-family: var(--font-sans);
  background-color: black;
  color: white;
  width: 100%;
  height: 100%;
}

.page-content-projects {
  display: grid;
  grid-gap: 1rem;
  padding: 1rem;
  max-width: 80%;
  margin: 0 auto;
  font-family: var(--font-sans);
}

@media (min-width: 600px) {
  .page-content-projects {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 800px) {
  .page-content-projects {
    grid-template-columns: repeat(4, 1fr); /* Changes number of items per row*/
  }
}
.card-projects {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 1rem;
  width: 100%;
  text-align: center;
  color: whitesmoke;
  background-color: whitesmoke;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 2px 2px rgba(0, 0, 0, 0.1), 0 4px 4px rgba(0, 0, 0, 0.1), 0 8px 8px rgba(0, 0, 0, 0.1), 0 16px 16px rgba(0, 0, 0, 0.1);
}

@media (min-width: 600px) {
  .card-projects {
    height: 350px;
  }
}
.card-projects:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 110%;
  background-size: cover;
  background-position: 0 0;
  transition: transform calc(var(--d) * 1.5) var(--e);
  pointer-events: none;
}

.card-projects:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  pointer-events: none;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.009) 11.7%, rgba(0, 0, 0, 0.034) 22.1%, rgba(0, 0, 0, 0.072) 31.2%, rgba(0, 0, 0, 0.123) 39.4%, rgba(0, 0, 0, 0.182) 46.6%, rgba(0, 0, 0, 0.249) 53.1%, rgba(0, 0, 0, 0.32) 58.9%, rgba(0, 0, 0, 0.394) 64.3%, rgba(0, 0, 0, 0.468) 69.3%, rgba(0, 0, 0, 0.54) 74.1%, rgba(0, 0, 0, 0.607) 78.8%, rgba(0, 0, 0, 0.668) 83.6%, rgba(0, 0, 0, 0.721) 88.7%, rgba(0, 0, 0, 0.762) 94.1%, rgba(0, 0, 0, 0.79) 100%);
  transform: translateY(-50%);
  transition: transform calc(var(--d) * 2) var(--e);
}

/* Project Pictures */
.card-projects:nth-child(1):before {
  background-image: url("../assets/split-turn-down-right-svgrepo-com.svg");
  background-repeat: no-repeat;
  background-size: 45%;
  background-position: center 40%;
}

.card-projects:nth-child(2):before {
  background-image: url("../assets/scissors-cutting-a-rectangular-shape-of-broken-line-svgrepo-com.svg");
  background-repeat: no-repeat;
  background-size: 45%;
  background-position: center 40%;
}

.card-projects:nth-child(3):before {
  background-image: url("../assets/cloud-download-svgrepo-com.svg");
  background-repeat: no-repeat;
  background-size: 45%;
  background-position: center 40%;
}

.card-projects:nth-child(4):before {
  background-image: url("../assets/modeling-svgrepo-com.svg");
  background-repeat: no-repeat;
  background-size: 45%;
  background-position: center 40%;
}

.card-projects:nth-child(5):before {
  background-image: url("../assets/browser-svgrepo-com.svg");
  background-repeat: no-repeat;
  background-size: 45%;
  background-position: center 40%;
}

.card-projects:nth-child(6):before {
  background-image: url("../assets/videocall-svgrepo-com.svg");
  background-repeat: no-repeat;
  background-size: 50%;
  background-position: center 40%;
}

.card-projects:nth-child(7):before {
  background-image: url("../assets/impossible-triangle-svgrepo-com.svg");
  background-repeat: no-repeat;
  background-size: 50%;
  background-position: center 40%;
}

.content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  top: 5%;
  width: 100%;
  padding: 1rem;
  transition: transform var(--d) var(--e);
  z-index: 1;
}

.content > * + * {
  margin-top: 1rem;
}

.title {
  margin-top: -5%;
  font-size: 1.3rem;
  font-weight: bold;
  line-height: 1;
}

@media (min-width: 1440px) {
  .title {
    margin-top: 2%;
  }
}
.timeframe {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 0.2;
  margin-bottom: 0.02rem;
}

.btn {
  cursor: pointer;
  margin-bottom: 2%;
  padding: 0.75rem 1.5rem;
  font-size: 0.65rem;
  font-weight: bold;
  letter-spacing: 0.025rem;
  text-transform: uppercase;
  color: white;
  background-color: black;
  border: none;
}

.btn:hover {
  background-color: #0d0d0d;
}

.btn:focus {
  outline: 1px dashed yellow;
  outline-offset: 3px;
}

@media (hover: hover) and (min-width: 600px) {
  .card-projects:after {
    transform: translateY(0);
  }
  .content {
    transform: translateY(calc(100% - 4.5rem));
  }
  .content > *:not(.title) {
    opacity: 0;
    transform: translateY(1rem);
    transition: transform var(--d) var(--e), opacity var(--d) var(--e);
  }
  .card-projects:hover,
  .card-projects:focus-within {
    align-items: center;
  }
  .card-projects:hover:before,
  .card-projects:focus-within:before {
    transform: translateY(-4%);
  }
  .card-projects:hover:after,
  .card-projects:focus-within:after {
    transform: translateY(-50%);
  }
  .card-projects:hover .content,
  .card-projects:focus-within .content {
    transform: translateY(0);
  }
  .card-projects:hover .content > *:not(.title),
  .card-projects:focus-within .content > *:not(.title) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--d) / 8);
  }
  .card-projects:focus-within:before, .card-projects:focus-within:after,
  .card-projects:focus-within .content,
  .card-projects:focus-within .content > *:not(.title) {
    transition-duration: 0s;
  }
}
/*
Timeline
*/
.cd-container {
  max-width: 90%;
  margin: 0 auto;
  background: #000;
  padding: 0 10%;
  border-radius: 1%;
}

.cd-container::after {
  content: "";
  display: table;
  clear: both;
}

#cd-timeline {
  position: relative;
  padding: 2em 0;
  margin-top: 2em;
  margin-bottom: 2em;
}

#cd-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 25px;
  height: 100%;
  width: 4px;
  background: #7bb7ff;
}

@media only screen and (min-width: 1170px) {
  #cd-timeline {
    margin-top: 3em;
    margin-bottom: 3em;
  }
  #cd-timeline::before {
    left: 50%;
    margin-left: -2px;
  }
}
.cd-timeline-block {
  position: relative;
  margin: 2em 0;
}

.cd-timeline-block:after {
  content: "";
  display: table;
  clear: both;
}

.cd-timeline-block:first-child {
  margin-top: 0;
}

.cd-timeline-block:last-child {
  margin-bottom: 0;
}

@media only screen and (min-width: 1170px) {
  .cd-timeline-block {
    margin: 4em 0;
  }
  .cd-timeline-block:first-child {
    margin-top: 0;
  }
  .cd-timeline-block:last-child {
    margin-bottom: 0;
  }
}
.cd-timeline-img {
  position: absolute;
  top: 8px;
  left: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #7bb7ff, inset 0 2px 0 rgba(0, 0, 0, 0.08), 0 3px 0 4px rgba(0, 0, 0, 0.05);
}

.cd-timeline-img {
  background: linear-gradient(-45deg, #ee7752, #ed699c, #7bb7ff, #23d5ab);
  background-size: 200% 100%;
}

.cd-timeline-block:hover .cd-timeline-img {
  animation: gradient 0.5s ease forwards;
}

.cd-timeline-block .cd-timeline-img {
  animation: gradient-end 0.5s ease forwards;
}

.cd-timeline-content {
  position: relative;
  margin-left: 60px;
  margin-right: 30px;
  border-radius: 10px;
  padding: 1em;
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 200% 200%;
  animation: gradient-end 2s ease forwards;
}

.cd-timeline-block:hover .cd-timeline-content {
  animation: gradient 2s ease forwards;
}
@keyframes gradient {
  0% {
    background-position: auto 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}
@keyframes gradient-end {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@media only screen and (min-width: 1170px) {
  .cd-timeline-img {
    width: 30px;
    height: 30px;
    left: 50%;
    margin-left: -15px;
    margin-top: 15px;
    /* Force Hardware Acceleration in WebKit */
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
  }
}
.cd-timeline-content .timeline-content-info {
  background: #2f8dff;
  padding: 5px 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.08);
  border-radius: 2px;
}

.cd-timeline-content .timeline-content-info i {
  margin-right: 5px;
}

.cd-timeline-content .timeline-content-info .timeline-content-info-title, .cd-timeline-content .timeline-content-info .timeline-content-info-date {
  width: calc(50% - 2px);
  display: inline-block;
}

@media (max-width: 500px) {
  .cd-timeline-content .timeline-content-info .timeline-content-info-title, .cd-timeline-content .timeline-content-info .timeline-content-info-date {
    display: block;
    width: 100%;
  }
}
.cd-timeline-content .content-skills {
  font-size: 12px;
  padding: 0;
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.cd-timeline-content .content-skills li {
  background: #2f8dff;
  border-radius: 2px;
  display: inline-block;
  padding: 2px 10px;
  color: rgba(255, 255, 255, 0.7);
  margin: 3px 2px;
  text-align: center;
  flex-grow: 1;
}

.cd-timeline-content:after {
  content: "";
  display: table;
  clear: both;
}

.cd-timeline-content h2 {
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0;
  margin-bottom: 5px;
}

.cd-timeline-content p, .cd-timeline-content .cd-date {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-size: 0.8125rem;
}

.cd-timeline-content .cd-date {
  display: inline-block;
}

.cd-timeline-content p {
  margin: 1em 0;
  line-height: 1.6;
}

.cd-timeline-content::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 100%;
  height: 0;
  width: 0;
  border: 7px solid transparent;
  border-right: 7px solid #ee7752;
}

@media only screen and (min-width: 768px) {
  .cd-timeline-content h2 {
    font-size: 20px;
    font-size: 1.25rem;
  }
  .cd-timeline-content p {
    font-size: 16px;
    font-size: 1rem;
  }
  .cd-timeline-content .cd-read-more, .cd-timeline-content .cd-date {
    font-size: 14px;
    font-size: 0.875rem;
  }
}
@media only screen and (min-width: 1170px) {
  .cd-timeline-content {
    color: white;
    margin-left: 0;
    padding: 1.6em;
    width: 36%;
    margin: 0 5%;
  }
  .cd-timeline-content::before {
    top: 24px;
    left: 100%;
    border-color: transparent;
    border-left-color: #e73c7e;
  }
  .cd-timeline-content .cd-date {
    position: absolute;
    width: 100%;
    left: 90%;
    top: 24px;
    font-size: 16px;
    font-size: 1rem;
    color: #fff;
  }
  .cd-timeline-block:nth-child(even) .cd-timeline-content {
    float: right;
  }
  .cd-timeline-block:nth-child(even) .cd-timeline-content::before {
    top: 24px;
    left: auto;
    right: 100%;
    border-color: transparent;
    border-right-color: #23a6d5;
  }
  .cd-timeline-block:nth-child(even) .cd-timeline-content .cd-read-more {
    float: right;
  }
  .cd-timeline-block:nth-child(even) .cd-timeline-content .cd-date {
    left: auto;
    right: 133%;
    text-align: right;
  }
}/*# sourceMappingURL=portfolio.css.map */