.projects-grid-section {
    position: relative;
    padding: 120px 0;
}

.projects-grid-section::after {
    content: "";
    position: absolute;
    top: 10%;
    right: 0;
    width: 578px;
    height: 956px;
    background-image: url("/images/dump/ser-layer2.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top right;
    z-index: -1;
}

.projects-grid-section .row {
    margin-bottom: -40px;
}

.project-card {
    position: relative;
    overflow: hidden;
    max-width: 550px;
    min-height: 550px;
    margin-bottom: 40px;
    padding: 34px 42px 47px 42px;
    border-radius: 25px;
    transition: all 300ms ease;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.project-card:hover .project-card-content {
    transform: translateY(0);
}

.project-card-category-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 18px;
    font-family: var(--font-secondary);
    font-size: var(--fs-12);
    font-weight: 500;
    color: var(--color-white);
    background: transparent;
    border-radius: 40px;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    transition: all .3s;
    z-index: 2;
}

.project-card-outline .project-card-category-button {
    color: var(--color-black-secondary);
}

.dark-mode .project-card-outline .project-card-category-button {
    color: var(--color-white);
}

.project-card-category-button::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 40px;
    background: linear-gradient(90deg, #45d0bd, #44b6e9);

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.project-card-category-button::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 40px;
    background: linear-gradient(113deg, #45d0bd 2.7%, #44b6e9 98.55%);
    opacity: 0;
    transition: all .3s;
}

.project-card-category-button span {
    position: relative;
    z-index: 1;
}

.project-card-category-button:hover {
    color: var(--color-black-secondary);
}

.project-card-category-button:hover::after {
    opacity: 1;
}

.project-card-content-wrap {
    position: relative;
    height: 421px;
    overflow: hidden;
}

.project-card-content {
    position: absolute;
    bottom: 0;
    transform: translateY(108px);
    overflow: hidden;
    transition: all 300ms ease;
    z-index: 1;
}

.project-card-title {
    max-width: 308px;
    margin-bottom: 9px;
    color: var(--color-white);
    font-family: var(--font-secondary);
    font-size: var(--fs-25);
    line-height: 35px;
    font-weight: 400;
    letter-spacing: -0.03em;
}

.project-card-title a {
    color: inherit;
    text-decoration: none;
}

.project-card-title a:hover {
    color: inherit;
}

.project-card-content p {
    margin-bottom: 16px;
    color: var(--color-white);
    font-size: var(--fs-16);
    line-height: 30px;
    font-weight: 500;
}

.project-card-link-animated {
    position: relative;
    display: inline-block;
    font-size: var(--fs-14);
    line-height: 34px;
    font-weight: 500;
    color: var(--color-white);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-right: 23px;
    overflow: hidden;
    transition: all 300ms ease;
}

.project-card-outline .project-card-link-animated {
    color: var(--color-black-secondary);
}

/* right arrow */
.project-card-link-animated::before {
    content: "\e82d";
    font: 400 normal 10px "fontello";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* left arrow (hidden initially) */
.project-card-link-animated::after {
    content: "\e82d";
    font: 400 normal 10px "fontello";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateX(-18px) translateY(-50%);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.project-card-link-animated:hover {
    padding-left: 23px;
    padding-right: 0;
    color: var(--color-white);
}

.project-card-outline .project-card-link-animated:hover {
    color: var(--color-black-secondary);
}

/* move arrows on hover */
.project-card-link-animated:hover::before {
    transform: translateX(18px) translateY(-50%);
}

.project-card-link-animated:hover::after {
    transform: translateX(0) translateY(-50%);
}

/* card types */
.project-card-outline {
    border: 1px solid #4a4a4a;
}

.project-card-outline::before {
    display: none;
}

.project-card-outline .project-card-title {
    color: var(--color-text);
}

.dark-mode .project-card-outline .project-card-title {
    color: var(--color-white);
}

.project-card-outline .project-card-content p {
    color: var(--color-black-secondary);
}

.dark-mode .project-card-outline .project-card-content p {
    color: var(--color-white);
}

.dark-mode .project-card-outline .project-card-link-animated {
    color: var(--color-white);
}

.project-card-purple {
    border: 0;
    background-color: #aa8ee0;
}

.project-card-image::before {
    background-image: var(--project-card-bg, url("/images/dump/service/ser21-1.png"));
}

/**Responsive******************************/
@media (max-width: 1650px) {}

@media (max-width: 1350px) {}

@media (max-width: 1200px) {}

@media (max-width: 1099px) {}

@media (max-width: 992px) {
    .projects-grid-section {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .project-card {
        padding: 34px 32px 47px 32px;
    }
}

@media (max-width: 768px) {
    .projects-grid-section .pagination {
        justify-content: center;
    }

    .project-card {
        min-width: 100%;
    }

    .project-card-content {
        transform: none;
    }
}

@media (max-width: 576px) {
    .project-card-title {
        font-size: var(--fs-23);
        line-height: 35px;
    }
}

@media (max-width: 480px) {}

@media (max-width: 363px) {}

@media (max-width: 340px) {}