

/*
Author: XpeedStudio
Author URI: http://themeforest.net/user/XpeedStudio/portfolio
*/

/* Portrait tablets and medium desktops */
@media (min-width: 992px) and (max-width: 1199px) {
    body {
        font-size: 15px;
    }


}

/* Portrait tablets and small desktops */
@media  (max-width: 991px) {
    html {
        font-size: 90%;
    }
    .heading h1 {
        font-size: 30px;
    }
    .portfolio-item h2 {
        font-size: 14px;
        line-height: 1.4rem;
        padding: 15px 20px;
        word-wrap: break-word;
    }
    .item .details p {
        font-size: 16px;
    }

    .item .details small {
        font-size: 16px;
    }

    /* About Us responsive */
    .about-content h3 {
        font-size: 2rem;
        line-height: 2.5rem;
    }
    .about-content p {
        font-size: 1rem;
        line-height: 1.6rem;
    }
    .feature-item span {
        font-size: 15px;
    }

    /* Services responsive */
    .service-image {
        margin-top: 40px;
        margin-bottom: 40px;
    }
    .service-item {
        margin-bottom: 40px;
    }
    .services-left, .services-right {
        flex-direction: column;
        align-items: center;
    }
    .services-left .service-item:first-child,
    .services-right .service-item:first-child {
        margin-bottom: 30px;
    }
    .service .row {
        justify-content: center;
    }


}
/* Landscape phones and portrait tablets */
@media (max-width: 767px) {
    html {
        font-size: 80%;
    }
    .navbar-toggle {
        background-color: #ffffff;
        border:none;
    }
    .navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus {
        background-color: #333333;
        border:none;
    }
    .navbar-default .navbar-toggle:hover .icon-bar {
        background-color: #fff;
    }
    .navbar-default .navbar-collapse, .navbar-default .navbar-form {
        border-color:none;
        background: #00a5ff;
    }
    .brand-identity{
        text-align: center;
        margin-bottom:50px;
    }
    .home-content h1 {
        font-size: 35px;
    }
    .home-content h4 {
        font-size: 18px;
    }
    .contact-top h1 {
        text-align: center;
    }
    .contact-left-info {
        text-align: center;
    }
    .contact-btn{
        text-align: center;
    }
    .heading h1 {
        font-size: 20px;
    }

    .item .details p {
        font-size: 20px;
    }
    #quote-carousel .carousel-indicators li {
        width: 70px;
        height: 70px;
    }
    #quote-carousel .carousel-indicators .active {
        width: 90px;
        height: 90px;
    }

    .scrollup {
        width: 50px;
        height: 50px;
        line-height: 50px;
        bottom: 90px;
    }
    .navbar {
        background: #00a5ff;
        padding: 20px 0;
    }
    .navbar-brand img {
        height: 64px;
    }
    .navbar-brand .brand-name {
        font-size: 18px;
    }
    .navbar-brand { gap: 8px; }
    .navbar-default .navbar-collapse, .navbar-default .navbar-form {
        margin-top: 20px;
    }
    .owl-carousel .owl-item img {
        width:50%;
        margin: 0 auto;
    }

    /* About Us responsive for tablets */
    .about-content h3 {
        font-size: 1.8rem;
        line-height: 2.2rem;
        text-align: center;
    }
    .about-content p {
        font-size: 0.95rem;
        line-height: 1.5rem;
        text-align: center;
    }
    .about-features {
        text-align: center;
        margin-top: 30px;
    }
    .feature-item {
        justify-content: center;
        margin-bottom: 12px;
    }
    .feature-item span {
        font-size: 14px;
    }
    .about-image {
        margin-top: 40px;
    }

    /* Services responsive for tablets - stack everything vertically */
    .service .wrapper {
        flex-direction: column;
        align-items: center;
    }
    /* Ensure order: left services, image, right services */
    .service .wrapper > div:nth-child(1) { order: 1; }
    .service .wrapper > div:nth-child(2) { order: 2; }
    .service .wrapper > div:nth-child(3) { order: 3; }
    
    .service .col-md-3,
    .service .col-md-6 {
        width: 100%;
        margin-bottom: 40px;
        display: flex;
        justify-content: center;
    }
    
    .services-left,
    .services-right {
        width: 100%;
        max-width: 400px;
    }
    
    .service-image {
        margin: 40px 0;
        width: 100%;
    }
    
    .service-image img {
        max-width: 100%;
        width: 100%;
        height: auto;
    }
    
    .service-item {
        margin-bottom: 40px;
        width: 100%;
    }
    
    .service-item h5 {
        font-size: 1.3rem;
    }
    
    .service-item p {
        font-size: 1rem;
        line-height: 1.6rem;
    }
    
    .service-item i {
        height: 80px;
        width: 80px;
        line-height: 80px;
        font-size: 36px;
    }

}



/* Landscape phones and smaller */
@media (max-width: 480px) {
    html {
        font-size: 65%;
    }
    .brand-identity{
        text-align: center;
        margin-bottom:50px;
    }
    .home-content h1 {
        font-size: 22px;
    }
    .home-content h4 {
        font-size: 14px;
    }
    .home-content a {
        text-align: center;
    }
    .portfolio-item h2 {
        font-size: 15px;
        line-height: 1.4rem;
        padding: 18px 22px;
        word-wrap: break-word;
    }
    .btn {
        padding: 16px 28px;
    }
    .contact-top h1 {
        text-align: center;
    }
    .contact-left-info {
        text-align: center;
    }
    .copyright{
        margin-bottom: 25px;
    }
    .item .details p {
        font-size: 16px;
    }
    #quote-carousel .carousel-indicators li {
        width: 50px;
        height: 50px;
    }
    #quote-carousel .carousel-indicators .active {
        width: 70px;
        height: 70px;
    }
    #quote-carousel .carousel-control.left {
        left:0px;
    }
    #quote-carousel .carousel-control.right {
        right:0px;
    }
    #quote-carousel .carousel-control {
        top:30px;
    }
    .item .details p{
        font-size: 15px;
    }

    .item .details small{
        font-size: 15px;
    }

    .scrollup {
        width: 50px;
        height: 50px;
        line-height: 50px;
        bottom: 110px;
    }

    .owl-carousel .owl-item img {
        width:30%;
        margin: 0 auto;
    }
    .navbar {
        padding: 18px 0;
    }
    .navbar-brand img {
        height: 56px;
    }
    .navbar-brand .brand-name {
        font-size: 16px;
    }
    .navbar-brand { gap: 6px; }

    /* About Us responsive for mobile phones */
    .about-content h3 {
        font-size: 1.5rem;
        line-height: 1.8rem;
        text-align: center;
        margin-bottom: 20px;
    }
    .about-content p {
        font-size: 0.9rem;
        line-height: 1.4rem;
        text-align: center;
        margin-bottom: 15px;
    }
    .about-features {
        text-align: center;
        margin-top: 25px;
    }
    .feature-item {
        justify-content: center;
        margin-bottom: 10px;
    }
    .feature-item i {
        font-size: 16px;
        margin-right: 10px;
    }
    .feature-item span {
        font-size: 13px;
    }
    .about-image {
        margin-top: 30px;
    }
    .about-image img {
        max-width: 100%;
        height: auto;
    }

    /* Services responsive for mobile phones - stack everything vertically with large elements */
    .service .wrapper {
        flex-direction: column;
        align-items: center;
    }
    /* Ensure order: left services, image, right services */
    .service .wrapper > div:nth-child(1) { order: 1; }
    .service .wrapper > div:nth-child(2) { order: 2; }
    .service .wrapper > div:nth-child(3) { order: 3; }
    
    .service .col-md-3,
    .service .col-md-6 {
        width: 100%;
        margin-bottom: 50px;
        display: flex;
        justify-content: center;
    }
    
    .services-left,
    .services-right {
        width: 100%;
        max-width: 350px;
        flex-direction: column;
        align-items: center;
    }
    
    .service-image {
        margin: 50px 0;
        width: 100%;
        padding: 0;
    }
    
    .service-image img {
        max-width: 100%;
        width: 100%;
        height: auto;
        border-radius: 15px;
    }
    
    .service-item {
        margin-bottom: 50px;
        width: 100%;
    }
    
    .service-item h5 {
        font-size: 1.4rem;
    }
    
    .service-item p {
        font-size: 1.1rem;
        line-height: 1.7rem;
    }
    
    .service-item i {
        height: 90px;
        width: 90px;
        line-height: 90px;
        font-size: 40px;
    }

}



@media (max-width: 320px) {


    html {
        font-size: 60.5%;
    }
    .portfolio-item h2 {
        font-size: 13px;
        line-height: 1.3rem;
        padding: 12px 15px;
        word-wrap: break-word;
    }
    .brand-identity{
        text-align: center;
        margin-bottom:50px;
    }
    .home-content h1 {
        font-size: 25px;
    }
    .contact-top h1 {
        text-align: center;
    }
    .contact-left-info {
        text-align: center;
    }
    .copyright{
        margin-bottom: 25px;
    }
    #quote-carousel .carousel-indicators li {
        width: 20px;
        height: 20px;
    }
    #quote-carousel .carousel-indicators .active {
        width: 40px;
        height: 40px;
    }

    /* About Us responsive for very small screens */
    .about-content h3 {
        font-size: 1.3rem;
        line-height: 1.6rem;
        text-align: center;
        margin-bottom: 15px;
    }
    .about-content p {
        font-size: 0.85rem;
        line-height: 1.3rem;
        text-align: center;
        margin-bottom: 12px;
    }
    .about-features {
        text-align: center;
        margin-top: 20px;
    }
    .feature-item {
        justify-content: center;
        margin-bottom: 8px;
    }
    .feature-item i {
        font-size: 14px;
        margin-right: 8px;
    }
    .feature-item span {
        font-size: 12px;
    }
    .about-image {
        margin-top: 25px;
    }

    /* Services responsive for very small screens - stack everything vertically with large elements */
    .service .wrapper {
        flex-direction: column;
        align-items: center;
    }
    /* Ensure order: left services, image, right services */
    .service .wrapper > div:nth-child(1) { order: 1; }
    .service .wrapper > div:nth-child(2) { order: 2; }
    .service .wrapper > div:nth-child(3) { order: 3; }
    
    .service .col-md-3,
    .service .col-md-6 {
        width: 100%;
        margin-bottom: 40px;
        display: flex;
        justify-content: center;
    }
    
    .services-left,
    .services-right {
        width: 100%;
        max-width: 300px;
        flex-direction: column;
        align-items: center;
    }
    
    .service-image {
        margin: 40px 0;
        width: 100%;
        padding: 0;
    }
    
    .service-image img {
        max-width: 100%;
        width: 100%;
        height: auto;
        border-radius: 12px;
    }
    
    .service-item {
        margin-bottom: 40px;
        width: 100%;
    }
    
    .service-item h5 {
        font-size: 1.2rem;
    }
    
    .service-item p {
        font-size: 1rem;
        line-height: 1.6rem;
    }
    
    .service-item i {
        height: 80px;
        width: 80px;
        line-height: 80px;
        font-size: 36px;
    }

}

