/* Tabs */
.ha-tab-pane {
    display: none;
}

.ha-tab-pane.active {
    display: block;
}

/* Layout */
.ha-grid-section {
    margin: 0 auto;
    text-align: center;
    font-family: sans-serif;
}

/* Category Navigation */
.ha-cat-nav {
    display: flex;
    justify-content: center;
    gap: 19px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.ha-cat-item {
    font-family: "DM Sans", sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #fff;
    border: 2px solid #d7eeff;
    border-radius: 100px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.ha-cat-item:hover,
.ha-cat-item.active {
    background: #0960ec;
    color: #fff;
    border-color: #0061ff;
}

.ha-cat-item:hover svg path,
.ha-cat-item.active svg path {
    stroke: #fff;
}

.cat-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* Grid */
.ha-main-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 34px;
}

.ha-grid-card {
    background: #fff;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    aspect-ratio: 1 / 1;
    display: block;
}

.ha-grid-card:before {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    opacity: 0;
    content: "";
    border-radius: 12px;
    position: absolute;
    background-color: #0853ff;
    transition: opacity 250ms, transform 250ms;
}

.ha-grid-card:hover:before {
    opacity: 1;
    transform: scale(1.05);
}

.ha-grid-card:hover:after {
    opacity: 1;
    transform: translateY(22px);
}

.ha-grid-card:after {
    top: 50%;
    left: 0;
    right: 0;
    opacity: 0;
    z-index: 4;
    color: #ffffff;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    position: absolute;
    font-family: "DM Sans", sans-serif;
    content: "View Demo";
    transform: translateY(35px);
}

.card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
    position: relative;
    box-sizing: border-box;
}

.card-inner:before {
    top: 50%;
    left: 50%;
    z-index: 5;
    opacity: 0;
    content: "";
    width: 60px;
    height: 60px;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    background-size: 100% 100%;
    transform: translate(-50%, -100%);
    background-image: url("https://hugeaddons.com/wp-content/uploads/2026/03/circle-arrow-right-01.svg");
    pointer-events: none;
}

.ha-grid-card:hover .card-inner:before {
    opacity: 1;
    transform: translate(-50%, -70%);
}

.card-inner h3 {
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 28px;
    color: #0a0d11;
    margin: 35px 0 0 0;
}

.card-icon-placeholder {
    position: relative;
}

/* Badges */
.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
}

.badge-new {
    background: #ff5e00;
}

.badge-pro {
    background: #0061ff;
}

/* Button */
.view-demo-btn {
    font-family: "DM Sans", sans-serif;
    color: #fff !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Arrow Icon */
.arrow-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("https://hugeaddons.com/wp-content/uploads/2026/01/circle-arrow-right-01.png") no-repeat center;
    background-size: contain;
}

/* Footer */
.ha-grid-footer {
    margin-top: 50px;
}

.view-all-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0960ec;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    color: #f4fbff !important;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.view-all-main:hover {
    color: #fff !important;
    background: #0295fd;
    box-shadow: 0 10px 20px rgba(0, 97, 255, 0.2);
}

.view-all-main span {
    line-height: 0;
}

@media all and (max-width: 1024px) {
    .ha-main-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media all and (max-width: 768px) {
    .ha-main-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media all and (max-width: 430px) {
    .ha-main-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}