.main-title {
    margin-bottom: 1rem;
}

.projects-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    padding: 2rem;
}

.project-card {
    width: 350px;
    overflow: hidden;
    border: 3px solid #c28939;
    border-radius: 20px;
    text-decoration: none;

    display: grid;
    grid-template-rows: auto auto 1fr auto 1fr;
    box-sizing: border-box;

    transition: all 0.25s ease-in-out;
}

.project-card:hover {
    box-shadow: 0 0 15px #c28939b3;
}

.screenshots-slideshow {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-bottom: 3px solid #c28939;
}

.screenshots {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 1s ease-in-out;
}

.screenshots img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

.project-info {
    padding: 1rem 1.5rem;
    text-align: center;

    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 1.5rem;
    overflow-wrap: anywhere;
    margin: 0;
    color: #c28939;
}

hr {
    border: none;
    border-top: 2px solid #c28939;
    margin: 1rem 0 1rem;
}

.project-description {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.6;
    height: calc(1.6em * 5);
    font-size: 1rem;
    color: #c28939;
}

.description-line {
    margin: 0;
}

.used-languages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
}

.lang {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.lang-icon {
    width: 40px;
    height: 40px;
}

.lang-name {
    font-size: 1.25rem;
    color: #c28939;
}

/* ======= SPECIAL STYLES BEGIN ======= */
.shake span {
    display: inline-block;
    will-change: transform;
    animation: letter-shake 700ms cubic-bezier(.36, .07, .19, .97) infinite;
    --step: 0.06s;
}

.shake span:nth-child(1) {
    animation-delay: calc(var(--step) * 0);
}

.shake span:nth-child(2) {
    animation-delay: calc(var(--step) * 1);
}

.shake span:nth-child(3) {
    animation-delay: calc(var(--step) * 2);
}

.shake span:nth-child(4) {
    animation-delay: calc(var(--step) * 3);
}

.shake span:nth-child(5) {
    animation-delay: calc(var(--step) * 4);
}

.shake span:nth-child(6) {
    animation-delay: calc(var(--step) * 5);
}

.shake span:nth-child(7) {
    animation-delay: calc(var(--step) * 6);
}

.shake span:nth-child(8) {
    animation-delay: calc(var(--step) * 7);
}

.shake span:nth-child(9) {
    animation-delay: calc(var(--step) * 8);
}

@keyframes letter-shake {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    10% {
        transform: translateY(-2px) rotate(-2deg);
    }

    25% {
        transform: translateY(2px) rotate(2deg);
    }

    40% {
        transform: translateY(-1px) rotate(-4deg);
    }

    55% {
        transform: translateY(1px) rotate(2deg);
    }

    70% {
        transform: translateY(-2px) rotate(0deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}
/* ======= SPECIAL STYLES END ======= */
