/* ═══════════════════════════════════════════
   SERENDIBWARE — Projects Page CSS
   ═══════════════════════════════════════════ */

/* ─── PAGE BASE ─── */
body.projects-page {
    background: var(--bg, #060612);
}

/* ─── PROJECTS HERO ─── */
.projects-hero {
    position: relative;
    padding: 160px 0 80px;
    overflow: hidden;
}

.projects-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.2) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 30%, rgba(0, 212, 255, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.projects-hero-content {
    position: relative;
    z-index: 1;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted, #8892b0);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 20px;
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.2s;
}

.back-link:hover {
    color: var(--cyan, #00d4ff);
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.06);
}

.projects-hero h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    margin: 16px 0 16px;
    line-height: 1.1;
}

.projects-hero p {
    font-size: 1.15rem;
    color: var(--text-muted, #8892b0);
    max-width: 500px;
}

/* ─── FILTER BAR ─── */
.filter-bar {
    position: sticky;
    top: 70px;
    z-index: 40;
    background: rgba(6, 6, 18, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px 0;
}

.filter-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 7px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text-muted, #8892b0);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.filter-btn:hover {
    border-color: rgba(0, 212, 255, 0.3);
    color: var(--text, #e8eaf6);
}

.filter-btn.active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(124, 58, 237, 0.15));
    border-color: rgba(0, 212, 255, 0.4);
    color: var(--cyan, #00d4ff);
}

.filter-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ─── PROJECTS FULL SECTION ─── */
.projects-full-section {
    padding: 60px 0 80px;
    min-height: 400px;
}

.projects-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

/* ─── PROJECT CARD (full page version) ─── */
.pf-card {
    background: rgba(13, 13, 31, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    animation: cardIn 0.5s ease both;
    display: flex;
    flex-direction: column;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.pf-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 212, 255, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 212, 255, 0.08);
}

.pf-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.pf-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.pf-card:hover .pf-img {
    transform: scale(1.04);
}

.pf-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    transition: transform 0.4s ease;
}

.pf-card:hover .pf-img-placeholder {
    transform: scale(1.08);
}

.pf-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 6, 18, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.pf-card:hover .pf-overlay {
    opacity: 1;
}

.pf-link-btn {
    padding: 11px 24px;
    background: linear-gradient(135deg, var(--cyan, #00d4ff), var(--violet, #7c3aed));
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transform: translateY(12px);
    transition: transform 0.3s;
}

.pf-card:hover .pf-link-btn {
    transform: translateY(0);
}

.pf-body {
    padding: 22px 24px 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pf-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pf-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(0, 212, 255, 0.08);
    color: var(--cyan, #00d4ff);
    border: 1px solid rgba(0, 212, 255, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pf-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.pf-desc {
    font-size: 0.87rem;
    color: var(--text-muted, #8892b0);
    line-height: 1.65;
    flex: 1;
}

.pf-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.pf-view-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--cyan, #00d4ff);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s;
}

.pf-view-link:hover {
    gap: 10px;
}

/* ─── LOADING STATE ─── */
.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted, #8892b0);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 212, 255, 0.15);
    border-top-color: var(--cyan, #00d4ff);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ─── NO RESULTS ─── */
.no-results {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted, #8892b0);
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.no-results p {
    margin-bottom: 20px;
}

/* ─── PROJECTS CTA ─── */
.projects-cta {
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cta-inner {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.cta-inner h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-inner p {
    color: var(--text-muted, #8892b0);
    font-size: 1rem;
    margin-bottom: 28px;
}

/* ─── NAV ACTIVE STATE ─── */
.nav-link.active {
    color: var(--cyan, #00d4ff) !important;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .projects-hero {
        padding: 130px 0 60px;
    }

    .projects-full-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        top: 65px;
    }
}