/*
  Recent projects page styles
*/

.recent-intro {
    max-width: 900px;
    margin: 10px auto 28px;
    text-align: center;
    color: #94a3b8;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.7;
}

.recent-projects {
    width: min(1150px, 96vw);
    margin: 0 auto;
    padding: 0 10px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.project-card {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.28);
    padding: 22px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    animation: fadeUp 0.5s ease both;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.38);
}

.project-title {
    margin: 0 0 8px;
    color: #f1f5f9;
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    line-height: 1.3;
}

.project-role {
    margin: 0 0 14px;
    color: #38bdf8;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.project-highlights {
    margin: 0;
    padding-left: 20px;
    color: #cbd5e1;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

.project-highlights li {
    list-style-type: none;
    margin-bottom: 8px;
}

.project-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.project-item-title {
    margin: 0;
    color: #e2e8f0;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.project-item-subtitle {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.4;
}

.play-button {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(56, 189, 248, 0.45);
    background: rgba(15, 23, 42, 0.9);
    color: #38bdf8;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.play-button:hover {
    transform: scale(1.08);
    background: #38bdf8;
    color: #0f172a;
}

.play-button:focus-visible {
    outline: 2px solid #7dd3fc;
    outline-offset: 2px;
}

.project-highlights li:last-child {
    margin-bottom: 0;
}

.recent-footer {
    text-align: center;
    margin-top: 50px;
    font-size: 14px;
    color: #94a3b8;
    font-family: 'Inter', sans-serif;
}

.project-alert[hidden] {
    display: none;
}

.project-alert {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
}

.project-alert__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(4px);
}

.project-alert__card {
    position: relative;
    width: min(92vw, 400px);
    border-radius: 16px;
    padding: 22px;
    border: 1px solid rgba(56, 189, 248, 0.45);
    background: linear-gradient(140deg, rgba(15, 23, 42, 0.96), rgba(12, 74, 110, 0.86));
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.45);
    animation: alertPop 0.22s ease;
}

.project-alert__title {
    margin: 0 0 8px;
    color: #f8fafc;
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
}

.project-alert__message {
    margin: 0 0 18px;
    color: #cbd5e1;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.project-alert__button {
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    background: #38bdf8;
    color: #0f172a;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.project-alert__button:hover {
    transform: translateY(-1px);
    background: #7dd3fc;
}

.project-alert__button:focus-visible {
    outline: 2px solid #f0f9ff;
    outline-offset: 2px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes alertPop {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-title {
        font-size: 21px;
    }
}

@media (max-width: 768px) {
    .recent-intro {
        font-size: 16px;
    }

    .project-card {
        padding: 18px;
    }

    .project-highlights {
        font-size: 15px;
    }

    .project-item-subtitle {
        font-size: 13px;
    }
}
