
.projects_section {
    position: relative;
    display: flex;
    width: 100%;
    height: auto;
}

.projects_wrapper {
    position: relative;
    display: flex;
    gap: 40px; /* Mantém o espaçamento entre os elementos */
    overflow: auto;
    width: 100%;
    transition: all 0.6s ease-in-out; /* Suaviza transições de layout */
    padding-bottom: 15px;
    padding-top: 5px;
    padding-left: 5px;
}

.projects_wrapper.grid-layout {
    display: grid; /* Define layout em grid */
    width: 100%;
    margin: 0 auto;
    gap: 24px; /* Espaçamento entre os elementos */
    justify-content: center;
    justify-items: stretch;
    overflow: visible; /* Padrão expandido: sem corte */
    transition: all 0.6s ease-in-out;
    grid-template-columns: repeat(1, minmax(330px, 1fr));
    max-width: 450px;
}

/* Estado recolhido: mostra apenas ~2 linhas */
.projects_section.collapsed .projects_wrapper.grid-layout {
    overflow: hidden;
    max-height: var(--projects-collapsed-max-height, 820px);
}

/* Controles de colapso/overlay */
.projects_collapse_controls {
    position: absolute;
    inset: auto 0 0 0;
    display: grid;
    place-items: center;
    pointer-events: none; /* apenas o botão recebe eventos */
    z-index: 3;
}

.projects_fade {
    position: absolute;
    inset: auto 0 0 0;
    height: 160px;
    background: linear-gradient(to bottom, rgba(8,8,8,0) 0%, rgba(8,8,8,0.75) 55%, #080808 100%);
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.projects_section.expanded .projects_fade {
    opacity: 0;
}

.projects_section.expanded .projects_wrapper.grid-layout {
    padding-bottom: 100px;
}

.see_all_bottom {
    pointer-events: auto;
    z-index: 2;
    margin-bottom: 18px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid #535353;
    background-color: var(--btns-bg);
    color: var(--text-color);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.see_all_bottom:hover {
    cursor: pointer;
    box-shadow: 0px 0px 4px 1.5px var(--hover-color);
}

@media (max-width: 700px) {
    .projects_fade { height: 120px; }
}

@media (min-width: 900px) {
    .projects_wrapper.grid-layout {
        grid-template-columns: repeat(2, minmax(330px, 1fr));
        max-width: calc((2 * 450px) + (1 * 24px));
    }
}

@media (min-width: 1200px) {
    .projects_wrapper.grid-layout {
        grid-template-columns: repeat(3, minmax(330px, 1fr));
        max-width: calc((3 * 450px) + (2 * 24px));
    }
}

@media (min-width: 1600px) {
    .projects_wrapper.grid-layout {
        grid-template-columns: repeat(4, minmax(330px, 1fr));
        max-width: calc((4 * 450px) + (3 * 24px));
    }
}

.project_card {
    flex: none; /* Não permite que os cartões redimensionem automaticamente */
    width: clamp(330px, 100%, 450px);
    margin: 0 auto;
    box-sizing: border-box; /* Inclui padding e bordas no cálculo da largura */
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    background-color: var(--card-bg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project_card:hover, .card_op:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.img_part {
    width: 100%;
    border-radius: 15px 15px 0px 0px;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.img_part::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(0px); /* Ajuste o nível do desfoque */
    z-index: 1;
    border-radius: 15px 15px 0px 0px;
}

.img_part > * {
    position: relative;
    z-index: 2;
}

.mask {
    width: 100%;
    height: 20%;
    background: linear-gradient(to top, var(--card-bg) 0%, var(--card-bg) 30%, transparent 100%);
}

.ticket {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 3px 8px;
    border-radius: 100px;
    background-color: transparent;
    border: solid 1px;
    border-color: #535353;
    width: fit-content;
    z-index: 4;
}

.ticket span {
    font-size: 12px;
}

.ticket .small {
    width: 15px;
    height: 15px;
}

.description_part {
    padding: 25px;
    padding-top: 0px;
    width: auto;
}

.description_part .tickets_div {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 3px;
    align-items: center;
    justify-content: flex-start;
    margin-top: -10px;
    overflow-x: auto; 
    padding-bottom: 5px;  

        /* Scroll snapping */
        scroll-snap-type: x mandatory;
        scroll-padding-left: 0px; /* Garante que o primeiro elemento encoste no início */
}

.description_part .tickets_div > div {
    /* Alinhamento das divs internas */
    scroll-snap-align: start;
    flex-shrink: 0;
    margin: 0; /* Remove margens internas */
}

.tickets_div::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.tickets_div::-webkit-scrollbar-track {
    background: transparent;
}

.tickets_div::-webkit-scrollbar-thumb {
    background-color: rgb(48, 53, 61);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 10px;
}

.tickets_div::-webkit-scrollbar-button {
    display: none;
}

.project_card .description_part h3 {
    margin-top: 20px;
    margin-bottom: 15px;
}

.project_card .description_part .desc_text {
    font-size: 14px;
    color: var(--text-color);
}

.see_project {
    padding: 10px 0px;
    margin-top: 20px;
    width: 100%;
    border: solid 1px;
    border-color: #535353;
    background-color: var(--card-bg);
}

.projects_wrapper::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.projects_wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.projects_wrapper::-webkit-scrollbar-thumb {
    background-color: var(--inative);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 10px;
}

.projects_wrapper::-webkit-scrollbar-button {
    display: none;
}

.gesa_img::before{
    background-image: url(../../img/prints/gesa.png);
}
.piscicontrol_img::before{
    background-image: url(../../img/prints/PisciControl.png);
}
.piscicontrol_plat_img::before{
    background-image: url(../../img/prints/PisciControl_Plat.png);
}
.reporte_img::before{
    background-image: url(../../img/prints/reporte_diario.png);
}
.unipac_img::before{
    background-image: url(../../img/prints/Unipac.png);
}
.ecommerce_img::before{
    background-image: url(../../img/prints/Ecommerce.png);
}
.feedbacks_img::before{
    background-image: url(../../img/prints/Feedbacks.png);
}
.staff_landing_page_img::before{
    background-image: url(../../img/prints/Staff_landing_page.png);
}

.staff_consultoria_img::before{
    background-image: url(../../img/prints/Staff_consultoria.png);
}

.melem_img::before{
    background-image: url(../../img/prints/Melem_loja.png);
}



.in-dev{
    background-color: var(--inative);
    color: #afafaf;
}

.in-dev .see_project{
    background-color: var(--inative);
}

.in-dev .mask{ 
    background: linear-gradient(to top, var(--inative) 0%, var(--inative) 30%, transparent 100%);
}

.in-dev .img_part::before{
    filter: blur(2px);
}

.in-dev .icon_skill{
    filter: grayscale(100%);  
}

.img_part > * {
    position: relative;
    z-index: 2;
}

.mask {
    width: 100%;
    height: 20%;
    background: linear-gradient(to top, var(--card-bg) 0%, var(--card-bg) 30%, transparent 100%);
}

.ticket {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 3px 8px;
    border-radius: 100px;
    background-color: transparent;
    border: solid 1px;
    border-color: #535353;
    width: fit-content;
    z-index: 4;
}

.ticket span{
    font-size: 12px;
}

.ticket .small{
    width: 15px;
    height: 15px;
}

.description_part {
    padding: 25px;
    padding-top: 0px;
    width: auto;
}

.description_part .tickets_div{
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 3px;
    align-items: center;
    justify-content: center;
    margin-top: -10px;
}

.project_card .description_part h3{
    margin-top: 20px;
    margin-bottom: 15px;
}

.project_card .description_part .desc_text {
    font-size: 14px;
    color: var(--text-color);
}

.see_project{
    padding: 10px 0px;
    margin-top: 20px;
    width: 100%;
    border: solid 1px;
    border-color: #535353;
    background-color: var(--card-bg);
}

.wrapper_tkt{
    display: flex;
    justify-content: flex-start;
    width: 100%;
    height: 35px;
}
.status_tiket{
    display: flex;
    background-color: rgb(255, 255, 76);
    color: #3d4041;
    padding: 8px 15px;
    margin-left: 8px;
    margin-top: 8px;
    font-size: 14px;
    align-items: center;
    text-align: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 7px; 
    z-index: 3;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

@media (max-width: 700px) {
    .projects_wrapper{
        gap: 20px;
    }
    .description_part {
        padding: 18px;
    }
    .project_card .description_part h3{
        margin-top: 10px;
        margin-bottom: 10px;
    }
    .mask{
        height: 15%;
    }
    .description_part .tickets_div {
        margin-top: -18px;
    }
}

#my_projects .wrapper_pass_btns{
    display: none;
}

@media (max-width: 500px) {
    .project_card .description_part h3 {
        font-size: 1.05rem;
    }
}
