/* ===================================================
   Projects Index — Full Redesign
   Extracted from Project/Index.cshtml
=================================================== */

.prj-section {
    padding: 80px 0 100px;
    background: #f6f9fc;
    position: relative;
}

.prj-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(38,51,112,0.04) 0%, transparent 50%),
        radial-gradient(circle at 85% 80%, rgba(12,127,174,0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* ─── Section Header ─── */
.prj-header {
    text-align: center;
    margin-bottom: 56px;
}

.prj-header__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(38,51,112,0.09), rgba(12,127,174,0.09));
    border: 1px solid rgba(38,51,112,0.18);
    color: #263370;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 7px 20px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.prj-header__title {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    line-height: 1.25;
}

.prj-header__title span { color: #0c7fae; }

.prj-header__deco {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.prj-header__deco .ln {
    height: 2px;
    width: 64px;
    border-radius: 2px;
}

.prj-header__deco .ln-r { background: linear-gradient(90deg, transparent, #5DD0F0); }
.prj-header__deco .ln-l { background: linear-gradient(90deg, #5DD0F0, transparent); }

[dir="ltr"] .prj-header__deco .ln-r { background: linear-gradient(90deg, #5DD0F0, transparent); }
[dir="ltr"] .prj-header__deco .ln-l { background: linear-gradient(90deg, transparent, #5DD0F0); }

.prj-header__deco .dm {
    width: 10px;
    height: 10px;
    background: #0c7fae;
    transform: rotate(45deg);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ─── Project Card ─── */
.prj-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06), 0 0 0 1px rgba(226,232,240,0.7);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.38s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.38s ease;
    position: relative;
}

.prj-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 52px rgba(12,127,174,0.14),
                0 0 0 1px rgba(12,127,174,0.12);
}

/* Image */
.prj-card__img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #e2e8f0;
    flex-shrink: 0;
}

.prj-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s ease;
}

.prj-card:hover .prj-card__img img {
    transform: scale(1.09);
}

/* Category badge — pinned top-start */
.prj-card__cat {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #263370, #0c7fae);
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 5px 14px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
    max-width: calc(100% - 28px);
    overflow: hidden;
    text-overflow: ellipsis;
}

[dir="ltr"] .prj-card__cat { right: auto; left: 14px; }

.prj-card__cat:hover {
    background: linear-gradient(135deg, #0c7fae, #263370);
    transform: scale(1.04);
    color: #fff !important;
}

/* Hover overlay */
.prj-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(38,51,112,0.02) 0%,
        rgba(38,51,112,0.75) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 22px;
    opacity: 0;
    transition: opacity 0.38s ease;
    z-index: 2;
}

.prj-card:hover .prj-card__overlay { opacity: 1; }

.prj-card__overlay-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #263370;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 22px;
    border-radius: 50px;
    text-decoration: none !important;
    transform: translateY(14px);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), color 0.25s ease;
    white-space: nowrap;
}

.prj-card:hover .prj-card__overlay-cta {
    transform: translateY(0);
    color: #263370;
}

.prj-card__overlay-cta:hover {
    color: #0c7fae !important;
}

/* Card Body */
.prj-card__body {
    padding: 22px 24px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 14px;
}

.prj-card__title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s ease;
}

.prj-card:hover .prj-card__title { color: #0c7fae; }

.prj-card__title a {
    color: inherit;
    text-decoration: none;
}

.prj-card__sep {
    height: 1px;
    background: linear-gradient(90deg, rgba(226,232,240,0.9), transparent);
    margin: 0;
}

[dir="ltr"] .prj-card__sep {
    background: linear-gradient(90deg, transparent, rgba(226,232,240,0.9));
}

.prj-card__footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: auto;
}

.prj-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0c7fae;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.25s ease, color 0.25s ease;
}

.prj-card__link:hover {
    gap: 10px;
    color: #263370;
}

.prj-card__link i {
    font-size: 13px;
    transition: transform 0.25s ease;
}

[dir="rtl"] .prj-card__link:hover i { transform: translateX(-3px); }
[dir="ltr"] .prj-card__link:hover i { transform: translateX(3px); }

/* Bottom accent stripe — slides in on hover */
.prj-card__accent {
    height: 3px;
    background: linear-gradient(90deg, #263370, #0c7fae, #5DD0F0);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.38s ease;
}

[dir="ltr"] .prj-card__accent { transform-origin: left; }

.prj-card:hover .prj-card__accent { transform: scaleX(1); }

/* ─── Sidebar sticky wrapper ─── */
.prj-sidebar { position: sticky; top: 100px; }

/* ─── Empty state ─── */
.prj-empty {
    text-align: center;
    padding: 80px 20px;
    color: #94a3b8;
}

.prj-empty i {
    font-size: 52px;
    display: block;
    margin-bottom: 18px;
    color: #cbd5e1;
}

.prj-empty p {
    font-size: 16px;
    color: #94a3b8;
    margin: 0;
}

/* ─── Responsive ─── */
@media (max-width: 767px) {
    .prj-section { padding: 56px 0 72px; }
    .prj-header { margin-bottom: 40px; }
    .prj-card__body { padding: 18px 18px 16px; }
    .prj-card__title { font-size: 15px; }
}
