/* ============================================
   WORLD-CLASS IT COMPANY DESIGN
   Psychology-Driven Conversion Optimization
   ============================================ */

/* ============================================
   1. SOCIAL PROOF ENHANCEMENTS
   ============================================ */

/* ============================================
   BEAUTIFUL & REALISTIC LIVE VISITORS WIDGET
   ============================================ */

.rit-live-visitors {
    position: fixed;
    top: 120px; /* Default: accounts for top bar + nav (40px + 80px) */
    left: 20px; /* Changed from right to left */
    right: auto; /* Ensure right is not set */
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 0;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 40px rgba(16, 185, 129, 0.2);
    z-index: 9997;
    max-width: 280px;
    min-width: 260px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Poppins', sans-serif;
    /* Will be dynamically adjusted by JavaScript based on header height */
}

.rit-live-visitors:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 60px rgba(16, 185, 129, 0.3);
}

/* Header with live indicator */
.rit-live-visitors-header {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.15));
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.rit-live-indicator {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #10b981, #22c55e);
    border-radius: 50%;
    position: relative;
    animation: live-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.rit-live-indicator::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.3);
    animation: live-ripple 2s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.9;
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.8);
    }
}

@keyframes live-ripple {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.rit-live-visitors-title {
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    flex: 1;
}

.rit-live-count {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    padding: 4px 10px;
    color: #22c55e;
    font-weight: 800;
    font-size: 14px;
    min-width: 50px;
    text-align: center;
}

/* Minimize Button */
.rit-live-minimize-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}

.rit-live-minimize-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: scale(1.05);
}

.rit-live-minimize-btn:active {
    transform: scale(0.95);
}

.rit-live-minimize-btn i {
    line-height: 1;
    display: block;
}

/* Minimized state - moves to bottom */
.rit-live-visitors.rit-minimized {
    top: auto !important;
    bottom: 20px;
    left: 20px !important;
    right: auto !important;
    max-height: 60px;
    overflow: hidden;
    max-width: 280px;
    min-width: 200px;
    width: auto;
}

.rit-live-visitors.rit-minimized .rit-live-activity,
.rit-live-visitors.rit-minimized .rit-live-visitors-footer {
    display: none;
}

.rit-live-visitors.rit-minimized .rit-live-minimize-btn i::before {
    content: "\f479"; /* bi-chevron-up */
    font-family: "bootstrap-icons" !important;
}

/* Mobile responsive for buttons */
@media (max-width: 767.98px) {
    .rit-live-minimize-btn {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    
    .rit-live-visitors.rit-minimized {
        bottom: 10px;
        left: 10px;
        right: auto;
        max-width: calc(100vw - 20px);
        min-width: 180px;
    }
}

/* Activity feed */
.rit-live-activity {
    padding: 12px 16px;
    max-height: 500px; /* Increased to show up to 30 activities */
    overflow-y: auto;
    min-height: 100px; /* Ensure minimum height */
}

.rit-live-activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    animation: slide-in 0.5s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

.rit-live-activity-item:last-child {
    border-bottom: none;
}

.rit-live-activity-item:nth-child(1) { animation-delay: 0.1s; }
.rit-live-activity-item:nth-child(2) { animation-delay: 0.2s; }
.rit-live-activity-item:nth-child(3) { animation-delay: 0.3s; }

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.rit-live-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #22d3ee);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.rit-live-activity-text {
    flex: 1;
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.5;
}

.rit-live-activity-name {
    color: #e2e8f0;
    font-weight: 600;
}

.rit-live-activity-location {
    color: #94a3b8;
    font-size: 11px;
    margin-top: 2px;
}

.rit-live-activity-time {
    color: #64748b;
    font-size: 10px;
    white-space: nowrap;
    margin-left: auto;
}

/* Footer */
.rit-live-visitors-footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.rit-live-visitors-footer-text {
    color: #94a3b8;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.rit-live-visitors-footer-text i {
    color: #22c55e;
    animation: icon-bounce 2s ease-in-out infinite;
}

@keyframes icon-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* Scrollbar styling */
.rit-live-activity::-webkit-scrollbar {
    width: 4px;
}

.rit-live-activity::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.rit-live-activity::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.4);
    border-radius: 2px;
}

.rit-live-activity::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.6);
}

/* Ensure Tawk.to widget stays on top (z-index 9999) */
#tawkchat-container,
#tawkchat-container iframe,
.tawk-min-container {
    z-index: 9999 !important;
}

/* ============================================
   MOBILE & TABLET OPTIMIZATION
   ============================================ */

/* Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .rit-live-visitors {
        /* JavaScript will calculate optimal position */
        top: 100px; /* Fallback - JS will override */
        left: 15px;
        right: auto;
        max-width: 260px;
        min-width: 240px;
    }
    
    .rit-live-visitors-header {
        padding: 11px 14px;
    }
    
    .rit-live-activity {
        padding: 11px 14px;
        max-height: 450px; /* Increased for tablet to show more activities */
    }
    
    .rit-live-avatar {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .rit-live-activity-text {
        font-size: 12px;
    }
    
    .rit-trust-badge-container {
        gap: 10px;
    }
    
    .rit-trust-badge {
        padding: 8px 14px;
        font-size: 11px;
    }
    
    .rit-risk-reversal {
        gap: 12px;
        padding: 16px;
    }
    
    .rit-payment-security {
        gap: 12px;
        padding: 14px;
    }
}

/* Mobile Landscape (568px - 767px) */
@media (max-width: 767.98px) and (orientation: landscape) {
    .rit-live-visitors {
        top: 10px;
        left: 10px;
        right: auto;
        max-width: 220px;
        min-width: 200px;
        position: fixed;
    }
    
    .rit-live-activity {
        max-height: 120px;
    }
    
    .rit-live-visitors-header {
        padding: 8px 10px;
    }
    
    .rit-live-visitors-title {
        font-size: 11px;
    }
    
    .rit-live-count {
        font-size: 12px;
        padding: 3px 8px;
    }
}

/* Mobile Portrait (320px - 767px) */
@media (max-width: 767.98px) {
    .rit-live-visitors {
        /* Hide on mobile - takes too much space and not essential */
        display: none !important;
    }
    
    .rit-live-visitors-header {
        padding: 10px 12px;
        gap: 8px;
    }
    
    .rit-live-indicator {
        width: 8px;
        height: 8px;
    }
    
    .rit-live-visitors-title {
        font-size: 11px;
        letter-spacing: 0.2px;
    }
    
    .rit-live-count {
        font-size: 12px;
        padding: 3px 8px;
        min-width: 40px;
    }
    
    .rit-live-activity {
        padding: 10px 12px;
        max-height: 400px; /* Increased for mobile to show more activities */
    }
    
    .rit-live-activity-item {
        padding: 6px 0;
        gap: 8px;
    }
    
    .rit-live-avatar {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .rit-live-activity-text {
        font-size: 11px;
    }
    
    .rit-live-activity-name {
        font-size: 11px;
    }
    
    .rit-live-activity-location {
        font-size: 10px;
        margin-top: 1px;
    }
    
    .rit-live-activity-time {
        font-size: 9px;
    }
    
    .rit-live-visitors-footer {
        padding: 8px 12px;
    }
    
    .rit-live-visitors-footer-text {
        font-size: 10px;
    }
    
    /* Trust badges mobile */
    .rit-trust-badge-container {
        gap: 8px;
        margin: 20px 0;
        padding: 0 10px;
    }
    
    .rit-trust-badge {
        padding: 8px 12px;
        font-size: 11px;
        flex: 1 1 calc(50% - 4px);
        min-width: calc(50% - 4px);
        max-width: calc(50% - 4px);
    }
    
    .rit-trust-badge i {
        font-size: 14px;
    }
    
    /* Risk reversal mobile */
    .rit-risk-reversal {
        gap: 10px;
        padding: 16px 12px;
        margin: 20px 10px;
        flex-direction: column;
    }
    
    .rit-risk-reversal-item {
        font-size: 13px;
        width: 100%;
        justify-content: flex-start;
    }
    
    .rit-risk-reversal-item i {
        font-size: 16px;
    }
    
    /* Payment security mobile */
    .rit-payment-security {
        gap: 10px;
        padding: 12px;
        margin: 16px 10px;
        flex-direction: column;
    }
    
    .rit-payment-security-item {
        font-size: 11px;
        width: 100%;
        justify-content: flex-start;
    }
    
    .rit-payment-security-item i {
        font-size: 14px;
    }
    
    /* Experience badge mobile */
    .rit-experience-badge {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .rit-experience-badge i {
        font-size: 16px;
    }
    
    /* Guarantee badge mobile */
    .rit-guarantee-badge {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .rit-guarantee-badge i {
        font-size: 18px;
    }
    
    /* Urgency badge mobile */
    .rit-urgency-badge {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    /* Scroll progress mobile */
    .rit-scroll-progress {
        height: 3px;
    }
}

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    .rit-live-visitors {
        top: 60px;
        left: 8px;
        right: auto;
        max-width: calc(100vw - 16px);
        min-width: 180px;
        width: auto;
        max-width: 200px;
    }
    
    .rit-live-visitors-header {
        padding: 8px 10px;
        gap: 6px;
    }
    
    .rit-live-indicator {
        width: 7px;
        height: 7px;
    }
    
    .rit-live-visitors-title {
        font-size: 10px;
    }
    
    .rit-live-count {
        font-size: 11px;
        padding: 2px 6px;
        min-width: 35px;
    }
    
    .rit-live-activity {
        padding: 8px 10px;
        max-height: 120px;
    }
    
    .rit-live-activity-item {
        padding: 5px 0;
        gap: 6px;
    }
    
    .rit-live-avatar {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    .rit-live-activity-text {
        font-size: 10px;
    }
    
    .rit-live-activity-name {
        font-size: 10px;
    }
    
    .rit-live-activity-location {
        font-size: 9px;
    }
    
    .rit-live-activity-time {
        font-size: 8px;
    }
    
    .rit-live-visitors-footer {
        padding: 6px 10px;
    }
    
    .rit-live-visitors-footer-text {
        font-size: 9px;
    }
    
    /* Trust badges small mobile */
    .rit-trust-badge-container {
        gap: 6px;
        margin: 16px 0;
        padding: 0 8px;
    }
    
    .rit-trust-badge {
        padding: 6px 10px;
        font-size: 10px;
        flex: 1 1 100%;
        min-width: 100%;
        max-width: 100%;
    }
    
    .rit-trust-badge i {
        font-size: 12px;
    }
    
    /* Risk reversal small mobile */
    .rit-risk-reversal {
        gap: 8px;
        padding: 12px 10px;
        margin: 16px 8px;
    }
    
    .rit-risk-reversal-item {
        font-size: 12px;
    }
    
    .rit-risk-reversal-item i {
        font-size: 14px;
    }
    
    /* Payment security small mobile */
    .rit-payment-security {
        gap: 8px;
        padding: 10px;
        margin: 12px 8px;
    }
    
    .rit-payment-security-item {
        font-size: 10px;
    }
    
    .rit-payment-security-item i {
        font-size: 12px;
    }
}

/* Extra Small Mobile (max-width: 360px) */
@media (max-width: 360px) {
    .rit-live-visitors {
        top: 55px;
        left: 5px;
        right: auto;
        max-width: calc(100vw - 10px);
        min-width: 170px;
        width: auto;
        max-width: 180px;
    }
    
    .rit-live-visitors-header {
        padding: 7px 8px;
    }
    
    .rit-live-activity {
        padding: 7px 8px;
        max-height: 100px;
    }
    
    .rit-live-avatar {
        width: 22px;
        height: 22px;
        font-size: 9px;
    }
    
    .rit-live-activity-text {
        font-size: 9px;
    }
    
    .rit-trust-badge {
        padding: 5px 8px;
        font-size: 9px;
    }
}

/* Touch-friendly optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets for mobile */
    .rit-trust-badge,
    .rit-risk-reversal-item,
    .rit-payment-security-item {
        min-height: 44px; /* Apple's recommended touch target size */
    }
    
    .rit-live-visitors {
        /* Prevent accidental touches */
        touch-action: pan-y;
    }
    
    /* Remove hover effects on touch devices */
    .rit-live-visitors:hover {
        transform: none;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .rit-live-indicator {
        box-shadow: 0 0 15px rgba(16, 185, 129, 0.8);
    }
    
    .rit-live-avatar {
        border-width: 2.5px;
    }
}

/* Safe area insets for notched devices (iPhone X, etc.) */
@supports (padding: max(0px)) {
    .rit-live-visitors {
        /* JavaScript will override this dynamically */
        top: max(120px, env(safe-area-inset-top) + 100px);
        left: max(20px, env(safe-area-inset-left) + 10px);
        right: auto;
    }
    
    @media (max-width: 767.98px) {
        .rit-live-visitors {
            /* JavaScript will override this dynamically */
            top: max(100px, env(safe-area-inset-top) + 80px);
            left: max(10px, env(safe-area-inset-left) + 5px);
            right: auto;
        }
    }
}

/* Prevent text size adjustment on iOS */
.rit-live-visitors,
.rit-live-visitors * {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Smooth scrolling for activity feed on mobile */
.rit-live-activity {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Optimize for reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .rit-live-visitors,
    .rit-live-indicator,
    .rit-live-activity-item,
    .rit-live-visitors-footer-text i {
        animation: none !important;
        transition: none !important;
    }
    
    .rit-live-visitors:hover {
        transform: none !important;
    }
}

/* Trusted By Section */
.rit-trusted-by {
    position: relative;
    overflow: hidden;
}

.rit-trusted-by .row > div {
    transition: all 0.3s ease;
}

.rit-trusted-by .row > div:hover {
    opacity: 1 !important;
    transform: translateY(-4px);
}

/* Why Choose Us Section */
.rit-why-choose {
    position: relative;
    overflow: hidden;
}

.rit-why-choose::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(34, 211, 238, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.rit-why-choose .card {
    position: relative;
    z-index: 1;
}

/* Enhanced Scroll Animations */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for children */
[data-animate] .row > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated .row > *:nth-child(1) { transition-delay: 0.1s; }
[data-animate].animated .row > *:nth-child(2) { transition-delay: 0.2s; }
[data-animate].animated .row > *:nth-child(3) { transition-delay: 0.3s; }
[data-animate].animated .row > *:nth-child(4) { transition-delay: 0.4s; }
[data-animate].animated .row > *:nth-child(5) { transition-delay: 0.5s; }
[data-animate].animated .row > *:nth-child(6) { transition-delay: 0.6s; }

[data-animate].animated .row > * {
    opacity: 1;
    transform: translateY(0);
}

/* Final CTA Section */
.rit-final-cta {
    position: relative;
}

.rit-final-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse-glow 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

/* Sticky CTA Bar (appears on scroll) */
.rit-sticky-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
    z-index: 9998;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.rit-sticky-cta-bar.show {
    transform: translateY(0);
}

.rit-sticky-cta-bar .cta-text {
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    flex: 1;
    text-align: center;
    min-width: 200px;
}

.rit-sticky-cta-bar .cta-button {
    background: linear-gradient(135deg, #22d3ee 0%, #0ea5e9 100%);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(34, 211, 238, 0.4);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.rit-sticky-cta-bar .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 211, 238, 0.5);
}

.rit-sticky-cta-bar .close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.rit-sticky-cta-bar .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

@media (max-width: 767.98px) {
    .rit-sticky-cta-bar {
        padding: 12px 15px;
        gap: 12px;
    }
    
    .rit-sticky-cta-bar .cta-text {
        font-size: 14px;
        min-width: auto;
        width: 100%;
    }
    
    .rit-sticky-cta-bar .cta-button {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* Trust badges with animation */
.rit-trust-badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 24px 0;
}

.rit-trust-badge {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 10px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.rit-trust-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.2);
    border-color: rgba(14, 165, 233, 0.4);
}

.rit-trust-badge i {
    color: #0ea5e9;
    font-size: 16px;
}

/* Review stars with twinkle effect */
.rit-review-stars {
    display: inline-flex;
    gap: 4px;
    margin: 8px 0;
}

.rit-review-stars i {
    color: #fbbf24;
    font-size: 18px;
    animation: star-twinkle 2s ease-in-out infinite;
}

.rit-review-stars i:nth-child(1) { animation-delay: 0s; }
.rit-review-stars i:nth-child(2) { animation-delay: 0.2s; }
.rit-review-stars i:nth-child(3) { animation-delay: 0.4s; }
.rit-review-stars i:nth-child(4) { animation-delay: 0.6s; }
.rit-review-stars i:nth-child(5) { animation-delay: 0.8s; }

@keyframes star-twinkle {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Client logos carousel (when available) */
.rit-client-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 40px 0;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.rit-client-logos:hover {
    opacity: 0.8;
    filter: grayscale(0%);
}

.rit-client-logos img {
    max-height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.rit-client-logos img:hover {
    transform: scale(1.1);
}

/* ============================================
   2. AUTHORITY SIGNALS
   ============================================ */

/* Years of experience badge */
.rit-experience-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.2));
    border: 2px solid rgba(245, 158, 11, 0.4);
    border-radius: 12px;
    padding: 10px 18px;
    font-weight: 700;
    color: #fbbf24;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    backdrop-filter: blur(8px);
}

.rit-experience-badge i {
    font-size: 18px;
    animation: trophy-shine 3s ease-in-out infinite;
}

@keyframes trophy-shine {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

/* Certification badges */
.rit-certification-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(2, 132, 199, 0.1));
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #0284c7;
    transition: all 0.3s ease;
}

.rit-certification-badge:hover {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(2, 132, 199, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.25);
}

/* Award ribbons */
.rit-award-ribbon {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 8px 20px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%);
    animation: ribbon-float 3s ease-in-out infinite;
}

@keyframes ribbon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* ============================================
   3. SCARCITY & URGENCY
   ============================================ */

/* Limited time offer badge */
.rit-urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    animation: urgency-pulse 1.5s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

@keyframes urgency-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 8px 20px rgba(239, 68, 68, 0.6); }
}

.rit-urgency-badge i {
    animation: fire-flicker 1s ease-in-out infinite;
}

/* Countdown timer */
.rit-countdown {
    display: inline-flex;
    gap: 8px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 12px;
    padding: 12px 18px;
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.rit-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.rit-countdown-number {
    font-size: 24px;
    color: #22d3ee;
    line-height: 1;
}

.rit-countdown-label {
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

/* Limited spots available */
.rit-limited-spots {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 16px 0;
    font-size: 14px;
    font-weight: 600;
    color: #dc2626;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rit-limited-spots i {
    animation: pulse-spots 2s ease-in-out infinite;
}

@keyframes pulse-spots {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ============================================
   4. TRUST SIGNALS
   ============================================ */

/* Money-back guarantee badge */
.rit-guarantee-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
    border: 2px solid rgba(16, 185, 129, 0.4);
    border-radius: 12px;
    padding: 10px 18px;
    font-weight: 700;
    color: #22c55e;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    backdrop-filter: blur(8px);
}

.rit-guarantee-badge i {
    font-size: 20px;
    animation: shield-pulse 2s ease-in-out infinite;
}

@keyframes shield-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Security badges */
.rit-security-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 20px 0;
}

.rit-security-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    transition: all 0.3s ease;
}

.rit-security-badge:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.3);
    transform: translateY(-2px);
}

.rit-security-badge i {
    color: #10b981;
    font-size: 14px;
}

/* Payment security */
.rit-payment-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 20px 0;
    padding: 16px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.rit-payment-security-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.rit-payment-security-item i {
    color: #10b981;
    font-size: 16px;
}

/* ============================================
   5. VISUAL HIERARCHY ENHANCEMENTS
   ============================================ */

/* F-pattern reading optimization */
.rit-hero h1 {
    font-size: clamp(36px, 6vw, 64px) !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
    letter-spacing: -1px !important;
    margin-bottom: 20px !important;
}

.rit-hero p {
    font-size: clamp(18px, 2.5vw, 22px) !important;
    line-height: 1.7 !important;
    max-width: 650px !important;
    margin-bottom: 32px !important;
}

/* Z-pattern CTA placement */
.rit-hero-ctas {
    margin-bottom: 32px !important;
}

/* Section headers with better hierarchy */
.rit-pricing h2,
.rit-services h2,
.rit-cases h2,
.rit-stats h2 {
    font-size: clamp(36px, 5vw, 48px) !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.5px !important;
    margin-bottom: 16px !important;
}

/* Progressive disclosure - expandable sections */
.rit-expandable-section {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    background: rgba(248, 250, 252, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.rit-expandable-section:hover {
    background: rgba(248, 250, 252, 0.8);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.rit-expandable-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    color: #0f172a;
    font-size: 16px;
}

.rit-expandable-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 16px;
    color: #475569;
    line-height: 1.7;
}

.rit-expandable-section.active .rit-expandable-section-content {
    max-height: 500px;
}

/* ============================================
   6. COLOR PSYCHOLOGY ENHANCEMENTS
   ============================================ */

/* Success green for positive outcomes */
.rit-success-color {
    color: #10b981 !important;
}

.rit-success-bg {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

/* Trust blue for security */
.rit-trust-color {
    color: #0ea5e9 !important;
}

.rit-trust-bg {
    background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
}

/* Urgency red for limited offers */
.rit-urgency-color {
    color: #ef4444 !important;
}

.rit-urgency-bg {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
}

/* Premium gold for value */
.rit-premium-color {
    color: #f59e0b !important;
}

.rit-premium-bg {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

/* ============================================
   7. MICRO-INTERACTIONS
   ============================================ */

/* Button ripple effect */
.rit-ripple-button {
    position: relative;
    overflow: hidden;
}

.rit-ripple-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.rit-ripple-button:active::after {
    width: 300px;
    height: 300px;
}

/* Hover lift effect for cards */
.rit-card-lift {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.rit-card-lift:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 16px 48px rgba(14, 165, 233, 0.2) !important;
}

/* Loading skeleton for images */
.rit-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Progress indicator */
.rit-progress-bar {
    height: 4px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.rit-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0ea5e9, #22d3ee);
    border-radius: 2px;
    animation: progress-fill 2s ease-in-out;
}

@keyframes progress-fill {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ============================================
   8. STICKY ELEMENTS (DISABLED - Tawk.to handles this)
   ============================================ */

/* Sticky CTA bar - DISABLED to avoid conflict with Tawk.to */
.rit-sticky-cta {
    display: none !important; /* Removed - Tawk.to chat widget handles customer contact */
}

.rit-sticky-cta-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rit-sticky-cta-text {
    font-weight: 600;
    font-size: 15px;
}

.rit-sticky-cta-button {
    background: linear-gradient(135deg, #0ea5e9, #22d3ee);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.rit-sticky-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
}

.rit-sticky-cta-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s ease;
}

.rit-sticky-cta-close:hover {
    color: white;
}

/* Floating action button - DISABLED to avoid conflict with Tawk.to */
.rit-fab {
    display: none !important; /* Removed - Tawk.to chat widget handles quick contact */
}

/* ============================================
   9. EMOTIONAL TRIGGERS
   ============================================ */

/* Success story highlight */
.rit-success-story {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
    border-left: 4px solid #10b981;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    position: relative;
    overflow: hidden;
}

.rit-success-story::before {
    content: '✓';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    animation: check-bounce 0.6s ease-out;
}

/* Transformation before/after */
.rit-transformation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 32px 0;
}

.rit-transformation-before,
.rit-transformation-after {
    padding: 20px;
    border-radius: 12px;
    position: relative;
}

.rit-transformation-before {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
    border: 2px dashed rgba(239, 68, 68, 0.3);
}

.rit-transformation-after {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.rit-transformation-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   10. CONVERSION OPTIMIZATION
   ============================================ */

/* Multiple CTA variations */
.rit-cta-primary {
    background: linear-gradient(135deg, #0ea5e9, #22d3ee) !important;
    color: white !important;
    padding: 16px 32px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 17px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.rit-cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.rit-cta-primary:hover::before {
    left: 100%;
}

.rit-cta-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.5) !important;
}

.rit-cta-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    color: white !important;
    padding: 16px 32px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 17px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    backdrop-filter: blur(8px) !important;
    transition: all 0.3s ease !important;
}

.rit-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-2px) !important;
}

/* Value proposition highlight */
.rit-value-prop {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(34, 211, 238, 0.05));
    border: 2px solid rgba(14, 165, 233, 0.2);
    border-radius: 16px;
    padding: 32px;
    margin: 32px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.rit-value-prop::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    animation: value-prop-rotate 20s linear infinite;
}

@keyframes value-prop-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.rit-value-prop-content {
    position: relative;
    z-index: 2;
}

/* Risk reversal */
.rit-risk-reversal {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin: 24px 0;
    padding: 20px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.rit-risk-reversal-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}

.rit-risk-reversal-item i {
    color: #10b981;
    font-size: 18px;
}

/* ============================================
   11. RESPONSIVE ENHANCEMENTS
   ============================================ */

@media (max-width: 767.98px) {
    .rit-live-visitors {
        top: 60px;
        right: 10px;
        font-size: 11px;
        padding: 8px 12px;
        max-width: 160px;
    }
    
    .rit-transformation {
        grid-template-columns: 1fr;
    }
    
    .rit-client-logos {
        gap: 24px;
    }
    
    .rit-client-logos img {
        max-height: 40px;
    }
}

/* ============================================
   12. ACCESSIBILITY ENHANCEMENTS
   ============================================ */

/* Focus states */
.rit-cta-primary:focus,
.rit-cta-secondary:focus,
.rit-fab:focus {
    outline: 3px solid rgba(14, 165, 233, 0.5);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .rit-cta-primary,
    .rit-cta-secondary {
        border-width: 3px;
    }
}

/* ============================================
   13. PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* GPU acceleration for animations */
.rit-card-lift,
.rit-cta-primary,
.rit-fab {
    will-change: transform;
    transform: translateZ(0);
}

/* Lazy load animations */
.rit-lazy-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.rit-lazy-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

