/* ═══════════════════════════════════════
   QIMO — Logo Fill Preloader
   ═══════════════════════════════════════ */
#qimo-preloader {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    background: #ffffff;
    margin: 0;
    padding: 0;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#qimo-preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Inner wrapper — absolutely centered inside the fixed overlay */
.preloader-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    user-select: none;
}

/* Logo wrapper — stacks both images on top of each other */
.preloader-logo-wrap {
    position: relative;
    width: 400px;
    height: auto;
    line-height: 0;
}

.preloader-logo {
    display: block;
    width: 400px;
    height: auto;
}

/* Grey base layer — subtle outline */
.preloader-logo--grey {
    filter: grayscale(1) opacity(0.12);
    position: relative;
    z-index: 1;
}

/* Color layer: revealed left→right via clip-path */
.preloader-logo--color {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.12s linear;
    /* Turn dark logo into brand blue #2563eb */
    filter: invert(28%) sepia(98%) saturate(1700%) hue-rotate(212deg) brightness(95%) contrast(105%);
}

/* Hide body scroll while preloader active */
body.preloading {
    overflow: hidden;
}

/* ═══════════════════════════════════════
   Mobile Nav — Login / Register Buttons
   ═══════════════════════════════════════ */
@media (max-width: 991px) {

    /* Container for mobile auth buttons */
    .navbar-collapse .d-flex.flex-column {
        padding: 10px 20px 20px;
        gap: 10px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        margin-top: 8px;
    }

    /* Make buttons full width and properly sized on mobile */
    .navbar-collapse .theme-btn {
        width: 100% !important;
        display: block !important;
        text-align: center !important;
        padding: 12px 20px !important;
        font-size: 15px !important;
        border-radius: 8px !important;
        margin: 0 !important;
    }

    /* Dark mode adjustment */
    body.dark-mode .navbar-collapse .d-flex.flex-column {
        border-top-color: rgba(255, 255, 255, 0.1);
    }
}

/* Logo Text */
.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-left: 10px;
    vertical-align: middle;
    font-family: 'Poppins', sans-serif;
}

/* Enforce logo size globally */
.logo img,
.logo-mobile img,
.footer-logo img {
    max-height: 50px !important;
    width: auto !important;
    max-width: 200px;
}

/* CSS Custom Properties for Theme */
:root {
    --color-primary: #2563eb;
    --color-bg-light: #ffffff;
    --color-bg-dark: #1a1a1a;
    --color-text-light: #333333;
    --color-text-dark: #e0e0e0;
    --color-gray-light: #f8f9fa;
    --color-gray-dark: #2a2a2a;
}

/* Fix Double Scrollbar Issue */
html {
    width: 100vw;
    overflow-x: hidden;
    scroll-behavior: smooth;
    /* Smooth scrolling */
}

body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    position: relative;
    font-family: 'Inter', sans-serif;
    transition: none !important;
    /* Instant theme switch */
}

.page-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    transition: none !important;
}

/* Focus Visible for Keyboard Navigation */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Remove outline for mouse clicks */
:focus:not(:focus-visible) {
    outline: none;
}

/* Force Header Instant Update */
.header-three,
.main-header,
.main-menu,
.header-top-wrap,
.header-upper,
.menu-right,
.navigation li a {
    transition: none !important;
}

/* Force instant theme color transitions (but allow hover effects) */
body *:not(img):not(.hero-image-three):not(.about-image):not(.browswr-support-image):not(.theme-btn):not(.lang-btn):not(.coverflow-btn),
body::before,
body::after,
.dark-body *:not(img):not(.hero-image-three):not(.about-image):not(.browswr-support-image):not(.theme-btn):not(.lang-btn):not(.coverflow-btn),
.dark-body::before,
.dark-body::after {
    transition: background-color 0s, color 0s, border-color 0s, background 0s !important;
}

/* Allow smooth hover transitions for interactive elements */
.theme-btn,
.lang-btn,
.theme-toggle,
.coverflow-btn,
a:not(.page-scroll),
button {
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease !important;
}

/* Subtle Section Backgrounds */
.bg-soft-gray {
    background: linear-gradient(to bottom, #ffffff 0%, #f1f3f5 15%, #f1f3f5 85%, #ffffff 100%);
    /* Fade White -> Gray -> White (Seamless edges) */
}

.dark-body .bg-soft-gray {
    background: linear-gradient(to bottom, #1a1a1a 0%, #252525 15%, #252525 85%, #1a1a1a 100%);
    /* Fade Black -> Dark Gray -> Black (Seamless edges) */
}

/* Remove unwanted semi-transparent backgrounds */
.service-item,
.solutions-section-three .service-item,
.service-item-two,
.dark-body .service-item,
.dark-body .solutions-section-three .service-item,
.dark-body .service-item-two {
    background: transparent !important;
}


/* Roadmap Section - Blue Gradients */
.solutions-section-three.bg-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
}

.dark-body .solutions-section-three.bg-blue {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%) !important;
}


/* Roadmap Pipeline Style */
#roadmap .service-item {
    position: relative;
    z-index: 1;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
    margin-bottom: 50px;
}

#roadmap .service-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 38px;
    /* Vertically centered (80px icon / 2 - 2px height) */
    width: 100%;
    height: 4px;
    background: #e5e5e5;
    z-index: -1;
    /* No transform needed for left-to-right flow */
}

#roadmap .col-xl-4:last-child .service-item::before {
    display: none;
    /* No line for last item */
}

#roadmap .col-xl-4:nth-child(3n) .service-item::before {
    display: none;
    /* Break line on row end if strictly 3 per row on desktop */
}

/* Responsive Line - simpler to just hide or adjust on mobile, but for now keeping simple */
@media (max-width: 991px) {
    #roadmap .service-item::before {
        display: none;
        /* Hide pipeline line on mobile for stack view */
    }
}

#roadmap .service-item i {
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    color: #2563eb;
    /* Primary Blue */
    display: inline-flex;
    /* Changed to inline-flex for better centering */
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}


/* Highlight DONE status */
#roadmap .service-item.done i {
    background: #2563eb;
    color: #fff;
}

#roadmap .service-item.done::before {
    background: #2563eb;
    /* Active line color */
}

/* Toggles */
.app-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-btn {
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s;
    text-decoration: none !important;
}

.lang-btn:hover {
    transform: scale(1.1);
}

.lang-flag {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.theme-toggle-modern {
    cursor: pointer;
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none !important;
    /* Fixed: no transition for instant theme switch */
    color: #333;
}

.dark-body .theme-toggle-modern {
    background: #333;
    color: #fce570;
    /* Sun color */
}

/* Dark Mode adjustments for new elements */
.dark-body .logo-text {
    color: #fff;
}

.dark-body #roadmap .service-item i {
    background: #1a1a1a;
}

.dark-body #roadmap .service-item.done i {
    background: #2563eb;
}

/* Contact Info Item Centering & Padding */
.contact-info-item {
    text-align: center;
    padding-bottom: 30px;
    /* Added padding bottom */
}

.contact-info-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff;
    color: #2563eb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0 auto 20px auto;
    /* Center horizontally */
    font-size: 24px;
}


/* Modern Contact Form Styling */
.contact-form-two .form-group {
    margin-bottom: 25px;
}



.input-group-modern {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    /* Subtle border */
    border-radius: 12px;
    /* Smoother rounding */
    padding: 10px 20px;
    min-height: 60px;
    /* Enforce consistent height for all inputs */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    position: relative;
    /* Establish positioning context */
    z-index: 1;
    /* Default z-index */
}

/* Dark Mode Input Group */
.dark-body .input-group-modern {
    background-color: #2a2a2a;
    border-color: #444;
}

.dark-body .input-group-modern:focus-within {
    background-color: #333;
    border-color: #2563eb;
    z-index: 100;
}

.dark-body .input-group-modern .icon-wrapper {
    color: #aaa;
}

.dark-body .input-group-modern:focus-within .icon-wrapper {
    color: #2563eb;
}

/* Fix text color in dark mode */
.dark-body .contact-form-two .form-control,
.dark-body .nice-select .current,
.dark-body .country-code {
    color: #e0e0e0 !important;
}

.dark-body .contact-form-two .form-control::placeholder {
    color: #888 !important;
}

.input-group-modern:focus-within {
    background-color: #ffffff;
    border-color: #2563eb;
    /* Primary blue focus */
    box-shadow: 0 8px 15px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
    z-index: 100;
    /* Bring to front when active/focused */
}

.icon-wrapper {
    color: #6c757d;
    /* Muted icon color by default */
    font-size: 18px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.icon-wrapper.top-align {
    align-self: flex-start;
    margin-top: 15px;
}

.input-group-modern:focus-within .icon-wrapper {
    color: #2563eb;
    /* Active color on focus */
}

.contact-form-two .form-control {
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    /* Remove padding, let flex parent center */
    font-size: 16px;
    color: #333 !important;
    box-shadow: none;
    height: 100%;
    /* Fill the 60px parent */
    width: 100%;
    /* Ensure full width */
}

/* Specific fix for select elements to look like inputs */
select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 16px;
}


.contact-form-two .form-control:focus {
    background-color: transparent !important;
    border-color: transparent;
    box-shadow: none;
}

.contact-form-two .form-control::placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
}

/* Country Code Specifics */
/* Overrides for Intl-Tel-Input */
.iti {
    width: 100%;
}

.iti__flag-container {
    border-right: 1px solid #e9ecef;
}

.iti__selected-flag {
    background-color: transparent !important;
}

.iti__country-list {
    z-index: 999 !important;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

/* Overrides for Nice Select */
.nice-select {
    float: none;
    width: 100%;
    border: none !important;
    background-color: transparent !important;
    line-height: normal;
    /* Reset line-height */
    padding-left: 0;
    font-size: 16px;
    color: #333;
    display: flex;
    /* Flex for vertical centering */
    align-items: center;
    height: 100%;
    /* Fill 60px parent */
    min-height: 0;
    /* Remove constraint */
}

.nice-select:active,
.nice-select.open,
.nice-select:focus {
    border-color: transparent !important;
}

.nice-select .list {
    width: 100%;
    margin-top: 5px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: none;
    z-index: 999;
}

.nice-select .option {
    line-height: 40px;
    min-height: 40px;
}

.nice-select .option.selected {
    font-weight: 600;
}



/* Dark Mode Overrides for Libraries */
.dark-body .iti__country-list,
.dark-body .nice-select .list {
    background-color: #2a2a2a;
    /* Darker gray, not stark black */
    color: #e0e0e0;
    border: 1px solid #444;
    /* Add subtle border for definition */
}

.dark-body .iti__country-name,
.dark-body .nice-select .option {
    color: #e0e0e0;
}

.dark-body .iti__dial-code {
    color: #aaa;
}

.dark-body .nice-select .option:hover,
.dark-body .nice-select .option.focus,
.dark-body .nice-select .option.selected.focus {
    background-color: #3d3d3d;
    /* Lighter gray for hover */
    color: #fff;
}

.dark-body .nice-select:after {
    border-bottom: 2px solid #ccc;
    border-right: 2px solid #ccc;
}

.contact-form-two textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-form-two button.theme-btn {
    border-radius: 12px;
    padding: 15px 40px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-form-two button.theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.hero-image-three img,
.about-image img,
.browswr-support-image img,
.newsletter-images img {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    filter: contrast(1.05) saturate(1.05);
    transition: all 0.4s ease;
    max-width: 100%;
    height: auto;
}

.hero-image-three img:hover,
.about-image img:hover,
.browswr-support-image img:hover,
.newsletter-images img:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
}

/* Contact Section Enhancements */
.newsletter-inner.style-two {
    margin-bottom: 60px;
}

/* Mobile: Center newsletter image */
@media (max-width: 991px) {
    .newsletter-images {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 40px;
    }

    .newsletter-images img {
        margin: 0 auto;
        display: block;
    }

    .newsletter-inner.style-two {
        margin-bottom: 40px;
    }
}

/* Mobile Image Enhancements */
@media (max-width: 768px) {

    .hero-image-three img,
    .about-image img,
    .browswr-support-image img,
    .newsletter-images img {
        border-radius: 16px;
        box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
        /* Deeper shadow for mobile visibility */
        filter: contrast(1.08) saturate(1.08) brightness(1.02);
        /* Enhanced clarity */
        transform: scale(1);
        /* Reset scale */
    }

    .hero-image-three img:active,
    .about-image img:active,
    .browswr-support-image img:active {
        transform: scale(0.98);
        /* Touch feedback */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    }

    /* Disable hover effects on mobile */
    .hero-image-three img:hover,
    .about-image img:hover,
    .browswr-support-image img:hover {
        transform: none;
        box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
    }
}

/* Sticky Header Styles */
.main-header.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.35s ease-out;
}

.dark-body .main-header.fixed-header {
    background: #1a1a1a;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Coverflow Scene */
.coverflow-scene {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 500px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Hide items that fly off too far */
}

.carousel-coverflow {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.coverflow-item {
    position: absolute;
    width: 70%;
    /* Main item width relative to container */
    max-width: 700px;
    aspect-ratio: 16/10;
    transition: all 0.5s ease-in-out;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background: #fff;

    /* Initial state */
    opacity: 0;
    transform: scale(0.8);
    z-index: 1;
    pointer-events: none;
    /* Prevent clicks on background items */
}

.coverflow-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.05) saturate(1.05);
    /* Added for clarity */
}

/* Active Item (Center) */
.coverflow-item.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 10;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
}

/* Previous Item (Left) */
.coverflow-item.prev {
    opacity: 0.6;
    transform: translateX(-65%) scale(0.8);
    /* Move left */
    z-index: 5;
    cursor: pointer;
    pointer-events: auto;
}

/* Next Item (Right) */
.coverflow-item.next {
    opacity: 0.6;
    transform: translateX(65%) scale(0.8);
    /* Move right */
    z-index: 5;
    cursor: pointer;
    pointer-events: auto;
}

/* Far Previous (Behind Left) */
.coverflow-item.prev-2 {
    opacity: 0;
    transform: translateX(-100%) scale(0.6);
    z-index: 1;
}

/* Far Next (Behind Right) */
.coverflow-item.next-2 {
    opacity: 0;
    transform: translateX(100%) scale(0.6);
    z-index: 1;
}

/* Navigation Buttons */
.coverflow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coverflow-btn:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .coverflow-scene {
        height: 300px;
    }

    .coverflow-item {
        width: 85%;
    }

    .coverflow-item.prev {
        transform: translateX(-90%) scale(0.8);
        opacity: 0.4;
    }

    .coverflow-item.next {
        transform: translateX(90%) scale(0.8);
        opacity: 0.4;
    }

    .coverflow-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}