/********** Template CSS **********/
:root {
    --primary: #EB1616;
    --secondary: #191C24;
    --light: #6C7293;
    --dark: #000000;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** 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;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 40px 0;
    color: var(--light);
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (max-width: 991.98px) {

    .navbar .navbar-nav .nav-link,
    .navbar.shadow-sm .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 8px;
        border-top: 1px solid var(--light);
    }
}

@media (min-width: 992px) {
    .navbar.shadow-sm .navbar-nav .nav-link {
        padding: 20px 0;
    }

    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .85);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }

    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .85), rgba(0, 0, 0, .85)), url(../images/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}


/*** Service ***/
.service-item .btn {
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 50px;
    height: 50px;
    color: var(--primary);
    background: var(--dark);
    opacity: 0;
}

.service-item:hover .btn {
    right: 0;
    bottom: 0;
    opacity: 1;
}


/*** Team ***/
.team-item .team-img::before,
.team-item .team-img::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .85);
    transition: .5s;
}

.team-item .team-img::after {
    left: auto;
    right: 0;
}

.team-item:hover .team-img::before,
.team-item:hover .team-img::after {
    width: 50%;
}

.team-item .team-img .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
    z-index: 3;
    opacity: 0;
}

.team-item:hover .team-img .team-social {
    transition-delay: .3s;
    opacity: 1;
}

.team-item .team-social .btn {
    display: inline-flex;
    margin: 0 3px;
    color: var(--primary);
    background: var(--dark);
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Testimonial ***/
.testimonial-carousel {
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-carousel .owl-dots {
    margin-top: 35px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dots .owl-dot {
    width: 60px;
    height: 60px;
    margin: 0 5px;
    padding: 10px;
    background: var(--secondary);
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots .owl-dot img {
    opacity: .1;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 1.5rem;
    font-size: 15px;
    background: var(--dark);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}


/*** Mobile Responsive Styles for All Tabs ***/

/* Mobile Navigation Enhancements */
@media (max-width: 991.98px) {
    .navbar .navbar-brand img {
        width: 80px !important;
        height: 80px !important;
    }
    
    .navbar .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 2rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0.25rem;
    }
    
    .navbar .navbar-collapse {
        background: var(--secondary);
        margin-top: 0.5rem;
        border-radius: 0.5rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }
    
    .navbar .navbar-nav .nav-link {
        padding: 12px 20px;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }
    
    .navbar .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .navbar .navbar-nav .nav-link:hover,
    .navbar .navbar-nav .nav-link.active {
        background: var(--primary);
        color: white !important;
        transform: translateX(5px);
    }
}

/* Mobile Content Sections */
@media (max-width: 768px) {
    /* Header and Carousel */
    #header-carousel .carousel-item {
        min-height: 300px;
    }
    
    #header-carousel .carousel-caption {
        padding: 1rem;
    }
    
    #header-carousel .carousel-caption h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    #header-carousel .carousel-caption h4 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    /* Page Headers */
    .page-header h1 {
        font-size: 2rem !important;
    }
    
    /* About Section */
    .about-section .col-lg-6:first-child {
        margin-bottom: 2rem;
    }
    
    .about-section .bg-secondary {
        margin-top: -15% !important;
        padding: 2rem !important;
    }
    
    .about-section .bg-secondary h1 {
        font-size: 1.5rem;
    }
    
    .about-section .bg-secondary h2 {
        font-size: 1.2rem;
    }
    
    /* Service Cards */
    .service-item {
        margin-bottom: 1.5rem;
        padding: 1.5rem !important;
    }
    
    .service-item .bg-dark {
        width: 50px !important;
        height: 50px !important;
        margin-right: 1rem;
    }
    
    .service-item h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .service-item p {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .service-item .btn-square {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    /* Price Section */
    .price-section .bg-secondary {
        padding: 2rem !important;
    }
    
    .price-section h1 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .price-section .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .price-section h6 {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .price-section span {
        font-size: 0.9rem;
        margin-top: 0.25rem;
    }
    
    /* Working Hours */
    .working-hours .bg-secondary {
        padding: 2rem !important;
    }
    
    .working-hours h1 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .working-hours .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .working-hours h6 {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .working-hours span {
        font-size: 0.9rem;
        margin-top: 0.25rem;
    }
}

/* Mobile Forms */
@media (max-width: 768px) {
    /* Contact Form */
    .contact-form .bg-secondary {
        padding: 2rem !important;
    }
    
    .contact-form h1 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-form .form-floating {
        margin-bottom: 1rem;
    }
    
    .contact-form .form-control {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .contact-form .btn {
        padding: 0.75rem 1.5rem;
        font-size: 2rem;
    }
    
    /* Newsletter Form */
    .footer .position-relative {
        margin-bottom: 1rem;
    }
    
    .footer .form-control {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .footer .btn {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
}

/* Mobile Footer */
@media (max-width: 768px) {
    .footer {
        text-align: center;
    }
    
    .footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    .footer h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .footer .btn-link {
        display: block;
        margin-bottom: 0.5rem;
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }
    
    .footer .d-flex {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .footer .btn-square {
        margin: 0.25rem;
    }
    
    .footer .copyright {
        text-align: center;
        padding: 1rem;
    }
    
    .footer .copyright .col-md-6 {
        margin-bottom: 0.5rem;
    }
}

/* Mobile Testimonials */
@media (max-width: 768px) {
    .testimonial-carousel {
        padding: 0 1rem;
    }
    
    .testimonial-item h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .testimonial-item p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .testimonial-item span {
        font-size: 0.85rem;
    }
    
    .testimonial-carousel .owl-dots .owl-dot {
        width: 40px;
        height: 40px;
        margin: 0 3px;
    }
    
    .testimonial-carousel .owl-dots .owl-dot.active {
        width: 60px;
        height: 60px;
    }
}

/* Mobile Team Section (if enabled) */
@media (max-width: 768px) {
    .team-item {
        margin-bottom: 2rem;
    }
    
    .team-item .team-img {
        margin-bottom: 1rem;
    }
    
    .team-item .bg-secondary {
        padding: 1.5rem;
    }
    
    .team-item h5 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .team-item span {
        font-size: 0.9rem;
    }
}

/* Mobile Breadcrumb */
@media (max-width: 768px) {
    .breadcrumb {
        justify-content: center;
        font-size: 0.8rem;
    }
    
    .breadcrumb-item {
        margin: 0 0.25rem;
    }
}

/* Mobile Back to Top Button */
@media (max-width: 768px) {
    .back-to-top {
        right: 20px;
        bottom: 20px;
        width: 45px;
        height: 45px;
        font-size: 2rem;
    }
}

/* Mobile Spinner */
@media (max-width: 768px) {
    #spinner .spinner-grow {
        width: 2rem !important;
        height: 2rem !important;
    }
}

/* Mobile Appointments Button */
@media (max-width: 991.98px) {
    .navbar .btn-primary {
        display: none !important;
    }
    
    /* Show appointment button in mobile menu */
    .navbar .navbar-collapse::after {
        content: "Book Appointment";
        display: block;
        background: var(--primary);
        color: white;
        text-align: center;
        padding: 1rem;
        margin: 1rem 0 0 0;
        border-radius: 0.25rem;
        font-weight: 600;
        text-decoration: none;
        transition: background 0.3s ease;
    }
    
    .navbar .navbar-collapse::after:hover {
        background: #d41414;
    }
}

/* Mobile Typography Adjustments */
@media (max-width: 576px) {
    .display-2 {
        font-size: 2rem !important;
    }
    
    .display-3 {
        font-size: 1.75rem !important;
    }
    
    h1 {
        font-size: 1.5rem !important;
    }
    
    h2 {
        font-size: 1.3rem !important;
    }
    
    h3 {
        font-size: 1.1rem !important;
    }
    
    h4 {
        font-size: 1rem !important;
    }
    
    h5 {
        font-size: 0.9rem !important;
    }
    
    h6 {
        font-size: 0.85rem !important;
    }
}

/* Mobile Container Adjustments */
@media (max-width: 576px) {
    .container-xxl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mt-5 {
        margin-top: 2rem !important;
    }
}

/* Mobile Image Responsiveness */
@media (max-width: 768px) {
    .img-fluid {
        max-width: 100%;
        height: auto;
    }
    
    .carousel-item img {
        object-fit: cover;
        object-position: center;
    }
    
    .team-img img,
    .service-item img {
        width: 100%;
        height: auto;
    }
}

/* Mobile Button Enhancements */
@media (max-width: 768px) {
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        border-radius: 0.25rem;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 2rem;
    }
    
    .btn-sm {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .btn-square {
        width: 40px;
        height: 40px;
    }
    
    .btn-sm-square {
        width: 32px;
        height: 32px;
    }
    
    .btn-lg-square {
        width: 48px;
        height: 48px;
    }
}

/* Mobile Utility Classes */
@media (max-width: 768px) {
    .text-center-mobile {
        text-align: center !important;
    }
    
    .mb-mobile-3 {
        margin-bottom: 1rem !important;
    }
    
    .mt-mobile-3 {
        margin-top: 1rem !important;
    }
    
    .px-mobile-3 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .py-mobile-3 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

/* Mobile Animation Adjustments */
@media (max-width: 768px) {
    .wow {
        animation-duration: 0.8s !important;
    }
    
    .animated {
        animation-duration: 0.6s !important;
    }
}

/* Mobile Accessibility Improvements */
@media (max-width: 768px) {
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(235, 22, 22, 0.25);
    }
    
    .btn:focus {
        box-shadow: 0 0 0 0.2rem rgba(235, 22, 22, 0.25);
    }
    
    .form-control:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 0.2rem rgba(235, 22, 22, 0.25);
    }
}

/* Mobile Performance Optimizations */
@media (max-width: 768px) {
    .carousel-item {
        transition: transform 0.3s ease-in-out;
    }
    
    .service-item {
        transition: transform 0.2s ease-in-out;
    }
    
    .service-item:hover {
        transform: translateY(-2px);
    }
    
    .team-item {
        transition: transform 0.2s ease-in-out;
    }
    
    .team-item:hover {
        transform: translateY(-2px);
    }
}


/*** Mobile Styles for Screens Below 576px (Small Phones) ***/

/* Extra Small Mobile Navigation */
@media (max-width: 575.98px) {
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .navbar .navbar-brand img {
        width: 60px !important;
        height: 60px !important;
    }
    
    .navbar .navbar-toggler {
        padding: 0.2rem 0.4rem;
        font-size: 0.9rem;
    }
    
    .navbar .navbar-nav .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .navbar .navbar-collapse {
        margin-top: 0.25rem;
        border-radius: 0.25rem;
    }
}

/* Extra Small Mobile Content */
@media (max-width: 575.98px) {
    /* Header and Carousel */
    #header-carousel .carousel-item {
        min-height: 250px;
    }
    
    #header-carousel .carousel-caption {
        padding: 0.75rem;
    }
    
    #header-carousel .carousel-caption h1 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
        line-height: 1.2;
    }
    
    #header-carousel .carousel-caption h4 {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
        line-height: 1.3;
    }
    
    /* Page Headers */
    .page-header {
        padding: 2rem 0 !important;
    }
    
    .page-header h1 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .page-header .breadcrumb {
        font-size: 0.7rem;
    }
    
    /* About Section */
    .about-section .img-fluid {
        width: 100% !important;
    }
    
    .about-section .bg-secondary {
        margin-top: -10% !important;
        padding: 1.5rem !important;
        width: 100% !important;
    }
    
    .about-section .bg-secondary h1 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .about-section .bg-secondary h2 {
        font-size: 2rem;
    }
    
    .about-section h1 {
        font-size: 1.3rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.3;
    }
    
    .about-section p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .about-section h3 {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .about-section .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Service Cards */
    .service-item {
        padding: 1rem !important;
        margin-bottom: 1rem;
    }
    
    .service-item .bg-dark {
        width: 40px !important;
        height: 40px !important;
        margin-right: 0.75rem;
    }
    
    .service-item h3 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }
    
    .service-item p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }
    
    .service-item .btn-square {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }
    
    .service-item .text-uppercase {
        font-size: 0.75rem;
    }
    
    /* Price Section */
    .price-section .bg-secondary {
        padding: 1.5rem !important;
    }
    
    .price-section h1 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .price-section .d-flex {
        padding: 0.75rem 0;
    }
    
    .price-section h6 {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
        line-height: 1.3;
    }
    
    .price-section span {
        font-size: 0.8rem;
        margin-top: 0.25rem;
    }
    
    /* Working Hours */
    .working-hours .bg-secondary {
        padding: 1.5rem !important;
    }
    
    .working-hours h1 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .working-hours .d-flex {
        padding: 0.75rem 0;
    }
    
    .working-hours h6 {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
        line-height: 1.3;
    }
    
    .working-hours span {
        font-size: 0.8rem;
        margin-top: 0.25rem;
    }
    
    /* Contact Form */
    .contact-form .bg-secondary {
        padding: 1.5rem !important;
    }
    
    .contact-form h1 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .contact-form .form-floating {
        margin-bottom: 0.75rem;
    }
    
    .contact-form .form-control {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .contact-form .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 !important;
    }
    
    .footer .col-lg-4 {
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .footer h4 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .footer .btn-link {
        font-size: 0.8rem;
        padding: 0.4rem 0;
        margin-bottom: 0.4rem;
    }
    
    .footer .d-flex {
        margin-bottom: 0.75rem;
    }
    
    .footer .btn-square {
        width: 35px;
        height: 35px;
        margin: 0.2rem;
        font-size: 0.8rem;
    }
    
    .footer .form-control {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .footer .btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.7rem;
    }
    
    .footer .copyright {
        padding: 0.75rem;
        font-size: 0.7rem;
    }
    
    /* Testimonials */
    .testimonial-carousel {
        padding: 0 0.5rem;
    }
    
    .testimonial-item h4 {
        font-size: 2rem;
        margin-bottom: 0.4rem;
    }
    
    .testimonial-item p {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .testimonial-item span {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .testimonial-carousel .owl-dots .owl-dot {
        width: 35px;
        height: 35px;
        margin: 0 2px;
    }
    
    .testimonial-carousel .owl-dots .owl-dot.active {
        width: 50px;
        height: 50px;
    }
    
    /* Team Section */
    .team-item {
        margin-bottom: 1.5rem;
    }
    
    .team-item .bg-secondary {
        padding: 1rem;
    }
    
    .team-item h5 {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .team-item span {
        font-size: 0.8rem;
    }
    
    /* Back to Top Button */
    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    /* Spinner */
    #spinner .spinner-grow {
        width: 1.5rem !important;
        height: 1.5rem !important;
    }
}

/* Extra Small Mobile Typography */
@media (max-width: 575.98px) {
    .display-2 {
        font-size: 1.5rem !important;
    }
    
    .display-3 {
        font-size: 1.4rem !important;
    }
    
    h1 {
        font-size: 1.2rem !important;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.1rem !important;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1rem !important;
        line-height: 1.3;
    }
    
    h4 {
        font-size: 0.9rem !important;
        line-height: 1.3;
    }
    
    h5 {
        font-size: 0.85rem !important;
        line-height: 1.3;
    }
    
    h6 {
        font-size: 0.8rem !important;
        line-height: 1.3;
    }
    
    p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .text-uppercase {
        font-size: 0.85rem;
    }
}

/* Extra Small Mobile Container & Spacing */
@media (max-width: 575.98px) {
    .container-xxl {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .mb-5 {
        margin-bottom: 1.5rem !important;
    }
    
    .mt-5 {
        margin-top: 1.5rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1rem !important;
    }
    
    .mt-4 {
        margin-top: 1rem !important;
    }
    
    .mb-3 {
        margin-bottom: 0.75rem !important;
    }
    
    .mt-3 {
        margin-top: 0.75rem !important;
    }
    
    .p-5 {
        padding: 1.5rem !important;
    }
    
    .p-4 {
        padding: 1rem !important;
    }
    
    .px-4 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .py-4 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

/* Extra Small Mobile Buttons */
@media (max-width: 575.98px) {
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
        border-radius: 0.2rem;
    }
    
    .btn-lg {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn-sm {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
    
    .btn-square {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .btn-sm-square {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .btn-lg-square {
        width: 42px;
        height: 42px;
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile Utility Classes */
@media (max-width: 575.98px) {
    .text-center-mobile {
        text-align: center !important;
    }
    
    .mb-mobile-2 {
        margin-bottom: 0.5rem !important;
    }
    
    .mt-mobile-2 {
        margin-top: 0.5rem !important;
    }
    
    .px-mobile-2 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .py-mobile-2 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    .d-block-mobile {
        display: block !important;
    }
    
    .d-none-mobile {
        display: none !important;
    }
    
    .w-100-mobile {
        width: 100% !important;
    }
}

/* Extra Small Mobile Animations */
@media (max-width: 575.98px) {
    .wow {
        animation-duration: 0.6s !important;
    }
    
    .animated {
        animation-duration: 0.5s !important;
    }
    
    .service-item:hover {
        transform: translateY(-1px);
    }
    
    .team-item:hover {
        transform: translateY(-1px);
    }
}

/* Extra Small Mobile Accessibility */
@media (max-width: 575.98px) {
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.15rem rgba(235, 22, 22, 0.25);
    }
    
    .btn:focus {
        box-shadow: 0 0 0 0.15rem rgba(235, 22, 22, 0.25);
    }
    
    .form-control:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 0.15rem rgba(235, 22, 22, 0.25);
    }
    
    /* Improve touch targets */
    .btn, .nav-link, .form-control {
        min-height: 44px;
    }
    
    .btn-square {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Extra Small Mobile Performance */
@media (max-width: 575.98px) {
    .carousel-item {
        transition: transform 0.2s ease-in-out;
    }
    
    .service-item {
        transition: transform 0.15s ease-in-out;
    }
    
    .team-item {
        transition: transform 0.15s ease-in-out;
    }
    
    /* Reduce animation complexity for better performance */
    .service-item .btn {
        transition: opacity 0.2s ease;
    }
    
    .team-item .team-img::before,
    .team-item .team-img::after {
        transition: width 0.3s ease;
    }
}