/* ==========================================================================
   Mindspire Premium UI/UX Enhancements
   Version: 3.0 - Eye-catching, unique, modern design
   Theme: Webteck (uses actual theme classes: hero-23, service-item3, etc.)
   ========================================================================== */

/* ===========================
   1. CSS Variables & Design Tokens
   =========================== */
:root {
    --ms-primary: #684DF4;
    --ms-primary-dark: #4F39D6;
    --ms-primary-light: #9D7BFF;
    --ms-accent: #FF8139;
    --ms-accent-light: #FFB07A;
    --ms-dark: #0A0E27;
    --ms-dark-2: #141D38;
    --ms-text: #4A4F5C;
    --ms-light: #F8F9FF;
    --ms-white: #FFFFFF;

    --ms-gradient: linear-gradient(135deg, #684DF4 0%, #9D7BFF 50%, #FF8139 100%);
    --ms-gradient-2: linear-gradient(135deg, #4F39D6 0%, #684DF4 100%);
    --ms-gradient-hero: linear-gradient(120deg, #0A0E27 0%, #1A1F4E 40%, #2D1B69 70%, #0A0E27 100%);
    --ms-gradient-soft: linear-gradient(135deg, rgba(104, 77, 244, 0.1) 0%, rgba(255, 129, 57, 0.05) 100%);

    --ms-glow: 0 0 40px rgba(104, 77, 244, 0.25);
    --ms-glow-accent: 0 0 40px rgba(255, 129, 57, 0.25);
    --ms-shadow-soft: 0 4px 20px rgba(20, 29, 56, 0.06);
    --ms-shadow-medium: 0 10px 40px rgba(20, 29, 56, 0.1);
    --ms-shadow-strong: 0 25px 80px rgba(20, 29, 56, 0.15);
    --ms-shadow-primary: 0 15px 40px rgba(104, 77, 244, 0.2);

    --ms-glass: rgba(255, 255, 255, 0.75);
    --ms-glass-border: rgba(255, 255, 255, 0.4);

    --ms-radius: 16px;
    --ms-radius-lg: 24px;
    --ms-radius-xl: 32px;

    --ms-transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ms-transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===========================
   2. Global Scrollbar & Selection
   =========================== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f0f8;
}
::-webkit-scrollbar-thumb {
    background: var(--ms-gradient-2);
    border-radius: 100px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--ms-primary-dark);
}

::selection {
    background: var(--ms-primary);
    color: #fff;
}
::-moz-selection {
    background: var(--ms-primary);
    color: #fff;
}

html {
    scroll-behavior: smooth;
}

/* ===========================
   3. Custom Cursor Effect (Desktop only)
   =========================== */
@media (hover: hover) and (pointer: fine) {
    .ms-cursor {
        position: fixed;
        width: 20px;
        height: 20px;
        border: 2px solid var(--ms-primary);
        border-radius: 50%;
        pointer-events: none;
        z-index: 999999;
        transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
        transform: translate(-50%, -50%);
        mix-blend-mode: difference;
    }
    .ms-cursor.hover {
        width: 50px;
        height: 50px;
        border-color: var(--ms-accent);
        background: rgba(255, 129, 57, 0.1);
    }
    .ms-cursor-dot {
        position: fixed;
        width: 6px;
        height: 6px;
        background: var(--ms-primary);
        border-radius: 50%;
        pointer-events: none;
        z-index: 999999;
        transform: translate(-50%, -50%);
    }
}

/* ===========================
   4. Scroll Progress Bar
   =========================== */
#ms-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--ms-gradient);
    z-index: 99999;
    transition: width 0.1s ease;
    box-shadow: var(--ms-glow);
}

/* ===========================
   5. Premium Preloader
   =========================== */
#ms-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--ms-dark);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#ms-preloader.hidden {
    opacity: 0;
    visibility: hidden;
}
.ms-preloader-content {
    text-align: center;
}
.ms-preloader-logo {
    font-size: 42px;
    font-weight: 800;
    background: var(--ms-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: ms-pulse-logo 1.5s ease-in-out infinite;
}
.ms-preloader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    overflow: hidden;
    margin: 0 auto;
}
.ms-preloader-bar::after {
    content: '';
    display: block;
    width: 0%;
    height: 100%;
    background: var(--ms-gradient);
    border-radius: 100px;
    animation: ms-preload 2s ease-in-out forwards;
}
@keyframes ms-pulse-logo {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}
@keyframes ms-preload {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ===========================
   6. Hero Section Premium Styling
   =========================== */
.th-hero-wrapper.hero-23,
.hero-23 {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #F8F9FF 0%, #FFFFFF 50%, #FFF8F3 100%) !important;
}

.th-hero-wrapper.hero-23::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(104, 77, 244, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: ms-float-hero 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}
.th-hero-wrapper.hero-23::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 129, 57, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: ms-float-hero 12s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 1;
}

@keyframes ms-float-hero {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.08); }
    66% { transform: translate(-30px, 20px) scale(0.95); }
}

/* Hero particles overlay */
.hero-23 .hero-style23 {
    position: relative;
    z-index: 2;
}

/* Hero title gradient text */
.hero-23 .hero-title,
.hero-23 h1.hero-title,
.hero-23 .hero-wrapp h1 {
    font-weight: 900 !important;
    line-height: 1.15 !important;
    background: linear-gradient(90deg, #0A0E27 0%, #0A0E27 40%, #684DF4 60%, #FF8139 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    background-size: 200% auto !important;
    animation: ms-gradient-text 5s ease infinite !important;
}

@keyframes ms-gradient-text {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

/* Hero subtitle/description */
.hero-23 .hero-text,
.hero-23 .hero-desc {
    font-size: 18px;
    line-height: 1.7;
    color: var(--ms-text);
    max-width: 540px;
}

/* Hero image 3D tilt and floating */
.hero-23 .th-hero-img {
    position: relative;
    transition: var(--ms-transition-bounce);
    transform-style: preserve-3d;
    animation: ms-float-image 6s ease-in-out infinite;
    filter: drop-shadow(0 30px 60px rgba(104, 77, 244, 0.2));
}
@keyframes ms-float-image {
    0%, 100% { transform: translateY(0) rotateY(-2deg); }
    50% { transform: translateY(-20px) rotateY(2deg); }
}
.hero-23 .th-hero-img:hover {
    transform: rotateY(5deg) rotateX(2deg) scale(1.02);
}

/* Hero client/rating box */
.hero-23 .hero-client-box {
    background: var(--ms-glass) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--ms-glass-border) !important;
    border-radius: var(--ms-radius) !important;
    box-shadow: var(--ms-shadow-medium) !important;
    transition: var(--ms-transition);
}
.hero-23 .hero-client-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--ms-shadow-primary) !important;
}

/* Hero review stars */
.hero-23 .hero_review .star-rating,
.hero-23 .hero_review i,
.hero-23 .hero_review .fas,
.hero-23 .hero_review .fa-star {
    color: var(--ms-accent) !important;
}

/* ===========================
   7. Premium Section Titles
   =========================== */
.sec-title.sec-title3,
.title-area .sec-title3,
.elementor-heading-title {
    position: relative;
}

.sec-title.sec-title3 h2,
.sec-title.sec-title3 .title,
.title-area .sec-title3 h2,
.title-area .sec-title3 .title {
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
    line-height: 1.25 !important;
    color: var(--ms-dark-2) !important;
}

.sec-title.sec-title3 h2 .text-theme,
.sec-title.sec-title3 .title .text-theme,
.title-area .sec-title3 .text-theme {
    background: var(--ms-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.sec-title.sec-title3 h2 .text-theme::after,
.sec-title.sec-title3 .title .text-theme::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--ms-accent);
    opacity: 0.25;
    border-radius: 100px;
    z-index: -1;
}

/* Subtitle badge */
.sub-title.sub-title8,
.sub-title,
.sec-title .sub-title {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 20px !important;
    background: var(--ms-gradient-soft) !important;
    border: 1px solid rgba(104, 77, 244, 0.15) !important;
    border-radius: 100px !important;
    color: var(--ms-primary) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    margin-bottom: 18px !important;
    position: relative;
    overflow: hidden;
}
.sub-title.sub-title8::before,
.sub-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--ms-accent);
    border-radius: 50%;
    animation: ms-dot-pulse 2s ease-in-out infinite;
}
@keyframes ms-dot-pulse {
    0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(255, 129, 57, 0.4); }
    50% { transform: scale(1.2); opacity: 0.9; box-shadow: 0 0 0 8px rgba(255, 129, 57, 0); }
}

/* ===========================
   8. Premium Buttons
   =========================== */
.th-btn,
.btn,
.btn-primary,
.elementor-button,
button[type="submit"] {
    position: relative;
    overflow: hidden;
    border-radius: 50px !important;
    transition: var(--ms-transition-bounce) !important;
    z-index: 1;
    font-weight: 600 !important;
}
.th-btn::before,
.elementor-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--ms-gradient);
    z-index: -1;
    transition: var(--ms-transition);
    opacity: 1;
}
.th-btn::after,
.elementor-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    z-index: -1;
}
.th-btn:hover::after,
.elementor-button:hover::after {
    width: 400px;
    height: 400px;
}
.th-btn:hover,
.elementor-button:hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: var(--ms-shadow-primary) !important;
}

.th-btn.style-border,
.btn-outline {
    border: 2px solid var(--ms-primary) !important;
    color: var(--ms-primary) !important;
    background: transparent !important;
}
.th-btn.style-border::before,
.btn-outline::before {
    opacity: 0;
}
.th-btn.style-border:hover,
.btn-outline:hover {
    color: #fff !important;
    background: var(--ms-primary) !important;
}

/* Button icon animation */
.th-btn i,
.th-btn .icon,
.elementor-button .elementor-button-icon {
    transition: transform 0.3s ease;
}
.th-btn:hover i,
.th-btn:hover .icon,
.elementor-button:hover .elementor-button-icon {
    transform: translateX(5px);
}

/* ===========================
   9. Premium Service Cards
   =========================== */
.service-item3,
.service-wrapp .service-item3,
.service-card {
    position: relative;
    background: var(--ms-glass) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--ms-glass-border) !important;
    border-radius: var(--ms-radius-lg) !important;
    box-shadow: var(--ms-shadow-soft) !important;
    transition: var(--ms-transition-bounce) !important;
    overflow: hidden;
    z-index: 1;
}
.service-item3::before,
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--ms-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}
.service-item3::after,
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--ms-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}
.service-item3:hover::after,
.service-card:hover::after {
    transform: scaleX(1);
}
.service-item3:hover,
.service-card:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: var(--ms-shadow-primary) !important;
    border-color: rgba(104, 77, 244, 0.3) !important;
}
.service-item3:hover .box-title,
.service-item3:hover .title,
.service-item3:hover p,
.service-card:hover .box-title,
.service-card:hover p {
    color: var(--ms-dark-2) !important;
}
.service-item3:hover .box-title,
.service-card:hover .box-title {
    color: var(--ms-primary) !important;
}

/* Service icon styling */
.service-item3 .service-icon,
.service-item3 .icon,
.service-card .service-icon {
    transition: var(--ms-transition-bounce);
}
.service-item3:hover .service-icon,
.service-item3:hover .icon,
.service-card:hover .service-icon {
    transform: scale(1.15) rotate(-5deg);
    color: var(--ms-primary) !important;
}

/* Service number badge */
.service-item3 .box-number,
.service-card .box-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 14px;
    font-weight: 800;
    color: rgba(104, 77, 244, 0.15) !important;
    transition: var(--ms-transition);
}
.service-item3:hover .box-number,
.service-card:hover .box-number {
    color: rgba(104, 77, 244, 0.3) !important;
    transform: scale(1.2);
}

/* ===========================
   10. Counter/Stats Cards
   =========================== */
.counter-box,
.counter-card,
.stat-box,
.counter-area .counter-item {
    position: relative;
    padding: 35px 25px;
    border-radius: var(--ms-radius) !important;
    background: var(--ms-glass) !important;
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--ms-glass-border) !important;
    box-shadow: var(--ms-shadow-soft) !important;
    transition: var(--ms-transition-bounce);
    overflow: hidden;
    text-align: center;
}
.counter-box::before,
.counter-card::before,
.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--ms-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}
.counter-box:hover::before,
.counter-card:hover::before,
.stat-box:hover::before {
    opacity: 0.05;
}
.counter-box:hover,
.counter-card:hover,
.stat-box:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--ms-shadow-primary) !important;
}
.counter-box .counter,
.counter-box .counter-number,
.counter-card h3,
.stat-box h2,
.stat-box h3 {
    font-weight: 800 !important;
    background: var(--ms-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.counter-box .counter-text,
.counter-box .counter-title,
.stat-box p {
    color: var(--ms-text) !important;
    font-weight: 600 !important;
}

/* ===========================
   11. Process Steps Premium Styling
   =========================== */
.process-card,
.process-step,
.work-process-item {
    position: relative;
    padding: 40px 30px;
    border-radius: var(--ms-radius-lg) !important;
    background: var(--ms-glass) !important;
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--ms-glass-border) !important;
    box-shadow: var(--ms-shadow-soft) !important;
    transition: var(--ms-transition-bounce);
    overflow: hidden;
}
.process-card::before,
.process-step::before,
.work-process-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--ms-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}
.process-card:hover::before,
.process-step:hover::before,
.work-process-item:hover::before {
    transform: scaleX(1);
}
.process-card:hover,
.process-step:hover,
.work-process-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--ms-shadow-primary) !important;
    border-color: rgba(104, 77, 244, 0.3) !important;
}
.process-card .step-number,
.process-step .step-number,
.work-process-item .number {
    font-size: 56px !important;
    font-weight: 900 !important;
    background: var(--ms-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1 !important;
    margin-bottom: 15px;
    display: block;
}

/* Process connector line */
.process-wrapper,
.process-area {
    position: relative;
}
.process-wrapper::before,
.process-area::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(104, 77, 244, 0.2) 0%, rgba(255, 129, 57, 0.2) 100%);
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
}
@media (max-width: 991px) {
    .process-wrapper::before,
    .process-area::before {
        display: none;
    }
}

/* ===========================
   12. Project/Portfolio Cards
   =========================== */
.project-item,
.project-card,
.portfolio-item,
.gallery-item {
    position: relative;
    border-radius: var(--ms-radius-lg) !important;
    overflow: hidden;
    transition: var(--ms-transition-bounce);
    box-shadow: var(--ms-shadow-soft);
}
.project-item img,
.project-card img,
.portfolio-item img,
.gallery-item img {
    transition: transform 0.6s ease;
}
.project-item:hover,
.project-card:hover,
.portfolio-item:hover,
.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--ms-shadow-primary);
}
.project-item:hover img,
.project-card:hover img,
.portfolio-item:hover img,
.gallery-item:hover img {
    transform: scale(1.1);
}
.project-item .project-content,
.project-card .project-content,
.portfolio-item .portfolio-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(10, 14, 39, 0.95) 0%, transparent 100%);
    transform: translateY(100%);
    opacity: 0;
    transition: var(--ms-transition);
    z-index: 2;
}
.project-item:hover .project-content,
.project-card:hover .project-content,
.portfolio-item:hover .portfolio-content {
    transform: translateY(0);
    opacity: 1;
}
.project-item .project-title,
.project-card .project-title,
.portfolio-item .portfolio-title {
    color: #fff !important;
    font-weight: 700 !important;
    margin-bottom: 5px;
}
.project-item .project-category,
.project-card .project-category {
    color: var(--ms-accent-light) !important;
    font-size: 14px;
}

/* ===========================
   13. Team Cards
   =========================== */
.team-card,
.team-item,
.team-box {
    position: relative;
    border-radius: var(--ms-radius-lg) !important;
    overflow: hidden;
    transition: var(--ms-transition-bounce);
    box-shadow: var(--ms-shadow-soft);
    background: var(--ms-white);
}
.team-card:hover,
.team-item:hover,
.team-box:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--ms-shadow-primary);
}
.team-card img,
.team-item img,
.team-box img {
    transition: transform 0.5s ease;
}
.team-card:hover img,
.team-item:hover img,
.team-box:hover img {
    transform: scale(1.08);
}
.team-card .team-content,
.team-item .team-content,
.team-box .team-content {
    padding: 25px;
    background: var(--ms-glass);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--ms-glass-border);
}
.team-card .team-social,
.team-item .team-social {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    transition: var(--ms-transition);
}
.team-card:hover .team-social,
.team-item:hover .team-social {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ===========================
   14. Testimonial Cards
   =========================== */
.testimonial-card,
.testimonial-item,
.testimonial-box {
    position: relative;
    border-radius: var(--ms-radius-lg) !important;
    background: var(--ms-glass) !important;
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--ms-glass-border) !important;
    box-shadow: var(--ms-shadow-soft) !important;
    transition: var(--ms-transition-bounce);
    overflow: hidden;
    padding: 35px !important;
}
.testimonial-card::before,
.testimonial-item::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 100px;
    color: rgba(104, 77, 244, 0.08);
    font-family: Georgia, serif;
    line-height: 1;
    transition: var(--ms-transition);
}
.testimonial-card:hover::before,
.testimonial-item:hover::before {
    color: rgba(104, 77, 244, 0.15);
    transform: scale(1.1);
}
.testimonial-card:hover,
.testimonial-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--ms-shadow-primary) !important;
    border-color: rgba(104, 77, 244, 0.3) !important;
}
.testimonial-card .client-img,
.testimonial-item .client-img {
    border: 3px solid transparent !important;
    background: var(--ms-gradient) padding-box, var(--ms-gradient) border-box;
    border-radius: 50% !important;
    transition: var(--ms-transition);
}
.testimonial-card:hover .client-img,
.testimonial-item:hover .client-img {
    transform: scale(1.1);
}

/* TrustIndex widget override */
.ti-widget .ti-review-item,
.ti-widget .ti-inner {
    border-radius: var(--ms-radius) !important;
    background: var(--ms-glass) !important;
    border: 1px solid var(--ms-glass-border) !important;
    box-shadow: var(--ms-shadow-soft) !important;
}
.ti-widget .ti-stars .ti-star {
    color: var(--ms-accent) !important;
}

/* ===========================
   15. FAQ Accordion Premium
   =========================== */
.accordion-item,
.faq-card,
.faq-item {
    border-radius: var(--ms-radius) !important;
    border: 1px solid rgba(104, 77, 244, 0.1) !important;
    margin-bottom: 14px !important;
    overflow: hidden;
    transition: var(--ms-transition);
    background: var(--ms-glass) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--ms-shadow-soft) !important;
}
.accordion-item:hover,
.faq-card:hover,
.faq-item:hover {
    border-color: rgba(104, 77, 244, 0.3) !important;
    box-shadow: var(--ms-shadow-medium) !important;
    transform: translateX(5px);
}
.accordion-button,
.faq-question,
.accordion-title {
    font-weight: 700 !important;
    color: var(--ms-dark-2) !important;
    padding: 22px 25px !important;
    transition: var(--ms-transition);
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.accordion-button:not(.collapsed),
.faq-question.active,
.faq-card.active .faq-question {
    background: var(--ms-gradient-soft) !important;
    color: var(--ms-primary) !important;
    box-shadow: none !important;
}
.accordion-button::after,
.faq-question::after {
    background: var(--ms-gradient);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    background-size: 14px;
    filter: brightness(0) invert(1);
    transition: var(--ms-transition-bounce);
}
.accordion-button:not(.collapsed)::after,
.faq-question.active::after {
    transform: rotate(180deg);
}
.accordion-body,
.faq-answer {
    padding: 0 25px 25px !important;
    color: var(--ms-text) !important;
    line-height: 1.8 !important;
}

/* ===========================
   16. Brand/Partner Logos
   =========================== */
.brand-item,
.brand-item.style3,
.partner-item,
.partner-logo {
    border-radius: var(--ms-radius) !important;
    transition: var(--ms-transition-bounce);
    filter: grayscale(100%);
    opacity: 0.7;
    padding: 15px;
    background: var(--ms-white);
    border: 1px solid rgba(104, 77, 244, 0.08) !important;
}
.brand-item:hover,
.brand-item.style3:hover,
.partner-item:hover,
.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--ms-shadow-medium) !important;
    border-color: rgba(104, 77, 244, 0.2) !important;
}

/* ===========================
   17. Blog/Post Cards
   =========================== */
.blog-card,
.blog-item,
.post-card,
.post-item {
    border-radius: var(--ms-radius-lg) !important;
    overflow: hidden;
    transition: var(--ms-transition-bounce);
    box-shadow: var(--ms-shadow-soft);
    background: var(--ms-white);
    border: 1px solid rgba(104, 77, 244, 0.08) !important;
}
.blog-card:hover,
.blog-item:hover,
.post-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--ms-shadow-primary) !important;
    border-color: rgba(104, 77, 244, 0.2) !important;
}
.blog-card img,
.blog-item img,
.post-card img {
    transition: transform 0.6s ease;
}
.blog-card:hover img,
.blog-item:hover img,
.post-card:hover img {
    transform: scale(1.1);
}
.blog-card .blog-content,
.blog-item .blog-content,
.post-card .post-content {
    padding: 25px;
}

/* ===========================
   18. Contact Form Styling
   =========================== */
.wpcf7-form input,
.wpcf7-form textarea,
.contact-form input,
.contact-form textarea,
.form-control {
    border: 2px solid rgba(104, 77, 244, 0.1) !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    font-size: 15px !important;
    transition: var(--ms-transition);
    background: var(--ms-glass) !important;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.form-control:focus {
    border-color: var(--ms-primary) !important;
    box-shadow: 0 0 0 4px rgba(104, 77, 244, 0.1) !important;
    outline: none !important;
    background: var(--ms-white) !important;
}
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder,
.contact-form input::placeholder,
.contact-form textarea::placeholder,
.form-control::placeholder {
    color: rgba(74, 79, 92, 0.5) !important;
}

/* ===========================
   19. Glassmorphism Navigation
   =========================== */
.header-area,
.main-header,
.header-layout1,
.header-layout2,
.header-layout3 {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(255, 255, 255, 0.85) !important;
    border-bottom: 1px solid rgba(104, 77, 244, 0.08) !important;
    transition: var(--ms-transition) !important;
}
.header-area.scrolled,
.main-header.sticky,
.header-layout1.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: var(--ms-shadow-medium) !important;
}
.main-menu > ul > li > a,
.nav-menu > li > a,
.menu-area a {
    position: relative;
    transition: var(--ms-transition);
    font-weight: 600 !important;
    color: var(--ms-dark-2) !important;
}
.main-menu > ul > li > a::after,
.nav-menu > li > a::after,
.menu-area a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--ms-gradient);
    transition: var(--ms-transition);
    transform: translateX(-50%);
    border-radius: 100px;
}
.main-menu > ul > li > a:hover::after,
.nav-menu > li > a:hover::after,
.menu-area a:hover::after {
    width: 100%;
}
.main-menu > ul > li > a:hover,
.nav-menu > li > a:hover,
.menu-area a:hover {
    color: var(--ms-primary) !important;
}
.main-menu > ul > li > a:hover,
.nav-menu > li > a:hover {
    transform: translateY(-2px);
}

/* ===========================
   20. Scroll Reveal Animations
   =========================== */
.ms-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.ms-reveal.ms-visible {
    opacity: 1;
    transform: translateY(0);
}
.ms-reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.ms-reveal-left.ms-visible {
    opacity: 1;
    transform: translateX(0);
}
.ms-reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.ms-reveal-right.ms-visible {
    opacity: 1;
    transform: translateX(0);
}
.ms-reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.ms-reveal-scale.ms-visible {
    opacity: 1;
    transform: scale(1);
}
.ms-delay-1 { transition-delay: 0.1s; }
.ms-delay-2 { transition-delay: 0.2s; }
.ms-delay-3 { transition-delay: 0.3s; }
.ms-delay-4 { transition-delay: 0.4s; }
.ms-delay-5 { transition-delay: 0.5s; }
.ms-delay-6 { transition-delay: 0.6s; }

/* ===========================
   21. Floating CTA Button
   =========================== */
#ms-floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--ms-gradient);
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--ms-glow);
    transition: var(--ms-transition-bounce);
    animation: ms-floating-cta 3s ease-in-out infinite;
}
#ms-floating-cta:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: var(--ms-glow-accent);
}
#ms-floating-cta::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--ms-gradient);
    z-index: -1;
    animation: ms-cta-pulse 2s ease-in-out infinite;
}
@keyframes ms-floating-cta {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes ms-cta-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 0; }
}
@media (max-width: 767px) {
    #ms-floating-cta {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }
}

/* ===========================
   22. Section Separator & Backgrounds
   =========================== */
section,
.elementor-section {
    position: relative;
}

/* Add subtle background gradient to alternating sections */
section:nth-child(odd):not(.hero-23):not(.footer-area):not(.footer-wrapper),
.elementor-section:nth-child(odd):not(.hero-23):not(.footer-area) {
    background: linear-gradient(180deg, rgba(248, 249, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
}

/* Animated gradient blob for some sections */
.ms-gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}
.ms-gradient-blob.purple {
    width: 400px;
    height: 400px;
    background: rgba(104, 77, 244, 0.2);
    animation: ms-blob-move 20s ease-in-out infinite;
}
.ms-gradient-blob.orange {
    width: 300px;
    height: 300px;
    background: rgba(255, 129, 57, 0.15);
    animation: ms-blob-move 25s ease-in-out infinite reverse;
}
@keyframes ms-blob-move {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -30px) scale(1.1); }
    50% { transform: translate(20px, 50px) scale(0.9); }
    75% { transform: translate(-40px, 20px) scale(1.05); }
}

/* ===========================
   23. Footer Enhancement
   =========================== */
.footer-area,
.footer-wrapper,
.footer-layout1,
.footer-layout2,
.footer-layout3 {
    position: relative;
    overflow: hidden;
}
.footer-area::before,
.footer-wrapper::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(104, 77, 244, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.footer-area .widget_title,
.footer-area .widget-title,
.footer-wrapper .widget_title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-weight: 700 !important;
}
.footer-area .widget_title::after,
.footer-area .widget-title::after,
.footer-wrapper .widget_title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--ms-gradient);
    border-radius: 100px;
}
.footer-area a,
.footer-wrapper a {
    transition: var(--ms-transition);
    color: rgba(255, 255, 255, 0.8) !important;
}
.footer-area a:hover,
.footer-wrapper a:hover {
    color: var(--ms-accent) !important;
    padding-left: 5px;
}
.footer-area .newsletter-form input,
.footer-wrapper .newsletter-form input {
    border-radius: 50px 0 0 50px !important;
    border: none !important;
    padding: 14px 20px !important;
}
.footer-area .newsletter-form button,
.footer-wrapper .newsletter-form button {
    border-radius: 0 50px 50px 0 !important;
    background: var(--ms-accent) !important;
    border: none !important;
    transition: var(--ms-transition);
}
.footer-area .newsletter-form button:hover,
.footer-wrapper .newsletter-form button:hover {
    background: var(--ms-primary) !important;
}

/* ===========================
   24. Back to Top Button
   =========================== */
.scroll-to-top,
.back-to-top,
#scrollTop {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50% !important;
    background: var(--ms-gradient) !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--ms-shadow-medium) !important;
    transition: var(--ms-transition-bounce) !important;
}
.scroll-to-top:hover,
.back-to-top:hover,
#scrollTop:hover {
    transform: translateY(-5px) scale(1.1) !important;
    box-shadow: var(--ms-glow) !important;
}

/* ===========================
   25. Mobile Optimizations
   =========================== */
@media (max-width: 991px) {
    .hero-23 .hero-title,
    .hero-23 h1.hero-title,
    .hero-23 .hero-wrapp h1 {
        font-size: 36px !important;
        line-height: 1.2 !important;
    }
    .hero-23 .th-hero-img {
        animation: none;
        margin-top: 40px;
    }
    .sec-title.sec-title3 h2,
    .sec-title.sec-title3 .title,
    .title-area .sec-title3 h2,
    .title-area .sec-title3 .title {
        font-size: 28px !important;
    }
    .service-item3,
    .service-card,
    .process-card,
    .process-step,
    .counter-box,
    .counter-card,
    .stat-box,
    .testimonial-card,
    .testimonial-item,
    .project-item,
    .project-card,
    .blog-card,
    .blog-item {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .hero-23 .hero-title,
    .hero-23 h1.hero-title,
    .hero-23 .hero-wrapp h1 {
        font-size: 28px !important;
    }
    .hero-23 .hero-text,
    .hero-23 .hero-desc {
        font-size: 16px;
    }
    .sec-title.sec-title3 h2,
    .sec-title.sec-title3 .title,
    .title-area .sec-title3 h2,
    .title-area .sec-title3 .title {
        font-size: 24px !important;
    }
    .sub-title.sub-title8,
    .sub-title,
    .sec-title .sub-title {
        font-size: 11px !important;
        padding: 6px 14px !important;
    }
    .th-btn,
    .btn,
    .elementor-button {
        padding: 12px 24px !important;
        font-size: 14px !important;
    }
    .process-card .step-number,
    .process-step .step-number,
    .work-process-item .number {
        font-size: 40px !important;
    }
    .scroll-to-top,
    .back-to-top,
    #scrollTop {
        bottom: 85px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* ===========================
   26. Accessibility
   =========================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--ms-primary) !important;
    outline-offset: 2px !important;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .ms-reveal,
    .ms-reveal-left,
    .ms-reveal-right,
    .ms-reveal-scale {
        opacity: 1 !important;
        transform: none !important;
    }
    .hero-23 .th-hero-img,
    .hero-23 .hero-client-box,
    .service-item3,
    .process-card,
    .counter-box {
        animation: none !important;
    }
}

/* ===========================
   27. SEO Content Section
   =========================== */
.ms-seo-content {
    font-size: 15px;
    line-height: 1.9;
    color: var(--ms-text);
    padding: 60px 20px;
}
.ms-seo-content h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--ms-dark-2);
    margin-bottom: 18px;
    margin-top: 35px;
}
.ms-seo-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ms-dark-2);
    margin-bottom: 12px;
    margin-top: 25px;
}
.ms-seo-content p {
    margin-bottom: 18px;
}
.ms-seo-content ul,
.ms-seo-content ol {
    margin-bottom: 18px;
    padding-left: 22px;
}
.ms-seo-content li {
    margin-bottom: 10px;
}

/* Hero content entrance animation (preserves gradient text on title) */
@media (prefers-reduced-motion: no-preference) {
    .hero-23 .hero-style23 {
        animation: ms-hero-content-enter 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
}
@keyframes ms-hero-content-enter {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
.hero-23 .hero-title .text-theme {
    background: none !important;
    -webkit-text-fill-color: var(--ms-accent) !important;
    color: var(--ms-accent) !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
}

/* Fix broken video play button (href=#) */
.hero-23 .play-btn[href="#"],
.hero-23 .play-btn[href=""] {
    pointer-events: none;
    cursor: default;
}

/* Partner section title styling */
.title-area .box-title.title,
.title-area h6.box-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ms-primary) !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    display: inline-block;
    padding: 8px 20px;
    background: var(--ms-gradient-soft);
    border-radius: 50px;
    border: 1px solid rgba(104, 77, 244, 0.15);
    margin-bottom: 15px;
}
.title-area .box-title.title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--ms-accent);
    border-radius: 50%;
    margin-right: 8px;
    animation: ms-dot-pulse 2s ease-in-out infinite;
    vertical-align: middle;
}

/* Hide misleading Get the app widget until real app store links are added */
.widget_offer.footer-widget {
    display: none !important;
}

/* ==========================================================================
   UI Cleanup & Standardization Fixes
   ========================================================================== */

/* Hide duplicate brand slider partners section */
.elementor-element-df77fb9 {
    display: none !important;
}

/* Hide decorative shape images that clutter the layout */
.elementor-widget-webteckshapeimage,
.elementor-widget-traga_shape_image,
.elementor-element[data-widget_type="webteckshapeimage.default"] {
    display: none !important;
}

/* Remove hero image mask for cleaner look */
.hero-23 .th-hero-img,
.th-hero-img[data-mask-src] {
    -webkit-mask: none !important;
    mask: none !important;
}
.hero-23 .th-hero-img img {
    -webkit-mask: none !important;
    mask: none !important;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* Simplify hero background - remove heavy gradients */
.th-hero-wrapper.hero-23::before,
.th-hero-wrapper.hero-23::after {
    display: none !important;
}

/* Make hero background clean and light */
.hero-23 {
    background: linear-gradient(135deg, #F8F9FF 0%, #FFFFFF 100%) !important;
}

/* Remove excessive hero text gradient animation for readability */
.hero-23 .hero-title,
.hero-23 h1.hero-title {
    background: none !important;
    -webkit-text-fill-color: #0A0E27 !important;
    color: #0A0E27 !important;
    animation: none !important;
}
.hero-23 .hero-title .text-theme,
.hero-23 .hero-title span.text-theme {
    color: #684DF4 !important;
    -webkit-text-fill-color: #684DF4 !important;
    background: none !important;
}

/* Stop floating hero image animation for more professional feel */
.hero-23 .th-hero-img {
    animation: none !important;
}

/* Hide floating discount tag animation in hero */
.hero-23 .discount-wrapp .discount-tag .discount-anime {
    animation: none !important;
}

/* Clean up process/workflow section spacing */
.elementor-element-a8d7199 {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

/* Improve services section spacing */
.elementor-element-3130f02 {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

/* Make partner ecosystem section cleaner */
.elementor-element-a4b2563 {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

/* Improve about section spacing */
.elementor-element-0a1b322 {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

/* Hide generic footer app download if no real apps exist */
.footer-wrapper .elementor-widget-webteckfooterwidgets .widget_offer .download-btn-wrap {
    display: none !important;
}
.footer-wrapper .elementor-widget-webteckfooterwidgets .widget_offer .widget_title {
    display: none !important;
}
.footer-wrapper .elementor-widget-webteckfooterwidgets .widget_offer {
    min-height: 0 !important;
}

/* Reduce excessive testimonial/particles spacing */
.elementor-element-59ac3ab,
.elementor-element-4436327 {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

/* Mobile improvements */
@media (max-width: 768px) {
    .hero-23 .hero-title {
        font-size: 32px !important;
        line-height: 1.25 !important;
    }
    .hero-23 .hero-text {
        font-size: 16px !important;
    }
    .hero-23 .th-hero-img img {
        border-radius: 12px !important;
    }
    .elementor-element-a8d7199,
    .elementor-element-3130f02,
    .elementor-element-a4b2563,
    .elementor-element-0a1b322,
    .elementor-element-59ac3ab,
    .elementor-element-4436327 {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
}

/* Fix CTA contact section spacing */
.elementor-element-f1f4a35 {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

/* Improve overall typography consistency */
.sec-title3 {
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
}

/* Remove weird hover tilt from service cards for cleaner feel */
.service-item3 {
    transform: none !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.service-item3:hover {
    transform: translateY(-8px) !important;
}
