@media only screen and (max-width: 349px) {
    .video_sec iframe, .video_sec video {
        height: 150px !important;
    }
}
@media only screen and (min-width: 350px) and (max-width: 399px) {
    .video_sec iframe, .video_sec video {
        height: 180px !important;
    }
}
@media only screen and (min-width: 400px) and (max-width: 767px) {
    .video_sec iframe, .video_sec video {
        height: 200px !important;
    }
}

@media only screen and (min-width: 300px) and (max-width: 767px) {
    h2 {
        font-size: 35px;
        line-height: 45px;
        font-weight: 600
    }

    .navbar-toggle .icon-bar {
        background: #f8f8f8
    }

    .navbar-toggle {
        margin-right: 0;
        margin-top: -45px
    }

    .navbar {
        min-height: 0
    }

    .navigation-menu .navbar-nav li a {
        padding: 11px 15px;
        color: #303030
    }

    .navigation-menu .navbar-nav .active {
        color: #00008b
    }

    .navigation-menu .navbar-nav li a:hover {
        color: #737373
    }

    .nav-bg .navigation-menu .navbar-nav li a:hover {
        color: #737373
    }

    .nav-bg .navigation-menu .navbar-nav li a {
        padding: 11px 15px
    }

    .navbar-fixed-bottom .navbar-collapse, .navbar-fixed-top .navbar-collapse {
        max-height: 420px
    }

    .navbar-collapse {
        background: #fff
    }

    .nav-bg .navbar-collapse {
        background: #fff
    }

    .custom-navbar .nav li.active > a {
        border-bottom: 2px solid transparent !important;
        color: #636363
    }

    .home-text {
        top: 45%
    }

    .profile-pic img {
        padding: 0;
        margin: 0 auto;
        margin-bottom: 16px
    }

    .home-text h1 {
        font-size: 2.2em;
        font-weight: 500;
        line-height: 25px
    }

    .home-text h2 {
        font-size: 1.8em;
        margin-bottom: 0
    }

    .home-text h3 {
        font-size: 1.1em
    }

    .arrow {
        font-size: 2em;
        bottom: 5px;
        margin: auto;
        width: 30px;
        height: 30px
    }

    .lift {
        bottom: 20px
    }

    #about {
        padding: 40px 0 50px
    }

    #about h2 {
        margin-top: 15px;
    }

    .facts {
        float: left
    }

    .numscroller {
        font-size: 25px;
        font-weight: 600
    }

    .count-name-intro {
        font-size: 14px;
        font-weight: 600
    }

    #skills {
        padding: 70px 0 30px
    }

    .progress-box {
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 50px
    }

    #portfolio {
        padding: 70px 0 60px
    }

    .filter-btn {
        margin-top: 30px;
        margin-bottom: 0
    }

    .filter {
        margin: 8px 5px;
        font-weight: 600
    }

    .grid figure {
        padding: 0;
        margin: 0;
        min-width: 100%;
        max-width: 100%;
        max-height: 100%;
        width: 48%
    }

    #services {
        padding: 70px 0 30px
    }

    #services h2 {
        margin-bottom: 50px
    }

    .services-item {
        padding: 0;
        margin-bottom: 40px
    }

    #hire {
        padding: 65px 0 70px
    }

    #hire .btn {
        margin-top: 30px;
        float: left
    }

    .btn-lg {
        padding: 18px 48px;
        font-size: 18px
    }
    .flex-control-paging li a {
        margin-top: -100px;
        height: 8px;
        width: 8px
    }
    .blog-item {
        margin-bottom: 0
    }

    .blog-item .blog-img {
        margin-bottom: 20px;
        margin-top: 35px
    }

    .post-container {
        margin: 0 auto;
        width: 100%;
        padding: 5rem 1.3rem
    }

    .social-icons-footer li a {
        width: 45px
    }

    #demo h1 {
        margin: 50px 0 10px
    }

    .demo-boxes img {
        max-width: 90%;
        max-height: 90%
    }

    #demo .demo-boxes a > h4 {
        margin-top: 5px;
        margin-bottom: 35px;
        font-size: 16px
    }

    #demo h4 {
        margin-bottom: 50px
    }

    #sales-process .item {
        min-height: auto;
        padding: 0 30px 10px;
    }
    .banner-modal .text, .banner-modal .btns {
        height: auto;
        padding: 20px 30px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .nav-bg .navigation-menu .navbar-nav li button,
    .nav-bg .navigation-menu .navbar-nav li a {
        padding: 20px 7px !important;
    }
    .navigation-menu .navbar-nav li a,
    .navigation-menu .navbar-nav li button {
        padding: 20px 7px !important;
    }
}
@media only screen and (min-width: 768px) and (max-width: 1280px) {
    .logo {
        -webkit-transition: all 0.3s ease-out;
        transition: all 0.3s ease-out
    }

    .navigation-menu .navbar-nav li a,
    .navigation-menu .navbar-nav li button {
        padding: 30px 11px;
        font-size: 12px
    }

    .nav-bg .navigation-menu .navbar-nav li button,
    .nav-bg .navigation-menu .navbar-nav li a {
        padding: 30px 11px;
        font-size: 12px
    }

    .nav-bg .logo {
        padding-top: 16px
    }

    .description {
        max-width: 100%
    }

    .count-item {
        margin-bottom: 20px
    }
}

@media only screen and (min-width: 766px) and (max-width: 1024px) {
    h2 {
        font-size: 2.3em
    }

    h4 {
        font-weight: 600;
        margin-bottom: 16px
    }

    p {
        font-size: 14px
    }

    .btn {
        font-size: 14px
    }

    .btn-lg {
        padding: 18px 48px;
        font-size: 16px
    }

    .logo a, .phone-nav a {
        font-size: .9em
    }

    .navigation-menu .navbar-nav li a,
    .navigation-menu .navbar-nav li button {
        font-size: .7em
    }

    .nav-bg .logo {
        padding-top: 3px;
        -webkit-transition: all 0.3s ease-out;
        transition: all 0.3s ease-out
    }

    .nav-bg .navigation-menu .navbar-nav li a,
    .nav-bg .navigation-menu .navbar-nav li button {
        color: #131313;
        padding: 18px 11px;
        -webkit-transition: .3s;
        transition: .3s;
        font-size: .8em
    }

    .home-text h1 {
        font-size: 2.6em;
        line-height: 50px;
        margin-top: 20px
    }

    .home-text h3 {
        font-size: 1.3em
    }

    .arrow {
        font-size: 2em;
        width: 40px;
        height: 40px;
        bottom: 30px
    }

    .lift {
        bottom: 44px
    }

    .facts {
        float: right
    }

    .numscroller {
        font-size: 1.8em;
        font-weight: 600;
        margin-bottom: 0
    }

    .count-name-intro {
        font-size: 12px;
        font-weight: 600
    }

    .filter {
        font-size: .9em;
        font-weight: 600
    }

    .grid figure {
        margin: 2px;
        padding: 0;
        min-width: 90%;
        max-width: 90%;
        max-height: 90%;
        width: 48%
    }

    .services-list .col-md-3 {
        padding: 0;
        margin-right: 75px
    }
}

@media only screen and (min-width: 768px) {
    .desktop-hidden {
        display: none
    }

    .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
    }

    .custom-navbar {
        padding: 0;
        background: 0 0
    }

    .custom-navbar.top-nav-collapse {
        padding: 0;
        background: #fff;
        border-bottom: 1px solid #f3f3f3;
        -webkit-transition: all .8s;
        transition: all .8s
    }

    #header .site-heading, #header .post-heading, #header .page-heading {
        padding: 150px 0
    }

    #header .site-heading h1, #header .page-heading h1 {
        font-size: 80px
    }

    #header .post-heading h1 {
        font-size: 55px
    }

    #header .post-heading .subheading {
        font-size: 30px
    }
}

@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
    }

    .certificate img {
        height: 150px;
        object-position: 50% 0;
        object-fit: cover
    }
}

@media only screen and (max-width: 991px) {
    .certificate img {
        max-width: 50%
    }

    #testimonial img {
        max-width: 200px
    }

    #testimonial .flexslider li {
        text-align: center;
        padding-top: 10px
    }

    .flex-control-nav {
        margin-left: 0
    }

    #social_propagation img {
        margin-bottom: 10px;
        height: 200px
    }

    .nav-bg .navbar-toggle .icon-bar {
        background: #303030
    }

    #home{height:40vh}

    .profile-pic img {
        height: 40vh
    }

    .headline {
        /*top: 8%*/
        top: 60px;
    }

    .main_footer .footer_block_title {
        padding-top: 25px;
        padding-bottom: 12px
    }

    .social_wg a {
        margin: 0 10px 0 0
    }

    .qub_list li:after {
        display: none
    }

    .main_footer .footer_block {
        text-align: center
    }

    .personal_banner {
        display: none
    }
    .video_sec, #social_propagation {
        padding-bottom: 40px;
    }
    #short_video, #open_house {
        padding-top: 40px;
    }
    .services, #services, #sales-process, #testimonial, #blog, #contact {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    .modal-dialog {
        width: 600px;
    }
    .personal_banner .text {
        max-width: 300px;
        bottom: 12px
    }

    .personal_banner .phone {
        right: 25px;
        bottom: 30px
    }

    .personal_banner .phone a {
        font-size: 1.3em
    }

    .personal_banner .text h4 {
        font-size: 1.5em
    }

    .logo a {
        letter-spacing: 1px
    }

    .certificate img {
        height: 120px;
        object-position: 50% 0;
        object-fit: cover
    }
    .video_sec iframe, .video_sec video {
        height: 200px !important;
    }
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
    .personal_banner .text {
        max-width: 400px;
        bottom: 10px
    }

    .certificate img {
        height: 125px;
        object-position: 50% 0;
        object-fit: cover
    }
    .video_sec iframe, .video_sec video {
        height: 220px !important;
    }
    .modal-dialog {
        width: 650px;
    }
}

@media screen and (min-width: 1200px) and (max-width: 1399px) {
    .modal-dialog {
        width: 700px;
    }
}
@media screen and (min-width: 1400px) and (max-width: 1599px) {
    .modal-dialog {
        width: 50vw;
    }
}
@media screen and (min-width: 1600px)  {
    .modal-dialog {
        width: 45vw;
    }
    .home-text h1 {
        margin-top: 30px
    }
}
@media screen and (min-width: 768px) and (max-width: 1399px) {
    .profile-pic {
        top: 20px
    }
}

@media screen and (max-width: 299px) {
    .home-text h1 {
        line-height: 30px
    }
}

@media screen and (max-width: 480px) {
    .home-text h1 {
        font-size: 1.1em
    }

    .home-text h2 {
        font-size: .9em;
        line-height: 20px
    }

    .home-text h3 {
        font-size: .6em;
        margin-top: 6px
    }
}

@media screen and (max-height: 500px) {
    #home {
        height: 100vh
    }

    .profile-pic {
        top: 25px
    }

    .profile-pic img {
        height: 100vh
    }
}

