@import url("https://fonts.googleapis.com/css2?family=Bangers&display=swap");
@import url("http://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300ita‌​lic,400italic,500,500italic,700,700italic,900italic,900");
@import url("../fonts/fontawesome-free-5.15.3-web/css/all.css");
@import url("../fonts/icomoon-v1.0/style.css");

body {
  background-color: #000000;
  overflow-x: hidden;
}

.header {
  max-width: 100vw;
}

nav {
  padding: 20px;
  position: static;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent);
  transition: opacity 0.5s ease 0s;
}

.navbar-toggler-icon {
  color: #fff;
  font-size: 28px;
}

.nav-item {
  display: block;
  margin-right: 31px;
  margin-left: 31px;
  padding: 10px 0px;
}

.nav-link {
  -webkit-transition: color 150ms ease;
  transition: color 150ms ease;
  font-family: "Roboto", sans-serif;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  text-decoration: none;
}

.navbar-brand {
  color: #fff;
  transition: color 150ms ease;
}

.nav-link.active, .navbar-brand.active, .nav-link:hover, .navbar-brand:hover {
  color: #bf7154;
}

.section {
  width: 100vw;
  min-height: 100vh;
  height: auto;
  padding-bottom: 20px;
}

#section-1 {
  padding-top: 10%;
}

.text-block {
  align-self: center;
  margin-bottom: 1%;
  display: flex;
  flex-direction: column;
}

h2 {
  font-family: "Bangers", cursive;
  font-size: 20pt;
  line-height: 20px;
  color: #f2d399;
}

h1 {
  font-family: "Bangers", cursive;
  color: #f2d399;
  font-size: 50pt;
}

.paragraph {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 12pt;
  line-height: 30px;
  color: #fff;
}

.content {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  overflow: visible;
  align-items: center;
  justify-content: center;
}

#image1 {
  width: 90%;
}

#image2 {
  position: absolute;
  width: 90%;
  z-index: 1;
}

#works {
  padding-top: 8%;
}

.major-heading {
  font-family: "Bangers", cursive;
  color: #f2d399;
  font-size: 50pt;
  text-align: center;
  margin-bottom: 20px;
}

#contact-me {
  padding-top: 5vh;
  padding-bottom: 15vh;
}

#image3 {
  max-width: 90%;
  max-height: 65vh;
}

.socials {
  padding: 3vh 2vw
}
.social-icon {
  position: relative;
  margin: 10px;
}

.contact-caption {
  text-align: center;
}

/* WORKS SECTION */

.portfolio {
  display: grid;
  height: 100%;
  grid-auto-rows: minmax(20vh, 200px);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 1rem;
  grid-auto-flow: dense;
}

.portfolio-item {
  background-color: #bd6955;
  background-image: var(--src);
  background-size: cover;
  background-position: 50% 50%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.portfolio > li:nth-child(2n - 1) {
  grid-column: span 3;
  grid-row: span 3;
}

.portfolio > li:nth-child(2n) {
  grid-column: span 3;
  grid-row: span 2;
}

.portfolio-item .layer {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: 1s ease-in-out;
}

.portfolio-item .contents {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.portfolio-item .contents .title {
  color: white;
  font-family: "Roboto", sans-serif;
  font-size: 25pt;
}

.portfolio-item .contents .text {
  color: white;
  font-family: "Roboto", sans-serif;
  font-size: 12pt;
}

.portfolio > li:nth-child(2n - 1).portfolio-item .layer.layer1 {
  background-color: #bf7154;
  transform: translateX(-100%);
}

.portfolio > li:nth-child(2n - 1).portfolio-item:hover .layer.layer1 {
  transform: translateX(100%);
}

.portfolio > li:nth-child(2n - 1).portfolio-item .layer.layer2 {
  background-color: #bf3636;
  transform: translateX(-200%);
}

.portfolio > li:nth-child(2n - 1).portfolio-item:hover .layer.layer2 {
  transform: translateX(100%);
}

.portfolio > li:nth-child(2n - 1).portfolio-item .layer.contents {
  background-color: rgba(0, 0, 0, 0.8);
  transform: translateX(-300%);
}

.portfolio > li:nth-child(2n - 1).portfolio-item:hover .layer.contents {
  transform: translateX(0);
}

.portfolio > li:nth-child(2n).portfolio-item .layer.layer1 {
  background-color: #bf7154;
  transform: translateY(100%);
}

.portfolio > li:nth-child(2n).portfolio-item:hover .layer.layer1 {
  transform: translateY(-100%);
}

.portfolio > li:nth-child(2n).portfolio-item .layer.layer2 {
  background-color: #bf3636;
  transform: translateY(200%);
}

.portfolio > li:nth-child(2n).portfolio-item:hover .layer.layer2 {
  transform: translateY(-100%);
}

.portfolio > li:nth-child(2n).portfolio-item .layer.contents {
  background-color: rgba(0, 0, 0, 0.8);
  transform: translateY(300%);
}

.portfolio > li:nth-child(2n).portfolio-item:hover .layer.contents {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .portfolio > li:nth-child(2n - 1) {
    grid-column: span 3;
    grid-row: span 2;
  }
  .portfolio > li:nth-child(2n) {
    grid-column: span 3;
    grid-row: span 1;
  }
}

.hero-img {
  width: 100%;
  height: 75vh;
  background: var(--src);
  background-position-x: var(--bg-x);
  background-position-y: var(--bg-y);
  background-size: cover;
  position: relative;
}

.hero-img::after {
  content: "";
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.3));
  opacity: 0.8;
}

/* TIMELINE */
.timeline {
  position: relative;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 2px;
  left: 50%;
  background: #fff;
  margin-left: -3px;
  top: 0;
  bottom: 0;
}

.timeline-box {
  position: relative;
  width: 50%;
  padding: 40px 40px;
  background-color: inherit;
}

.timeline-box .marker {
  position: absolute;
  top: 73px;
  z-index: 1;
  background-color: black;
  padding: 5px 0;
}

.marker .icon-sakura_icon {
  color: #c0c0c0;
  font-size: 20pt;
  transition: 0.5s ease-out;
}

.marker.in-view .icon-sakura_icon {
  color: #bf3636;
}

.timeline-box.left {
  left: 0;
  text-align: right;
}

.timeline-box.left .text::before {
  content: "";
  height: 0;
  position: absolute;
  top: 13px;
  width: 0;
  z-index: 1;
  right: -10px;
  border: medium solid #fff;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent #fff;
}

.timeline-box.left .marker {
  right: -13px;
}

.timeline-box.right {
  left: 50%;
}

.timeline-box.right .text::before {
  content: "";
  height: 0;
  position: absolute;
  top: 13px;
  width: 0;
  z-index: 1;
  left: -10px;
  border: medium solid #fff;
  border-width: 10px 10px 10px 0;
  border-color: transparent #fff transparent transparent;
}

.timeline-box.right .marker {
  left: -13px;
}

.timeline-content .text {
  background-color: #fff;
  padding: 20px 30px;
  border-radius: 6px;
  position: relative;
}

.timeline-content > iframe {
  max-width: 100%;
}

@media screen and (max-width: 768px) {
  .timeline::after {
    left: 27px;
  }

  .timeline-box {
    width: 100%;
    padding: 20px 15px 20px 45px;
  }

  .timeline-box.left {
    left: 0;
    text-align: left;
  }

  .timeline-box.left .text::before {
    content: "";
    height: 0;
    position: absolute;
    top: 13px;
    width: 0;
    z-index: 1;
    left: -10px;
    border: medium solid #fff;
    border-width: 10px 10px 10px 0;
    border-color: transparent #fff transparent transparent;
  }

  .timeline-box.right {
    left: 0;
  }

  .timeline-box .marker {
    top: 50px;
  }

  .timeline-box.right .marker {
    left: 0;
  }

  .timeline-box.left .marker {
    left: 0;
    right: auto;
  }
}

.self-photo {
  padding-bottom: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 20px;
  width: 100%;
}

.self-photo img {
  position: absolute;
  object-fit: cover;
  width: 100%;
  top: -20%;
  left: 0;
}

.inline-link, .inline-link:hover {
  color: #BF7154;
}
