
:root {
    --bgColorMenu: #A23333 ;
    --duration: 0.7s;       /* perfect smooth value */
    --easing: cubic-bezier(0.4, 0, 0.2, 1); /* same as original smooth easing */
}

html {
    box-sizing: border-box;
}

html *, html *::before, html *::after {
    box-sizing: inherit;
}

body {
    font-family: al;
    margin: 0;
    min-height: 100vh;
    padding-bottom: 90px;
}

/* ⭐ FIXED BOTTOM NAVBAR ⭐ */
.menu {
    margin: 0;
    display: flex;
    width: 40%;
    
    font-size: 1.4em;
    padding: 0 2em;
    position: fixed;
    bottom: 0;
    left: 30%;
    background-color: var(--bgColorMenu);
    height: 80px;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    margin-bottom: 10px;
    border-radius: 15px;
    height: 55px;
}


/* NAV ITEMS */
.menu__item {
    all: unset;
    flex-grow: 1;
    z-index: 100;
    display: flex;
    cursor: pointer;
    position: relative;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    padding: 0.55em 0 0.85em;
    height: 10px !important;

    /* 🔥 PERFECT SMOOTH TRANSITION */
    transition: transform var(--duration) var(--easing);
}

.menu__item::before {
    content: "";
    z-index: -1;
    width: 2.5em;
    height: 2.5em;
    border-radius: 50%;
    position: absolute;
    transform: scale(0);
    transition: background-color var(--duration), transform var(--duration) var(--easing);
}

.menu__item.active {
    transform: translateY(-0.8em);
}

.menu__item.active::before {
    transform: scale(1);
    background-color: var(--bgColorItem);
}

/* ICON */
.icon {
    width: 1.4em;
    height: 1.4em;
    stroke: white;
    fill: transparent;
    stroke-width: 1pt;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 400;
}

.menu__item.active .icon {
    animation: strok 1.5s reverse;
    margin-left: 10px;
}

@keyframes strok {
    100% { stroke-dashoffset: 400; }
}

/* LABELS */
.icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.label {
    font-size: 0.55em;
    color: white;
    margin-top: 3px;
    font-weight: 500;
}

/* ⭐ MOVING BORDER ⭐ */
.menu__border {
    left: 0;
    bottom: calc(100% - 3px);
    width: 10.9em;
    height: 2.4em;
    position: absolute;
    clip-path: url(#menu);
    background-color: var(--bgColorMenu);

    /* 🔥 FINAL SMOOTH BORDER SLIDE */
    transition: transform var(--duration) var(--easing);
}
@media screen and (max-width: 900px) {
    .menu__border {
       bottom: calc(85% - 3px);
    }
    
}
.svg-container {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    height: 0;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .menu {
        font-size: 1.1em;
        padding: 0 1.4em;
        height: 70px;
        width: 100%;
        left: 0;
    }

    .icon {
        width: 2em;
        height: 2em;
    }

    .label {
        display: none;
    }
}
.menu__border {
    transition: transform var(--timeOut, var(--duration));
}

.menu__item {
    transition: transform var(--timeOut, var(--duration));
}

/* Hide logo and icons on mobile */
@media (max-width: 768px) {
    .top-header .logo,
    .top-header .header-icons {
        display: none !important;
    }

    /* Center the title when logo/icons are hidden */
    .top-header {
        justify-content: center !important;
    }

    .header-title {
        text-align: center;
        width: 100%;
    }
}
