/* Premium Side Menu CSS */
#sideMenuOffcanvas {
    width: 400px;
    background: linear-gradient(180deg, #ffffff 0%, #F8FBFF 100%);
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08);
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#sideMenuOffcanvas::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
}

#sideMenuOffcanvas .offcanvas-header {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: none;
    position: relative;
    z-index: 2;
    animation: fadeInDown 0.4s ease forwards;
    margin-bottom: 24px;
}

#sideMenuOffcanvas .offcanvas-header .header-left {
    display: flex;
    gap: 16px;
    align-items: center;
}

#sideMenuOffcanvas .offcanvas-header .logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: transparent;
    border-radius: 12px;
    border: none;
}

#sideMenuOffcanvas .offcanvas-header .logo-wrapper img {
    border-radius: 12px;
    width: 48px !important;
    height: 48px !important;
}

#sideMenuOffcanvas .offcanvas-header .header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

#sideMenuOffcanvas .offcanvas-header .title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

#sideMenuOffcanvas .offcanvas-header h2 {
    font-size: 34px;
    font-weight: 800;
    color: #111827;
    margin: 0;
    line-height: 1;
}

#sideMenuOffcanvas .ai-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(90deg, #3B82F6, #2563EB);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

#sideMenuOffcanvas .offcanvas-header p {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
}

#sideMenuOffcanvas .btn-close-custom {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4B5563;
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

#sideMenuOffcanvas .btn-close-custom:hover {
    background: white;
    transform: rotate(90deg);
    color: #111827;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#sideMenuOffcanvas .offcanvas-body {
    padding: 0 24px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Feature Cards */
.premium-feature-card {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
    opacity: 0;
    transform: translateY(10px);
}

/* Add staggered animation delays */
#sideMenuOffcanvas.show .premium-feature-card:nth-child(1) {
    animation: slideUpFade 0.4s 0.05s ease forwards;
}

#sideMenuOffcanvas.show .premium-feature-card:nth-child(2) {
    animation: slideUpFade 0.4s 0.10s ease forwards;
}

#sideMenuOffcanvas.show .premium-feature-card:nth-child(3) {
    animation: slideUpFade 0.4s 0.15s ease forwards;
}

#sideMenuOffcanvas.show .premium-feature-card:nth-child(4) {
    animation: slideUpFade 0.4s 0.20s ease forwards;
}

.premium-feature-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.12), 0 0 0 1px rgba(59, 130, 246, 0.1) inset;
}

.premium-feature-card .icon-container {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.premium-feature-card .content h4 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px 0;
    font-family: inherit;
}

.premium-feature-card .content p {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
    line-height: 1.4;
}

/* Sticky CTA */
.premium-cta-section {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 15px 24px;
    height: 90px;
    display: flex;
    align-items: center;
    z-index: 10;
    opacity: 0;
}

#sideMenuOffcanvas.show .premium-cta-section {
    animation: fadeIn 0.5s 0.4s ease forwards;
}

.premium-btn {
    width: 100%;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(90deg, #2563EB, #4F46E5, #2563EB);
    background-size: 200% auto;
    color: white !important;
    font-size: 16px;
    font-weight: 600;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    animation: pulseGradient 5s infinite;
    text-decoration: none;
}

.premium-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
    background-position: right center;
    text-decoration: none;
}

.premium-btn i {
    transition: transform 0.3s ease;
}

.premium-btn:hover i {
    transform: translateX(4px);
}

/* Animations */
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes pulseGradient {
    0% {
        background-position: 0% center;
        box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    }

    50% {
        background-position: 100% center;
        box-shadow: 0 4px 25px rgba(37, 99, 235, 0.6);
    }

    100% {
        background-position: 0% center;
        box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    }
}

/* White border for hero sub-images */
.hero-img2 img {
    border: 8px solid #ffffff;
    box-sizing: border-box;
}

/* White border shaped exactly like the image using SVG Filter */
.hero-four .hero-img {
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background-color: transparent !important;
}

.hero-four .hero-img::before {
    display: none !important;
}

.hero-four .hero-img img {
    /* Scale down slightly so the new SVG border (14px) fits inside the container */
    transform: scale(0.9);
    filter: url(#shape-border);
    clip-path: none !important;
    border-radius: 0 !important;
}