body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: black;
    color: white;
    font-family: Arial, sans-serif;
}

.projects-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100vh;
    padding: 20px;
    margin-top: 2rem;
    z-index: 1;
}

.back-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: red;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 30px;
    font-weight: bold;
    border: none;
    border-radius: 0;
    display: inline-block;
    clip-path: polygon(20% 0%, 100% 0%, 80% 100%, 0% 100%);
    font-family: 'Bebas Neue', Impact, sans-serif;
    z-index: 10;
    border-style: solid;
    border-color: black;
}


.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    padding: 0 1rem;
    padding-bottom: 140px;
}


.project-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100px;
    overflow: hidden;
    padding-left: 20px;
    text-decoration: none;
    font-family: 'Bebas Neue', Impact, sans-serif;
}

.project-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 160px;
    height: 100%;
    background-color: red;
    clip-path: polygon(20% 0%, 100% 0%, 80% 100%, 0% 100%);
    z-index: 3;
}

.project-label {
    position: relative;
    z-index: 4;
    font-size: 40px;
    font-weight: 900;
    letter-spacing: 1px;
    padding-left: 60px;
    color: white;
    transition: opacity 0.3s ease;
}

.project-item:hover .project-label {
    opacity: 0;
}

.project-image-mask {
    position: absolute;
    top: 0;
    left: -2rem;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    clip-path: polygon(160px 0%, 100% 0%, 100% 100%, 160px 100%);
    background-color: black; 
}

.project-hover-img {
    position: absolute;
    top: 0;
    left: -100%;
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: left 0.4s ease-in-out;
}

.project-item:hover .project-hover-img {
    left: 0;
}


.project-item:hover {
    transform: scale(1.05);
}

.projects-footer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    text-align: right;
    z-index: 5;
}

.footer-car {
    width: 700px;
    max-width: 90vw;
    margin-right: -3rem;
    opacity: 0.5;
    transform: scaleX(-1);
    pointer-events: none;
    user-select: none;     
  }

.footer-text {
    font-size: 40px;
    font-weight: bold;
    font-family: 'Bebas Neue', Impact, sans-serif;
    z-index: 2;
    bottom: 0;
    right: 70px;
}

 @media screen and (max-width: 1350px) {
    
    .footer-car {
        display: none;    
    }
    
 }