/* NexCloudERP Color Theme Variables */
:root {
    /* Primary Brand Colors */
    --nex-primary: #0B76CE;
    --nex-primary-dark: #095A9E;
    --nex-primary-light: #3D9AE0;
    --nex-accent: #06B6D4;
    
    /* Gradients */
    --nex-gradient-primary: linear-gradient(135deg, #0B76CE 0%, #095A9E 100%);
    --nex-gradient-hero: linear-gradient(135deg, #095A9E 0%, #074270 100%);
    --nex-gradient-light: linear-gradient(180deg, #e0f2fe 0%, #ffffff 100%);
    
    /* Text Colors */
    --nex-text-dark: #1e293b;
    --nex-text-medium: #334155;
    --nex-text-muted: #64748b;
    --nex-text-light: #94a3b8;
    
    /* Success/Info Colors */
    --nex-success: #10b981;
    --nex-warning: #fbbf24;
    
    /* Shadows */
    --nex-shadow-sm: 0 2px 8px rgba(11, 118, 206, 0.15);
    --nex-shadow-md: 0 4px 15px rgba(11, 118, 206, 0.3);
    --nex-shadow-lg: 0 10px 30px rgba(11, 118, 206, 0.4);
    
    /* Backgrounds */
    --nex-bg-light: #f8fafc;
    --nex-bg-white: #ffffff;
}

/* Navbar Styles */
.ud-header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    background-color: #ffffff !important;
    backdrop-filter: blur(5px);
    box-shadow: inset 0 -1px 0 0 rgba(0, 0, 0, 0.1);
}

.ud-header .navbar-toggler .toggler-icon {
    background-color: var(--heading-color, #1e293b) !important;
}

.ud-header .navbar-nav .nav-item > a {
    color: var(--heading-color);
}

.ud-header .navbar-nav .nav-item > a:hover,
.ud-header .navbar-nav .nav-item > a.active {
    color: var(--primary-color);
    opacity: 1;
}

.ud-header .navbar-btn .ud-main-btn.ud-login-btn {
    color: var(--heading-color);
}

.ud-header .navbar-btn .ud-main-btn.ud-login-btn:hover {
    color: var(--primary-color);
    opacity: 1;
}

.ud-header .navbar-btn .ud-white-btn {
    background: var(--primary-color);
    color: var(--white);
}

/* Hide vertical scrollbar across all browsers while keeping smooth scroll */
html,
body {
    -ms-overflow-style: none !important;  /* IE and Edge */
    scrollbar-width: none !important;     /* Firefox */
    overflow-x: hidden !important;
    max-width: 100vw;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

body.preloader-active {
    overflow: hidden !important;
}

/* Ensure hero section content loads and animates only after page & preloader finish */
body.preloader-active .ud-hero-content,
body.preloader-active .ud-hero-image {
    opacity: 0 !important;
    visibility: hidden !important;
}

body.hero-loaded .ud-hero-content,
body.hero-loaded .ud-hero-image {
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Smooth Image Lazy Loading */
img[loading="lazy"] {
    transition: opacity 0.4s ease-in-out, filter 0.4s ease-in-out;
}

/* Hero Section Styles */
.ud-hero-image {
    position: relative;
}

.ud-hero-image .shape {
    position: absolute;
    z-index: -1;
}

.ud-hero-image .shape.shape-1 {
    top: -20px;
    left: -20px;
}

.ud-hero-image .shape.shape-2 {
    bottom: -20px;
    right: -20px;
}

/* Feature Card Styles */
.ud-single-feature {
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 10px;
    background-color: #fff;
}

.ud-single-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.ud-feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    color: #3056D3;
    margin-bottom: 25px;
    position: relative;
    border-radius: 14px;
}

.ud-feature-icon::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(48, 86, 211, 0.1);
    border-radius: 14px;
    left: 0;
    top: 0;
    z-index: -1;
    transition: all 0.3s ease;
}

.ud-single-feature:hover .ud-feature-icon::before {
    transform: scale(1.2);
    background: rgba(48, 86, 211, 0.2);
    border-radius: 14px;
}

.ud-feature-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 5px;
}

.ud-feature-content h3 {
    margin-bottom: 15px;
}

.ud-feature-content p {
    margin-bottom: 20px;
    color: var(--body-color);
    line-height: 1.6;
}

.ud-feature-link {
    margin-top: auto;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.ud-feature-link:hover {
    color: var(--heading-color);
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .ud-hero:not(.ud-hero-modern) .row {
        flex-direction: column-reverse;
    }
    
    .ud-hero-content {
        margin-top: 40px;
        text-align: center;
    }
    
    .ud-hero-buttons {
        justify-content: center;
    }
    
    .ud-hero-image {
        max-width: 80%;
        margin: 0 auto;
    }
    
    .ud-single-feature {
        margin-bottom: 30px;
    }
    
    .row.mt-4 {
        margin-top: 0 !important;
    }
}

@media (max-width: 767px) {
    .ud-hero-image {
        max-width: 100%;
    }
    
    .ud-feature-content h3 {
        font-size: 18px;
    }
    
    .ud-feature-content p {
        font-size: 14px;
    }
}

/* Logo Responsive Styles */
.navbar-brand {
    display: inline-flex;
    align-items: center;
    padding: 0;
}

.logo-desktop {
    max-width: 220px !important;
    height: auto;
    max-height: 44px;
    display: inline-block;
    transition: all 0.3s ease;
}

.logo-mobile {
    max-width: 170px !important;
    height: auto;
    max-height: 36px;
    display: none;
    transition: all 0.3s ease;
}

/* Desktop and Tablet - Show full logo */
@media (min-width: 577px) {
    .logo-desktop {
        display: inline-block !important;
    }
    .logo-mobile {
        display: none !important;
    }
}

/* Tablet - Sized logo */
@media (max-width: 768px) and (min-width: 577px) {
    .logo-desktop {
        max-width: 185px !important;
        max-height: 40px !important;
    }
}

/* Mobile - Show full NexCloudERP logo in navbar */
@media (max-width: 576px) {
    .logo-desktop {
        display: none !important;
    }
    .logo-mobile {
        display: inline-block !important;
        max-width: 195px !important;
        max-height: 42px !important;
        width: auto !important;
    }
}

/* Extra small mobile (e.g. 360px screens) */
@media (max-width: 380px) {
    .logo-mobile {
        max-width: 170px !important;
        max-height: 38px !important;
    }
}

/* ========================================================
   Mobile & Tablet Responsive Styles
   ======================================================== */
@media (max-width: 991px) {
    /* Prevent background scroll when sidebar is open */
    body.sidebar-open {
        overflow: hidden !important;
        touch-action: none !important;
    }

    /* Dimmed Backdrop */
    .navbar-sidebar-backdrop {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: rgba(15, 23, 42, 0.65) !important;
        backdrop-filter: blur(5px) !important;
        -webkit-backdrop-filter: blur(5px) !important;
        z-index: 99990 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: opacity 0.35s ease, visibility 0.35s ease !important;
    }

    .navbar-sidebar-backdrop.show {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* Left Drawer Off-Canvas Sidebar */
    .ud-header .navbar-collapse {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        right: auto !important;
        width: 255px !important;
        max-width: 76vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: #ffffff !important;
        z-index: 99999 !important;
        display: flex !important;
        flex-direction: column !important;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.18) !important;
        border-radius: 0 16px 16px 0 !important;
        border-right: 1px solid rgba(226, 232, 240, 0.8) !important;
        transform: translateX(-100%) !important;
        -webkit-transform: translateX(-100%) !important;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease !important;
        -webkit-transition: -webkit-transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease !important;
        visibility: hidden !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .ud-header .navbar-collapse.show {
        transform: translateX(0) !important;
        -webkit-transform: translateX(0) !important;
        visibility: visible !important;
    }

    /* Sidebar Top Header (Logo) */
    .navbar-sidebar-header {
        padding: 14px 14px 12px 14px !important;
        border-bottom: 1px solid #f1f5f9 !important;
        background: #ffffff !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    .navbar-sidebar-brand img {
        max-height: 34px !important;
        width: auto !important;
        display: block !important;
    }

    /* Sidebar Scrollable Nav List - Aligned to Left */
    .ud-header .navbar-nav {
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 8px 8px 10px 8px !important;
        margin: 0 !important;
        list-style: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .ud-header .navbar-nav .nav-item {
        padding: 0 !important;
        margin-bottom: 5px !important;
        width: 100% !important;
        opacity: 0;
        transform: translateX(-16px);
        transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .ud-header .navbar-collapse.show .navbar-nav .nav-item {
        opacity: 1;
        transform: translateX(0);
    }

    .ud-header .navbar-collapse.show .navbar-nav .nav-item:nth-child(1) { transition-delay: 0.05s !important; }
    .ud-header .navbar-collapse.show .navbar-nav .nav-item:nth-child(2) { transition-delay: 0.09s !important; }
    .ud-header .navbar-collapse.show .navbar-nav .nav-item:nth-child(3) { transition-delay: 0.13s !important; }
    .ud-header .navbar-collapse.show .navbar-nav .nav-item:nth-child(4) { transition-delay: 0.17s !important; }
    .ud-header .navbar-collapse.show .navbar-nav .nav-item:nth-child(5) { transition-delay: 0.21s !important; }

    .ud-header .navbar-nav .nav-item:last-child {
        margin-bottom: 0 !important;
    }

    /* Modern Designed Nav Item Links - Left Aligned */
    .ud-header .navbar-nav .nav-item > a {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 9px !important;
        padding: 7px 8px !important;
        border-radius: 10px !important;
        text-decoration: none !important;
        border: 1px solid #f1f5f9 !important;
        background: #ffffff !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
        position: relative !important;
        transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .nav-link-icon {
        width: 34px !important;
        height: 34px !important;
        border-radius: 8px !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        color: #475569 !important;
        font-size: 15px !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.22s ease !important;
    }

    .nav-link-text {
        flex: 1 1 auto !important;
        display: flex !important;
        flex-direction: column !important;
        text-align: left !important;
        line-height: 1.2 !important;
    }

    .nav-link-title {
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #1e293b !important;
        transition: color 0.2s ease !important;
    }

    .nav-link-sub {
        font-size: 10.5px !important;
        font-weight: 400 !important;
        color: #64748b !important;
        margin-top: 1px !important;
        transition: color 0.2s ease !important;
    }

    .nav-link-arrow {
        font-size: 11px !important;
        color: #cbd5e1 !important;
        flex-shrink: 0 !important;
        margin-left: auto !important;
        transition: all 0.22s ease !important;
    }

    /* Nav Item Hover State */
    .ud-header .navbar-nav .nav-item > a:hover {
        background: #f8fafc !important;
        border-color: #cbd5e1 !important;
        transform: translateX(2px) !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    }

    .ud-header .navbar-nav .nav-item > a:hover .nav-link-icon {
        background: rgba(48, 86, 211, 0.1) !important;
        border-color: rgba(48, 86, 211, 0.25) !important;
        color: var(--ud-primary, #3056d3) !important;
    }

    .ud-header .navbar-nav .nav-item > a:hover .nav-link-title {
        color: var(--ud-primary, #3056d3) !important;
    }

    .ud-header .navbar-nav .nav-item > a:hover .nav-link-arrow {
        color: var(--ud-primary, #3056d3) !important;
        transform: translateX(2px) !important;
    }

    /* Nav Item Active State */
    .ud-header .navbar-nav .nav-item > a.active {
        background: #eff6ff !important;
        border-color: #bfdbfe !important;
        box-shadow: 0 2px 8px rgba(48, 86, 211, 0.08) !important;
    }

    .ud-header .navbar-nav .nav-item > a.active .nav-link-icon {
        background: linear-gradient(135deg, #3056d3 0%, #1d4ed8 100%) !important;
        border-color: #2563eb !important;
        color: #ffffff !important;
        box-shadow: 0 3px 8px rgba(48, 86, 211, 0.25) !important;
    }

    .ud-header .navbar-nav .nav-item > a.active .nav-link-title {
        color: #1e3a8a !important;
        font-weight: 700 !important;
    }

    .ud-header .navbar-nav .nav-item > a.active .nav-link-sub {
        color: #2563eb !important;
        font-weight: 500 !important;
    }

    .ud-header .navbar-nav .nav-item > a.active .nav-link-arrow {
        color: #2563eb !important;
        transform: translateX(1px) !important;
    }

    /* Left Sidebar Help / Support Banner */
    .navbar-sidebar-help {
        margin: 4px 8px 8px 8px !important;
        padding: 8px 10px !important;
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
        border-radius: 10px !important;
        border: 1px solid #e2e8f0 !important;
        gap: 9px !important;
        flex-shrink: 0 !important;
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.32s ease, transform 0.32s ease !important;
    }

    .ud-header .navbar-collapse.show .navbar-sidebar-help {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.24s !important;
    }

    .sidebar-help-icon {
        width: 30px !important;
        height: 30px !important;
        border-radius: 8px !important;
        background: #e0e7ff !important;
        color: #3730a3 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 14px !important;
        flex-shrink: 0 !important;
    }

    .sidebar-help-text {
        display: flex !important;
        flex-direction: column !important;
        line-height: 1.2 !important;
    }

    .sidebar-help-text .help-title {
        font-size: 11.5px !important;
        font-weight: 600 !important;
        color: #1e293b !important;
    }

    .sidebar-help-text .help-desc {
        font-size: 10px !important;
        color: #64748b !important;
        margin-top: 1px !important;
    }

    /* Sidebar Footer Action Buttons */
    .navbar-sidebar-footer {
        padding: 10px 8px 16px !important;
        border-top: 1px solid #f1f5f9 !important;
        background: #ffffff !important;
        flex-shrink: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        opacity: 0;
        transform: translateY(12px);
        transition: opacity 0.32s ease, transform 0.32s ease !important;
    }

    .ud-header .navbar-collapse.show .navbar-sidebar-footer {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.27s !important;
    }

    .sidebar-signin-btn {
        width: 100% !important;
        padding: 8px 14px !important;
        border-radius: 50px !important;
        font-size: 13.5px !important;
        font-weight: 600 !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        border: 1.5px solid #e2e8f0 !important;
        color: #1e293b !important;
        background: #f8fafc !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
    }

    .sidebar-signin-btn:hover {
        border-color: var(--ud-primary, #3056d3) !important;
        color: var(--ud-primary, #3056d3) !important;
        background: rgba(48, 86, 211, 0.05) !important;
    }

    .sidebar-signup-btn {
        width: 100% !important;
        padding: 9px 14px !important;
        border-radius: 50px !important;
        font-size: 13.5px !important;
        font-weight: 600 !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        background: #3056d3 !important;
        color: #ffffff !important;
        box-shadow: 0 4px 12px rgba(48, 86, 211, 0.3) !important;
        text-decoration: none !important;
        border: none !important;
        transition: all 0.2s ease !important;
    }

    .sidebar-signup-btn:hover {
        background: #2045b8 !important;
        color: #ffffff !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 6px 16px rgba(48, 86, 211, 0.4) !important;
    }

    .ud-header {
        min-height: 72px !important;
        padding: 14px 0 !important;
    }
    .ud-hero-modern {
        padding: 125px 0 80px !important;
    }
    .ud-hero-modern .row {
        flex-direction: column !important;
    }
    .ud-hero-modern .ud-hero-content {
        margin-top: 0 !important;
        text-align: center !important;
        margin-bottom: 20px !important;
    }
    .ud-hero-modern .ud-hero-title {
        font-size: 38px !important;
        line-height: 1.2 !important;
    }
    .ud-hero-modern .ud-hero-desc {
        font-size: 16px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 600px !important;
    }
    .ud-hero-modern .hero-trust-badges {
        justify-content: center !important;
    }
    .ud-hero-modern .ud-hero-buttons {
        justify-content: center !important;
    }
    .ud-hero-modern .ud-hero-image {
        max-width: 92% !important;
        margin: 30px auto 0 !important;
    }
    .hero-floating-card {
        display: none !important;
    }
    .hero-bottom-svg {
        height: 50px !important;
    }
}

@media (min-width: 992px) {
    .navbar-sidebar-backdrop,
    .navbar-sidebar-header,
    .navbar-sidebar-section-label,
    .navbar-sidebar-help,
    .navbar-sidebar-footer,
    .nav-link-icon,
    .nav-link-sub,
    .nav-link-arrow {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .ud-header {
        min-height: 76px !important;
        padding: 16px 0 !important;
    }
    .ud-header .navbar {
        min-height: 44px !important;
    }
    .ud-hero-modern {
        padding: 125px 0 70px !important;
    }
    .ud-hero-modern .ud-hero-title {
        font-size: 32px !important;
    }
    .ud-hero-modern .ud-hero-desc {
        font-size: 15px !important;
        line-height: 1.65 !important;
    }
    .ud-why-choose {
        padding: 60px 0 !important;
    }
    .ud-why-choose-image {
        margin-bottom: 30px !important;
    }
    .ud-features {
        padding: 60px 0 !important;
    }
    .ud-showcase {
        padding: 60px 0 !important;
    }
    .ud-showcase h3 {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }
    .ud-showcase .ud-showcase-img-wrap {
        margin-bottom: 25px !important;
    }
    .ud-testimonials {
        padding: 60px 0 !important;
    }
    .ud-single-testimonial {
        padding: 24px !important;
        margin-bottom: 24px !important;
    }
    .ud-cta {
        padding: 60px 0 !important;
    }
    .ud-cta h2 {
        font-size: 28px !important;
        line-height: 1.25 !important;
    }
    .ud-cta p {
        font-size: 15px !important;
    }
}

@media (max-width: 576px) {
    .ud-header {
        min-height: 76px !important;
        padding: 16px 0 !important;
    }
    .ud-header .navbar {
        min-height: 44px !important;
    }
    .ud-hero-modern {
        padding: 125px 0 60px !important;
    }
    .ud-hero-modern .ud-hero-title {
        font-size: 28px !important;
        line-height: 1.25 !important;
        margin-bottom: 16px !important;
    }
    .ud-hero-modern .ud-hero-desc {
        font-size: 14.5px !important;
        line-height: 1.6 !important;
        margin-bottom: 20px !important;
    }
    .hero-trust-badges {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-bottom: 22px !important;
    }
    .hero-trust-badge-pill {
        padding: 6px 12px !important;
        font-size: 12.5px !important;
        gap: 6px !important;
    }
    .hero-trust-badge-pill i {
        font-size: 16px !important;
    }
    .hero-trust-badge-pill span {
        font-size: 12.5px !important;
    }
    .ud-hero-buttons {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
    }
    .ud-hero-buttons li {
        width: 100% !important;
        margin: 0 !important;
    }
    .ud-hero-buttons li a,
    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
        justify-content: center !important;
        display: flex !important;
        text-align: center !important;
    }
    .ud-hero-modern .ud-hero-image {
        max-width: 100% !important;
        margin-top: 25px !important;
    }
    .hero-social-proof-box {
        margin-top: 18px !important;
        padding: 12px 14px !important;
        border-radius: 20px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 320px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }
    .hero-social-proof-box > div {
        text-align: center !important;
    }
    .hero-social-proof-box > div > div {
        justify-content: center !important;
    }
    .hero-social-proof-box p {
        font-size: 13px !important;
        text-align: center !important;
    }
    .hero-bottom-svg {
        height: 36px !important;
    }
    .ud-section-title h2 {
        font-size: 26px !important;
        line-height: 1.25 !important;
    }
    .ud-section-title p {
        font-size: 14px !important;
    }
    .ud-main-btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
        text-align: center !important;
    }
    .ud-why-choose-content h3 {
        font-size: 18px !important;
    }
    .ud-feature-img-wrapper {
        height: 150px !important;
    }
    .ud-single-feature {
        padding: 16px !important;
    }
    .ud-cta h2 {
        font-size: 24px !important;
    }
    .ud-cta p {
        font-size: 14px !important;
    }
}

@media (max-width: 400px) {
    .ud-header {
        min-height: 74px !important;
        padding: 15px 0 !important;
    }
    .logo-mobile {
        max-width: 170px !important;
        max-height: 38px !important;
    }
    .ud-hero-modern {
        padding: 120px 0 50px !important;
    }
    .ud-hero-modern .ud-hero-title {
        font-size: 24px !important;
    }
    .ud-hero-modern .ud-hero-desc {
        font-size: 13.5px !important;
    }
    .hero-trust-badge-pill {
        width: 100% !important;
        justify-content: center !important;
    }
    .hero-social-proof-box {
        max-width: 100% !important;
        padding: 10px 12px !important;
    }
    .ud-section-title h2 {
        font-size: 23px !important;
    }
    .ud-showcase h3 {
        font-size: 20px !important;
    }
}

/* Landing Page Feature & Showcase Image Enhancements */
.ud-feature-img-wrapper {
    overflow: hidden;
    border-radius: 12px;
    height: 180px;
    background: #f1f5f9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.ud-feature-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ud-single-feature:hover .ud-feature-img-wrapper img {
    transform: scale(1.06);
}

.ud-showcase-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 35px rgba(11, 118, 206, 0.08);
    border: 1px solid rgba(11, 118, 206, 0.1);
    transition: all 0.3s ease;
}

.ud-showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(11, 118, 206, 0.14);
}

.ud-showcase-img-wrap {
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(11, 118, 206, 0.12);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.ud-showcase-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.ud-showcase-card:hover .ud-showcase-img-wrap img {
    transform: scale(1.03);
}

.ud-testimonial-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0B76CE;
    box-shadow: 0 4px 12px rgba(11, 118, 206, 0.25);
}

/* ========================================================
   Redesigned Modern Hero Section Styles
   ======================================================== */
.ud-hero-modern {
    position: relative;
    padding: 160px 0 120px;
    background: linear-gradient(135deg, #073B66 0%, #052643 55%, #031B30 100%);
    overflow: hidden;
}

.ud-hero-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

.ud-hero-modern .hero-glow-1 {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 580px;
    height: 580px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.28) 0%, transparent 65%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
}

.ud-hero-modern .hero-glow-2 {
    position: absolute;
    bottom: -120px;
    left: -120px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(11, 118, 206, 0.32) 0%, transparent 65%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.ud-hero-modern .container {
    position: relative;
    z-index: 1;
}

.ud-hero-modern .ud-hero-title {
    font-size: 50px;
    line-height: 1.18;
    margin-bottom: 22px;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.ud-hero-modern .ud-hero-title .highlight-pro {
    background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ud-hero-modern .ud-hero-title .highlight-free {
    color: #4ade80;
    text-shadow: 0 0 25px rgba(74, 222, 128, 0.3);
}

.ud-hero-modern .ud-hero-desc {
    font-size: 18px;
    color: rgba(241, 245, 249, 0.92);
    margin-bottom: 28px;
    line-height: 1.75;
    font-weight: 400;
    max-width: 560px;
}

.hero-trust-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50px;
    padding: 8px 18px;
    transition: all 0.3s ease;
}

.hero-trust-badge-pill:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.32);
    transform: translateY(-2px);
}

.hero-btn-primary {
    background: #ffffff !important;
    color: #0B76CE !important;
    padding: 18px 42px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), 0 0 30px rgba(255, 255, 255, 0.25) !important;
    border: none !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}

.hero-btn-primary:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 45px rgba(255, 255, 255, 0.4) !important;
    color: #095A9E !important;
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
    padding: 18px 38px !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    color: #ffffff !important;
    transform: translateY(-3px) !important;
}

.hero-social-proof-box {
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50px;
    padding: 10px 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    text-align: left;
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

.hero-social-proof-box:hover {
    transform: none !important;
    animation: none !important;
}

.hero-social-proof-box .proof-avatars {
    display: flex;
    align-items: center;
}

.hero-social-proof-box .proof-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #073B66;
    margin-left: -10px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-social-proof-box .proof-avatar:first-child {
    margin-left: 0;
}

.hero-monitor-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.hero-monitor-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    max-width: 520px;
    max-height: 420px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.32) 0%, rgba(11, 118, 206, 0.16) 50%, transparent 70%);
    filter: blur(50px);
    z-index: 0;
    pointer-events: none;
}

.hero-floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 12px 18px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.hero-floating-card-1 {
    top: 20px;
    right: -10px;
}

.hero-floating-card-2 {
    bottom: 25px;
    left: -10px;
}

/* ========================================================
   Hero Section Bottom Design Line / Wave Divider
   ======================================================== */
.hero-bottom-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-bottom-svg {
    position: relative;
    display: block;
    width: 100%;
    height: 70px;
}

@media (max-width: 991px) {
    .hero-bottom-svg {
        height: 50px;
    }
}

@media (max-width: 576px) {
    .hero-bottom-svg {
        height: 36px;
    }
}

/* ========================================================
   Modern NexCloudERP Preloader Styles
   ======================================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s ease;
    opacity: 1;
    visibility: visible;
}

.preloader.preloader-deactivate {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.preloader-logo-wrap {
    position: relative;
    margin-bottom: 22px;
    animation: preloaderPulse 2s ease-in-out infinite;
}

.preloader-logo {
    height: 44px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.preloader-progress-bar {
    width: 160px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.preloader-progress-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, #0B76CE 0%, #06B6D4 50%, #38bdf8 100%);
    border-radius: 99px;
    box-shadow: 0 0 10px rgba(11, 118, 206, 0.5);
    animation: preloaderSlide 1.5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.preloader-text {
    margin-top: 14px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.04em;
    animation: preloaderTextFade 1.5s ease-in-out infinite;
}

@keyframes preloaderPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

@keyframes preloaderSlide {
    0% {
        left: -50%;
        width: 30%;
    }
    50% {
        left: 25%;
        width: 60%;
    }
    100% {
        left: 100%;
        width: 30%;
    }
}

@keyframes preloaderTextFade {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}



