.main-card {
    height: 42vh;
    width: 12vw;
    position: relative;
    z-index: 99;
    background: rgba(255, 255, 255, 0.05); /* glass effect */
    border-radius: 10px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transition: transform 1s ease, box-shadow 1s ease;
}


/* Card hover lift */


/* Glowing border */
.glass-card.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    border-radius: 20px;
    padding: 3px;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ffd700, #ff00ff);
    background-size: 400% 400%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    animation: glowBorder 4s linear infinite;
    z-index: 2;
    pointer-events: none;
}

/* Glow animation */
@keyframes glowBorder {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.main-card img {
    width: 7vw;
}

.main-card h5 {
    font-size: 1.3vw;
}

.main-card .title-description {
    font-size: 0.9vw;
}


.glass-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 15px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* transition:
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s ease; */
    will-change: transform;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: 1s !important;
}

@keyframes moveGlow {
    to {
        transform: rotate(360deg);
    }
}

.menu-title {
    margin: 0;
    font-size: 14px;
    text-align: center;
    transition: transform 0.4s ease;
}

.glass-hr {
    width: 80%;
    height: 2px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    margin: 8px 0;
    transition: transform 0.4s ease;
}

.title-description {
    text-align: center;
    transition: opacity 0.4s ease;
}
.sub-main-card {
    height: 35vh;
    width: 10.5vw;
    position: relative;
    top: calc(6.5vh - 30px);
}

.sub-main-card img {
    width: 6vw;
}

.sub-main-card h5 {
    font-size: 1.1vw;
}

.sub-main-card .title-description {
    font-size: 0.8vw;
}


/* ================== */
.second-card {
    height: 26vh;
    width: 8.5vw;
    position: relative;
    top: calc(9vh - 8px);
}

.second-card img {
    width: 5vw;
}

.second-card h5 {
    font-size: 1.1vw;
}

.second-card .title-description {
    font-size: 0.75vw;
}


/* ==================== */
.sub-second-card {
    height: 18vh;
    width: 7vw;
    position: relative;
    top: calc(13vh - 8px);
    z-index: 99999;
}

.sub-second-card img {
    width: 3.5vw;
}

.sub-second-card h5 {
    font-size: 1vw;
}

.sub-second-card .title-description {
    font-size: 0.75vw;
}

.glass-card{
     transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
                box-shadow 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
}
.glass-card:hover{
    transform: scale(1.125, 1.25) !important;
}
/* ================================ */
.border-bottom-menu {
    width: 76%;
    height: 50px;
    margin: -10px auto 0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.border-bottom-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-right: 2px solid transparent;
    border-left: 2px solid transparent;
    border-radius: 4px;
    transform: rotate(180deg);

    background: linear-gradient(90deg, #ff00ff, #fff, #fff, #fff,#058b8b, #fff, #fff, #fff);
    background-size: 400% 100%;

    /* Mask out the top border only */
    -webkit-mask:
        linear-gradient(to bottom, transparent 2px, #fff 2px) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;

    animation: borderMove 4s linear infinite;
}

@keyframes borderMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

