/*
* ----------------------------------------------------------------------------------------
Author       : Nilesh Mahajan
Template Name: Dezine - One Page Portfolio Template
Version      : 1.0
* ----------------------------------------------------------------------------------------
*/


/* Medium Layout: 1280px. */
@media only screen and (min-width: 992px) and (max-width: 1280px) {}

@media (max-width: 992px) {
    body {
        padding: 10px 0 0;
    }
    .navbar-default {
        padding: 0;
        top: 10px;
    }
    .navbar-default .navbar-collapse {
        text-align: right;
    }
    .navbar-nav.nav-center {
        width: auto;
    }
    .navbar>.container .navbar-brand, 
    .navbar>.container-fluid .navbar-brand {
        margin-left: 0;
    }
    #banner h1 {
        margin: 40px 0 80px;
    }
    #about .about-me {
        margin-top: 50px;
    }

    #education .timeline,
    #experience .timeline {
        padding-left: 40px;
    }
    #education .timeline:before,
    #experience .timeline:before {
        right: inherit;
        left: 10px;
    }

    #education .timeline .timeline-item,
    #experience .timeline .timeline-item {
        float: none;
        width: 100%;
    }

    #education .timeline .timeline-item:nth-child(even),
    #experience .timeline .timeline-item:nth-child(even) {
        float: none;
    }

    #education .timeline .timeline-item:before,
    #experience .timeline .timeline-item:before {
        right: inherit;
        left: -15px;
        border-left: none;
        border-top: 15px solid transparent;
        border-bottom: 15px solid transparent;
        border-right: 15px solid #f1f1f1;
    }

    #education .timeline .timeline-item:after,
    #experience .timeline .timeline-item:after {
        right: inherit;
        left: -37px;
    }

    #portfolio .filter-navigation {
        margin: 30px 0;
        overflow: hidden;
    }
    #portfolio .filter-navigation li {
        display: inline-block;
        margin: 0 10px 10px;
    }

    #blog .blog-left {
        margin-bottom: 50px;
    }

    #testimonial .testimonial-box {
        margin-bottom: 50px;
    }

    #contact h2,
    #contact .address h4,
    #contact .address p,
    #contact .address span {
        color: #333;
    }
    #contact h2:after,
    #contact hr{
        background-color: #333;
    }

    #contact form {
        margin-top: 50px;
    }

    #contact:before {
        display: none;
    }
    footer .copyright {
        text-align: center;
        margin: 20px 0 0;
    }
    footer .navbar-nav>li {
        float: none;
        display: inline-block;
    }
    footer .navbar-nav.nav-center{
        width: 100%;
    }
    footer .navbar-nav.nav-center {
        text-align: center;
        margin: 0 0 20px;
    }
}


/* Tablet Layout: 768px. */

@media only screen and (min-width: 768px) and (max-width: 992px) {
    #banner h1 {
        font-size: 36px;
    }
    #banner p{
        font-size: 16px;
    }
    section h2 {
        font-size: 30px;
    }
    #about p {
        font-size: 16px;
    }
    #education .timeline h3,
    #experience .timeline h3 {
        font-size: 18px;
    }
    #education .timeline h3 span,
    #experience .timeline h3 span {
        font-size: 24px;
    }
}


/* Mobile Layout: 320px. */

@media only screen and (max-width: 767px) {
    body{
        padding: 0;
    }
    .container {
        overflow: hidden;
    }
    section h2 {
        font-size: 28px;
    }

    #services .services-item h3 {
        font-size: 20px;
    }
    #services .services-item h3 span {
        font-size: 28px;
        margin-right: 10px;
    }
    .navbar-default .navbar-collapse {
        text-align: center;
        padding: 0 0 50px;
    }
    .navbar-default.header-scroll {
        padding:  0;
    }
    .navbar-brand {
        width: auto;
        padding: 15px 20px;
    }
    .navbar-toggle {
        margin: 20px 20px 0 0;
    }
    .navbar-nav.nav-center {
        width: 100%;
        text-align: center;
        padding: 20px 0;
    }
    #banner h1 {
        margin: 50px 0;
        font-size: 32px;
    }
    #banner button {
        margin-bottom: 20px;
    }
    #services .services-tiles {
        padding: 20px;
    }
    #portfolio .portfolio-left {
        float: none;
        overflow: hidden;
    }
    #portfolio .grid-item {
        height: auto;
    }
    #portfolio .thumbnail-box {
        height: auto;
    }
    #portfolio .thumbnail-box:hover span.fa {
        top: 50%;
        font-size: 16px;
        width: 18px;
        margin-top: -10px;
    }
    #clients .testimonial-box .client-pic {
        max-height: 500px;
    }
}


/* Wide Mobile Layout: 480px. */
@media only screen and (min-width: 320px) and (max-width: 568px) {
    #banner .btn-primary {
        margin-bottom: 30px;
    }
}