/*
Theme Name: P-Codes
Version: 1.0
Author: Yahya Elharony
Author URI: https://www.freelancer.com/u/yahyaelharony.html
*/


/***************************
******* global styles ******
***************************/
* {
    margin: 0;
    padding: 0;
    outline: none !important;
}
a:link,
a:visited,
a:hover,
a:active {
    text-decoration: none
}
h1,h2,h3,h4,h5,h6,p,a {
    font-family: 'Roboto', 'Amiri', serif;
}
body {
    overflow-x: hidden
}

/***************************
********* Reset ************
***************************/
/* input field */
.input-field {
    padding: 0
}

/* label color */
.input-field label {
    left: 0;
    color: #eee
}
/* Make the label left */
/* label focus color */
.input-field input[type=text] + label,
.input-field input[type=email] + label,
.input-field input[type=tel] + label,
.input-field textarea.materialize-textarea + label {
    left: 0 
}

/* label focus color */
.input-field input[type=text]:focus + label,
.input-field input[type=email]:focus + label,
.input-field input[type=tel]:focus + label,
.input-field textarea.materialize-textarea:focus + label
{
    color: rgb(63,81,181);
}
/* Select Option Input */
ul.dropdown-content.select-dropdown li span {
    color: rgb(63,81,181); /* no need for !important :) */
}
/* Disabled Option ( First One ) */
ul.dropdown-content.select-dropdown li.disabled span {
    color: #e5e5e5;
    background: #2a2b34
}

/* label underline without focus color */
.input-field input[type=text],
.input-field input[type=email],
.input-field input[type=tel],
.input-field textarea.materialize-textarea {
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 1px 0 0 #ccc;
}
/* label underline focus color */
.input-field input[type=text]:focus,
.input-field input[type=email]:focus,
.input-field input[type=tel]:focus,
.input-field textarea.materialize-textarea:focus {
    border-bottom: 1px solid rgb(63,81,181);
    box-shadow: 0 1px 0 0 #000;
}
/* valid color */
.input-field input[type=text].valid,
.input-field input[type=email].valid,
.input-field input[type=tel].valid,
.input-field textarea.valid {
    border-bottom: 1px solid #000;
    box-shadow: 0 1px 0 0 #000;
}
/* invalid color */
.input-field input[type=text].invalid,
.input-field input[type=email].invalid,
.input-field input[type=tel].invalid,
.input-field textarea.invalid {
    border-bottom: 1px solid #000;
    box-shadow: 0 1px 0 0 #000;
}
/* icon prefix focus color */
.input-field .prefix.active {
    color: #000;
}

/***************************
********* Intro ************
***************************/
.loading {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 9;
    animation: hide-intro .1s ease forwards 8s
}
@keyframes hide-intro {
    0% {position: fixed}
    100% {position: static}
}

/* Doors */
.loading .door {
    position: relative;
    width: 50%;
    height: 100%
}
.loading .door.right {
    background: #34495e;
    animation: close-door 2s cubic-bezier(1, 0.03, 0, 1.24) forwards 6.5s
}
.loading .door.left {
    background: #2c3e50;
    animation: close-door 2s cubic-bezier(1, 0.03, 0, 1.24) forwards 6.5s
}

@keyframes close-door {
    0% {
        width: 50%
    }
    50% {
        width: 25%
    }
    100% {
        width: 0%
    }
}

/* Logo */
.loading .logo {
    position: absolute;
    width: 100px;
    height: 100px;
    top: 45%;
    left: 46%
}
.loading .logo span {
    display: block;
    margin-bottom: 10px;
    text-align: center;
    font-size: 8vw;
    opacity: 0;
}
.loading .logo span.dot {
    color: rgb(63,81,181);
    animation: rotate-dot 2s linear forwards 2s
}
.loading .logo span.comma {
    color: #ecf0f1;
    animation: rotate-comma 2s linear forwards 4s
}
@keyframes rotate-dot {
    0% {
        transform: rotateX(0)
    }
    25% {
        transform: rotateX(-90deg)
    }
    50% {
        transform: rotateX(-180deg)
    }
    75% {
        transform: rotateX(-360deg)
    }
    100% {
        opacity: 1;
        transform: rotateX(0)
    }
}

@keyframes rotate-comma {
    0% {
        transform: rotateY(0)
    }
    25% {
        transform: rotateY(-90deg)
    }
    50% {
        transform: rotateY(-180deg)
    }
    75% {
        transform: rotateY(-360deg) translateY(20px)
    }
    100% {
        opacity: 1;
        transform: rotateY(0) translateY(0px);
    }
}

/* Lines */
.loading span.line {
    position: absolute;
    width: 500px;
    height: 5px;
    background: #fff;
    top: 50%
}
.loading span.line.from-right {
    right: 0;
    animation: line-from-right 2s linear
}
.loading span.line.from-left {
    left: 0;
    animation: line-from-left 2s linear
}
@keyframes line-from-right {
    0% {
        transform: translateX(500px)
    }
    50% {
        transform: translateX(350px)
    }
    75% {
        transform: translateX(-200px)
    }
    100% {
        transform: translateX(0px)
    }
}
@keyframes line-from-left {
    0% {
        transform: translateX(-500px)
    }
    50% {
        transform: translateX(-350px)
    }
    75% {
        transform: translateX(200px)
    }
    100% {
        transform: translateX(0)
    }
}

/*@keyframes line-drop {
    0% {
        transform: rotate(0)
    }
    50% {
        transform: rotate(90deg)
    }
    100% {
        transform: rotate(90deg) scale(1.15)
    }
}*/


/***************************
********* intro ************
***************************/
.intro {
    position: relative
}
.intro .text p {
    display: inline-block;
    margin: 0 5px;
    font-family: "Raleway";
    font-size: 60px
}
.intro .text {
    position: absolute;
    width: 100%;
    top: 45%;
    left: 50%;
    transform: translate(-50%);
    text-align: center
}

/***************************
********* main *************
***************************/
main {
    margin-bottom: 0px;
    position: relative;
    background: #fff;
    z-index: 2
}

/***************************
******* navbar *************
***************************/
#main-header {
    position: relative;
    z-index: 3;
    background-image: url(../img/bg.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed
}
/*#main-header a {
    font-family: "Raleway";
    font-size: 20px;
    padding: 10px
}*/
nav,
.navbar-fixed {
    height: 125px;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -o-transition: all .3s ease;
    -sm-transition: all .3s ease;
    transition: all .3s ease
}
nav.resize,
.navbar-fixed.resize {
    height: 75px
}
nav {
    background: #2a2b34
}
nav .brand-logo img.resize {
    margin-top: 0;
    width: 75px;
    height: 75px
}
nav ul a {
    font-family: Raleway;
    font-weight: 500;
    padding: 49px 15px;
    color: #a6a6a6;
    font-size: 18px;
    border-top: 4px solid transparent
}
nav ul a:hover {
    background: rgb(63,81,181);
    color: #eee
}
nav ul a.resize {
    padding: 22.5px 15px;
    font-size: 17px
}
nav ul a.resize:hover {
    color: #fff;
    background: #000;
    border-color: #a6a6a6
}
nav .brand-logo {
    left: 20px;
    height: 125px;
    width: 100px;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -o-transition: all .3s ease;
    -sm-transition: all .3s ease;
    transition: all .3s ease
}
nav .brand-logo.resize {
    width: 75px;
    height: 75px
}
nav .brand-logo img {
    width: 100px;
    height: 100px;
    margin-top: 12.5px;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -o-transition: all .3s ease;
    -sm-transition: all .3s ease;
    transition: all .3s ease
}
.side-nav li>a>i,
.side-nav li>a>[class^="mdi-"],
.side-nav li>a>[class*="mdi-"],
.side-nav li>a>i.material-icons {
     color: #95959A;
}
.side-nav li.contact a.facebook:hover {
    color: #3B5998
}
.side-nav li.contact a.twitter:hover {
    color: #55acee
}
.side-nav li.contact a.github:hover {
    color: #eee
}
.side-nav li.contact a.linkedin:hover {
    color: #0077b5
}
/***************************
******* page content *******
***************************/

/* banner */
.banner {
    position: relative;
    margin-bottom: 0
}
/*.banner #spiders {
    position: absolute;
    background: url(../img/3.jpg);
    background-size: cover;
    background-position: center;
    top:0;
    left:0;
    width:100%;
    height: 100%;
    max-width:100%;
}*/
.banner .editor {
    
}
.banner .editor #code {
    
}
.banner .input-field label.active {
    color: rgb(63,81,181)
}
.banner .input-field input[type="text"]:focus:not([readonly]),
.banner .input-field input[type="email"]:focus:not([readonly]),
.banner .input-field input[type="tel"]:focus:not([readonly]),
.banner .input-field textarea:focus:not([readonly]) {
    border-bottom: 1px solid rgb(63,81,181);
    box-shadow: 0 1px 0 0 rgb(63,81,181)
}
.banner .input-field button[type="submit"] {
    background: rgb(63,81,181);
    font-family: "Roboto", sans-serif;
}
.banner .scroll-down {
    width: 35px;
    height: 50px;
    left: 50%;
    margin-top: 50px;
    position: relative;
    display: inline-block;
    background: #eee;
    border: 3px solid #333;
    border-radius: 20px
}
.banner .scroll-down span {
    width: 5px;
    height: 5px;
    position: absolute;
    top: 25%;
    left: 40%;
    background: rgb(63,81,181);
    border-radius: 50%;
    animation: scroll-mouse 1s linear infinite
}
@keyframes scroll-mouse {
    0% {
        top: 25%;
        opacity: 1
    }
    50% {
        top: 35%;
        opacity: 0.5
    }
    100% {
        top: 45%;
        opacity: 0
    }
}

.typed-cursor{
    font-size: 60px;
	opacity: 1;
	-webkit-animation: blink 0.7s infinite;
	-moz-animation: blink 0.7s infinite;
	animation: blink 0.7s infinite;
}
@keyframes blink{
	0% { opacity:1; }
	50% { opacity:0; }
	100% { opacity:1; }
}
@-webkit-keyframes blink{
	0% { opacity:1; }
	50% { opacity:0; }
	100% { opacity:1; }
}
@-moz-keyframes blink{
	0% { opacity:1; }
	50% { opacity:0; }
	100% { opacity:1; }
}




/* Services */
.services {
   padding-top: 60px
}
.services .heading {
    text-align: center;
    color: #000;
    margin-bottom: 50px
}
.services .heading h2 {
    margin-top: 0;
    margin-bottom: 50px;
    font-family: "Raleway";
    font-weight: 300;
    font-size: 45px;
    text-transform: uppercase;
    letter-spacing: 1px
}
.services .heading p {
    font-size: 25px;
    font-family: "Raleway";
    line-height: 35px;
    letter-spacing: 1px;
}
.services .tabs {
    height: auto;
    overflow: hidden;
    margin-bottom: 50px;
    border-bottom: 0
}
.services .tabs .tab {
    height: auto
}
.services .tabs .tab a {
    color: rgb(63,81,181);
    opacity: 0.5;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -o-transition: all .3s ease;
    -sm-transition: all .3s ease;
    transition: all .3s ease
}
.services .tabs .tab a.active {
    opacity: 1
}
.services .tabs .tab a .service-tab h4 {
    font-family: 'Raleway', sans-serif;
    text-transform: none
}
.services .tabs .indicator {
    background-color: rgb(63,81,181)
}
.services .tabs .tab img {
    width: 100%;
    height: 150px;
    display: none
}
.services .service .service-caption h3 {
    margin-top: 0 !important
}
.services .service .service-caption p {
    font-size: 15px;
    letter-spacing: 1px;
    color: #555
}
.services .service .service-caption ul {
    margin: 10px
}
.services .service .service-caption ul li {
    display: inline-block
}
.services .service .service-caption ul li img {
    width: 35px;
    height: 35px
}
.services .service .service-img {
/*    -webkit-box-shadow: inset 0 0 0 10px rgba(255,255,255, 0);
    -moz-box-shadow: inset 0 0 0 10px rgba(255,255,255, 0);
    -o-box-shadow: inset 0 0 0 10px rgba(255,255,255, 0);
    -sm-box-shadow: inset 0 0 0 10px rgba(255,255,255, 0);
    box-shadow: inset 0 0 0 10px rgba(255,255,255, 0);*/
    
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -o-transition: all .3s ease;
    -sm-transition: all .3s ease;
    transition: all .3s ease
}
.services .service .service-img img {
    display: block;
    position: relative;
    width: 100%;
    height: 250px
}
.services .service .service-img:hover {
    /*-webkit-box-shadow: inset 0 0 0 40px rgba(255,255,255, .4);
    -moz-box-shadow: inset 0 0 0 40px rgba(255,255,255, .4);
    -o-box-shadow: inset 0 0 0 40px rgba(255,255,255, .4);
    -sm-box-shadow: inset 0 0 0 40px rgba(255,255,255, .4);
    box-shadow: inset 0 0 0 40px rgba(255,255,255, .4);*/
    
}




/* Slogans */
.slogans {
    margin-bottom: 0;
    padding: 50px;
    color: #fff;
    background-image: url(../img/bg-1.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed
}
.slogans h2 {
    margin-top: 0;
    margin-bottom: 50px;
    font-family: "Raleway";
    font-weight: 300;
    font-size: 45px;
    text-transform: uppercase;
    letter-spacing: 1px
}
.slogans .slogan {
    text-align: center;
    margin-bottom: 20px
}
.slogans .slogan h3 {
    font-family: 'Raleway', sans-serif;
    font-weight: 200
}
.slogans .slogan p {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    height: 50px
}
.slogans .slogan span.divider {
    display: block;
    width: 100%;
    height: 2px;
    margin: 30px 0;
    background: #fff
}
.slogans .slogan ul {
    text-align: left
}
.slogans .slogan ul li {
    font-family: 'Raleway', sans-serif;
    padding: 4px 0;
    letter-spacing: 2px
}




/* Portfolio */
.portfolio {
    margin-bottom: 100px
}
.portfolio #gallery {
    margin-bottom: 0
}
#gallery .controls {
    color: #000;
    text-align: center;
    padding: 100px 50px
}
#gallery .controls h2 {
    color: #000;
    margin-top: 0;
    margin-bottom: 50px;
    font-family: "Raleway";
    font-weight: 300;
    font-size: 45px;
    text-transform: uppercase;
    letter-spacing: 1px
}
#gallery .controls .filter {
    display: inline-block;
    width: 150px;
    height: 60px;
    padding: 10px;
    margin: 5px;
    font-size: 16px;
    cursor: pointer;
    background: #eee;
    color: rgb(63,81,181)
}
#gallery .controls .filter.active {
    background: rgb(63,81,181);
    color: #fff
}
#gallery .mix {
    display: none;
    position: relative;
    height: 300px;
    padding-right: 0;
    padding-left: 0;
    overflow: hidden;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -o-transition: all .3s ease;
    -sm-transition: all .3s ease;
    transition: all .3s ease
}

#gallery .mix .caption {
    position: absolute;
    /*width: 1px;
    height: 1px;
    top: 50%;
    left: 50%;*/
    width: 100%;
    height: 150px;
    top: 300px;
    text-align: center;
    background: rgba(3,3,3,0.8);
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -o-transition: all .3s ease;
    -sm-transition: all .3s ease;
    transition: all .3s ease
}
#gallery .mix .caption h4 {
    margin-top: 10px;
    margin-bottom: 10px;
    color: #eee
}
#gallery .mix .caption p {
    color: #eee;
    line-height: 18px
}
#gallery .mix .caption a {
    margin-right: 5px
}
#gallery .mix .caption a.external-link {
    color: #eee
}
#gallery .mix .caption a.facebook {
    color: #3d62b1
}
#gallery .mix img {
    display: block;
    width: 100%;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -o-transition: all .3s ease;
    -sm-transition: all .3s ease;
    transition: all .3s ease;
}
#gallery .mix:hover {
    -webkit-box-shadow: 0 0px 30px 0px rgba(0, 0, 0, 0.25);
    -moz-box-shadow: 0 0px 30px 0px rgba(0, 0, 0, 0.25);
    -o-box-shadow: 0 0px 30px 0px rgba(0, 0, 0, 0.25);
    -sm-box-shadow: 0 0px 30px 0px rgba(0, 0, 0, 0.25);;
    box-shadow: 0 0px 30px 0px rgba(0, 0, 0, 0.25);
}
#gallery .mix:hover .caption {
    transform: translateY(-150px);
    z-index: 2
}
#gallery .mix:hover img {
    animation: scroll-img 4s linear forwards
}

@keyframes scroll-img {
    
    0% {
        transform: translateY(0);
    }
    
    50% {
        transform: translateY(-37.5%);
    }
    
    100% {
        transform: translateY(-75%);
    }
    
}

/*#gallery .mix:hover .caption {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%
}*/

/* Reviews */
.client-reviews {
    
}
.client-reviews {
    margin-bottom: 0
}
.client-reviews .heading {
    text-align: center;
    padding: 100px 50px;
    color: #fff;
    background-image: url(../img/backgrounds/reviews.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed
}
.client-reviews .heading h2 {
    margin-top: 0;
    margin-bottom: 50px;
    font-family: "Raleway";
    font-weight: 300;
    font-size: 45px;
    text-transform: uppercase;
    letter-spacing: 1px
}
.client-reviews .heading p {
    font-size: 25px;
    font-family: "Raleway";
    line-height: 35px;
    letter-spacing: 1px;
}
.client-reviews .swiper-container {
    width: 100%;
    height: 300px;
}
.client-reviews .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    line-height: 300px;
}
.client-reviews .swiper-button-next,
.client-reviews .swiper-container-rtl .swiper-button-prev,
.client-reviews .swiper-button-prev,
.client-reviews .swiper-container-rtl .swiper-button-next {
    background: 0
}
.client-reviews .swiper-button-next,
.client-reviews .swiper-button-prev {
    color: rgb(63,81,181)
}
.client-reviews .swiper-container-horizontal>.swiper-pagination-progress {
    top: auto;
    bottom: 0
}
.client-reviews .swiper-pagination-progress {
    background: rgba(200, 200, 200, 0.3)
}
.client-reviews .swiper-pagination-progress .swiper-pagination-progressbar {
    background: rgb(63,81,181)
}
.client-reviews .client-review {
    padding: 20px 20%
}
.client-reviews .client-review p.caption {
    font-family: "Raleway", "Amiri", "Roboto";
    font-size: 18px
}
.client-reviews .client-review p.rating span.star {
    font-size: 25px;
    color: #ccc
}
.client-reviews .client-review p.rating span.star.rated {
    color: #000
}
.client-reviews .client-review p.rating > span.star {
   margin: 10px;
}
.client-reviews .client-review p.rating > span.star:before {
   content: "\2605";
   position: absolute;
   color: #FFD700
}


/***************************
********* Contact **********
***************************/
.contact {
    color: #eee;
    background: #2a2b34;
    padding-top: 40px;
    padding-bottom: 20px;
    font-family: "Roboto", "Amiri";
    letter-spacing: 1px
}
.contact h2 {
    padding-top: 10px;
    margin-top: 0;
    margin-bottom: 20px;
    font-family: "Raleway";
    font-weight: 300;
    font-size: 40px;
    text-transform: uppercase;
    letter-spacing: 1px
}
.contact .input-field {
    margin-top: 1.5rem;
    padding: 0
}
/*.contact .contains_textarea {
     margin-top: 3.5rem 
}*/
.contact .input-field button {
    width: 200px;
    background: rgb(63,81,181)
}
.contact .input-field button:focus {
    background: #fff;
    color: rgb(63,81,181)
}

/* Footer */
.footer {
   
    bottom: 0;
    width: 100%;
    padding-top: 50px;
    background: #2a2b34;
    color: #a6a6a6;
    text-align: center
}
.footer,
.footer h4,
.footer li {
    font-family: "Raleway";
}
.footer h4 {
    color: #fff;
    margin-top: 0
}
.footer .footer-upper {
    margin-bottom: 0
}
.footer .footer-upper li.contact-us {
    font-size: 14px;
    text-align: center;
    display: inline-block
}
.footer .footer-upper li.contact-us a {
    color: #95959A;
    margin: 0 5px;
    font-size: 25px;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -o-transition: all .3s ease;
    -sm-transition: all .3s ease;
    transition: all .3s ease
}
.footer .footer-upper li.contact-us address {
    display: inline-block;
    font-family: "Raleway" !important;
    font-size: 14px !important;
}
.footer .footer-upper li.contact-us address a {
    font-size: 14px;
    font-weight: normal
}
.footer .footer-upper li.contact-us a.facebook:hover {
    color: #3B5998
}
.footer .footer-upper li.contact-us a.twitter:hover {
    color: #55acee
}
.footer .footer-upper li.contact-us a.github:hover {
    color: #eee
}
.footer .footer-upper li.contact-us a.google-plus:hover {
    color: #dd4b39
}
.footer .footer-upper li.contact-us a.behance:hover {
    color: #1769ff
}
.footer .footer-upper li.contact-us a.stackoverflow:hover {
    color: #fe7a15
}
.footer .footer-upper li.contact-us a.linkedin:hover {
    color: #0077b5
}
.footer .divider {
    background: rgba(158,158,158,0.23);
    display: inline-block;
    width: 75%
}
.footer .footer-bottom p {
    padding: 10px;
    margin: 0;
    color: #95959A;
    font-size: 13px
}
.footer .footer-bottom a {
    color: rgb(63,81,181)
}


/***************************
******* Media Query ********
***************************/
@media all and (max-width: 992px) {
    nav, .navbar-fixed {
        height: 70px
    }
    nav a.button-collapse {
        margin: 5px 10px
    }
    nav .brand-logo {
        height: 100%
    }
    nav .brand-logo img {
        width: 55px;
        height: 55px
    }
}
@media all and (min-width: 595px) and (max-width: 780px) {
    .slogans .slogan {
        width: 50% !important
    }
    .slogans .slogan:nth-child(4) {
        width: 100% !important
    }
    .slogans .slogan span.divider {
        margin-top: 100px
    }
}
@media all and (min-width: 781px) and (max-width: 845px) {
    .slogans .slogan h3 {
        font-size: 31px !important
    }
}
@media all and (max-width: 600px) {
    
    .services .tabs {
        display: inline
    }
    .services .tabs .tab a .service-tab h4 {
        font-size: 4vw
    }
    .services .tabs .indicator {
        display: none
    }
    .footer .footer-upper li:nth-child(1) {
        margin-bottom: 20px
    }
    .footer .footer-upper li img {
        margin-left: 42.5%
    }
}