/* 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: rgba(255, 255, 255, 0.8) !important; */
    background-color: #ffffff !important;
    backdrop-filter: blur(5px);
    box-shadow: inset 0 -1px 0 0 rgba(0, 0, 0, 0.1);
}

.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);
}

/* Add padding to body to prevent content from being hidden behind the fixed header */
body {
    /* padding-top: 80px; */
}

/* Hero Section Styles */
.ud-hero-image {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

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

.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) {
    body {
        /*padding-top: 60px; /* Adjust padding for smaller screens */
    }
    
    .ud-hero .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 */
.logo-desktop {
    max-width: 260px !important;
    height: auto;
    display: inline-block;
    transition: all 0.3s ease;
}

.logo-mobile {
    max-width: 50px !important;
    height: auto;
    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 - Smaller desktop logo */
@media (max-width: 768px) and (min-width: 577px) {
    .logo-desktop {
        max-width: 180px !important;
    }
}

/* Mobile - Show compact logo */
@media (max-width: 576px) {
    .logo-desktop {
        display: none !important;
    }
    .logo-mobile {
        display: inline-block !important;
        max-width: 45px !important;
    }
}

/* Hero Section Mobile Responsive Styles */
@media (max-width: 576px) {
    .ud-hero-buttons {
        flex-direction: column !important;
        width: 100% !important;
    }
    .ud-hero-buttons li {
        width: 100% !important;
    }
    .ud-hero-buttons li a {
        width: 100% !important;
        min-width: auto !important;
        padding: 14px 20px !important;
        font-size: 16px !important;
    }
    .ud-hero-title {
        font-size: 28px !important;
    }
    .ud-hero-desc {
        font-size: 15px !important;
    }
    .hero-trust-badges {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: flex-start !important;
    }
    .hero-trust-badges > div span {
        font-size: 14px !important;
    }
    
    /* All CTA buttons responsive */
    .ud-main-btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
        text-align: center !important;
        white-space: normal !important;
        line-height: 1.5 !important;
    }
    
    /* Section headings */
    .ud-section-title h2 {
        font-size: 28px !important;
    }
    
    .ud-section-title p {
        font-size: 14px !important;
    }
}

@media (max-width: 768px) {
    .ud-hero-title {
        font-size: 32px !important;
    }
    .ud-hero-desc {
        font-size: 16px !important;
    }
    
    .ud-main-btn {
        padding: 14px 30px !important;
        font-size: 16px !important;
    }
}