/* Mobile Optimization Styles */

@media (max-width: 767px) {

    /* Global Resets & Typography */
    :root {
        --tp-container-padding: 15px;
    }

    body {
        overflow-x: hidden;
    }

    .container,
    .container-fluid {
        padding-left: var(--tp-container-padding);
        padding-right: var(--tp-container-padding);
    }

    /* Typography Overrides */
    h1,
    .fs-100,
    .tp-hero-sa-title {
        font-size: 52px !important;
        line-height: 1.1 !important;
		margin-top: 1vh;
    }

    h2,
    .fs-70,
    .fs-50 {
        font-size: 32px !important;
        line-height: 1.2 !important;
    }

    h3,
    .fs-35 {
        font-size: 26px !important;
    }

    p,
    .fs-18,
    .fs-20 {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }

    /* Spacing Overrides */
    .pt-140,
    .pt-120,
    .pt-115,
    .pt-110,
    .pt-100 {
        padding-top: 60px !important;
    }

    /* Banner Spacing Fix */
    .pt-125 {
        padding-top: 10px !important;
    }

    .tp-banner-it-thumb {
        margin-bottom: 0 !important;
        height: auto !important;
        min-height: auto !important;
    }

    .tp-banner-2-bg {
        height: auto !important;
    }

    .pb-135,
    .pb-110,
    .pb-80,
    .pb-60 {
        padding-bottom: 60px !important;
    }

    .mb-130 {
        margin-bottom: 30px !important;
    }

    .mb-90,
    .mb-70,
    .mb-60 {
        margin-bottom: 40px !important;
    }

    .mt-90 {
        margin-top: 40px !important;
    }

    .ml-75,
    .ml-35,
    .ml-20 {
        margin-left: 0 !important;
    }

    .mr-50,
    .mr-40,
    .mr-35,
    .mr-20 {
        margin-right: 0 !important;
    }

    /* Hero Section */
    .tp-hero-area {
        height: auto !important;
        min-height: auto !important;
        padding-top: 120px !important;
        /* Account for fixed header */
        padding-bottom: 60px !important;
    }

    .tp-hero-content {
        text-align: center;
    }

    .tp-hero-sa-subtitle {
        justify-content: center;
        display: flex;
    }

    .tp-hero-sa-btn-wrap {
        flex-direction: column;
        justify-content: center;
    }

    .tp-hero-sa-btn {
        margin-right: 0 !important;
        margin-bottom: 20px !important;
    }

    .tp-hero-customer {
        justify-content: center;
    }

    .tp-hero-sa-thumb {
        margin-top: 40px !important;
    }

    /* Brands Section */
    .tp-brands-area {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .tp-brands-area .tp-section-subtitle {
        display: block;
        text-align: center;
    }

    .tp-brand-item img {
        max-height: 30px !important;
    }

    /* Service Section */
    .tp-service-sa-title-wrap {
        text-align: center;
    }

    .tp-service-sa-border {
        display: none !important;
    }

    /* About Section */
    .tp-about-wd-title-wrap {
        text-align: center;
    }

    .tp-about-wd-para {
        text-align: center;
    }

    /* Fix background image on mobile */
    .tp-process-sa-shape,
    .tp-awards-bg-shape {
        display: none !important;
    }

    .tp-about-expreance {
        justify-content: center;
        flex-direction: column;
        align-items: center !important;
        text-align: center;
    }

    .tp-about-expreance h2 {
        font-size: 60px !important;
    }

    .tp-about-expreance span {
        margin-left: 0 !important;
    }

    .tp-rounded-btn-wrap {
        text-align: center !important;
    }

    /* Process Section */
    .tp-process-sa-title-wrap {
        text-align: center;
        margin-bottom: 30px;
    }

    .tp-process-sa-link {
        text-align: center !important;
    }

    .tp-process-sa-item {
        text-align: center;
    }

    .tp-process-sa-list ul {
        text-align: left;
        display: inline-block;
    }

    /* Footer */
    .tp-footer-widget {
        text-align: center;
    }

    .tp-footer-wd-social {
        justify-content: center;
        display: flex;
    }

    .tp-footer-copyright {
        text-align: center !important;
        margin-top: 20px;
    }

    .tp-footer-logo img {
        width: 50% !important;
    }

    /* Portfolio Section */
    .tp-portfolio-sa-title-wrap {
        padding-bottom: 30px !important;
    }

    .tp-portfolio-sa-title {
        font-size: 36px !important;
    }

    .tp-portfolio-sa-item {
        margin-bottom: 30px !important;
    }

    /* Team Section */
    .tp-team-sa-title-wrap {
        text-align: center;
        margin-bottom: 30px;
    }

    .tp-team-sa-para {
        text-align: center;
    }

    .tp-team-sa-item {
        margin-bottom: 40px !important;
    }

    /* Testimonials Section */
    .tp-testimonial-sa-title-wrap {
        margin-bottom: 30px !important;
    }

    .tp-testimonial-sa-item p {
        font-size: 18px !important;
        margin-bottom: 30px !important;
    }

    /* CTA Section */
    .tp-cta-area {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .tp-cta-wd-content {
        text-align: center !important;
    }

    .tp-cta-wd-email {
        font-size: 24px !important;
        word-break: break-all;
    }

    .tp-cta-sa-btn {
        text-align: center !important;
        margin-top: 30px;
    }

    /* General Fixes */
    img {
        max-width: 100%;
        height: auto;
    }

    .row {
        margin-left: -10px;
        margin-right: -10px;
    }

    .col,
    [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Offcanvas Menu Styles */
    .tp-offcanvas {
        position: fixed;
        right: 0;
        top: 0;
        width: 300px;
        /* Adjust as needed */
        height: 100%;
        background: #ffffff;
        z-index: 9999;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        padding: 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .tp-offcanvas.opened {
        transform: translateX(0) !important;
    }

    .body-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
    }

    .body-overlay.apply {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Mobile Menu Content Styles */
    .tp-offcanvas-menu nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .tp-offcanvas-menu nav ul li {
        position: relative;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .tp-offcanvas-menu nav ul li a {
        display: block;
        padding: 15px 0;
        font-size: 16px;
        color: #000;
        font-weight: 500;
    }

    .tp-offcanvas-menu nav ul li .tp-menu-close {
        position: absolute;
        top: 10px;
        right: 0;
        width: 30px;
        height: 30px;
        background: #f7f7f7;
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .tp-offcanvas-menu nav ul li.active .tp-menu-close {
        transform: rotate(90deg);
        background: var(--tp-theme-primary);
        color: #000;
    }

    .tp-offcanvas-menu nav ul li .tp-submenu {
        display: none;
        padding-left: 20px;
        background: #f9f9f9;
    }

    .tp-offcanvas-menu nav ul li .tp-submenu li {
        border-bottom: none;
    }

    .tp-offcanvas-menu nav ul li .tp-submenu li a {
        font-size: 14px;
        padding: 10px 0;
        color: #555;
    }
}