/* =================================================================== 
 *  01. typography
 *  07. other components
 *  08. common and reusable styles 
 *  09. header styles
 *  10. home
 *  11. about
 *  12. services
 *  13. portfolio
 *  14. testimonials
 *  15. clients
 *  16. contact
 *
 * =================================================================== */


/* base style ========================================================================================================= */





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

* {
  font-family: 'Cairo', sans-serif;
}

h1,
h2 {
  font-size: 1.5rem;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  margin: 0;
}

h2 {
  display: flex;
  text-align: left;
  width: 100%;
}


h3 {
  font-size: 2em;
  font-weight: 700;
}

h4 {
  font-size: 3.6em;
  font-weight: 700;
}

p {
  font-size: .9em;
  font-weight: 400;
  line-height: 140%;
  text-align: justify;
}

p.date {
  font-size: 1em;
  font-weight: 700;
  text-decoration: none;
}



/* layout ============================================================================================================ */

/* logo*/

div.logo {
  border-left: .3em solid red;
  padding: 0 0 0 1em;
  margin: 0;
  position: relative;
  z-index: -1;
}

div.logo:before {
  content: '';
  position: absolut;
  margin: 0 0 0 -2em;
  border-left: 1em solid white;
  width: 0;
  z-index: 1;
}

/* alink*/

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


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


/* nav */

ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 200px;
}

li {
  font-size: 1em;
  font-weight: 600;
  padding-left: 65px;
  position: relative;
  line-height: 50px;
  text-decoration: none;
}

li::before {
  content: '';
  height: .3em;
  background-color: black;
  width: 50px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

li::before {
  content: '';
  height: .2em;
  background-color: black;
  width: 50px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

li:hover:before {
  height: .2em;
  background-color: black;
  flex: 1;
  width: 100%;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: width .5s ease;
}

li.active::before {
  width: 100%;
}



@media screen and (max-width: 700px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }

  .sidebar a {
    float: right;
  }

  div.content {
    margin-left: 0;
  }
}

@media screen and (max-width: 400px) {
  .sidebar a {
    text-align: center;
    float: none;
  }
}


/* portfolio ========================================================================================================== */

h2.left:before {
  content: '';
  flex: 1;
  margin: auto 0em;
  height: 0;
  margin-right: .3em;
  border-top: solid black .15em;
}

h2.right:after {
  content: '';
  flex: 1;
  margin: auto 0em;
  height: 0;
  margin-left: .3em;
  border-top: solid black .15em;
}

.edgetop {
  margin-bottom: -.2em;
}

.edgetopmore {
  margin-bottom: -.2em;
  z-index: 2;
}

.edgetopmore2 {
  margin-left: -.3em;
  margin-bottom: -.5em;
  z-index: 2;
}

.edgebottom {
  margin-top: -.3rem;
}

.rotation-link {
  display: flex;
  align-items: flex-end;
}

.text-wrap {
  width: 1.4rem;
  align-self: stretch;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}


.text-wrap h2 {
  position: absolute;
  top: 100%;
  left: 0;
  transform: rotate(-90deg);
  transform-origin: 0 0;
  width: auto;
  height: auto;
  margin-bottom: 0;
}

.text-wrap h2::after {
  width: 9999px;
}

.img-wrap {
  flex-grow: 1;
  flex-shrink: 1;
}

.img-wrap img {
  display: block;
}





/* nav */

ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 200px;
}

li {
  font-size: 1em;
  font-weight: 600;
  padding-left: 65px;
  position: relative;
  line-height: 50px;
  text-decoration: none;
}

li::before {
  content: '';
  height: 3px;
  background-color: black;
  width: 50px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

li.active::before {
  width: 100%;
}




.img-fluid {
  max-width: 100%;
  height: auto;
}

.space {
  padding-bottom: 15px;
  padding-top: 15px;
}

.featured-thumbnail img {
  max-width: 100%;
  height: auto !important;
}



/* portfolio */

img {
  max-width: 100%;
  max-height: auto;

}

.space {
  padding-bottom: 15px;
  padding-top: 15px;
}


span {
  display: block;
}



/* contact */

a.contact {
  font-size: 1.125em;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  line-height: 1.8em;
  text-decoration: none;
}

.gallery {
  width: 100%;
  white-space: nowrap;
  overflow-x: scroll;
  overflow-y: hidden;

}

.work-modals {
  display: inline-block;
  width: 100%
}

/* animation */

@-webkit-keyframes fadeInUp {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0);
  }

  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0);
  }

  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

.fadeInUp {
  -webkit-animation-name: fadeInUp;
  animation-name: fadeInUp;
}