/*  */

.hover-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    border-radius: 30px;
}

/* @media only screen and (min-width: 1025px) and (max-width: 1200px) {
    .hover-container {
        padding: 40px 48px;
    }
} */

.hover-container .grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.hover-container .comparison-card {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 80px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
    cursor: pointer;
    width: calc(33.33% - 20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-container .comparison-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1.5px;
    border-radius: 80px;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.15) -1.48%,
            rgba(255, 255, 255, 0.15) 4.64%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: all 0.3s ease;
}

.hover-container .comparison-card:hover::before {
    background: linear-gradient(270deg,
            #0042f9,
            #00b5e2,
            #a8e665,
            #ec5afe,
            #ffb81c,
            #0042f9);
    background-size: 600% 600%;
    padding: 2px;
    animation: borderRunning 4s linear infinite;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hover-container .comparison-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.05),
            transparent);
    border-radius: 80px;
    transition: left 0.6s;
}

.hover-container.comparison-card:hover::after {
    left: 100%;
}

.hover-container .comparison-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: calc(40% - 20px);
    background-color: #251f4d;
}

.hover-container .icon-wrapper {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex-shrink: 0;
}

.hover-container .comparison-card:not(:hover) {
    width: calc(30% - 20px);
    opacity: 0.8;
}

.hover-container .icon-wrapper img {
    object-fit: contain;
}

.hover-container .vs-divider {
    display: flex;
    align-items: center;
    gap: 0;
    opacity: 0.6;
    transition: opacity 0.3s;
    flex: 1;
}

.hover-container .comparison-card:hover .vs-divider {
    opacity: 1;
}

.hover-container .vs-line {
    flex: 1;
    height: 2px;
    background-image: linear-gradient(to right,
            rgba(255, 255, 255, 0.4) 50%,
            transparent 50%);
    background-size: 12px 2px;
    background-repeat: repeat-x;
    position: relative;
}

.hover-container .vs-line::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background-image: linear-gradient(to right,
            rgba(255, 255, 255, 0.8) 50%,
            transparent 50%);
    background-size: 12px 2px;
    background-repeat: repeat-x;
    transition: width 0.4s;
}

.hover-container .comparison-card:hover .vs-line::after {
    width: 100%;
}

.hover-container .vs-text {
    color: white;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(25px);
    background: rgba(255, 255, 255, 0.1);
    height: 30px;
    width: 30px;
    border-radius: 99em;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 1px;
}

.hover-container .comparison-card:hover .vs-text {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
}

.hover-container .compare-button {
    background: linear-gradient(180deg, #6094fb 0%, #1048ba 100%);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0px 4px 4px 0px #00000040, inset 0px 4px 4px 0px #ffffff40;
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    pointer-events: none;
    white-space: nowrap;
}

.hover-container .comparison-card:hover .compare-button {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

.hover-container.compare-button:hover {
    background: linear-gradient(135deg, #5b7fe8, #6a8ff0);
    box-shadow: 0 6px 25px rgba(65, 105, 225, 0.5);
    transform: translateX(-50%) translateY(-2px);
}

.hover-container .compare-button:active {
    transform: translateX(-50%) translateY(1px);
}

/* Tablet styles */
@media (max-width: 1024px) {
    .hover-container .comparison-card {
        width: calc(50% - 20px);
    }

    .hover-container .comparison-card:hover {
        width: calc(50% - 20px);
    }

    .hover-container .comparison-card:not(:hover) {
        width: calc(50% - 20px);
        opacity: 1;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    /* body {
          padding: 20px 15px;
        } */

    .hover-container {
        border-radius: 20px;
    }

    .hover-container .grid {
        gap: 15px;
    }

    .hover-container .comparison-card {
        width: 100%;
        padding: 20px 25px;
        border-radius: 60px;
    }

    .hover-container .comparison-card:hover {
        width: 100%;
    }

    .hover-container .comparison-card:not(:hover) {
        width: 100%;
        opacity: 1;
    }

    .hover-container .icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .hover-container .icon-wrapper img {
        width: 38px;
        height: 38px;
    }

    .hover-container .vs-text {
        height: 26px;
        width: 26px;
        font-size: 11px;
    }

    .hover-container .compare-button {
        font-size: 14px;
        padding: 10px 14px;
    }
}

/* Small mobile styles */
@media (max-width: 480px) {

    .hover-container .comparison-card {
        padding: 15px 20px;
        border-radius: 50px;
    }

    .hover-container .icon-wrapper {
        width: 53px;
        height: 53px;
    }

    .hover-container .icon-wrapper img {
        width: 32px;
        height: 32px;
    }

    .hover-container .vs-text {
        height: 24px;
        width: 24px;
        font-size: 10px;
    }

    .hover-container.compare-button {
        font-size: 13px;
        padding: 8px 12px;
    }
}