/* Mobile Responsiveness & Menu Optimizations */

@media (max-width: 991px) {

    /* Navbar & Mobile Menu */
    .navbar-custom {
        background: #fff !important;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .navbar-custom .navbar-links-custom li a {
        color: #3b3b3b !important;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        font-weight: 600;
    }

    .navbar-collapse {
        background: #fff !important;
        border: none !important;
        max-height: 80vh;
        overflow-y: auto;
    }

    .navbar-toggle .icon-bar {
        background-color: #2EA9E0 !important;
    }

    .navbar-logo .logo_light {
        display: none !important;
    }

    .navbar-logo .logo_main {
        display: block !important;
    }

    /* Hero Section Mobile */
    .split-hero {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        display: flex;
    }

    .hero-text-side,
    .hero-image-side {
        width: 100%;
        min-height: 350px;
    }

    .hero-text-side {
        padding: 120px 30px 60px;
        clip-path: none !important;
        order: 1;
    }

    .hero-text-side h1 {
        font-size: 32px !important;
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .hero-text-side p {
        font-size: 1.6rem !important;
        margin-bottom: 30px;
    }

    .hero-image-side {
        order: 2;
        margin-left: 0;
        min-height: 300px;
    }

    .btn-premium {
        padding: 16px 25px !important;
        font-size: 13px !important;
        letter-spacing: 1px !important;
        clip-path: polygon(0 0, 95% 0, 100% 15%, 100% 100%, 5% 100%, 0 85%) !important;
        width: auto !important;
        display: inline-block !important;
        white-space: normal !important;
        line-height: 1.4 !important;
    }

    .btn-premium::before,
    .btn-premium::after {
        display: none !important;
    }

    /* Success Stories Mobile */
    .category-col {
        padding: 80px 20px !important;
        min-height: auto;
        border-right: none;
        text-align: center;
    }

    .sticky-nav-content {
        position: relative;
        top: 0;
    }

    .category-bg-text {
        writing-mode: horizontal-tb !important;
        font-size: 80px !important;
        top: 0;
        left: 50%;
        transform: translateX(-50%) !important;
        rotate: 0deg;
    }

    .nav-links-vertical {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding: 5px 20px 20px !important;
        margin: 0 -20px !important;
        /* Overreach container for edge-to-edge scroll */
        scrollbar-width: none;
        /* Hide scrollbar Firefox */
    }

    .nav-links-vertical::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari */
    }

    .cat-link {
        gap: 8px;
        padding: 8px 18px !important;
        background: rgba(255, 255, 255, 0.07);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        /* Matches the squareish-clipped theme */
    }

    .cat-link .cat-title {
        font-size: 11px !important;
        letter-spacing: 1px;
        color: rgba(255, 255, 255, 0.6);
    }

    .cat-link .arrow-indicator {
        display: none !important;
        /* Hide icon to save space on mobile buttons */
    }

    .cat-link.active {
        transform: none !important;
        background: var(--primary) !important;
        border-color: var(--primary) !important;
    }

    .cat-link.active .cat-title {
        color: #fff !important;
        /* Fixed: Invisible text on active button */
    }

    .gallery-col {
        padding: 40px 15px 80px !important;
    }

    .gallery-inner {
        grid-template-columns: 1fr !important;
    }

    .project-bento-card {
        height: 450px !important;
        margin-bottom: 30px;
    }

    /* Portfolio Carousel Specifics */
    #split-gallery.owl-carousel {
        display: block !important;
        padding: 0 15px !important;
    }

    #split-gallery .owl-stage-outer {
        overflow: visible !important;
    }

    #split-gallery .owl-item {
        opacity: 0.3;
        transition: opacity 0.4s ease;
    }

    #split-gallery .owl-item.active {
        opacity: 1;
    }

    #split-gallery .owl-dots {
        margin-top: 20px !important;
        display: flex !important;
        justify-content: center;
        gap: 8px;
    }

    .gallery-col {
        padding: 40px 0 80px !important;
        /* Remove horizontal padding for carousel */
    }

    /* Why Choose Us Mobile */
    .feature-side-box {
        padding: 20px !important;
        gap: 15px;
        clip-path: none !important;
        overflow: visible !important;
        /* Prevent text clipping */
        align-items: flex-start !important;
        /* Better for multi-line text */
    }

    .feature-box-content p {
        max-width: 100% !important;
        overflow: visible !important;
    }

    .feature-num-circle {
        min-width: 40px;
        height: 40px;
        font-size: 16px;
        margin-top: 5px;
        /* Align with first line of text */
    }

    /* Services Section Mobile */
    #services-slider.owl-carousel {
        padding: 0 5% !important;
        /* Reduce side padding so cards are wider */
    }

    #services-slider .owl-item {
        padding: 10px !important;
    }

    /* Premium Dots */
    .owl-theme .owl-dots {
        margin-top: 30px !important;
        display: flex !important;
        justify-content: center;
        gap: 8px;
    }

    .owl-theme .owl-dots .owl-dot span {
        width: 10px !important;
        height: 10px !important;
        background: rgba(0, 0, 0, 0.1) !important;
        border: 1px solid rgba(46, 169, 224, 0.3) !important;
        transition: all 0.3s ease !important;
        border-radius: 50% !important;
    }

    .owl-theme .owl-dots .owl-dot.active span {
        background: var(--primary) !important;
        width: 25px !important;
        /* Pill shape for active dot */
        border-radius: 10px !important;
    }

    /* Premium Nav Buttons (Arrows) - Aggressive Overrides */
    .owl-carousel#services-slider .owl-nav {
        display: flex !important;
        justify-content: center !important;
        gap: 20px !important;
        margin-top: 25px !important;
        position: static !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .owl-carousel#services-slider .owl-nav button.owl-prev,
    .owl-carousel#services-slider .owl-nav button.owl-next {
        position: static !important;
        transform: none !important;
        width: 50px !important;
        height: 50px !important;
        background: #fff !important;
        border-radius: 50% !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
        border: 1px solid rgba(46, 169, 224, 0.4) !important;
        color: var(--primary) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transition: all 0.3s ease !important;
    }

    .owl-carousel#services-slider .owl-nav button.owl-prev:hover,
    .owl-carousel#services-slider .owl-nav button.owl-next:hover {
        background: var(--primary) !important;
        color: #fff !important;
    }

    .owl-carousel#services-slider .owl-nav button i {
        font-size: 18px !important;
        margin: 0 !important;
        color: inherit !important;
    }

    /* CTA Banner Mobile */
    .cta-title {
        font-size: 32px !important;
    }

    .cta-subtitle {
        font-size: 1.6rem !important;
    }

    .cta-contact-info-row {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
}