
/*** Spinner Start ***/
/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}
/*** Spinner End ***/

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    transition: 0.5s;
    z-index: 99;
}

/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-xl-square {
    width: 66px;
    height: 66px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square,
.btn-xl-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn.btn-primary {
    color: var(--bs-white);
}

.btn.btn-primary:hover {
    background: var(--bs-secondary);
    border: 1px solid var(--bs-secondary);
}

.btn.btn-secondary {
    color: var(--bs-white);
   
}

.btn.btn-secondary:hover {
    background: var(--bs-primary);
    border: 1px solid var(--bs-primary);
}
/*** Topbar Start ***/

/*** Navbar ***/
.navbar-light .navbar-nav .nav-link {
    position: relative;
    margin-right: 25px;
    padding: 35px 0;
    color: var(--bs-white);
    font-size: 17px;
    font-weight: 400;
    outline: none;
    transition: .5s;
}

.navbar.navbar-light {
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--bs-dark);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

.navbar-light .navbar-brand img {
    max-height: 60px;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-brand img {
    max-height: 45px;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    vertical-align: middle;
    margin-left: 8px;
}

.dropdown .dropdown-menu a:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    background: var(--bs-light);
    transition: .5s;
    opacity: 1;
}

/* Restore original nav-link styles */
.navbar-nav .nav-link, .nav-link {
    color: #003366 !important;
    opacity: 1;
    cursor: pointer;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: #003366 !important;
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link:focus {
    font-weight: bold !important;
}

@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-item::after {
        content: "";
        position: absolute;
        bottom: 1px;
        left: 50%;
        transform: translateX(-50%);
        border: 10px solid;
        border-color: transparent transparent #003366 transparent;
        opacity: 0;
        transition: 0.5s;
    }
    .navbar-light .navbar-nav .nav-item::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: #003366;
        transition: .5s;
    }
    .sticky-top.navbar-light .navbar-nav .nav-item::before {
        bottom: 0;
    }
    .navbar-light .navbar-nav .nav-item:hover::before,
    .navbar-light .navbar-nav .nav-item.active::before {
        width: calc(100% - 2px);
        left: 1px;
    }

    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-light {
        position: relative;
        background: var(--bs-white);
    }

    .navbar.navbar-expand-lg .navbar-toggler {
        padding: 10px 20px;
        border: 1px solid var(--bs-primary);
        color: var(--bs-primary);
    }

    .navbar-light .navbar-collapse {
        margin-top: 15px;
        border-top: 1px solid rgba(0, 0, 0, .08);
    }

    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
        margin-left: 0;
        color: var(--bs-dark);
    }

    .navbar-light .navbar-brand img {
        max-height: 45px;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        border: 0;
        border-radius: 10px;
        transition: .5s;
        opacity: 0;
    }

    .navbar-light {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-top: 0;
        border-right: 0;
        border-bottom: 1px solid;
        border-left: 0;
        border-style: dotted;
        z-index: 999;
    }
    
    .sticky-top.navbar-light {
        position: fixed;
        background: var(--bs-light);
        border: none;
    }

    .navbar-light .navbar-nav .nav-item::after {
        content: "";
        position: absolute;
        bottom: 1px;
        left: 50%;
        transform: translateX(-50%);
        border: 10px solid;
        border-color: transparent transparent #003366 transparent;
        opacity: 0;
        transition: 0.5s;
    }

    .navbar-light .navbar-nav .nav-item:hover::after,
    .navbar-light .navbar-nav .nav-item.active::after {
        bottom: 1px;
        opacity: 1;
    }

    .navbar-light .navbar-nav .nav-item:hover::before,
    .navbar-light .navbar-nav .nav-item.active::before {
        width: calc(100% - 2px);
        left: 1px;
    }

    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }
}
/*** Carousel Hero Header Start ***/
.carousel-header {
    position: relative;
    overflow: hidden;
}

.carousel-indicators {
    display: none;
}

.carousel .carousel-control-prev,
.carousel .carousel-control-next {
    width: 0;
}

.carousel .carousel-control-prev .carousel-control-prev-icon,
.carousel .carousel-control-next .carousel-control-next-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 25px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-primary);
    transition: 0.5s;
}

.carousel .carousel-control-prev .carousel-control-prev-icon {
    left: 0;
    border-left: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 50px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 50px;

}

.carousel .carousel-control-next .carousel-control-next-icon {
    right: 0;
    border-right: 0;
    border-top-left-radius: 50px;
    border-top-right-radius: 0;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 0;
}

.carousel .carousel-control-prev .carousel-control-prev-icon:hover,
.carousel .carousel-control-next .carousel-control-next-icon:hover {
    background: var(--bs-secondary);
}

.carousel .carousel-inner .carousel-item {
    position: relative;
}

.carousel .carousel-inner .carousel-item .carousel-caption-1  {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding-top: 100px;
    display: flex;
    align-items: center;
    justify-content: end;
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, 0.5));
    background-size: cover;
}

.carousel-caption-1-content {
    text-align: end;
    padding-right: 100px;
}

.carousel-caption-1-content .carousel-caption-1-content-btn {
    display: flex;
    justify-content: end;
}

.carousel .carousel-inner .carousel-item .carousel-caption-2  {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding-top: 100px;
    display: flex;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, 0.5));
    background-size: cover;
}

.carousel-caption-2-content {
    text-align: start;
    padding-left: 100px;
}

.carousel-caption-2-content .carousel-caption-2-content-btn {
    display: flex;
    justify-content: start;
}

.carousel-video {
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    will-change: transform;
}
.carousel-caption-1, .carousel-caption-2 {
    position: relative;
    z-index: 2;
}


@media (max-width: 992px) {
    .carousel .carousel-inner .carousel-item {
        height: 700px;
        margin-top: -100px;
    }

    .carousel .carousel-inner .carousel-item img {
        height: 700px;
        object-fit: cover;
    }


    .carousel .carousel-inner .carousel-item .carousel-caption-1 {
        max-width: 100% !important;
        justify-content: center;
    }

    .carousel-caption-1-content {
        padding: 0 20px !important;
        text-align: center !important;
    }

    .carousel-caption-1-content .carousel-caption-1-content-btn {
        justify-content: center;
    }


    .carousel .carousel-inner .carousel-item .carousel-caption-2 {
        max-width: 100% !important;
        justify-content: center;
    }

    .carousel-caption-2-content {
        padding: 0 20px !important;
        text-align: center !important;
    }

    .carousel-caption-2-content .carousel-caption-2-content-btn {
        justify-content: center;
    }



    .carousel .carousel-control-prev .carousel-control-prev-icon,
    .carousel .carousel-control-next .carousel-control-next-icon {
        display: none;
    }
}

.modal .modal-header {
    height: 100px;
}

#searchModal .modal-content {
    background: rgba(255, 255, 255, .6);
}
/*** Carousel Hero Header End ***/

/*** Single Page Hero Header Start ***/
.bg-breadcrumb {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0, 20, 66, 0.7), rgba(0, 20, 66, 0.7)), url(../img/breadcrumb1.jpg);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 120px 0 60px 0;
    transition: 0.5s;
}

.bg-breadcrumb .breadcrumb {
    position: relative;
}

.bg-breadcrumb .breadcrumb .breadcrumb-item a {
    color: var(--bs-white);
}

@media (max-width: 992px) {
    .bg-breadcrumb {
        padding: 60px 0 60px 0;
    }
}
/*** Single Page Hero Header End ***/


/*** Features Start ***/
.feature .feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--bs-white);
    border-radius: 10px;
    transition: 0.5s;
}

.feature .feature-item:hover {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.feature .feature-item .feature-icon {
    width: 100px;
    height: 100px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-primary);
}

.feature .feature-item .feature-icon i {
    transition: 0.5s;
}

.feature .feature-item:hover .feature-icon i {
    transform: rotate(360deg);
}

.feature .feature-item a.btn {
    transition: 0.5s;
}

.feature .feature-item:hover a.btn:hover {
    color: var(--bs-primary) !important;
}
/*** Features End ***/

/*** About Start ***/
.about .about-img {
    position: relative;
    padding-bottom: 30px;
    margin-top: 30px; 
    margin-left: 30px;
}

.about .about-img::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 10px;
    top: -30px;
    right: 0;
    border-radius: 10px;
    background: var(--bs-secondary);

}

.about .about-img::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 100%;
    left: -30px;
    bottom: 30px;
    border-radius: 10px;
    background: var(--bs-secondary);
}

.about .about-img .about-exp {
    position: absolute;
    top: 0;
    left: 0;
    padding: 25px;
    font-size: 30px;
    font-weight: bold;
    background: var(--bs-secondary);
    color: var(--bs-white);
    border: 1px solid var(--bs-secondary);
    margin-top: -30px;
    margin-left: -30px;
    border-radius: 10px;
}
/*** About End ***/

/*** Service Start ***/
.service-item {
    position: relative;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.service-item::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    left: 0;
    bottom: 0;
    border-radius: 10px;
    background: var(--bs-primary);
    transition: 0.5s;
    z-index: 1;
}

.service-item:hover::after {
    width: 100%;
    height: 100%;
}

.service-item:hover .service-content,
.service-item:hover .service-btn {
    position: relative;
    z-index: 2;
}

.service-item .service-content a,
.service-item .service-content p {
    transition: 0.5s;
}

.service-item:hover .service-content a:hover {
    color: var(--bs-secondary);
}

.service-item:hover .service-content p {
    color: var(--bs-white);
} 

.service-item .service-btn {
    width: 80px;
    height: 80px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-primary);
    transition: 0.5s;
}

.service-item .service-btn i {
    transition: 0.5s;
}

.service-item:hover .service-btn {
    background: var(--bs-white);
}

.service-item:hover .service-btn i {
    transform: rotate(360deg);
    color: var(--bs-primary) !important;
}
/*** Service End ***/


/*** Counter Start ***/
.counter {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(25, 64, 154, 0.9), rgba(25, 64, 154, 1)), url(../img/fact-bg.jpg);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}

.counter .counter-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.counter .counter-item .counter-item-icon {
    width: 100px;
    height: 100px;
    border-radius: 50px;
    background: var(--bs-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/*** Counter End ***/


/*** Products Start ***/
.product .product-item {
    border: 1px solid rgba(196, 211, 211, 0.9);
    border-radius: 10px;
}

/*** Products End ***/

/*** Blog Start ***/
.blog .blog-item {
    border-radius: 10px;
    background: var(--bs-light);
    transition: 0.5s;
}

.blog .blog-item:hover {
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.2);
}

.blog .blog-item .blog-img {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.blog .blog-item .blog-img::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transition: 0.5s;
    z-index: 1;
}

.blog .blog-item .blog-img img {
    transition: 0.5s;
}

.blog .blog-item:hover .blog-img img {
    transform: scale(1.2);
}

.blog .blog-item:hover .blog-img::after {
    background: rgba(0, 209, 249, 0.2);
}

.blog .blog-item .blog-date {
    position: absolute;
    top: 25px;
    left: 25px;
    border-radius: 10px;
    background: var(--bs-primary);
    color: var(--bs-white);
    z-index: 2;
}

.blog .blog-item .blog-content a {
    transition: 0.5s;
}

.blog .blog-item:hover .blog-content a:hover {
    color: var(--bs-primary) !important;
}
/*** Blog End ***/

/*** Team Start ***/
.team .row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.team .team-item {
    position: relative;
    overflow: hidden;
    background: var(--bs-white);
    border: 1px solid var(--bs-secondary);
    border-radius: 10px;
    margin: 0 0 24px 0;
    padding: 0;
}
.team .team-item .team-inner {
    transition: 0.5s;
    border-radius: 10px;
    height: auto;
}
.team .team-item .team-inner .team-img {
    position: relative;
    z-index: 2;
    width: 100%;
    aspect-ratio: auto;
    overflow: hidden;
    border-radius: 10px;
    height: auto;
}
.team .team-item .team-inner .team-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    aspect-ratio: auto;
}

.team .team-item .team-inner .team-img::after {
    content: "";
    width: 100%;
    height: 0;
    position: absolute;
    top: 0;
    left: 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background: rgba(0, 209, 249, 0.2);
    transition: 0.5s;
    z-index: 3;
}

.team .team-item:hover .team-inner .team-img::after {
    height: 100%;
}

.team .team-item .team-inner .team-img .team-share {
    position: absolute;
    left: 10px;
    bottom: 10px;
    transition: 0.5s;
    z-index: 2;
}

.team .team-item:hover .team-inner .team-img .team-share {
    opacity: 0;
}

.team .team-item .team-inner .team-img .team-icon {
    position: absolute;
    bottom: 0;
    left: -100%;
    border-bottom-left-radius: 0 !important; 
    border-top-left-radius: 0 !important;
    display: inline-flex;
    background: var(--bs-primary);
    transition: 0.5s;
    z-index: 4;
}

.team .team-item:hover .team-inner .team-img .team-icon { 
    left: -25px; 
}
/*** Team End ***/


/*** testimonial Start ***/
.testimonial .owl-nav .owl-prev {
    position: absolute;
    top: -58px;
    right: 0;
    background: var(--bs-primary);
    color: var(--bs-white);
    padding: 5px 30px;
    border-radius: 30px;
    transition: 0.5s;
}

.testimonial .owl-nav .owl-prev:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

.testimonial .owl-nav .owl-next {
    position: absolute;
    top: -58px;
    right: 88px;
    background: var(--bs-primary);
    color: var(--bs-white);
    padding: 5px 30px;
    border-radius: 30px;
    transition: 0.5s;
}

.testimonial .owl-nav .owl-next:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

.testimonial-carousel .owl-dots {
    display: flex;
    justify-content: center;
    margin-left: 20px;
    margin-top: 20px;
}

.testimonial-carousel .owl-dots .owl-dot {
    width: 20px;
    height: 20px;
    border-radius: 20px;
    margin-right: 15px;
    border: 1px solid var(--bs-secondary);
    background: var(--bs-primary);
    transition: 0.5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 20px;
    height: 20px;
    border-radius: 20px;
    border: 1px solid var(--bs-primary);
    background: var(--bs-secondary) !important;
    transition: 0.5s;
}

.testimonial-carousel .owl-dots .owl-dot span {
    position: relative;
    margin-top: 50%;
    margin-left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.testimonial-carousel .owl-dots .owl-dot span::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 8px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bs-white);
}

@media (max-width: 992px) {
    .owl-carousel.testimonial-carousel {
        padding-top: 30px;
    }

    .testimonial .owl-nav .owl-prev,
    .testimonial .owl-nav .owl-next {
        top: -30px;
    }
}
/*** testimonial End ***/

/*** Footer Start ***/
.footer {
    background: var(--bs-dark);
}

.footer .footer-item a {
    line-height: 35px;
    color: var(--bs-body);
    transition: 0.5s;
}

.footer .footer-item p {
    line-height: 35px;
}

.footer .footer-item a:hover {
    letter-spacing: 1px;
    color: var(--bs-primary);
}

.footer .footer-item .footer-btn a,
.footer .footer-item .footer-btn a i {
    transition: 0.5s;
}

.footer .footer-item .footer-btn a:hover {
    background: var(--bs-white);
}

.footer .footer-item .footer-btn a:hover i {
    color: var(--bs-primary) !important;
}
/*** Footer End ***/

/*** copyright Start ***/
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bs-dark);
}
/*** copyright end ***/

/* ===== MOBILE RESPONSIVE RULES ===== */

/* General mobile optimizations */
@media (max-width: 768px) {
    /* Typography adjustments */
    .display-1 { font-size: 2.5rem !important; }
    .display-2 { font-size: 2rem !important; }
    .display-3 { font-size: 1.75rem !important; }
    .display-4 { font-size: 1.5rem !important; }
    
    /* Container padding */
    .container { padding-left: 15px; padding-right: 15px; }
    
    /* Button adjustments */
    .btn { font-size: 14px; padding: 8px 16px; }
    .btn-lg { font-size: 16px; padding: 12px 24px; }
    
    /* Spacing adjustments */
    .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    .py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
    .py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
    
    .mb-5 { margin-bottom: 2rem !important; }
    .mb-4 { margin-bottom: 1.5rem !important; }
    .mb-3 { margin-bottom: 1rem !important; }
}

/* Footer subscription form mobile optimization */
@media (max-width: 768px) {
    .footer .d-flex.align-items-center.justify-content-end {
        flex-direction: column;
        align-items: center !important;
        justify-content: center !important;
        gap: 15px;
    }
    
    .footer .me-3.position-relative {
        width: 100%;
        max-width: 350px;
    }
    
    .footer input[type="email"] {
        width: 100% !important;
        padding-right: 100px !important;
        font-size: 14px;
    }
    
    .footer .btn-secondary.rounded-pill {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .footer .btn-secondary.rounded-circle {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* Carousel mobile optimizations */
@media (max-width: 768px) {
    .carousel .carousel-inner .carousel-item {
        height: 500px;
        margin-top: -80px;
    }
    
    .carousel .carousel-inner .carousel-item img,
    .carousel .carousel-inner .carousel-item video {
        height: 500px;
        object-fit: cover;
    }
    
    .carousel-caption-1-content h1 {
        font-size: 1.5rem !important;
        line-height: 1.3;
    }
    
    .carousel-caption-1-content p {
        font-size: 1rem !important;
        line-height: 1.4;
    }
    
    .carousel-caption-1-content .btn {
        font-size: 14px;
        padding: 10px 20px;
        width: auto;
        max-width: 200px;
    }
}

/* Feature section mobile optimization */
@media (max-width: 768px) {
    .feature .feature-item {
        margin-bottom: 20px;
        padding: 20px 15px;
    }
    
    .feature .feature-item .feature-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }
    
    .feature .feature-item .feature-icon i {
        font-size: 2rem;
    }
    
    .feature .feature-item h4 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .feature .feature-item p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* About section mobile optimization */
@media (max-width: 768px) {
    .about .about-img {
        margin: 15px 0;
        padding-bottom: 15px;
    }
    
    .about .about-img::before,
    .about .about-img::after {
        display: none;
    }
    
    .about .about-img .about-exp {
        position: relative;
        margin: 0 0 20px 0;
        padding: 15px;
        font-size: 1.5rem;
        text-align: center;
    }
    
    .about .about-item h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .about .about-item p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .about .bg-light.rounded.p-4 {
        padding: 15px !important;
        margin-bottom: 15px;
    }
    
    .about .bg-light.rounded.p-4 .h4 {
        font-size: 1.1rem;
    }
    
    .about .bg-light.rounded.p-4 p {
        font-size: 0.9rem;
    }
}

/* Gallery grid mobile optimization */
@media (max-width: 768px) {
    .top-grid .row.g-4 {
        gap: 15px !important;
    }
    
    .top-grid .col-md-3 {
        margin-bottom: 15px;
    }
    
    .top-grid img {
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
}

/* Contact form mobile optimization */
@media (max-width: 768px) {
    .contact form .form-floating {
        margin-bottom: 15px;
    }
    
    .contact form .form-floating input,
    .contact form .form-floating textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .contact form .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .contact .d-inline-flex.rounded.bg-white {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px !important;
    }
    
    .contact .d-inline-flex.rounded.bg-white i {
        margin-bottom: 10px;
        margin-right: 0 !important;
    }
    
    .contact .map-container iframe {
        height: 300px;
    }
}

/* Team section mobile optimization */
@media (max-width: 768px) {
    .team .team-item {
        margin-bottom: 20px;
    }
    
    .team .team-item .team-inner .team-img {
        height: 250px;
    }
    
    .team .team-item .team-inner .team-img img {
        height: 100%;
        object-fit: cover;
    }
}

/* Testimonial mobile optimization */
@media (max-width: 768px) {
    .testimonial .owl-nav .owl-prev,
    .testimonial .owl-nav .owl-next {
        position: relative;
        top: 0;
        margin: 10px 5px;
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .testimonial .owl-nav {
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }
}

/* Blog section mobile optimization */
@media (max-width: 768px) {
    .blog .blog-item {
        margin-bottom: 20px;
    }
    
    .blog .blog-item .blog-content {
        padding: 15px;
    }
    
    .blog .blog-item .blog-content h4 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .blog .blog-item .blog-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Service section mobile optimization */
@media (max-width: 768px) {
    .service-item {
        margin-bottom: 20px;
    }
    
    .service-item .service-content {
        padding: 20px 15px;
    }
    
    .service-item .service-content h4 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .service-item .service-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Counter section mobile optimization */
@media (max-width: 768px) {
    .counter .counter-item {
        margin-bottom: 20px;
        text-align: center;
    }
    
    .counter .counter-item .counter-item-icon {
        width: 80px;
        height: 80px;
        margin: 0 auto 15px auto;
    }
    
    .counter .counter-item .counter-item-icon i {
        font-size: 2rem;
    }
}

/* Product section mobile optimization */
@media (max-width: 768px) {
    .product .product-item {
        margin-bottom: 20px;
    }
    
    .product .product-item .product-content {
        padding: 15px;
    }
    
    .product .product-item .product-content h4 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .product .product-item .product-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Navigation mobile optimization */
@media (max-width: 768px) {
    .navbar-brand img {
        max-height: 40px;
    }
    
    .navbar-toggler {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        border-radius: 8px;
        margin-top: 10px;
        padding: 15px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        margin: 0;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Footer mobile optimization */
@media (max-width: 768px) {
    .footer .footer-item {
        margin-bottom: 20px;
        text-align: center;
    }
    
    .footer .footer-item h4,
    .footer .footer-item h5 {
        text-align: center;
    }
    
    .footer .footer-item p,
    .footer .footer-item a {
        text-align: center;
    }
}

/* Partners section mobile optimization */
@media (max-width: 768px) {
    .container-fluid.py-3 .container.py-3 {
        padding: 1rem 15px;
    }
    
    .container-fluid.py-3 .container.py-3 h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .container-fluid.py-3 .container.py-3 img {
        max-height: 100px;
    }
}

/* Gtranslate widget mobile optimization */
@media (max-width: 768px) {
    .gtranslate-toggle {
        font-size: 14px;
    }
    
    .gtranslate_wrapper {
        position: fixed !important;
        top: 60px !important;
        right: 10px !important;
        left: auto !important;
        bottom: auto !important;
        margin: 0 !important;
        z-index: 10000 !important;
        max-width: 200px;
    }
}

/* General mobile improvements */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        line-height: 1.5;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .row {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .col-md-3,
    .col-md-4,
    .col-md-6,
    .col-md-12 {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    /* Ensure images are responsive */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Improve touch targets */
    a, button {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-link {
        min-height: auto;
        padding: 12px 15px;
    }
    
    /* Fix navbar on mobile */
    .navbar {
        padding: 10px 15px;
    }
    
    .navbar-brand img {
        max-height: 40px;
    }
    
    .navbar-toggler {
        padding: 8px 12px;
    }
    
    /* Fix carousel on mobile */
    .carousel-item {
        min-height: 400px;
    }
    
    .carousel-item img {
        min-height: 400px;
        object-fit: cover;
    }
    
    /* Fix spacing issues */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .my-5 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }
    
    /* Fix gallery grid on mobile */
    .top-grid .col-md-3 {
        width: 50%;
        margin-bottom: 10px;
    }
    
    .top-grid img {
        height: 150px !important;
    }
}

/* Small phones (iPhone SE, etc.) */
@media (max-width: 375px) {
    .display-4 { font-size: 1.25rem !important; }
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    
    .top-grid .col-md-3 {
        width: 100%;
    }
    
    .btn {
        font-size: 12px;
        padding: 8px 12px;
    }
}
    .footer .footer-item {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .footer .footer-item h4,
    .footer .footer-item h5 {
        margin-bottom: 15px;
    }
    
    .footer .footer-item p,
    .footer .footer-item a {
        line-height: 1.6;
    }
    
    .copyright .row {
        text-align: center;
    }
    
    .copyright .col-md-6:first-child {
        margin-bottom: 10px;
    }
}

/* Back to top button mobile optimization */
@media (max-width: 768px) {
    .back-to-top {
        right: 20px;
        bottom: 20px;
        width: 45px;
        height: 45px;
    }
    
    .back-to-top i {
        font-size: 16px;
    }
}

/* Form elements mobile optimization */
@media (max-width: 768px) {
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-floating > label {
        font-size: 14px;
    }
    
    .form-floating > .form-control:focus ~ label,
    .form-floating > .form-control:not(:placeholder-shown) ~ label {
        font-size: 12px;
    }
}

/* Image optimization for mobile */
@media (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
    }
    
    .img-fluid {
        width: 100%;
        height: auto;
    }
}

/* Spacing utilities for mobile */
@media (max-width: 768px) {
    .wow {
        animation-duration: 0.8s !important;
    }
    
    .fadeInUp,
    .fadeInLeft,
    .fadeInRight {
        animation-delay: 0.1s !important;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .py-5 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
    .py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
    
    .display-1 { font-size: 2rem !important; }
    .display-2 { font-size: 1.75rem !important; }
    .display-3 { font-size: 1.5rem !important; }
    .display-4 { font-size: 1.25rem !important; }
    
    .btn { font-size: 13px; padding: 6px 12px; }
    .btn-lg { font-size: 14px; padding: 10px 18px; }
}

/* Landscape orientation mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .carousel .carousel-inner .carousel-item {
        height: 400px;
    }
    
    .carousel .carousel-inner .carousel-item img,
    .carousel .carousel-inner .carousel-item video {
        height: 400px;
    }
    
    .py-5 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
    .py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar-brand img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .feature-item:hover,
    .service-item:hover,
    .blog-item:hover,
    .team-item:hover {
        transform: none;
        box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    }
    
    .carousel .carousel-control-prev .carousel-control-prev-icon,
    .carousel .carousel-control-next .carousel-control-next-icon {
        padding: 20px 20px;
    }
}

/* Footer subscription form specific optimizations */
.footer-subscription-container {
    position: relative;
}

@media (max-width: 768px) {
    .footer-subscription-container {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .footer-subscription-container input[type="email"] {
        width: 100% !important;
        padding-right: 100px !important;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .footer-subscription-container .btn {
        font-size: 12px;
        padding: 8px 16px;
        white-space: nowrap;
    }
}

@media (max-width: 576px) {
    .footer-subscription-container {
        max-width: 300px;
    }
    
    .footer-subscription-container input[type="email"] {
        padding-right: 90px !important;
        font-size: 14px;
    }
    
    .footer-subscription-container .btn {
        font-size: 11px;
        padding: 6px 12px;
    }
}

/* Additional mobile optimizations for better touch experience */
@media (max-width: 768px) {
    /* Improve touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .navbar-toggler {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better spacing for mobile */
    .row.g-4 > [class*="col-"] {
        margin-bottom: 1rem;
    }
    
    /* Improve form readability */
    .form-floating > .form-control {
        padding-top: 1.625rem;
        padding-bottom: 0.625rem;
    }
    
    /* Better image display */
    .img-fluid {
        border-radius: 8px;
    }
    
    /* Improve navigation */
    .navbar-nav .nav-link {
        padding: 15px 0;
        font-size: 16px;
    }
    
    /* Better footer layout */
    .footer .row > [class*="col-"] {
        margin-bottom: 2rem;
    }
    
    .footer .row > [class*="col-"]:last-child {
        margin-bottom: 0;
    }
}

/* Landscape mobile optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .carousel .carousel-inner .carousel-item {
        height: 350px;
    }
    
    .carousel .carousel-inner .carousel-item img,
    .carousel .carousel-inner .carousel-item video {
        height: 350px;
    }
    
    .navbar-collapse {
        max-height: 60vh;
        overflow-y: auto;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border-width: 2px;
    }
    
    .navbar-light .navbar-nav .nav-link {
        border-bottom: 1px solid;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .wow,
    .fadeInUp,
    .fadeInLeft,
    .fadeInRight {
        animation: none !important;
        transition: none !important;
    }
    
    .btn,
    .feature-item,
    .service-item,
    .blog-item,
    .team-item {
        transition: none !important;
    }
}


