:root {
    --primary-color: #0b0f19;       /* Deep obsidian luxury navy */
    --secondary-color: #111827;     /* Dark graphite slate */
    --accent-color: #0088ff;        /* Vibrant Royal / Electric Blue */
    --accent-gradient: linear-gradient(135deg, #0066ff 0%, #00c6ff 100%);
    --accent-glow: rgba(0, 136, 255, 0.35);
    --accent-hover: #00b4d8;
    --accent-rgb: 0, 136, 255;
    
    --text-main: #f8fafc;          /* Pure crisp white-slate for high contrast */
    --text-muted: #cbd5e1;         /* Bright light silver for perfect readability */
    --text-dim: #94a3b8;           /* Secondary metadata */
    
    --card-bg: #131b2e;            /* Distinct elevated dark blue-graphite */
    --card-border: #1e293b;        /* Subtle border */
    --card-hover-border: #0088ff;  /* Hover neon glow border */
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.dark-scheme {
    background-color: var(--primary-color);
    color: var(--text-main);
    font-family: var(--font-heading);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography & Contrast */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff !important;
}

p, li, span, .text-muted {
    color: var(--text-muted) !important;
}

.text-white {
    color: #ffffff !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.bg-dark {
    background-color: #0e1526 !important;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover {
    color: var(--accent-hover);
}

/* Subtle micro-animations */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 15px rgba(0, 136, 255, 0.3); }
    50% { box-shadow: 0 0 25px rgba(0, 136, 255, 0.6); }
    100% { box-shadow: 0 0 15px rgba(0, 136, 255, 0.3); }
}

@keyframes floatSlow {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

/* Topbar */
.topbar {
    background: #080c14;
    border-bottom: 1px solid #1e293b;
    font-size: 0.85rem;
}
.header-phone {
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    color: var(--accent-color) !important;
}

/* Header & Navbar */
.site-header {
    background: rgba(11, 15, 25, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid #1e293b;
    transition: all 0.3s ease;
    z-index: 1020;
}
.brand-badge {
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 900;
    font-size: 1.3rem;
    padding: 5px 12px;
    border-radius: 6px;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px var(--accent-glow);
}
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.brand-text strong {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    color: #fff !important;
}
.brand-text small {
    font-size: 0.65rem;
    color: #38bdf8 !important;
    letter-spacing: 0.15em;
}

.nav-link {
    color: #e2e8f0 !important;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 8px 14px !important;
    letter-spacing: 0.03em;
    transition: all 0.25s ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--accent-color) !important;
    transform: translateY(-1px);
}
.dropdown-menu-dark {
    background-color: #111827;
    border: 1px solid #1e293b;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}
.dropdown-item {
    color: #cbd5e1 !important;
    font-size: 0.88rem;
    padding: 9px 18px;
    font-weight: 500;
    transition: all 0.2s;
}
.dropdown-item:hover {
    background: rgba(0, 136, 255, 0.12);
    color: #38bdf8 !important;
    padding-left: 22px;
}

/* Buttons */
.btn-accent {
    background: var(--accent-gradient);
    color: #ffffff !important;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    box-shadow: 0 4px 18px var(--accent-glow);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-accent:hover {
    background: linear-gradient(135deg, #0052cc 0%, #00b4d8 100%);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 136, 255, 0.55);
}
.shadow-accent {
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-outline-light {
    border-color: #334155;
    color: #f1f5f9 !important;
    border-radius: 6px;
    transition: all 0.3s;
}
.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: #94a3b8;
    color: #fff !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 75% 45%, rgba(0, 102, 255, 0.18) 0%, rgba(11, 15, 25, 0.98) 65%), url('/wp-content/uploads/mainpage_bg4.jpg') center/cover no-repeat;
    padding: 110px 0 90px;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #0b0f19 30%, rgba(11, 15, 25, 0.9) 65%, rgba(11, 15, 25, 0.5) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #38bdf8 !important;
    margin-bottom: 15px;
    display: inline-block;
}
.hero-title {
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 25px;
    color: #fff !important;
}
.hero-description {
    font-size: 1.15rem;
    color: #cbd5e1 !important;
    max-width: 680px;
    margin-bottom: 35px;
    line-height: 1.65;
}

/* Feature Badge Box */
.hero-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 35px;
}
.hero-badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #f1f5f9 !important;
    transition: all 0.3s;
}
.hero-badge-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 136, 255, 0.2);
}
.hero-badge-item i {
    color: #38bdf8 !important;
    font-size: 1.25rem;
}

/* Service Cards */
.section-title {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff !important;
}
.section-subtitle {
    color: #38bdf8 !important;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.service-card:hover {
    transform: translateY(-7px);
    border-color: var(--card-hover-border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 136, 255, 0.25);
}
.service-thumb {
    position: relative;
    height: 230px;
    overflow: hidden;
    background-color: #090d16;
}
.service-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover .service-thumb img {
    transform: scale(1.08);
}
.service-thumb-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(11, 15, 25, 0.88);
    backdrop-filter: blur(6px);
    color: #38bdf8 !important;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(56, 189, 248, 0.4);
    letter-spacing: 0.05em;
}
.service-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.service-title a {
    color: #ffffff !important;
    transition: color 0.2s;
}
.service-title a:hover {
    color: #38bdf8 !important;
}
.service-text {
    font-size: 0.92rem;
    color: var(--text-muted) !important;
    line-height: 1.65;
    margin-bottom: 20px;
    flex-grow: 1;
}
.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #1e293b;
    padding-top: 16px;
}
.service-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: #38bdf8 !important;
}

/* Portfolio Cards */
.portfolio-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.35s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.portfolio-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-color);
    box-shadow: 0 12px 30px rgba(0, 136, 255, 0.2);
}
.portfolio-thumb {
    position: relative;
    height: 240px;
    overflow: hidden;
}
.portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.portfolio-card:hover .portfolio-thumb img {
    transform: scale(1.06);
}
.portfolio-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.portfolio-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Comparison Before/After Slider */
.ba-container {
    position: relative;
    width: 100%;
    height: 430px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
    user-select: none;
    border: 1px solid #1e293b;
}
.ba-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ba-before {
    z-index: 1;
}
.ba-after {
    z-index: 2;
    width: 50%;
    overflow: hidden;
}
.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: #00c6ff;
    z-index: 3;
    cursor: ew-resize;
    transform: translateX(-50%);
    box-shadow: 0 0 12px rgba(0, 198, 255, 0.8);
}
.ba-handle::after {
    content: '‹ ›';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    background: #0b0f19;
    border: 2px solid #00c6ff;
    color: #00c6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.6);
}

/* Stats Counter */
.stat-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 32px 20px;
    text-align: center;
    transition: all 0.3s;
}
.stat-box:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 136, 255, 0.2);
}
.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 0.88rem;
    color: #cbd5e1 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

/* Modals */
.modal-dark-content {
    background-color: #111827;
    border: 1px solid #1e293b;
    border-radius: 12px;
    color: #fff;
    padding: 15px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px var(--accent-glow);
}
.form-control-dark {
    background-color: #0b0f19;
    border: 1px solid #334155;
    color: #fff !important;
    padding: 12px 16px;
    border-radius: 6px;
}
.form-control-dark:focus {
    background-color: #070a10;
    border-color: var(--accent-color);
    color: #fff !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 136, 255, 0.25);
}

/* Footer */
.site-footer {
    background: #080c14;
    border-top: 1px solid #1e293b;
}
.widget-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 22px;
    color: #fff !important;
    position: relative;
    padding-bottom: 10px;
}
.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: #cbd5e1 !important;
    font-size: 0.92rem;
    transition: all 0.2s;
}
.footer-links a:hover {
    color: #38bdf8 !important;
    padding-left: 6px;
}
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 50%;
    color: #e2e8f0 !important;
    margin-right: 10px;
    transition: all 0.3s;
}
.social-icon:hover {
    background: var(--accent-gradient);
    color: #fff !important;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px var(--accent-glow);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.4rem;
    }
    .topbar {
        display: none !important;
    }
}


/* Realistic Swirl Marks & Micro-Scratches Overlay for BEFORE state */
.ba-before-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}
.ba-before-wrapper .ba-img {
    filter: brightness(0.82) contrast(1.15) saturate(0.85);
}
.ba-scratches-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: 
        radial-gradient(circle at 45% 48%, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 28%),
        radial-gradient(circle at 62% 35%, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 22%),
        radial-gradient(circle at 28% 60%, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 20%),
        repeating-radial-gradient(circle at 45% 48%, rgba(255,255,255,0.18) 0px, rgba(255,255,255,0.18) 1.5px, transparent 2px, transparent 7px),
        repeating-radial-gradient(circle at 62% 35%, rgba(255,255,255,0.15) 0px, rgba(255,255,255,0.15) 1.2px, transparent 2px, transparent 6px),
        repeating-linear-gradient(42deg, rgba(255,255,255,0.14) 0px, rgba(255,255,255,0.14) 1px, transparent 2px, transparent 14px),
        repeating-linear-gradient(-35deg, rgba(255,255,255,0.12) 0px, rgba(255,255,255,0.12) 1px, transparent 2px, transparent 18px);
    mix-blend-mode: screen;
    opacity: 0.92;
}
.ba-label-badge {
    position: absolute;
    top: 18px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}
.ba-label-before {
    left: 18px;
    background: rgba(220, 38, 38, 0.88);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.ba-label-after {
    right: 18px;
    background: rgba(0, 136, 255, 0.88);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}


/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px var(--accent-glow);
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 136, 255, 0.6);
    color: #fff;
}

/* Full Width Header & Nav items spacing */
.site-header .navbar-nav .nav-link {
    padding: 8px 12px !important;
    white-space: nowrap;
    font-size: 0.88rem;
}

/* Mobile Burger Menu Polish */
@media (max-width: 991.98px) {
    .site-header {
        padding: 10px 0;
    }
    .navbar-collapse {
        background: #0d1322;
        border: 1px solid #1e293b;
        border-radius: 12px;
        padding: 20px;
        margin-top: 15px;
        box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    }
    .navbar-nav .nav-link {
        padding: 12px 10px !important;
        border-bottom: 1px solid #182238;
        font-size: 1rem;
    }
    .navbar-nav .dropdown-menu {
        background-color: #080c14;
        border: 1px solid #1e293b;
        margin-left: 10px;
        margin-top: 5px;
        border-radius: 8px;
    }
    .navbar-nav .dropdown-item {
        padding: 10px 15px;
        font-size: 0.92rem;
    }
    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

/* ==========================================================================
   MOBILE & RESPONSIVE PERFECTION AUDIT PATCH
   Targeting all viewports: 320px, 360px, 390px, 414px, 768px, 991px
   ========================================================================== */

/* 1. Global Box-Sizing & Overflow Safety */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    -webkit-text-size-adjust: 100%;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* 2. Responsive Tables (Smooth Touch Scroll with Visual Hint) */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border: 1px solid #1e293b;
    background: #0d1322;
    margin-bottom: 1.5rem;
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}
.table-responsive::-webkit-scrollbar-track {
    background: #0b0f19;
}
.table-responsive::-webkit-scrollbar-thumb {
    background: #0088ff;
    border-radius: 3px;
}

.table-responsive > .table {
    margin-bottom: 0;
    min-width: 580px; /* guarantees table readability without squeezing text */
}

.table-responsive th, 
.table-responsive td {
    white-space: nowrap;
    padding: 14px 16px;
    font-size: 0.92rem;
    vertical-align: middle;
}

.table-responsive td:first-child,
.table-responsive th:first-child {
    white-space: normal;
    min-width: 180px;
}

/* 3. Mobile Sticky Header, Nav, and Topbar Adjustments */
@media (max-width: 991.98px) {
    .site-header {
        padding: 8px 0;
    }
    
    .navbar {
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
    }

    .brand-badge {
        font-size: 1.15rem;
        padding: 4px 10px;
    }
    
    .brand-text strong {
        font-size: 0.95rem;
    }

    .brand-text small {
        font-size: 0.58rem;
    }

    /* Hero adjustments */
    .hero-section {
        padding: 60px 0 45px 0;
        min-height: auto;
    }

    .hero-title {
        font-size: 1.85rem !important;
        line-height: 1.25;
        margin-bottom: 16px;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 24px;
    }

    .hero-badges {
        flex-direction: column;
        gap: 10px;
        margin-top: 25px;
    }

    .hero-badge-item {
        font-size: 0.85rem;
    }

    /* Before/After slider height on mobile */
    .ba-container {
        height: 280px !important;
    }

    .ba-handle::after {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .ba-label-badge {
        font-size: 0.72rem;
        padding: 4px 10px;
        top: 12px;
    }
    .ba-label-before { left: 12px; }
    .ba-label-after { right: 12px; }

    /* Sticky filter bar in portfolio */
    section.sticky-top {
        top: 60px !important;
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }
}

/* 4. Small Mobile Screens (<= 576px: iPhone SE, iPhone 12/13/14/15, Androids) */
@media (max-width: 576px) {
    .hero-title {
        font-size: 1.6rem !important;
    }

    .section-title {
        font-size: 1.5rem !important;
    }

    .section-subtitle {
        font-size: 0.8rem;
    }

    /* Full-width buttons on small screens */
    .hero-content .btn,
    .service-card .btn,
    .modal-body .btn {
        width: 100%;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    /* Stat boxes */
    .stat-box {
        padding: 20px 12px;
    }
    .stat-number {
        font-size: 2.1rem;
    }
    .stat-label {
        font-size: 0.75rem;
    }

    /* Mode Switcher in Portfolio */
    .btn-group {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    .btn-group .btn {
        border-radius: 6px !important;
        width: 100%;
        text-align: center;
        padding: 8px 12px;
    }

    /* Tags container touch scroll */
    #tagsContainer {
        display: flex;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        scrollbar-width: none;
    }
    #tagsContainer::-webkit-scrollbar {
        display: none;
    }
    #tagsContainer .btn,
    #tagsContainer .dropdown {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    /* Pagination controls */
    #paginationControls {
        flex-wrap: wrap;
        gap: 6px !important;
    }
    #paginationControls .btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    /* Modal padding */
    .modal-dialog {
        margin: 12px;
    }
    .modal-dark-content {
        padding: 12px;
    }

    /* Map Widget in Contacts / Home */
    iframe {
        min-height: 320px !important;
        height: 320px !important;
    }

    /* Footer links */
    .site-footer {
        padding-top: 35px;
    }
    .quick-maps-links {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .quick-maps-links .btn {
        width: 100%;
        margin-right: 0 !important;
    }
}

/* 5. Floating Quick Action Bar for Mobile (Call & WhatsApp/Telegram) */
.mobile-sticky-action-bar {
    display: none;
}

@media (max-width: 767.98px) {
    body.dark-scheme {
        padding-bottom: 70px; /* prevent content overlap */
    }

    .mobile-sticky-action-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: rgba(11, 15, 25, 0.96);
        backdrop-filter: blur(16px);
        border-top: 1px solid #1e293b;
        z-index: 1030;
        padding: 8px 12px;
        gap: 8px;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.6);
    }

    .mobile-sticky-action-bar .btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.82rem;
        font-weight: 700;
        text-transform: uppercase;
        border-radius: 8px;
        padding: 0 8px;
        white-space: nowrap;
    }

    .mobile-sticky-action-bar .btn-call {
        background: var(--accent-gradient);
        color: #fff;
        border: none;
    }

    .mobile-sticky-action-bar .btn-wa {
        background: #25d366;
        color: #fff;
        border: none;
    }

    .mobile-sticky-action-bar .btn-modal {
        background: #1e293b;
        color: #38bdf8;
        border: 1px solid #334155;
    }

    /* Shift back to top button slightly up on mobile so it doesn't collide */
    .back-to-top-btn {
        bottom: 75px !important;
        right: 18px !important;
        width: 42px !important;
        height: 42px !important;
    }
}

/* Dropup & Messengers Button in Mobile Action Bar */
.mobile-sticky-action-bar .btn-messengers {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff !important;
    border: none;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-sticky-action-bar .dropup .dropdown-menu {
    border: 1px solid #1e293b !important;
    padding: 6px;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.7);
}

.mobile-sticky-action-bar .dropup .dropdown-item {
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 600;
    transition: background 0.2s;
}

.mobile-sticky-action-bar .dropup .dropdown-item:hover,
.mobile-sticky-action-bar .dropup .dropdown-item:active {
    background-color: #1e293b !important;
    color: #00c6ff !important;
}

/* Compact perfection for Mobile Sticky Action Bar */
@media (max-width: 767.98px) {
    .mobile-sticky-action-bar {
        padding: 6px 8px !important;
        gap: 6px !important;
        height: 56px !important;
    }

    .mobile-sticky-action-bar .btn {
        font-size: 0.78rem !important;
        padding: 0 4px !important;
        letter-spacing: 0.02em;
        height: 44px;
    }

    .mobile-sticky-action-bar .dropup .dropdown-toggle::after {
        margin-left: 0.25em;
        vertical-align: 0.15em;
    }
}

@media (max-width: 360px) {
    .mobile-sticky-action-bar .btn {
        font-size: 0.72rem !important;
        padding: 0 2px !important;
    }
    .mobile-sticky-action-bar .btn i {
        margin-right: 2px !important;
    }
}
