/* Projects Page CSS */
@import url('../img/product-placeholder.jpg');

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.filter-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--steel-grey);
    padding: 10px 24px;
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.filter-btn:hover {
    border-color: var(--cyan-accent);
    color: var(--cyan-accent);
    background: rgba(245, 166, 35, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.1);
}

.filter-btn.active {
    background: var(--cyan-accent);
    border-color: var(--cyan-accent);
    color: var(--royal-blue);
    box-shadow: 0 4px 20px rgba(245, 166, 35, 0.3);
}

@media (max-width: 640px) {
    .filter-bar {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        white-space: nowrap;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .filter-bar::-webkit-scrollbar {
        height: 4px;
    }

    .filter-bar::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
    }
}

/* Project Grid */
.proj-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.proj-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.proj-img {
    position: relative;
    min-height: 280px;
    overflow: hidden;
}

[style*="span 2"] .proj-img {
    min-height: 380px;
}

/* Project image backgrounds */
.proj-img-1 {
    background: linear-gradient(135deg, #0a1f44, #1a5080, #00aacc);
}

.proj-img-2 {
    background: linear-gradient(135deg, #051630, #0a2040, #103060);
}

.proj-img-3 {
    background: linear-gradient(135deg, #061520, #0d2a4c, #0a3060);
}

.proj-img-4 {
    background: linear-gradient(135deg, #0a1a30, #0d2a50, #153060);
}

.proj-img-5 {
    background: linear-gradient(135deg, #06112a, #0a1f44, #0d2860);
}

.proj-img-6 {
    background: linear-gradient(135deg, #081230, #0c2244, #102a5c);
}

.proj-img-7 {
    background: linear-gradient(135deg, #060f20, #0a1f3a, #0e2850);
}

.proj-img-8 {
    background: linear-gradient(135deg, #08122a, #0d2040, #113058);
}

/* Add grid patterns to project cards */
.proj-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 200, 224, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 200, 224, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
}

.proj-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 20, 44, 0.92) 0%, rgba(6, 20, 44, 0.3) 50%, transparent 80%);
    display: flex;
    align-items: flex-end;
    z-index: 2;
    transition: var(--transition);
}

.proj-card:hover .proj-overlay {
    background: linear-gradient(to top, rgba(6, 20, 44, 0.96) 0%, rgba(0, 200, 224, 0.08) 100%);
}

.proj-label {
    padding: 28px;
    width: 100%;
    transform: translateY(8px);
    transition: var(--transition);
}

.proj-card:hover .proj-label {
    transform: translateY(0);
}

.proj-cat {
    display: inline-block;
    background: var(--cyan-accent);
    color: var(--royal-blue);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 10px;
}

.proj-label h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 8px;
}

.proj-label p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.55;
    margin-bottom: 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.proj-card:hover .proj-label p {
    max-height: 100px;
}

.proj-specs-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.proj-specs-row span {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 10px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Stats Strip */
.proj-stats-strip {
    padding-top: 72px;
    padding-bottom: 72px;
}

.proj-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.proj-stat {
    padding: 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.proj-stat:last-child {
    border-right: none;
}

.ps-num {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 40px;
    color: white;
    line-height: 1;
    margin-bottom: 10px;
}

.ps-lbl {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 1024px) {
    .proj-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    [style*="span 2"] {
        grid-column: span 1 !important;
    }
}

@media (max-width: 640px) {
    .proj-grid {
        grid-template-columns: 1fr;
    }

    .proj-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .proj-stat {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .proj-stat:last-child {
        border-bottom: none;
    }
}