/* Aesthetic Styles for Homepage Cards - Based on Screenshot */

.card-aesthetic {
    border: none !important;
    border-radius: 32px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03) !important;
    margin-bottom: 2.5rem !important;
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    /* Slightly slower for elegance */
    overflow: hidden;
    background: #fff;
    position: relative;
    will-change: transform, box-shadow, opacity;
}

.card-aesthetic .card-body {
    padding: 3.5rem !important;
}

/* Subtle Gradients */
.grad-hero {
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%) !important;
}

.grad-bg {
    background: linear-gradient(135deg, #f3e5f5 0%, #ffffff 100%) !important;
}

.grad-solution {
    background: linear-gradient(135deg, #ffffff 0%, #e8f5e9 100%) !important;
}

.grad-vision {
    background: linear-gradient(135deg, #1565c0 0%, #1e88e5 100%) !important;
    color: white !important;
}

/* Typography refinement */
.main-title {
    color: #1a237e !important;
    font-weight: 800 !important;
    font-size: 1.85rem !important;
    margin-bottom: 1.25rem !important;
}

.sub-text {
    color: #546e7a !important;
    font-size: 1.15rem !important;
    line-height: 1.8 !important;
    letter-spacing: 0.02em !important;
    font-weight: 400 !important;
    display: block !important;
    margin-top: 1.2rem !important;
}

.grad-vision .main-title,
.grad-vision .sub-text {
    color: #ffffff !important;
}

/* Button with a "Pulse/Glow" interaction */
.card-aesthetic .btn-pills {
    padding: 0.8rem 2.5rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Reveal Animations Base */
.reveal {
    opacity: 0 !important;
    transform: translateY(40px) scale(0.98) !important;
    transition: opacity 0.8s ease-out,
        transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    will-change: transform, opacity;
}

/* Revealed State */
.reveal.active {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* HOVER EFFECTS - MOVED TO BOTTOM FOR OVERRIDE POWER */
/* Extra specificity to ensure it beats .reveal.active */
.card-aesthetic.card-aesthetic:hover {
    transform: translateY(-15px) scale(1.015) !important;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.12) !important;
    z-index: 20;
}

.card-aesthetic .btn-pills:hover {
    transform: scale(1.1) translateY(-3px) !important;
    box-shadow: 0 10px 20px rgba(21, 101, 192, 0.3) !important;
}

/* Progress Bar */
#scroll-progress-container {
    position: fixed;
    top: 70px;
    /* Align with new 70px header height */
    left: 0;
    width: 100%;
    height: 2px;
    /* Thinner for less distraction */
    background: transparent;
    z-index: 9999;
}

#scroll-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, #4facfe, #00f2fe, #00d2ff);
    /* Lighter starting color */
    box-shadow: 0 0 8px rgba(79, 172, 254, 0.4);
    transition: width 0.1s ease-out;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .card-aesthetic .card-body {
        padding: 2.5rem 1.5rem !important;
    }

    .card-aesthetic .row>div+div {
        margin-top: 2.5rem;
    }

    .main-title {
        font-size: 1.6rem !important;
    }

    #scroll-progress-container {
        top: 0;
    }
}

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Light & Airy Premium Footer Styling */
.footer-premium {
    background-color: #f8fafc !important;
    /* Very Light bluish-gray */
    color: #64748b !important;
    padding: 5rem 0 3rem 0 !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

.footer-premium h5 {
    color: #1a237e !important;
    /* Brand Blue */
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    font-size: 1.1rem !important;
    letter-spacing: 0.01em !important;
}

.footer-premium p,
.footer-premium a {
    color: #64748b !important;
    font-size: 0.95rem !important;
    line-height: 1.8 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.footer-premium a:hover {
    color: #1e88e5 !important;
    /* Primary Blue */
    display: inline-block;
}

.footer-premium hr {
    border: none !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    margin: 3rem 0 !important;
}

.footer-premium .friend-links a {
    margin: 0 0.5rem !important;
    color: #64748b !important;
}

.footer-premium .friend-links a:hover {
    color: #1e88e5 !important;
}

.footer-premium .qr-code {
    width: 100px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.footer-premium .qr-code:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* --- Premium Navigation Bar REVISED (Responsive) --- */

/* Desktop Only Styles */
@media (min-width: 992px) {
    .nav-function-top .page-sidebar {
        background: #ffffff !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03) !important;
        height: 70px !important;
        display: flex !important;
        align-items: center !important;
        position: fixed !important;
        top: 0 !important;
        width: 100% !important;
        z-index: 1000 !important;
    }

    .nav-function-top .page-content-wrapper {
        margin-top: 70px !important;
    }

    .nav-function-top .primary-nav {
        background: transparent !important;
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 1400px !important;
        margin: 0 auto !important;
        padding: 0 2rem !important;
    }

    .nav-function-top .logo-size {
        font-size: 1.35rem !important;
        /* Increased for prominence */
        font-weight: 800 !important;
        color: #027fff !important;
        flex: none !important;
        padding-left: 0 !important;
        display: flex !important;
        align-items: center !important;
        letter-spacing: -0.01em !important;
    }

    .nav-function-top .brand-logo {
        height: 32px !important;
        width: auto !important;
        margin-right: 10px !important;
        filter: drop-shadow(0 2px 4px rgba(2, 127, 255, 0.1)) !important;
    }

    .nav-function-top .nav-menu {
        margin-left: auto !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        background: transparent !important;
    }

    .nav-function-top .nav-menu li {
        margin: 0 2px !important;
    }

    .nav-function-top .nav-menu li a {
        padding: 0.6rem 1.25rem !important;
        border-radius: 12px !important;
        color: #455a64 !important;
        font-weight: 700 !important;
        /* Unified bold weight */
        font-size: 0.95rem !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .nav-function-top .nav-menu li.active a {
        background: #eef2ff !important;
        color: #027fff !important;
        font-weight: 700 !important;
    }

    /* Hover state: Light gray background, text color unchanged */
    .nav-function-top .nav-menu li:not(.active) a:hover {
        background: #f1f5f9 !important;
        color: #455a64 !important;
        font-weight: 700 !important;
    }

    /* Remove UI library's indicator dots (green dots) */
    .nav-function-top .nav-menu li a:before,
    .nav-function-top .nav-menu li a:after {
        display: none !important;
    }

    /* Hide the mobile header on desktop completely */
    #mobileHeader {
        display: none !important;
    }
}

/* Mobile Specific Styles */
@media (max-width: 991px) {
    .page-header {
        background: #ffffff !important;
        height: 60px !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
        padding: 0 1rem !important;
        display: flex !important;
        align-items: center !important;
    }

    .page-header .btn-primary {
        background: #eef2ff !important;
        color: #2563eb !important;
        border: none !important;
        border-radius: 10px !important;
        width: 38px !important;
        height: 38px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Fix the content shift on mobile */
    .page-content-wrapper {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .btn-trial-mobile {
        background: #027fff !important;
        color: #ffffff !important;
        padding: 0.4rem 1rem !important;
        border-radius: 50px !important;
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        box-shadow: 0 4px 10px rgba(2, 127, 255, 0.2) !important;
        border: none !important;
        text-decoration: none !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    /* Restore sidebar drawer logic with Gradient Background */
    .mobile-nav-on .page-sidebar {
        display: flex !important;
        flex-direction: column !important;
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.05) !important;
    }

    /* Reset vertical menu styles for mobile drawer */
    .page-sidebar .nav-menu {
        flex-direction: column !important;
        background: transparent !important;
        padding: 1.5rem 0 !important;
        display: flex !important;
    }

    .page-sidebar .nav-menu li {
        width: 100% !important;
        margin: 0.2rem 0 !important;
    }

    /* Normal menu link style - Improved contrast */
    .page-sidebar .nav-menu li a {
        padding: 1.2rem 2.5rem !important;
        border-radius: 0 50px 50px 0 !important;
        /* Elegant rounded ends */
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        /* Unified bold weight */
        color: #475569 !important;
        /* Deep slate for clarity */
        width: 90% !important;
        transition: all 0.3s ease !important;
        background: transparent !important;
    }

    /* Hover effect - Subtle and clean */
    .page-sidebar .nav-menu li a:hover {
        background: rgba(2, 127, 255, 0.05) !important;
        color: #027fff !important;
        padding-left: 3rem !important;
    }

    /* Active state - System consistent blue */
    .page-sidebar .nav-menu li.active a {
        background: linear-gradient(90deg, #027fff 0%, #0066cc 100%) !important;
        color: #ffffff !important;
        font-weight: 700 !important;
        box-shadow: 0 4px 12px rgba(2, 127, 255, 0.2) !important;
    }

    /* Remove indicator dots on mobile */
    .page-sidebar .nav-menu li a:before,
    .page-sidebar .nav-menu li a:after {
        display: none !important;
    }

    /* Logo area in sidebar - Fitted for full name */
    .page-sidebar .logo-size {
        font-size: 1.25rem !important;
        /* Increased for mobile drawer as well */
        font-weight: 800 !important;
        color: #027fff !important;
        padding: 2rem 1rem 1.5rem 1rem !important;
        text-align: center !important;
        letter-spacing: 0.01em !important;
        background: transparent !important;
        border-bottom: 2px solid rgba(2, 127, 255, 0.05) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .page-sidebar .brand-logo {
        height: 40px !important;
        width: auto !important;
        margin-bottom: 5px !important;
    }

    /* Footer Specific Interactive Styles */
    .footer-premium {
        transition: all 0.5s ease !important;
    }

    .footer-premium a {
        position: relative !important;
        display: inline-block !important;
        transition: color 0.3s ease !important;
    }

    .footer-premium a:hover {
        color: #027fff !important;
    }

    .footer-premium a::after {
        content: '' !important;
        position: absolute !important;
        width: 0 !important;
        height: 1px !important;
        bottom: -2px !important;
        left: 0 !important;
        background-color: #027fff !important;
        transition: width 0.3s ease !important;
    }

    .footer-premium a:hover::after {
        width: 100% !important;
    }

    .footer-premium .qr-code {
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    }

    .footer-premium .qr-code:hover {
        transform: scale(1.08) translateY(-5px) !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    }
}

/* Global Font and Weight Override for Nav */
.nav-link-text,
.logo-size,
.page-sidebar,
.nav-menu,
.nav-menu li a,
.nav-menu li a span {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    font-weight: 700 !important;
    /* Force bold globally in nav */
}