.almas-header-glass .almas-glass-blob-1,
.almas-offcanvas-menu .almas-glass-blob-1 {
    position: absolute;
    top: -50px;
    left: 15%;
    width: 250px;
    height: 250px;
}

.almas-header-glass .almas-glass-blob-2,
.almas-offcanvas-menu .almas-glass-blob-2 {
    position: absolute;
    bottom: -50px;
    right: 15%;
    width: 300px;
    height: 300px;
}

.almas-offcanvas-menu .almas-glass-blob { animation-play-state: paused; }
.almas-offcanvas-menu.almas-active .almas-glass-blob { animation-play-state: running; }

.almas-offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.almas-offcanvas-menu {
    position: fixed;
    top: 0;
    bottom: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    height: 100dvh;
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--almas-glass-border);
}

.almas-offcanvas-menu::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--almas-glass-bg);
    backdrop-filter: blur(var(--almas-glass-blur)) saturate(var(--almas-glass-saturate));
    -webkit-backdrop-filter: blur(var(--almas-glass-blur)) saturate(var(--almas-glass-saturate));
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    transform: translateZ(0);
    pointer-events: none;
}

.almas-offcanvas-menu.almas-active {
    transform: translateX(-300px);
}

.almas-offcanvas-overlay.almas-active {
    opacity: 1;
    visibility: visible;
}

.almas-offcanvas-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    border-bottom: 1px solid var(--almas-glass-border);
}

.almas-offcanvas-title {
    font-weight: 800;
    font-size: 18px;
    color: #1e293b;
    letter-spacing: -0.5px;
}

body.dark-mode .almas-offcanvas-title {
    color: #f8fafc;
}

.almas-offcanvas-close {
    background: transparent !important;
    border: none !important;
    color: #64748b !important;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    outline: none;
}

@media (hover: hover){
.almas-offcanvas-close:hover {
    color: #ef4444 !important;
    transform: scale(1.1) rotate(90deg);
}
}

.almas-offcanvas-content {
    position: relative;
    z-index: 1;
    padding: 30px 24px;
    overflow-y: auto;
    flex: 1;
}

.almas-offcanvas-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.almas-offcanvas-content ul li {
    margin: 0;
    opacity: 0;
    transform: translateX(15px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.almas-offcanvas-menu.almas-active .almas-offcanvas-content ul li {
    opacity: 1;
    transform: translateX(0);
    transition-delay: calc(var(--item-index) * 0.05s);
}

.almas-offcanvas-content ul li a {
    text-decoration: none;
    color: #475569;
    font-weight: 700;
    font-size: 16px;
    display: block;
    padding: 12px 16px;
    transition: all 0.25s ease;
    border-radius: 12px;
    background: transparent;
    border: none;
    position: relative;
    outline: none;
}

body.dark-mode .almas-offcanvas-content ul li a {
    color: #cbd5e1;
}

.almas-offcanvas-content ul li a::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--almas-highlight);
    border-radius: 4px;
    transition: height 0.25s ease;
}

.almas-offcanvas-content ul li.current-menu-item > a,
.almas-offcanvas-content ul li.current-menu-ancestor > a {
    color: var(--almas-highlight);
    padding-right: 24px;
}

.almas-offcanvas-content ul li.current-menu-item > a::before,
.almas-offcanvas-content ul li.current-menu-ancestor > a::before {
    height: 60%;
}

@media (max-width: 1024px) {
    .almas-offcanvas-overlay {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .almas-offcanvas-menu::before {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: #ffffff !important;
    }

    body.dark-mode .almas-offcanvas-menu::before {
        background: #1e293b !important;
    }
}

@media (hover: hover){
.almas-offcanvas-content ul li a:hover,
body.dark-mode .almas-offcanvas-content ul li a:hover {
    color: var(--almas-highlight);
}
}