/*!
 * TFast Digital Core CSS Framework v2.7 (Latest 2026 Edition)
 * Proprietary Dynamic Layer with MTN MoMo/Airtel Money & WhatsApp Interactive Cart
 * Copyright (c) 2026 TFast Digital Agency (https://tfastdigital.com)
 */

:root {
    --tfast-primary: #2563eb;
    --tfast-primary-hover: #1d4ed8;
    --tfast-secondary: #0f172a;
    --tfast-accent: #38bdf8;
    --tfast-success: #10b981;
    --tfast-ugx-gold: #f59e0b;
    --tfast-wa-green: #25d366;
    --tfast-momo-yellow: #ffcc00;
    --tfast-airtel-red: #e11d48;
    --tfast-dark: #090d16;
    --tfast-surface: #111827;
    --tfast-surface-light: #1e293b;
    --tfast-border: rgba(255, 255, 255, 0.12);
    --tfast-text-light: #f8fafc;
    --tfast-text-muted: #94a3b8;
    
    --tfast-font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --tfast-radius-sm: 6px;
    --tfast-radius-md: 10px;
    --tfast-radius-lg: 16px;
    --tfast-radius-full: 9999px;
    --tfast-shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.35);
    --tfast-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base modern resets */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

*:focus-visible {
    outline: 2px solid var(--tfast-accent) !important;
    outline-offset: 2px !important;
}

/* ==========================================================================
   DYNAMIC COMPONENT 1: FLOATING CART / ORDER TRAY
   ========================================================================== */
.tfast-cart-launcher {
    position: fixed;
    bottom: 96px;
    right: 24px;
    background: #0f172a;
    color: #ffffff;
    border: 2px solid var(--tfast-ugx-gold);
    border-radius: var(--tfast-radius-full);
    padding: 10px 20px;
    display: none; /* Shown dynamically when items > 0 */
    align-items: center;
    gap: 12px;
    font-family: var(--tfast-font-sans);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 999990;
    transition: var(--tfast-transition);
}

.tfast-cart-launcher:hover {
    transform: translateY(-2px) scale(1.03);
    background: #1e293b;
    border-color: #fbbf24;
}

.tfast-cart-count-badge {
    background: var(--tfast-ugx-gold);
    color: #000000;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

/* Cart Modal Drawer */
.tfast-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.tfast-cart-drawer {
    background: #0f172a;
    color: #f8fafc;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    border-radius: 20px 20px 0 0;
    border-top: 1px solid var(--tfast-border);
    box-shadow: var(--tfast-shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: var(--tfast-font-sans);
    animation: tfastSlideUp 0.3s ease-out;
}

@keyframes tfastSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.tfast-cart-header {
    padding: 18px 20px;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--tfast-border);
}

.tfast-cart-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tfast-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.tfast-close-btn:hover { color: #fff; }

.tfast-cart-items {
    padding: 16px 20px;
    overflow-y: auto;
    flex-grow: 1;
    max-height: 280px;
}

.tfast-cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tfast-item-details { flex-grow: 1; padding-right: 12px; }
.tfast-item-name { font-weight: 600; font-size: 14px; color: #fff; }
.tfast-item-price { font-size: 13px; color: var(--tfast-ugx-gold); }

.tfast-qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tfast-qty-btn {
    width: 26px;
    height: 26px;
    background: #334155;
    border: none;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tfast-qty-btn:hover { background: var(--tfast-primary); }

.tfast-cart-footer {
    padding: 18px 20px;
    background: #111827;
    border-top: 1px solid var(--tfast-border);
}

.tfast-cart-input {
    width: 100%;
    background: #1e293b;
    border: 1px solid var(--tfast-border);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 10px;
    outline: none;
}

.tfast-cart-input:focus { border-color: var(--tfast-accent); }

.tfast-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #fff;
}

.tfast-total-amount { color: var(--tfast-ugx-gold); font-size: 18px; }

.tfast-checkout-wa-btn {
    width: 100%;
    background: var(--tfast-wa-green);
    color: #ffffff !important;
    border: none;
    border-radius: var(--tfast-radius-md);
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--tfast-transition);
}

.tfast-checkout-wa-btn:hover {
    background: #1eb855;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   DYNAMIC COMPONENT 2: MTN MOMO & AIRTEL MONEY PAYMENT MODAL
   ========================================================================== */
.tfast-momo-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tfast-momo-card {
    background: #0f172a;
    color: #f8fafc;
    width: 100%;
    max-width: 440px;
    border-radius: 16px;
    border: 1px solid var(--tfast-border);
    box-shadow: var(--tfast-shadow-lg);
    overflow: hidden;
    font-family: var(--tfast-font-sans);
    animation: tfastPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes tfastPop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.tfast-momo-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--tfast-border);
}

.tfast-momo-body {
    padding: 24px 20px;
}

.tfast-network-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.tfast-net-btn {
    padding: 12px;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    transition: var(--tfast-transition);
}

.tfast-net-btn.momo {
    background: #ffcc00;
    color: #000000;
}

.tfast-net-btn.airtel {
    background: #e11d48;
    color: #ffffff;
}

.tfast-net-btn.active {
    border-color: #ffffff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.tfast-merchant-box {
    background: #1e293b;
    border: 1px dashed var(--tfast-ugx-gold);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    margin-bottom: 20px;
}

.tfast-merchant-title {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--tfast-text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.tfast-merchant-code {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.tfast-copy-code-btn {
    background: #334155;
    color: #38bdf8;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--tfast-transition);
}

.tfast-copy-code-btn:hover {
    background: #475569;
    color: #ffffff;
}

.tfast-step-list {
    list-style: decimal inside;
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 20px;
    line-height: 1.6;
}

.tfast-confirm-momo-btn {
    width: 100%;
    background: var(--tfast-wa-green);
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ==========================================================================
   DYNAMIC COMPONENT 3: INTERACTIVE REPAIR / SERVICE CALCULATOR
   ========================================================================== */
.tfast-calc-box {
    background: #111827;
    border: 1px solid var(--tfast-border);
    border-radius: var(--tfast-radius-lg);
    padding: 24px;
    max-width: 540px;
    margin: 20px auto;
    font-family: var(--tfast-font-sans);
    color: #fff;
    box-shadow: var(--tfast-shadow-lg);
}

.tfast-calc-header {
    text-align: center;
    margin-bottom: 20px;
}

.tfast-calc-header h4 {
    margin: 0 0 6px;
    font-size: 1.25rem;
    color: #fff;
}

.tfast-calc-header p {
    font-size: 13px;
    color: var(--tfast-text-muted);
    margin: 0;
}

.tfast-calc-group {
    margin-bottom: 16px;
}

.tfast-calc-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 6px;
}

.tfast-calc-select {
    width: 100%;
    background: #1e293b;
    border: 1px solid var(--tfast-border);
    color: #fff;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.tfast-calc-select:focus { border-color: var(--tfast-accent); }

.tfast-calc-result {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    margin: 20px 0;
}

.tfast-calc-result-price {
    font-size: 26px;
    font-weight: 800;
    color: var(--tfast-ugx-gold);
}

.tfast-calc-submit-btn {
    width: 100%;
    background: var(--tfast-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--tfast-transition);
}

.tfast-calc-submit-btn:hover {
    background: var(--tfast-primary-hover);
    transform: translateY(-2px);
}


/* ==========================================================================
   AOS (Animate On Scroll) Native Hardware-Accelerated Support v2.8
   ========================================================================== */
[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
    transition-duration: 0.65s;
    transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform, opacity;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: none !important;
}

/* Core Animations */
[data-aos="fade-up"] { transform: translate3d(0, 35px, 0); }
[data-aos="fade-down"] { transform: translate3d(0, -35px, 0); }
[data-aos="fade-left"] { transform: translate3d(35px, 0, 0); }
[data-aos="fade-right"] { transform: translate3d(-35px, 0, 0); }
[data-aos="zoom-in"] { transform: scale3d(0.9, 0.9, 0.9); }
[data-aos="zoom-out"] { transform: scale3d(1.1, 1.1, 1.1); }
[data-aos="flip-up"] { transform: perspective(2500px) rotateX(-50deg); }
[data-aos="flip-down"] { transform: perspective(2500px) rotateX(50deg); }

/* Animation Delays */
[data-aos-delay="50"] { transition-delay: 50ms; }
[data-aos-delay="100"] { transition-delay: 100ms; }
[data-aos-delay="150"] { transition-delay: 150ms; }
[data-aos-delay="200"] { transition-delay: 200ms; }
[data-aos-delay="300"] { transition-delay: 300ms; }
[data-aos-delay="400"] { transition-delay: 400ms; }
[data-aos-delay="500"] { transition-delay: 500ms; }
[data-aos-delay="600"] { transition-delay: 600ms; }
[data-aos-delay="800"] { transition-delay: 800ms; }

/* Animation Durations */
[data-aos-duration="400"] { transition-duration: 400ms; }
[data-aos-duration="600"] { transition-duration: 600ms; }
[data-aos-duration="800"] { transition-duration: 800ms; }
[data-aos-duration="1000"] { transition-duration: 1000ms; }
[data-aos-duration="1200"] { transition-duration: 1200ms; }


/* ==========================================================================
   POLISH LAYER: MICRO-INTERACTIONS, GLOWS & AMBIENT EFFECTS (v2.9)
   ========================================================================== */

/* 1. Global Scroll Progress Bar */
.tfast-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #38bdf8 50%, #10b981 100%);
    z-index: 1000000;
    width: 0%;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
    pointer-events: none;
    transition: width 0.08s ease-out;
}

/* 2. Button Shine Sweep Effect */
.tfast-btn-primary, .tfast-cta-btn, .tfast-checkout-wa-btn {
    position: relative;
    overflow: hidden;
}

.tfast-btn-primary::after, .tfast-cta-btn::after, .tfast-checkout-wa-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(
        60deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    pointer-events: none;
    transition: none;
}

.tfast-btn-primary:hover::after, .tfast-cta-btn:hover::after, .tfast-checkout-wa-btn:hover::after {
    animation: tfastShineSweep 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tfastShineSweep {
    0% { left: -60%; }
    100% { left: 140%; }
}

/* 3. Glass Toast Notification System */
.tfast-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.tfast-toast {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #f8fafc;
    border-radius: 12px;
    padding: 14px 20px;
    font-family: var(--tfast-font-sans);
    font-size: 13px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 380px;
    pointer-events: auto;
    animation: tfastToastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: top right;
}

.tfast-toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

.tfast-toast-content {
    flex-grow: 1;
}

.tfast-toast-title {
    font-weight: 700;
    color: #ffffff;
    font-size: 13px;
    margin-bottom: 2px;
}

.tfast-toast-desc {
    color: #94a3b8;
    font-size: 12px;
}

@keyframes tfastToastSlideIn {
    from { opacity: 0; transform: translateY(-16px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes tfastToastSlideOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-16px) scale(0.95); }
}

/* 4. Enhanced Dual-Ring Radar Pulse for WhatsApp */
.tf-floating-whatsapp {
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.15) inset !important;
}

.tf-floating-whatsapp .tf-pulse {
    animation: tfMultiPulse 2.4s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

@keyframes tfMultiPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.4); opacity: 0.25; }
    100% { transform: scale(1.85); opacity: 0; }
}

/* 5. Smooth Ambient Spotlight Lighting for Cards */
.tfast-card-spotlight {
    position: relative;
    overflow: hidden;
}

.tfast-card-spotlight::before {
    content: '';
    position: absolute;
    top: var(--mouse-y, -1000px);
    left: var(--mouse-x, -1000px);
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.14) 0%, rgba(56, 189, 248, 0) 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tfast-card-spotlight:hover::before {
    opacity: 1;
}

/* ==========================================================================
   2026 MODERN STYLING UPGRADE LAYER (TASTE GATE R2 COMPLIANT)
   ========================================================================== */

/* Modern Font Rendering & Antialiasing */
body, input, textarea, select, button {
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
}

/* Sleek Minimalist Custom Scrollbar */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Modern Glass & Acrylic Header Polish */
.header-area.sticky, .main-header.fixed-header, .navbar.sticky, header.sticky, .header-sticky {
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    background: rgba(255, 255, 255, 0.88) !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Dark Navbar Frosted Glass Support */
.header-dark .header-area.sticky, .header-area.dark.sticky, .bg-dark.sticky {
    background: rgba(15, 23, 42, 0.85) !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.3) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Modern Card Hover Elevation & Transitions */
.service-item, .team-item, .pricing-card, .blog-item, .card, .feature-box, .department-card {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease !important;
}

.service-item:hover, .team-item:hover, .pricing-card:hover, .blog-item:hover, .card:hover, .feature-box:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1), 0 10px 15px -5px rgba(0, 0, 0, 0.04) !important;
}

/* Modern Button Polish */
.btn, .rts-btn, .theme-btn, .tf-cta-btn, .primary-btn {
    letter-spacing: 0.02em !important;
    font-weight: 600 !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn:active, .rts-btn:active, .theme-btn:active, .tf-cta-btn:active {
    transform: scale(0.97) !important;
}

/* Image Polish & Border Radii */
.service-item img, .team-item img, .blog-item img, .tour-item img, .department-item img {
    border-radius: 12px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.service-item:hover img, .tour-item:hover img, .blog-item:hover img {
    transform: scale(1.03);
}

/* Mobile Touch Optimization */
@media (max-width: 768px) {
    body {
        -webkit-tap-highlight-color: transparent;
    }
    .tf-demo-topbar {
        font-size: 11px !important;
        padding: 6px 12px !important;
    }
}
