.projects-section {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

/* .projects-section::after {
    content: "";
    background-image: url("../img/logo.png");
    background-size: 400px;
    opacity: .09;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 0;
} */
.projects-section svg {
    position: absolute;
    right: 0;
    left: 0;
    height: 20px;
    width: 100%;
}

.projects-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 10px 20px;
    position: relative;
    z-index: 1;
}

.projects-section-header {
    text-align: center;
    margin-block: 40px;
}


.projects-section-title {
    display: block;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--helperColor);
    position: relative;
}

.projects-section-title::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 5px;
    border-radius: 25px;
    bottom: -10%;
    left: 0;
    background-image: linear-gradient(90deg, var(--lightHelper) 0%, var(--lightHelper) 100%);

}


/* Category buttons */
.filters {
    position: sticky;
        top: 95px;
        z-index: 22;
    text-align: center;
    margin-bottom: 25px;
    border-radius: 20px;
    border: var(--lightHelper) 2px solid;
    padding: 3px;
    box-shadow: 0 0 10px 0 rgb(0 0 0 / 50%);
    background-color: var(--white);
}

.filters button {
    background: var(--primaryColor);
    border: none;
    color: #fff;
    padding: 8px 18px;
    margin: 2px;
    border-radius: 20px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.8s;
    font-weight: 700;
}

/* .filters button:hover {
    border-radius: 20px 2px 20px 2px;
} */

.filters button.active-filter {
    /* border-radius: 20px 2px 20px 2px; */
    background: var(--lightHelper);
}

/* Hide projects smoothly */
.hidden {
    display: none;
}

.projects-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.project-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .3s ease, box-shadow .3s ease;
    padding-bottom: 30px;
    /* background-image: url("../img/Screen-Base-Colored.svg");
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: 200px auto; */
    max-width: 295px;
    margin: 0 auto ;
}

/* .screenShape {

    padding-bottom: 30px;
    background-image: linear-gradient(90deg, var(--primaryColor) 0%, var(--primaryColor) 100%);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 0 10px 0 rgb(0 0 0 / 50%);
    position: relative;
} */

/* .screenShape:before {
    content: "";
    width: 80px;
    height: 7px;
    background-color: var(--white);
    border-radius: 10px;
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%) translateY(50%);
    z-index: 1;
} */
/* .screenShape:after {
    content: "";
    width: 4px;
    height: 4px;
    background-color: var(--lightHelper);
    border-radius: 5px;
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-39px) translateY(50%);
    z-index: 1;
} */
.project-card.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.project-img {
    height: 500px;
    overflow: hidden;
    transition: all 0.3s;
    border-radius: 0 0 8px 8px;
    border-right: dotted 2px var(--lightHelper);
    border-bottom: solid 6px var(--lightHelper);
    border-top: dotted 2px var(--lightHelper);
    border-left: dotted 2px var(--lightHelper);
    padding: 1px;
    box-shadow: 0 12px 32px rgba(7, 20, 40, 0.15);
}

.project-img:hover .projectIcons {
    display: flex
}

/* .project-img::-webkit-scrollbar {
    width: 5px
}

.project-img::-webkit-scrollbar-track {
    background-color: var(--primaryColor)
}

.project-img::-webkit-scrollbar-thumb {
    background-color: var(--lightHelper);
    background-image: linear-gradient(0deg, var(--lightHelper) 0%, var(--helperColor) 100%);
    border-radius: 5px
} */

.project-img img {
    width: 100%;
    display: block;
    border-radius: 0 0 8px 8px;
    object-fit: cover;
     
}

.projectIcons {
    position: absolute;
    top: calc(50% - 30px);
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    justify-content: center;
    align-items: center;
    display: none;
}

.projectIcons .projectIconslink {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primaryColor);
    color: var(--helperColor);
    font-size: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s;
    cursor: pointer;
    margin: 0 5px;
    opacity: .95
}

.projectIcons .projectIconslink:hover{
    background-color: var(--lightHelper);
    color: var(--white);
    opacity: 1;
}
.projectIconslinkblock{
    opacity: 1;
    position: absolute;
    bottom: 20% ;
    left: 25%;
    z-index: 2;
    border-radius: 25px;
    padding: 2px 20px;
    background-color: var(--primaryColor);
    color: var(--white);
    font-size: 22px;
    box-shadow: 0 12px 32px rgba(7, 20, 40, 0.308);

}

.project-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

/* Call-to-action button */
.cta {
    justify-self: center;
    margin: 0 auto;
}

.cta button {
    background-image: linear-gradient(90deg, var(--lightHelper) 0%, var(--lightHelper) 100%);
    border: none;
    position: relative;
    z-index: 22;
    color: #fff;
    padding: 8px 30px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 20px;
}

/* .cta button:hover {
    border-radius: 2px 20px 2px 20px;
  } */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 200000000000000;
    box-sizing: border-box;
}


.modal-content {
    box-sizing: border-box;
    background: white;
    padding: 60px 30px 30px 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 90%;
    position: relative;

}


.modal-image-section {
    border-radius: 0 0 5px 5px;
    box-shadow: 0 0 10px 0 rgb(0 0 0 / 50%);
    width: 100%;
}

.modal-image-container {
    height: 700px;
    overflow-x: auto;
    overflow-y: auto;
    width: 100%;
}

.modal-image-container::-webkit-scrollbar {
    width: 5px
}

.modal-image-container::-webkit-scrollbar-track {
    background-color: var(--primaryColor)
}

.modal-image-container::-webkit-scrollbar-thumb {
    background-color: var(--lightSecondaryColor);
    background-image: linear-gradient(0deg, var(--primaryColor) 0%, var(--lightHelper) 100%);
    border-radius: 5px
}


.modal img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.modal h2 {
    margin: 10px 0;
    color: var(--primaryColor);
}

.modal p {
    color: var(--secondaryColor);

}

.modal a {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    background-image: linear-gradient(90deg, var(--secondaryColor) 0%, var(--primaryColor) 100%);
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.modal .close {
    display: block;
    position: absolute;
    top: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    font-size: large;
    font-weight: bold;
    border-radius: 50%;
    background: var(--primaryColor);
    color: var(--white);
    align-content: center;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 8px var(--shadow);
    transition: 0.3s;
}

.modal .close:hover {
    background: var(--secondaryColor);
}

@media (max-width: 576px) {

    .filters button {
        width: 45%;
        padding: 5px 10px;
        font-size: 13px;
        cursor: pointer;
        transition: all 0.8s;
    }
    /* Category buttons */
.filters {
    position: sticky;
    top: 65px;
    z-index: 22;
}
}