/* === TOGGLER ICON START === */
.custom-menu-toggler {
    background: transparent;
    border: none;
    cursor: pointer;
    display: none;
    padding: 0;
    z-index: 1050;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.custom-menu-toggler.active {
    transform: rotate(90deg);
}
.custom-menu-toggler svg {
    display: block;
}
.custom-menu-toggler .line {
    fill: none;
    stroke: #ffffff;
    stroke-width: 5;
    stroke-linecap: round;
    transition: stroke-dasharray 500ms cubic-bezier(0.4, 0, 0.2, 1), stroke-dashoffset 500ms cubic-bezier(0.4, 0, 0.2, 1);
}
.custom-menu-toggler .line.top {
    stroke-dasharray: 40 160;
}
.custom-menu-toggler .line.middle {
    stroke-dasharray: 40 142;
    transform-origin: center;
    transition: stroke-dasharray 450ms cubic-bezier(0.4, 0, 0.2, 1), stroke-dashoffset 450ms cubic-bezier(0.4, 0, 0.2, 1);
}
.custom-menu-toggler .line.bottom {
    stroke-dasharray: 40 160;
}
.custom-menu-toggler.active .line.top {
    stroke-dashoffset: -102px;
}
.custom-menu-toggler.active .line.middle {
    stroke-dasharray: 0 142;
    stroke-dashoffset: -20px;
}
.custom-menu-toggler.active .line.bottom {
    stroke-dashoffset: -102px;
}
/* === TOGGLER ICON END === */

/* === MOBILE NAV CONTAINER START === */
@media (max-width: 991.98px) {
    .custom-menu-toggler {
        display: block;
    }
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100%;
        background-color: #363636;
        z-index: 1040;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 80px 24px 24px 24px;
        display: block !important;
        box-shadow: 0 0 0 rgba(0,0,0,0);
        border-radius: 0px !important;
        overflow-y: auto;
    }
    .navbar-collapse.show {
        right: 0;
        box-shadow: -5px 0 25px rgba(0,0,0,0.3);
    }
    body.offcanvas-open {
        overflow: hidden;
    }
}
/* === MOBILE NAV CONTAINER END === */

/* === MOBILE NAV LINKS START === */
@media (max-width: 991.98px) {
    .navbar-nav {
        margin-bottom: 30px;
    }
    .navbar-nav .nav-link {
        color: rgba(255, 255, 255, 0.8) !important;
        padding: 12px 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 16px;
        border-radius: 0px !important;
        transition: background-color 0.2s ease, color 0.2s ease;
    }
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        color: #fff !important;
        background-color: rgba(255, 255, 255, 0.05);
    }
}
/* === MOBILE NAV LINKS END === */

/* === MOBILE SUBMENU START === */
@media (max-width: 991.98px) {
    .navbar-collapse .dropdown-menu {
        background-color: rgba(0, 0, 0, 0.2);
        border: none;
        border-radius: 0px !important;
        padding-right: 15px;
    }
    .navbar-collapse .dropdown-item {
        color: rgba(255, 255, 255, 0.7) !important;
        border-radius: 0px !important;
    }
}
/* === MOBILE SUBMENU END === */

/* === MOBILE AUTH BUTTONS START === */
@media (max-width: 991.98px) {
    .navbar-collapse .auth-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .navbar-collapse .auth-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 10px;
        border-radius: 0px !important;
    }
}
/* === MOBILE AUTH BUTTONS END === */
