/*
* Resume template
* Created by : Ahmed Essa
* website : www.ahmedessa.net
*/


/* Table of Content
==================================================
- Google fonts & font family -
- typography -
- General -
- Preloader -
- Header -
- home section -
- About section -
- experience section -
- projects section -
- Contact section -
- Responsive media queries -
*/


/* 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: 100px;
}

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;
}

.disply-table h4:before {
    left: 40%;
}

@media (max-width:990px) {
    .disply-table h4:before {
        display:none;
    }

    .disply-table h4 {
        margin:0;
    }
}

/*
.section a {
color:#425BB5;
}
*/


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

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

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

.h-30 {
    height: 30px;
}

.h-40 {
    height: 40px;
}

.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 .5s;
    transition: all .5s;
    height: 65px;
}

.navbar-top {
    background-color: #fff;
}


@media (min-width: 768px) {
    .navbar-toggle {
        display: none;
    }
}

@media (max-width:768px) {
    .navbar-top li {
        display: block;
    }
}

.navbar-brand {
    height: 90px;
}

.navbar-brand img {
    height:60px;
}

.navbar-toggle {
    background-color: transparent;
    border: 2px solid #2D2A32;
    margin-top: 15px;
}

.navbar-toggle .icon-bar {
    display: block;
    width: 30px;
    height: 2px;
    border-radius: 1px;
}

.navbar-toggle .icon-bar+.icon-bar {
    margin-top: 5px;
}

.navbar-toggle .icon-bar {
    background-color:#2D2A32;
}

navbar-fixed-top .navbar-collapse {
    border-color: #e7e7e7;
    max-height: :1000px;
}

@media only screen and (max-width:1024px) {
    .navbar-brand {
        padding-top: 10px;
    }
}

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

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

nav li a {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #444;
    font-size: 11px;
    font-weight: bold;
    -webkit-transition: all 1s;
    -moz-transition:all 1s;
    -o-transition:all 1s;
}

nav ul li.active {
    /*text-decoration: underline;*/
    position: relative;
}

nav ul li.active::after {
    content: '';
    height: 4px;
    width: 100%;
    position:absolute;
    background-color:#425BB5;
    left:0;
}

@media only screen and (min-width:768px) {
    nav ul li.active::after {
        bottom:-20px;
    }

}

nav ul li.active a {
    color: #425BB5;
}

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

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

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

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

a.active {
    color: #425BB5;
}

a.a-red {
    color:#CC2936;
}


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

#home {
    background: url(../img/home-bg-2.jpg);
    background-size: cover;
    height: 100vh;
}

@media only screen and (max-width: 1024px) {
    #home {
        background: url(../img/home-bg-3.jpg);
    }
}

#home-2 {
    background: url(../img/home-bg-4.jpeg);
    background-size: cover;
    background-position: bottom;
    height: 30vh;
}

#home-3 {
    background: url(../img/home-bg-2.jpg);
    background-size: cover;
    background-position: 50% 70%;
    height: 50vh;
}


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

.disply-table {
    width:100%;
    display: table;
    height: 100vh;
    text-align: center;
}

.disply-table img {
    display: none;
}


@media  (min-width:1600px) {
    .disply-table {
        height: 106vh;
    }
}



@media  (min-width:1900px) {
    .disply-table {
        height: 100vh;
    }
}

/*
@media  (min-width:1025px) {
.disply-table h1 {
font-size: 50px;
line-height: 64px;
}
} */


/* 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
}

.btn-contact, .btn-contact:focus, .btn-contact:active, .btn-contact:visited  {
    color: #fff;
    border:2px solid #2D2A32;
    padding: 20px 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    background-color: #2D2A32;
}

.btn-contact {
    -webkit-transition: all 0.5s;
    -moz-transition:all 0.5s;
    -o-transition:all 0.5s;
}

.btn-contact:hover {
    background-color: transparent;
    color: #2D2A32;
}

.btn-previous, .btn-previous:focus, .btn-previous:active, .btn-previous:visited  {
    border:2px solid #2D2A32;
    padding: 20px 50px;
    color: #2D2A32;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    background-color: transparent;
}

.btn-previous {
    -webkit-transition: all 0.2s;
    -moz-transition:all 0.2s;
    -o-transition:all 0.2s;
}

.btn-previous:hover {
    background-color: #000;
    color:#fff;
}

@media only screen and (max-width:400px) {
    .btn-previous, .btn-contact {
        width:100%;
    }
}

.btn-blue {
    -webkit-transition: all 0.5s;
    -moz-transition:all 0.5s;
    -o-transition:all 0.5s;
}

.btn-blue, .btn-blue:focus, .btn-blue:active, .btn-blue:visited  {
    border:2px solid #425BB5;
    padding: 20px 50px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    background-color: #425BB5;
}

.btn-blue:hover {
    background-color: transparent;
    color: #425BB5;
}


/* promotion section
==================================================*/

#promotion {
    padding: 100px 0;
}

.promotion-section {
}

.promotion-tab {
    min-height:400px;
}

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

#promotion input[type="checkbox"] {
    display: none;
}

.label-container {
    padding:10px 0px;
    position: relative;
}

.promotion-form i {
    margin-right: 10px;
    color:#9F9EA1;
    cursor: pointer;
}

.promotion-submit {
    overflow:auto;
    text-align: center;
}

.promotion-submit button {
    margin:10px 0px;
}

.promotion-contact input  {
    height: 50px;
    margin-bottom: 10px;
    border-radius: 0;
}

.checkmark {
    position: absolute;
    top: 25px;
    left: 0;
    height: 40px;
    width: 40px;
    background-color: #eee;
    border-radius: 10%;
}

.check-container {
    padding-left: 65px;
    margin-bottom: 40px;
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.check-container.check-disabled {
    cursor: not-allowed;
}




.check-container:hover .checkmark {
    background-color: #ccc;
}

.check-container input:checked ~ .checkmark {
    background-color:#2D2A32;
}

.check-container input:checked ~ .checkmark.disabled {
    background-color: #666469;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.check-container input:checked ~ .checkmark:after {
    display: block;
}

.check-container .checkmark:after {
    left: 13px;
    top: 7px;
    width: 12px;
    height: 20px;
    border: solid white;
    border-width: 0 5px 5px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.promo-info {
    font-weight: 700;
    /*cursor: help;*/
    position: relative;
    display: inline-block;
    /*border-bottom: 1px dotted black;  If you want dots under the hoverable text */
}

i.promo-info {
    cursor: help;
}

.promo-info .promo-tip {
    visibility: hidden;
    width: 240px;
    background-color: rgba(31, 31, 31, 0.9);
    color: #fff;
    text-align: center;
    padding: 15px 15px;
    border-radius: 4px;
    font-weight: normal;

    position: absolute;
    z-index: 1;
    top: 30px;
    left: 0%; 


    /* To use if using the icon as a hover */
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 24px;
    /**/
}

.promo-info:hover .promo-tip {
    visibility: visible;
}

.promo-info .promo-tip::after {
    content: " ";
    position: absolute;
    top: -2%;
    left: 3%; 
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent rgba(31, 31, 31, 0.9) transparent;
}

#promo-form input, #promo-form textarea {
    height: 50px;
    margin-bottom: 10px;
    border-radius: 0;
}





/* promotion tabs
=============================================== */

.promotion-tab {
    display:none;
}

.promotion-tab textarea {
    color:#ACACAC;
}

.step {
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbbbbb;
    border: none; 
    border-radius: 50%;
    display: inline-block;
    opacity: 0.5;
}

/* Mark the active step: */
.step.active {
    opacity: 1;
}

/* Mark the steps that are finished and valid: */
.step.finish {
    background-color: #4CAF50;
}


.promo-section {
    padding-bottom: 30px;
}



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

#experience {
    padding: 100px 0;
}

.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;
}


/* projects section
==================================================*/

#projects {
    padding: 100px 0;
    min-height: 800px;
}

.portfolio .categories-grid span {
    font-size: 30px;
    margin-bottom: 30px;
    display: inline-block;
}

.portfolio .categories-grid .categories ul li {
    list-style: none;
    margin: 20px 0;
}

.portfolio .categories-grid .categories ul li a {
    display: inline-block;
    color: #60606e;
    padding: 0 10px;
    margin: 0 14px;
    -webkit-transition: all .2s ease-in-out .2s;
    transition: all .2s ease-in-out .2s;
}

.portfolio .categories-grid .categories ul li a:hover,
.portfolio .categories-grid .categories ul li a:focus {
    text-decoration: none;
}

.portfolio .categories-grid .categories ul li a.active {
    background-color: #425BB5;
    padding: 0px 20px;
    color: white;
    text-decoration: none;
}

.portfolio_filter {
    padding-left: 0;
}

.portfolio_item {
    position: relative;
    overflow: hidden;
    display: block;
    margin-bottom: 30px;
}

.portfolio_item .portfolio_item_hover {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
    background-color: #425BB5;
    -webkit-transform: translateY(100%);
    transform: translateY(100%);
    opacity: 0;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    color: #333;
}

.portfolio_item .portfolio_item_hover .item_info {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    padding: 10px;
    width: 100%;
    font-weight: bold;
}

.portfolio_item .portfolio_item_hover .item_info span {
    display: block;
    color: #fff;
    font-size: 18px;
    -webkit-transform: translateY(-100px);
    transform: translateY(-100px);
    -webkit-transition: all .3s ease-in-out .3s;
    transition: all .3s ease-in-out .3s;
    opacity: 0;
}

.portfolio_item .portfolio_item_hover .item_info em {
    font-style: normal;
    display: inline-block;
    background-color: #425BB5;
    padding: 5px 20px;
    color: #fff;
    margin-top: 10px;
    -webkit-transform: translateY(100px);
    transform: translateY(100px);
    -webkit-transition: all .3s ease-in-out .3s;
    transition: all .3s ease-in-out .3s;
    opacity: 0;
    font-size: 10px;
    letter-spacing: 2px;
}

.portfolio_item:hover .portfolio_item_hover {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
}

.portfolio_item:hover .item_info em,
.portfolio_item:hover .item_info span {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
}

.portfolio .categories-grid .categories ul li {
    float: left;
}

.portfolio .categories-grid .categories ul li a {
    padding: 0 10px;
    -webkit-transition: all .2s ease-in-out .2s;
    transition: all .2s ease-in-out .2s;
}

.portfolio_filter {
    padding-left: 0;
    display: inline-block;
    margin: 0 auto;
    text-align: center;
}

.portfolio_item img {
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
}

.portfolio-padding {
    padding: 50px 0;
}

.portfolio-inner {
    padding-bottom: 0 !important;
    padding-top: 55px;
}

.modal-content {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0);
    border: none;
}

.popup-modal {
    background: #fff;
}

.close-popup-modal {
    float: right;
    margin: 20px;
    font-size: 22px;
    opacity: 0;
    cursor: pointer;
    -webkit-transition: all .3s;
    transition: all .3s;
    -webkit-transition-delay: .6s;
    transition-delay: .6s;
    position: fixed;
    z-index: 100000;
    right: 14px;
}

.animatedModal-on .close-popup-modal {
    opacity: 1;
}

.modal-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    line-height: 50px;
}

@media (max-width: 1024px) {
    #projects iframe {
        display: none;
    }
}





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

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

#contact-form input,
#contact-form textarea {
    height: 50px;
    margin-bottom: 10px;
    border-radius: 0;
}

#contact-form label {
    display: block;
    margin-bottom: .2em;
    font-size: 13px;
    line-height: 13px;
    font-size: 1.3rem;
    line-height: 1.3rem;
    color: #000;
}

#contact-form select {
    height: 50px;
    margin-bottom: 10px;
}

#contact-form label.error {
    margin-top: 10px;
    margin-bottom: 1em;
    font-size: 12px;
    line-height: 12px;
    font-size: 1.2rem;
    line-height: 1.2rem;
    color: #D33E43;
    margin-left: 10px
}

#contact-form input[type="text"].error,
#contact-form input[type="password"].error,
#contact-form input[type="date"].error,
#contact-form input[type="datetime"].error,
#contact-form input[type="datetime-local"].error,
#contact-form input[type="month"].error,
#contact-form input[type="week"].error,
#contact-form input[type="email"].error,
#contact-form input[type="number"].error,
#contact-form input[type="search"].error,
#contact-form input[type="tel"].error,
#contact-form input[type="time"].error,
#contact-form input[type="url"].error,
#contact-form textarea.error {
    border-color: #D33E43
}

#promo-form input[type="text"].error,
#promo-form input[type="password"].error,
#promo-form input[type="date"].error,
#promo-form input[type="datetime"].error,
#promo-form input[type="datetime-local"].error,
#promo-form input[type="month"].error,
#promo-form input[type="week"].error,
#promo-form input[type="email"].error,
#promo-form input[type="number"].error,
#promo-form input[type="search"].error,
#promo-form input[type="tel"].error,
#promo-form input[type="time"].error,
#promo-form input[type="url"].error,
#promo-form textarea.error {
    border-color: #D33E43
}

#promo-info-form label {
    display: block;
    margin-bottom: .2em;
    font-size: 13px;
    line-height: 13px;
    font-size: 1.3rem;
    line-height: 1.3rem;
    color: #000;
}


#promo-form label.error {
    margin-top: 10px;
    margin-bottom: 1em;
    font-size: 12px;
    line-height: 12px;
    font-size: 1.2rem;
    line-height: 1.2rem;
    color: #D33E43;
    margin-left: 10px;
}

textarea {
    resize: none;
}

fieldset {
    border: 0px;
    margin: 0;
    padding: 0
}

.required {
    color: #e9266d
}

#success,
#error {
    display: none
}

#success p,
#error p {
    display: block;
}

#success p {
    color: #425BB5;
    font-size: 15px;
    text-align: center;
    padding: 10px;
    border: 2px solid #425BB5;
    margin-top: 10px;
}

#error p {
    color: #D33E43;
    font-size: 15px;
    text-align: center;
    padding: 10px;
    border: 2px solid #D33E43;
    margin-top: 10px;
}

#submit {
    background-color: #425BB5;
    color: #fff;
    padding: 10px 40px;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    width: 100%;
}

.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 .3s;
    -webkit-transition: all .3s;
}

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


/* Contact success */

.success-message {
    color: #333333;
    font-size: 15px;
    width: 100%;
    text-align: center;
    padding: 50px;
    border: 2px solid #d5d5d5;
    margin-top: 10px;
    display: none;
    background-color:#fff;


    -webkit-transition-delay: 1s; /* Safari */
    transition: opacity 750ms ease-in-out 1s;
}

.btn-action, .btn-action:focus, .btn-action:active, .btn-action:visited {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    font-size: 11px;
    background-color: #425BB5;
    padding: 20px 30px;
    font-weight: bold;
    border-radius: 0px;
    -webkit-transition: all 1s;
    -moz-transition: all 1s;
    -o-transition: all 1s;
}

.btn-action:hover {
    color:#fff;
    background-color: #314384;
}


.success-message h3 {
    line-height: initial;
}

.success-message.show {
    opacity: 1;
}

#contact-form {
    -webkit-transition-delay: 1s; /* Safari */
    transition-delay: 1s;
    transition: opacity 750ms ease-in-out 1s;
}

#contact-form.hide {
    opacity: 0;
}






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

@media (max-width: 991px) {
    .portfolio .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: 60px;
    }
    #home,
    .disply-table {
        height: 600px;
    }
    .about-border {
        width: 265px;
    }
    .portfolio .categories-grid .categories ul li {
        list-style: none;
        margin: 10px 0;
    }
}

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





@media (max-width: 1024px) {
    .navbar-header {
        float: none;
    }
    .navbar-left,.navbar-right {
        float: none !important;
    }
    .navbar-toggle {
        display: block;
    }
    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .navbar-fixed-top {
        top: 0;
        border-width: 0 0 1px;
    }
    .navbar-collapse.collapse {
        display: none!important;
    }
    .navbar-nav {
        float: none!important;
    }
    .navbar-nav>li {
        float: none;
    }
    .navbar-nav>li>a {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .collapse.in{
        display:block !important;
    }
}

.navbar-toggle {
    padding: 15px 10px;
}




/* service section
==================================================*/

#service {
    padding: 100px 0;
    background-color: #f3f3f3;
}

.promo {
    padding: 50px 0;
    background-color:#425BB5;
}

.promo h1, .promo h2 {
    color: #fff;
}

.faticon i {
    display: block;
    margin-bottom:30px;
    font-size: 50px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color:#425BB5;
}

.faticon {
    text-align: center;
}

.faticon h4 {
    margin-left:0;
}

.faticon h4:before {
    display: none;
}

.bbox {
    background-color: #fff;
    padding:50px;
    -webkit-transition: all 0.5s;
    -moz-transition:all 0.5s;
    -o-transition:all 0.5s;
}

.grey-bg {
    background-color: #f3f3f3;
}

.extra-services {
    list-style: none;
    padding:0px;
}

.extra-services h2 {
    color: #425BB5;
}

.extra-services img {
    display:none;
}

@media only screen and (min-width:1200px) {
    .extra-services img {
        display:block;
    }
    
    .extra-services i {
        display: none;
    }
}






/* Mobile Section
/* ========================================== */


#mobile {
    padding: 100px 0;
    background-color: #f3f3f3;
}

#mobile .bbox {
    min-height: 500px;
    margin-bottom:50px;
}

#mobile .bbox:hover {
    transform: scale(1.1);
}

#mobile .bbox img {
    border-radius: 50%;
}

#mobile .bbox ul {
    padding-top:25px;
    padding-left:0;
}

#mobile .bbox ul li {
    text-align: left;
    font-size: 14px;
    line-height: 28px;
}

@media only screen and (max-width:1440px) {
    #mobile .bbox {
        min-height: 540px;
    }
}

@media only screen and (max-width:1024px) {
}

.col-0 {
    padding: 0;
}



/* pop up code
/* ========================================== */


.modal {
    text-align: center;
    padding: 0!important;
}

.modal:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -4px;
}

.modal-dialog {
    display: inline-block;
    text-align: left;
    vertical-align: middle;
}


/* temporary fix for modal moving window to the right
/* ========================================== */

.modal-open {
    padding-right: 0 !important;
}


/* Pop up style
/* ========================================== */



/* Style for Venko specifically */

.modal-style .modal-content {
    border-radius: 2px;
}

.modal-style button.close {
    position: absolute;
    right:-10px;
    top:-10px;
    padding: 5px 12px;
    color:#fff;
    font-size:36px;
    opacity: 1;
    border-radius: 50%;
    background-color: #2D2A32;
}


/* Style for Welcome PopUp */

.modal-welcome {
    text-align: center;
}

.modal-welcome .modal-header {
    background-color: #2D2A32;
    color:#fff;
}

.modal-welcome .modal-footer {
    text-align: center;
    padding:20px 0;
}


/* Style Generaly */

.modal-header, .modal-footer {
    border:0px;
}

.modal-header, modal-footer, .modal-body {
    padding:20px 50px;
}

@media (min-width: 768px) {
    .modal-dialog {
        width:600px;
    }
}







/* Footer
/* ========================================== */

#footer {
    padding: 100px 0;
}



/* Home service section
==================================================*/

.home-service .bbox {
    min-height: 300px;
    margin-bottom: 50px;
    cursor:pointer;
    box-shadow: 4px 10px 20px rgba(0, 0, 0, 0.15);
    -webkit-transition: all 1s;
    -moz-transition:all 1s;
    -o-transition:all 1s;

}

.home-service .bbox p {
    color:#333;
}

.home-service .bbox:hover {
    transform: scale(1.1);
}


/* Portfolio Element Section
/* ========================================== */

/* NOT USED
.back-link {
padding:30px 0;
}

.back-link a, .back-link a:visited, .back-link a:active, .back-link a:focus {
font-weight: 700;
color: #333;
text-transform: uppercase;
-webkit-transition: all .5s;
-moz-transition:all .5s;
-o-transition:all .5s;
}

.back-link a:hover {
color: #DCDCDC;
}
*/



/* Portfolio page
/* ========================================== */

@media only screen and (min-width:768px) {
    .portfolio_item {
        height:550px;
    }
}



.btn-white, .btn-white:focus, .btn-white:active, .btn-white:visited  {
    border:2px solid #fff;
    padding: 20px 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    background-color: #fff;
}

.btn-white {
}

.btn-white:hover {
    background-color: transparent;
    color: #fff;
}


/* Cursor */

.txt-type > .txt {
    border-right: 0.2rem solid #d5d5d5;
}











