/** Fonts */
@font-face {
  font-family: 'fonts/proxima_nova_soft_bold';
  src: url('fonts/proxima-nova-soft-semibold-webfont.ttf');
  src: url('fonts/proxima-nova-soft-semibold-webfont.eot?#iefix') format('eot'),
    url('fonts/proxima-nova-soft-semibold-webfont.eot?#iefix')
      format('embedded-opentype'),
    url('fonts/proxima-nova-soft-semibold-webfont.woff') format('woff'),
    url('fonts/proxima-nova-soft-semibold-webfont.ttf') format('truetype'),
    url('fonts/proxima-nova-soft-semibold.otf');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'fonts/proxima_nova_soft';
  src: url('fonts/proxima-nova-soft-regular-webfont.ttf');
  src: url('fonts/proxima-nova-soft-regular-webfont.eot?#iefix') format('eot'),
    url('fonts/proxima-nova-soft-regular-webfont.eot?#iefix')
      format('embedded-opentype'),
    url('fonts/proxima-nova-soft-regular-webfont.woff') format('woff'),
    url('fonts/proxima-nova-soft-regular-webfont.ttf') format('truetype'),
    url('fonts/proxima-nova-soft-regular.otf');
  font-weight: normal;
  font-style: normal;
}

* {
  box-sizing: border-box;
  text-decoration: none;
  outline: none;
}
a {
  color: inherit;
}

body {
  font-family: 'proxima_nova_soft', Open Sans, sans-serif;
  transition: background 1s ease;
  background: #fff;
  margin: 0px;
  font-size: 13px;
}

.material-icons {
  font-size: 18px;
  vertical-align: sub;
}

.top-menu li.active {
  color: #282b40;
  border-color: #282b40;
}

.top-menu li {
  display: inline-block;
  padding: 10px;
  text-transform: uppercase;
  /* border-radius: 4px; */
  /* border: 1px solid rgba(255, 255, 255, 0.16); */
  margin: 10px;
  font-weight: bold;
  text-align: center;
  color: rgb(101, 101, 101);
  border-bottom: 3px solid;
  border-color: transparent;
  padding-bottom: 20px;
  transition: border-color 0.2s ease-in-out;
}

ul.top-menu {
  background-color: rgba(255, 255, 255, 0.95);
  margin: 0px;
  padding: 0px;
  margin-top: 0px;
  list-style: none;
  color: white;
  text-align: center;
  display: block;
  width: 100%;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  height: 61px;
  perspective: 2000px;
  box-shadow: 0px 3px 40px rgba(40, 43, 64, 0.1);
}
ul.top-menu.fixed {
  position: fixed;
  z-index: 200;
}

.head {
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  margin: 0px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.head h1 {
  color: #282b40;
  text-transform: uppercase;
  font-size: 100px;
  margin: 0px;
}

.head-background {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  transform: skewY(-10deg);
  transform-origin: 0;
  background: url(http://gharbi.me/images/surfacedial.gif);
  position: absolute;
  background-size: cover;
  opacity: 0.1;
  top: -20vh;
}

.head-container {
  text-align: center;
  /* background: rgba(0,0,0,0.5); */
  width: 100%;
  position: relative;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  margin-top: 200px;
  margin-bottom: 100px;
}

.head-content {
  flex-grow: 1;
}

.head .tagline {
  display: block;
  color: #6b6b6b;
  font-size: 16px;
}

.head .button {
  background: #34495e;
  display: inline-block;
  color: white;
  border-radius: 32px;
  padding: 15px;
  font-size: 12px;
  margin-top: 20px;
  margin-right: 20px;
  text-transform: uppercase;
  width: 200px;
  height: 50px;
  box-shadow: 0px 4px 20px rgba(40, 43, 64, 0.1);
  transition: all 0.3s;
}

.head .button:hover {
  background: #34495e;
  color: white;
  box-shadow: 0px 3px 20px rgba(40, 43, 64, 0.3);
}

.head .button.special {
  border: 2px solid #3498db;
  color: white;
  background: #3498db;
}
.head .button.special:hover {
  box-shadow: 0px 3px 20px rgba(52, 152, 219, 0.4);
}
.head .button.youtube {
  border: 2px solid #cd201f;
  color: white;
  background: #cd201f;
}
.head .button.youtube:hover {
  box-shadow: 0px 3px 20px rgba(219, 32, 31, 0.4);
}

.website {
  width: 240px;
  margin: 20px;
  display: inline-block;
  position: relative;
  cursor: pointer;
}

.website .image {
  width: 240px;
  height: 144px;
  background-size: cover;
  border-top-right-radius: 4px;
  border-top-left-radius: 4px;
}

.website .info {
  background: white;
  padding: 20px;
  text-align: center;
  height: 100px;
  color: #4aaaa5;
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 4px;
}

.website .info .title {
  font-size: 14px;
  color: #4aaaa5;
}

.website .info .description {
  font-size: 11px;
  color: #ccc;
  display: block;
}

.website .buttons .button {
  background: #07ab9a;
  color: white;
  height: 30px;
  width: 30px;
  padding: 5px;
  border-radius: 4px;
  margin-right: 10px;
  display: inline-block;
}

.website .buttons {
  margin: auto;
  margin-top: -15px;
  text-align: center;
}
.website .buttons .button.red {
  background: #f2673f;
}
.website .buttons .button.blue {
  background: #3498db;
}
.website .labels {
  position: absolute;
  top: 10px;
  right: 10px;
}
.website .labels .label {
  float: right;
  opacity: 0.9;
}

#featured {
  margin-top: 0px;
}

.featured-projects {
  width: 100%;
  display: inline-block;
  overflow-y: hidden;
  overflow-x: scroll;
  white-space: nowrap;
  display: flex;
}

.featured-projects::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

.featured-projects-scrollable {
  display: flex;
  justify-content: center;
  padding-top: 50px;
}

.featured-project {
  width: 400px;
  height: 240px;
  min-width: 400px;
  display: inline-block;
  position: relative;
  white-space: normal;
  margin-right: 25px;
  margin-left: 25px;
  vertical-align: top;
  transition: all 1s;
}

.featured-project.active {
  width: 500px;
  height: 350px;
  min-width: 500px;
  opacity: 1;
  margin-top: -50px;
}

.featured-project:hover {
  opacity: 1;
}

.featured-project .image {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 0;
  border-radius: 4px;
  box-shadow: 0px 4px 20px rgba(40, 43, 64, 0.1);
}

.featured-project .labels {
  position: absolute;
  top: 20px;
  left: 20px;
}

.content-wrapper.white {
  background: #fbfbfb;
}
.content-wrapper.beige {
  background: #ecebe9;
}
.content-wrapper.rocket {
  background: url(../images/rocket.png) #14284c;
  background-size: cover;
}
.content-wrapper h3 {
  color: #565353;
  font-weight: 200;
  text-align: center;
}
.content-wrapper p {
  text-align: center;
}
.content-wrapper.gray {
  background: rgb(27, 27, 27);
}
.content-wrapper.gray h3,
.content-wrapper.rocket h3 {
  color: #ecf0f1;
}
.content-wrapper.gray p {
  color: #cbcbcb;
}
.content {
  max-width: 1235px;
  margin: auto;
  padding: 50px;
}
.content h3,
#featured h3 {
  font-size: 24px;
  font-weight: normal;
}
.courses {
  color: white;
  list-style: none;
  max-width: 600px;
  float: left;
}
.courses li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 20px;
}
.courses li i {
  vertical-align: middle;
}

.courses li:hover {
  background: rgba(255, 255, 255, 0.12);
}

.label {
  background: gray;
  border-radius: 5px;
  padding: 5px;
  color: white;
  font-size: 12px;
  text-transform: uppercase;
  margin-left: 10px;
}

.label.udacity,
.label.iphone-app,
.label.ux,
.label.leap-motion {
  background: #f39c12;
}
.label.math,
.label.concept,
.label.esp8266,
.label.computer-vision,
.label.react-native {
  background: #c0392b;
}
.label.cs,
.label.react,
.label.nodejs,
.label.qt {
  background: #27ae60;
  white-space: nowrap;
}

.label.phi,
.label.research,
.label.java-app,
.label.hci,
.label.processing {
  background: #8e44ad;
}

.label.eco,
.label.web-app,
.label.react,
.label.ios {
  background: #3498db;
}
.label.design,
.label.python,
.label.prototype {
  background: #d35400;
}

.footer {
  text-align: center;
  color: lightgray;
  display: block;
}

.book_wrapper {
  background: url(../images/bg.png);
  width: 887px;
  height: 735px;
  margin: auto;
  position: relative;
  padding: 40px;
  padding-top: 23px;
}

.book_wrapper #mybook {
  display: block;
  margin: 40px;
  margin-bottom: 0px;
  margin-top: 30px;
  position: relative;
}
#mybook .page {
  display: inline-block;
  padding: 5px;
  position: relative;
  margin-top: 20px;
}
#mybook .page img {
  height: 600px;
  z-index: 1;
  width: 387px;
}
#mybook .page:after {
  content: '';
  display: block;
  width: 396px;
  height: 612px;
  box-shadow: inset 10px 24px 40px 0px #f4f4e8,
    inset -10px -24px 40px 0px #dcdcdc, inset 20px -10px 40px 0px #f2f2e7,
    inset -20px 10px 40px 0px #e4e4e4;
  background: rgba(244, 244, 232, 0.31);
  position: absolute;
  top: 0;
  left: 0;
}
.page.l {
  float: left;
}

.page.r {
  float: right;
}

.skill,
.activity {
  background: white;
  display: inline-flex;
  justify-content: center;
  align-content: center;
  flex-direction: column;
  padding: 20px;
  font-size: 13px;
  margin-right: 10px;
  border-radius: 4px;
  width: 175px;
  height: 200px;
  text-align: center;
  color: #a8a8a8;
  margin-top: 50px;
  position: relative;
  vertical-align: middle;
}

.skill h4,
.activity h4 {
  color: #666666;
  font-size: 15px;
  margin: 0px;
  margin-bottom: 5px;
}

.skill i.material-icons,
.activity i.material-icons {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  position: absolute;
  margin-left: -50px;
  left: 50%;
  top: -85px;
  font-size: 46px;
  background: #2e8c56;
  color: white;
  padding: 20px;
  border: 8px solid #14284c;
}

.activity i.material-icons {
  border-color: #ecebe9;
}
.skill i.material-icons.grey,
.activity i.material-icons.grey {
  background: #7f8c8d;
}

.skill i.material-icons.carrot,
.activity i.material-icons.carrot {
  background: #e67e22;
}

.skill i.material-icons.blue,
.activity i.material-icons.blue {
  background: #2980b9;
}

.skill i.material-icons.sky,
.activity i.material-icons.sky {
  background: #3498db;
}

.skill i.material-icons.red,
.activity i.material-icons.red {
  background: #c0392b;
}

.skill i.material-icons.orange,
.activity i.material-icons.orange {
  background: #d35400;
}

.clear {
  float: none;
  clear: both;
}

.content-wrapper .see-more {
  width: 210px;
  text-align: center;
  margin: auto;
  background: white;
  padding: 10px;
  border-radius: 30px;
  cursor: pointer;
  color: rgb(27, 27, 27);
  box-shadow: 0px 3px 14px rgba(27, 27, 27, 0.08);
  font-size: 16px;
  animation: pop 2s infinite;
}

@keyframes pop {
  50% {
    transform: scale(1.1);
  }
}

.contact-info {
  display: inline-block;
  color: rgb(125, 125, 125);
  vertical-align: top;
  border-left: 1px solid rgb(60, 60, 60);
  margin-left: 20px;
  margin-top: 200px;
  padding-left: 20px;
  padding-top: 50px;
  padding-bottom: 50px;
  text-align: left;
}
.medium-holder {
  text-align: center;
  font-size: 16px;
}

.medium-holder b {
  color: white;
}

.medium-holder div,
.medium-holder iframe {
  display: inline-block !important;
}

.book_wrapper i {
  position: absolute;
  font-size: 80px;
  color: white;
  text-shadow: 0px 0px 18px black;
  top: 23px;
  cursor: pointer;
}

.book_wrapper .left {
  padding-top: 300px;
  left: -60px;
  width: 200px;
  height: 656px;
}

.book_wrapper .right {
  padding-top: 300px;
  right: -60px;
  width: 200px;
  height: 656px;
  text-align: right;
}

/* ================ The Timeline ================ */

.timeline {
  position: relative;
  width: 860px;
  margin: 0 auto;
  margin-top: 20px;
  padding: 1em 0;
  list-style-type: none;
}

.timeline:before {
  position: absolute;
  left: 50%;
  top: 0;
  content: ' ';
  display: block;
  width: 6px;
  height: 100%;
  margin-left: -3px;
  background: rgb(80, 80, 80);
  background: -moz-linear-gradient(
    top,
    rgba(80, 80, 80, 0) 0%,
    rgb(80, 80, 80) 8%,
    rgb(80, 80, 80) 92%,
    rgba(80, 80, 80, 0) 100%
  );
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    color-stop(0%, rgba(30, 87, 153, 1)),
    color-stop(100%, rgba(125, 185, 232, 1))
  );
  background: -webkit-linear-gradient(
    top,
    rgba(80, 80, 80, 0) 0%,
    rgb(80, 80, 80) 8%,
    rgb(80, 80, 80) 92%,
    rgba(80, 80, 80, 0) 100%
  );
  background: -o-linear-gradient(
    top,
    rgba(80, 80, 80, 0) 0%,
    rgb(80, 80, 80) 8%,
    rgb(80, 80, 80) 92%,
    rgba(80, 80, 80, 0) 100%
  );
  background: -ms-linear-gradient(
    top,
    rgba(80, 80, 80, 0) 0%,
    rgb(80, 80, 80) 8%,
    rgb(80, 80, 80) 92%,
    rgba(80, 80, 80, 0) 100%
  );
  background: linear-gradient(
    to bottom,
    rgba(80, 80, 80, 0) 0%,
    rgb(80, 80, 80) 8%,
    rgb(80, 80, 80) 92%,
    rgba(80, 80, 80, 0) 100%
  );

  z-index: 5;
}

.timeline li {
  padding: 1em 0;
}

.timeline li:after {
  content: '';
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

.keywords {
  float: none;
  text-align: center;
  clear: both;
  width: 70%;
  margin: auto;
  margin-top: 20px;
}

.keywords .label {
  margin-top: 20px;
  display: inline-block;
}

.direction-l {
  position: relative;
  width: 400px;
  float: left;
  text-align: right;
}

.direction-r {
  position: relative;
  width: 400px;
  float: right;
}

.flag-wrapper {
  position: relative;
  display: inline-block;

  text-align: center;
}

.flag {
  position: relative;
  display: inline;
  background: rgb(248, 248, 248);
  padding: 6px 10px;
  border-radius: 5px;

  font-weight: 600;
  text-align: left;
}

.direction-l .flag {
  -webkit-box-shadow: -1px 1px 1px rgba(0, 0, 0, 0.15),
    0 0 1px rgba(0, 0, 0, 0.15);
  -moz-box-shadow: -1px 1px 1px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.15);
  box-shadow: -1px 1px 1px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.15);
}

.direction-r .flag {
  -webkit-box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.15),
    0 0 1px rgba(0, 0, 0, 0.15);
  -moz-box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.15);
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.15);
}

.direction-l .flag:before,
.direction-r .flag:before {
  position: absolute;
  top: 50%;
  right: -40px;
  content: ' ';
  display: block;
  width: 12px;
  height: 12px;
  margin-top: -10px;
  background: #fff;
  border-radius: 10px;
  border: 4px solid #4aaaa5;
  z-index: 10;
}

.orange .direction-l .flag:before,
.orange .direction-r .flag:before {
  border: 4px solid #e67e22 !important;
}

.direction-r .flag:before {
  left: -40px;
}

.direction-l .flag:after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  height: 0;
  width: 0;
  margin-top: -8px;
  border: solid transparent;
  border-left-color: rgb(248, 248, 248);
  border-width: 8px;
  pointer-events: none;
}

.direction-r .flag:after {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  height: 0;
  width: 0;
  margin-top: -8px;
  border: solid transparent;
  border-right-color: rgb(248, 248, 248);
  border-width: 8px;
  pointer-events: none;
}

.time-wrapper {
  display: inline;
  line-height: 1em;
  font-size: 0.66666em;
  color: #4aaaa5;
  vertical-align: middle;
}

.orange .time-wrapper {
  color: #e67e22 !important;
}

.direction-l .time-wrapper {
  float: left;
}

.direction-r .time-wrapper {
  float: right;
}

.time {
  display: inline-block;
  padding: 4px 6px;
  background: rgb(248, 248, 248);
}

.desc {
  margin: 1em 0.75em 0 0;
  font-size: 13px;
  line-height: 1.5em;
}

.direction-r .desc {
  margin: 1em 0 0 0.75em;
}
.desc ul {
  padding: 0px;
  margin: 0px;
  list-style: none;
}
.desc li {
  padding: 0px;
  margin: 0px;
}

/* ================ Timeline Media Queries ================ */

@media screen and (max-width: 760px) {
  .timeline {
    width: 100%;
    padding: 4em 0 1em 0;
  }

  .timeline li {
    padding: 2em 0;
  }

  .direction-l,
  .direction-r {
    float: none;
    width: 100%;

    text-align: center;
  }

  .flag-wrapper {
    text-align: center;
  }

  .flag {
    background: rgb(255, 255, 255);
    z-index: 15;
  }

  .direction-l .flag:before,
  .direction-r .flag:before {
    position: absolute;
    top: -30px;
    left: 50%;
    content: ' ';
    display: block;
    width: 12px;
    height: 12px;
    margin-left: -9px;
    background: #fff;
    border-radius: 10px;
    border: 4px solid #4aaaa5;
    z-index: 10;
  }

  .direction-l .flag:after,
  .direction-r .flag:after {
    content: '';
    position: absolute;
    left: 50%;
    top: -8px;
    height: 0;
    width: 0;
    margin-left: -8px;
    border: solid transparent;
    border-bottom-color: rgb(255, 255, 255);
    border-width: 8px;
    pointer-events: none;
  }

  .time-wrapper {
    display: block;
    position: relative;
    margin: 4px 0 0 0;
    z-index: 14;
  }

  .direction-l .time-wrapper {
    float: none;
  }

  .direction-r .time-wrapper {
    float: none;
  }

  .desc {
    position: relative;
    margin: 1em 0 0 0;
    padding: 1em;
    background: rgb(245, 245, 245);
    -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);

    z-index: 15;
  }

  .direction-l .desc,
  .direction-r .desc {
    position: relative;
    margin: 1em 1em 0 1em;
    padding: 1em;

    z-index: 15;
  }
}

@media screen and (min-width: 400px ?? max-width: 660px) {
  .direction-l .desc,
  .direction-r .desc {
    margin: 1em 4em 0 4em;
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(-15px);
  }
}

.mobile-only {
  display: none;
}

/* Mobile */

@media (max-width: 600px) {
  .mobile-only {
    display: block;
  }

  .notification {
    display: inline-block;
    padding: 10px;
    text-transform: uppercase;
    /* border-radius: 4px; */
    /* border: 1px solid rgba(255, 255, 255, 0.16); */
    margin: 10px;
    font-weight: bold;
    text-align: center;
    color: rgb(101, 101, 101);
    border-bottom: 3px solid;
    border-color: transparent;
    padding-bottom: 20px;
    transition: border-color 0.2s ease-in-out;
  }

  .head {
  }

  .head-contain {
    padding: 15px;
    margin-top: 100px;
  }

  .head-container {
    margin-top: 100px;
  }

  .head-content {
    padding: 20px;
  }

  .head h1 {
    font-size: 60px;
  }

  .head .button {
    margin-right: 0px;
  }

  ul.top-menu.fixed > a {
    display: none;
  }

  .featured-project.active {
    width: 300px;
    height: 156px;
  }

  .featured-project {
    width: 200px;
    height: 105px;
    margin-right: 15px;
  }

  .featured-project:last-child {
    margin-right: 0px;
  }

  .contact-info {
    margin-top: 0px;
    border-left: 0px;
    margin-left: 0px;
  }

  .courses {
    padding: 0px;
  }

  .content {
    padding: 10px;
    text-align: center;
  }

  #courses,
  #designs,
  #drawings {
    display: none;
  }

  .desc {
    display: none;
  }

  .time {
    margin-top: 10px;
    margin-bottom: 5px;
    background: white;
  }

  .content {
    padding-bottom: 25px;
  }
}
