:root {
  --dark-color: #333;
}

html {
  overflow-x: hidden !important;
}

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

body {
  height: 100%;
  background: #f4f4f4;
  color: var(--dark-color);
  line-height: 1.6;
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  position: relative;
  overflow-x: hidden !important;
}

h1,
h2,
h3 {
  font-weight: 100 !important;
  line-height: 1.3;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
  padding-left: 1rem !important;
}

/* Loader */

.loader {
  background-color: black;
  display: block;
  opacity: 1;
  transition: all 1.5s 1s ease-in;
}

.center {
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.ring {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  animation: ring 2s linear 1s infinite;
}

@keyframes ring {
  0% {
    transform: rotate(0deg);
    box-shadow: 1px 5px 2px #005b8f;
  }

  50% {
    transform: rotate(180deg);
    box-shadow: 1px 5px 2px #005b8f;
  }

  100% {
    transform: rotate(360deg);
    box-shadow: 1px 5px 2px #005b8f;
  }
}

.ring::before {
  position: absolute;
  content: '';
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.ring-text {
  color: #fff;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 200px;
  animation: text 4s ease-in-out 1s infinite;
}

@keyframes text {
  50% {
    color: black;
  }
}

.main {
  opacity: 0;
  display: none;
  transition: opacity 1.5s ease-in;
}

#main-nav {
  position: absolute;
  top: 0;
  padding: 1rem 0;
}

#home {
  height: 100vh;
  background: linear-gradient(
      to bottom right,
      rgba(0, 0, 0, 0.9),
      rgba(0, 0, 0, 0.7),
      rgba(0, 0, 0, 0.5)
    ),
    url('../img/showcase.jpg') center right/cover no-repeat;
  color: #fff;
}

#home .col-sm-12,
#home .col-sm-0 {
  height: 100vh;
}

#languages .fab {
  color: #333;
}

#features,
#websites,
#about-info,
#contact-info {
  border-bottom: solid 1px #333;
}

#about img {
  border-radius: 50%;
  width: 70%;
}

#contact #github {
  color: rgb(13, 110, 253) !important;
}

/* Timeline */

/* Line */
#timeline ul li {
  position: relative;
  width: 6px;
  margin: 0;
  background: #fff;
  padding-top: 2rem;
}

/* Boxes */
#timeline ul li div {
  position: relative;
  bottom: 0;
  width: calc(50vw - 100px);
  padding: 1rem;
  left: 40px;
}

#timeline ul li div p {
  margin-bottom: 0;
  margin-top: 1rem;
}

/* Dots */
#timeline ul li::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 35%;
  width: 20px;
  height: 20px;
  background: rgb(13, 110, 253);
  transform: translateX(-50%);
  border-radius: 50%;
}

/* Arrows */
#timeline ul li div::before {
  content: '';
  position: absolute;
  top: 15px;
  width: 0;
  height: 0;
  border-style: solid;
  left: -15px;
  border-width: 8px 8px 8px 0;
  border-color: transparent rgb(13, 110, 253) transparent transparent;
}

/* Images */
.items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.item {
  position: relative;
  background: rgb(13, 110, 253);
  overflow: hidden;
}
.item-image {
  -webkit-transition: -webkit-transform 1.5s cubic-bezier(0.2, 1, 0.3, 1);
  transition: -webkit-transform 1.5s cubic-bezier(0.2, 1, 0.3, 1);
  transition: transform 1.5s cubic-bezier(0.2, 1, 0.3, 1);
  transition: transform 1.5s cubic-bezier(0.2, 1, 0.3, 1),
    -webkit-transform 1.5s cubic-bezier(0.2, 1, 0.3, 1);
  display: block;
  height: auto;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.item-image::before {
  content: '';
  display: block;
  padding-top: 75%;
  overflow: hidden;
}
.item-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  line-height: 0;
}
.item-text {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  opacity: 0;
  text-align: center;
  z-index: 1;
  color: #fff;
  -webkit-transform: translateY(-20%);
  transform: translateY(-20%);
  -webkit-transition: opacity 1.5s cubic-bezier(0.2, 1, 0.3, 1) 500ms,
    -webkit-transform 1.5s cubic-bezier(0.2, 1, 0.3, 1) 500ms;
  transition: opacity 1.5s cubic-bezier(0.2, 1, 0.3, 1) 500ms,
    -webkit-transform 1.5s cubic-bezier(0.2, 1, 0.3, 1) 500ms;
  transition: opacity 1.5s cubic-bezier(0.2, 1, 0.3, 1) 500ms,
    transform 1.5s cubic-bezier(0.2, 1, 0.3, 1) 500ms;
  transition: opacity 1.5s cubic-bezier(0.2, 1, 0.3, 1) 500ms,
    transform 1.5s cubic-bezier(0.2, 1, 0.3, 1) 500ms,
    -webkit-transform 1.5s cubic-bezier(0.2, 1, 0.3, 1) 500ms;
}
.item-text-wrap {
  position: absolute;
  width: 100%;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}
.item-text-title {
  padding: 0 1rem;
  margin-top: 5px;
}
.item-text-category {
  text-transform: uppercase;
}

.item-text-preview {
  color: #fff !important;
  font-size: 0.9rem;
}
.item::after {
  display: block;
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  opacity: 0.9;
  background: inherit;
  -webkit-transform: scale(2) translateX(-75%) translateY(-75%) rotate(-28deg);
  transform: scale(2) translateX(-75%) translateY(-75%) rotate(-28deg);
  -webkit-transition: -webkit-transform 3s cubic-bezier(0.2, 1, 0.3, 1);
  transition: -webkit-transform 3s cubic-bezier(0.2, 1, 0.3, 1);
  transition: transform 3s cubic-bezier(0.2, 1, 0.3, 1);
  transition: transform 3s cubic-bezier(0.2, 1, 0.3, 1),
    -webkit-transform 3s cubic-bezier(0.2, 1, 0.3, 1);
}
.item:hover::after {
  -webkit-transform: scale(2) translateX(0) translateY(0) rotate(-28deg);
  transform: scale(2) translateX(0) translateY(0) rotate(-28deg);
}
.item:hover .item-image {
  -webkit-transform: scale(1.5);
  transform: scale(1.5);
}
.item:hover .item-text {
  opacity: 1;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

/* Timeline Responsive */
@media (max-width: 767px) {
  #timeline ul li div {
    width: 65vw;
  }

  .items {
    grid-template-columns: repeat(2, 1fr);
  }

  #main-nav {
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem 0;
  }
}

@media (max-width: 567px) {
  .items {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 550px) {
  #home {
    height: 550px;
  }

  #home .col-sm-12,
  #home .col-sm-0 {
    height: 550px;
  }
}
