/* Google fonts & font family
==================================================*/

@import 'https://fonts.googleapis.com/css?family=Lato:100,100i,300,300i,400,400i,700,700i,900,900i|Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i|Playfair+Display:400,400i,700,700i,900,900i';

/*
font-family: 'Playfair Display', serif;
font-family: 'Lato', sans-serif;
font-family: 'Open Sans', sans-serif;
*/

/* typography
==================================================*/

h1 {
  font-family: 'Playfair Display', serif;
  font-size: 80px;
  line-height: 70px;
}

h4 {
  font-family: 'Lato', sans-serif;
  text-transform: capitalize;
  letter-spacing: 2px;
  position: relative;
  color: #425bb5;
  margin-left: 40px;
  font-weight: 700;
}

h4:before {
  position: absolute;
  width: 30px;
  left: -40px;
  content: '';
  display: block;
  height: 2px;
  background: #425bb5;
  top: 9px;
}

/* General
==================================================*/

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  line-height: 24px;
}

.size-50 {
  font-size: 50px;
  line-height: 50px;
}

.h-50 {
  height: 50px;
}

/* preloader
==================================================*/

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff;
  z-index: 10000;
}

#status,
.preloader {
  top: 50%;
  left: 50%;
  position: absolute;
}

#status {
  width: 100px;
  height: 100px;
  background-repeat: no-repeat;
  background-position: center;
  margin: -50px 0 0 -50px;
}

.preloader {
  height: 40px;
  width: 40px;
  margin-top: -20px;
  margin-left: -20px;
}

.preloader:before {
  content: '';
  display: block;
  position: absolute;
  left: -1px;
  top: -1px;
  height: 100%;
  width: 100%;
  -webkit-animation: rotation 1s linear infinite;
  animation: rotation 1s linear infinite;
  border: 2px solid #425bb5;
  border-top: 2px solid transparent;
  border-radius: 100%;
}

.preloader > .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 25px;
  width: 10.6px;
  margin-top: -12.5px;
  margin-left: -5.3px;
  -webkit-animation: wink 1s ease-in-out infinite alternate;
  animation: wink 1s ease-in-out infinite alternate;
}

@media only screen and (min-width: 768px) {
  .preloader {
    height: 60px;
    width: 60px;
    margin-top: -30px;
    margin-left: -30px;
  }
  .preloader:before {
    left: -2px;
    top: -2px;
    border-width: 2px;
  }
  .preloader > .icon {
    height: 37.5px;
    width: 15.9px;
    margin-top: -18.75px;
    margin-left: -7.95px;
  }
}

@media only screen and (min-width: 1200px) {
  .preloader {
    height: 60px;
    width: 60px;
    margin-top: -30px;
    margin-left: -30px;
  }
  .preloader > .icon {
    height: 50px;
    width: 21.2px;
    margin-top: -25px;
    margin-left: -10.6px;
  }
}

@-webkit-keyframes rotation {
  from {
    -webkit-transform: rotate(0);
    transform: rotate(0);
  }
  to {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}

@keyframes rotation {
  from {
    -webkit-transform: rotate(0);
    transform: rotate(0);
  }
  to {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}

@-webkit-keyframes wink {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes wink {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Header
==================================================*/

header {
  text-align: center;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
  height: 65px;
}

nav ul {
  display: inline-block;
  padding-left: 0;
  list-style: none;
  padding: 20px;
  margin-bottom: 0;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
}

nav li {
  display: inline-block;
  margin: 10px;
}

nav li a {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
}

.bg-nav {
  background: #b9b4ae;
  border-bottom: 1px solid #b9b4ae;
}

.bg-nav ul {
  padding: 10px;
}

a:focus {
  color: #444;
  text-decoration: none;
}

a:hover {
  color: #425bb5;
  text-decoration: none;
}

a.active {
  color: #425bb5;
}

/* home section
==================================================*/

#home {
  background: url(../img/about-image.webp);
  background-size: cover;
  height: 100vh;
}

.table-cell {
  display: table-cell;
  vertical-align: middle;
}

.disply-table {
  display: table;
  height: 100vh;
}

/* about section
==================================================*/

#about {
  padding: 100px 0;
}

.about-img-div img {
  margin: 0 auto;
}

.about-border {
  position: absolute;
  border: 10px solid #425bb5;
  width: 400px;
  height: 400px;
  top: 40px;
  left: 50px;
  z-index: 1;
}

/* experience section
==================================================*/

#experience {
  padding: 100px 0;
  background: #f3f3f3;
}

.experience-row {
  padding: 20px 0;
  border-bottom: 1px solid #ddd;
}

.experience-row h3 {
  font-family: 'Lato', sans-serif;
  text-transform: capitalize;
  letter-spacing: 2px;
  color: #425bb5;
  font-size: 16px;
  font-weight: bold;
}

.experience-row p {
  color: #888;
  margin-top: 20px;
  font-size: 15px;
}

.experience-row .date {
  color: #000;
  font-size: 17px;
}

.timeline {
  padding-left: 0;
  list-style: none;
  position: relative;
}

.timeline:before {
  background-color: black;
  content: '';
  margin-left: -1px;
  position: absolute;
  top: 0;
  left: 2em;
  width: 2px;
  height: 100%;
}

.timeline-event {
  position: relative;
}

.timeline-event:hover .timeline-event-icon {
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  background-color: #425bb5;
}

.timeline-event:hover .timeline-event-thumbnail {
  box-shadow: inset 40em 0 0 0 #425bb5;
}

.timeline-event-copy {
  padding: 2em;
  position: relative;
  top: -1.875em;
  left: 4em;
  width: 100%;
}

.timeline-event-copy h3 {
  font-size: 1.75em;
}

.timeline-event-copy h4 {
  font-size: 1.2em;
  margin-bottom: 1.2em;
}

.timeline-event-copy strong {
  font-weight: 700;
}

.timeline-event-copy p:not(.timeline-event-thumbnail) {
  padding-bottom: 1.2em;
}

.timeline-event-icon {
  -webkit-transition: -webkit-transform 0.2s ease-in;
  transition: -webkit-transform 0.2s ease-in;
  transition: transform 0.2s ease-in;
  transition: transform 0.2s ease-in, -webkit-transform 0.2s ease-in;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  background-color: #425bb5;
  outline: 10px solid #f3f3f3;
  display: block;
  margin: 0.5em 0.5em 0.5em -0.5em;
  position: absolute;
  top: 0;
  left: 2em;
  width: 1em;
  height: 1em;
}

.timeline-event-thumbnail {
  -moz-transition: box-shadow 0.5s ease-in 0.1s;
  -o-transition: box-shadow 0.5s ease-in 0.1s;
  -webkit-transition: box-shadow 0.5s ease-in;
  -webkit-transition-delay: 0.1s;
  -webkit-transition: box-shadow 0.5s ease-in 0.1s;
  transition: box-shadow 0.5s ease-in 0.1s;
  color: white;
  font-size: 12px;
  font-weight: bold;
  background-color: black;
  box-shadow: inset 0 0 0 0em #425bb5;
  display: inline-block;
  margin-bottom: 1.2em;
  padding: 0.25em 1em 0.2em 1em;
}

/* contact
==================================================*/

#contact {
  padding: 100px 0;
  background: #f3f3f3;
}

.social {
  padding-left: 0;
  list-style: none;
  margin-top: 20px;
}

.social li {
  float: left;
}

.social li a {
  color: #333;
  font-size: 35px;
  margin-right: 15px;
  transition: all 0.3s;
  -webkit-transition: all 0.3s;
}

.social li a:hover {
  color: #425bb5;
}

/* Languages section
==================================================*/
#languages {
  padding: 100px 0;
  background: #f3f3f3;
}

.language-bar {
  position: relative;
  height: 25px;
  border-radius: 25px;
  margin-bottom: 10px;
}

.language-level {
  height: 100%;
  border-radius: 25px;
}

.language-text {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: left;
  padding-left: 10px;
  font-weight: bold;
}

/* Skills section
==================================================*/
#skills {
  padding: 100px 0;
  background: #f3f3f3;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 2fr;
  justify-items: start;
  align-items: center;
}

.skills-grid-cell {
  padding: 20px;
}

.skill {
  position: relative;
  height: 25px;
  margin-bottom: 5px;
  width: 100%;
}

.skill-bar {
  position: relative;
  height: 25px;
  width: 100%;
  border: #888 1px solid;
  border-radius: 25px;
  display: inline-flex;
  flex-direction: row;
}

.skill-completed {
  height: 100%;
  width: 16%;
  min-width: 30px;
  margin-left: 10px;
  margin-right: 10px;
}

/* Projects section
==================================================*/
#projects {
  padding: 100px 0;
  background: #f3f3f3;
}

/* Expertise section
==================================================*/
#expertise {
  padding: 100px 0;
  background: #f3f3f3;
}

.expertise-list {
  list-style: none;
  padding-left: 40px;
}

.expertise-list li {
  position: relative;
  margin-bottom: 30px;
  font-size: 25px;
}

.expertise-list li::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -50px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: #fff;
  border-radius: 50%;
  color: #000;
  font-size: 30px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expertise-list li:nth-child(1)::before {
  content: '1';
}

.expertise-list li:nth-child(2)::before {
  content: '2';
}

.expertise-list li:nth-child(3)::before {
  content: '3';
}

.expertise-list li:nth-child(4)::before {
  content: '4';
}

.expertise-list li:nth-child(5)::before {
  content: '5';
}

.expertise-list li:nth-child(6)::before {
  content: '6';
}

.expertise-list li:nth-child(7)::before {
  content: '7';
}

.expertise-list li:nth-child(8)::before {
  content: '8';
}

.expertise-list li:nth-child(9)::before {
  content: '9';
}

.expertise-list li:nth-child(10)::before {
  content: '10';
}

/* Responsive media queries
==================================================*/

@media (max-width: 991px) {
  .categories-grid .categories ul li a {
    padding: 0 2px;
  }
}

@media (max-width: 768px) {
  .timeline-event-copy {
    width: 90%;
    left: 2em;
  }
}

@media (max-width: 500px) {
  h1 {
    font-family: 'Playfair Display', serif;
    font-size: 50px;
    line-height: 50px;
  }
  #home,
  .disply-table {
    height: 600px;
  }
  .about-border {
    width: 265px;
  }
  .categories-grid .categories ul li {
    list-style: none;
    margin: 10px 0;
  }

  .bg-nav {
    height: 140px;
  }

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

@media (max-width: 420px) {
  nav li {
    margin: 6px;
  }
  nav li a {
    font-size: 10px;
  }
}
