/* ═══════════════════════════════════════════════════════════
   PORTFOLIO PROJECTS — Bento Grid Layout
   assets/css/portfolio-projects.css
   Primary: #00ABA2 | Dark: #1C2524
═══════════════════════════════════════════════════════════ */

/* ── Hero Section ── */
#portfolio-hero-section {
    background: var(--bg);
    padding: 140px 0 60px;
    position: relative;
    overflow: hidden;
}

/* ── Filter Row ── */
#portfolio-section {
    padding: 60px 0 100px;
}

.bento-filter-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 99px;
    width: fit-content;
    margin: 0 auto 48px;
    flex-wrap: wrap;
    justify-content: center;
}

.bento-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 18px;
    height: 40px;
    border-radius: 99px;
    border: none;
    background: transparent;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.bento-pill:hover {
    color: var(--accent);
    background: var(--accent-light);
}
.bento-pill.active {
    background: var(--accent);
    color: #fff;
}

/* ── Bento Grid ── */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 380px;
    gap: 20px;
}

/* bento sizing */
.bento-item { grid-column: span 1; }

/* ── Card Shell ── */
.bento-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    height: 100%;
    text-decoration: none;
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--border);
}
.bento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border-color: var(--accent);
}

/* ── Card Image ── */
.bento-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.bento-card:hover .bento-img {
    transform: scale(1.06);
}

/* ── Overlay ── */
.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 16, 15, 0.95) 0%,
        rgba(10, 16, 15, 0.55) 50%,
        rgba(10, 16, 15, 0.05) 100%
    );
    transition: background 0.4s ease;
}
.bento-card:hover .bento-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 130, 123, 0.92) 0%,
        rgba(0, 90, 85, 0.55) 55%,
        rgba(10, 16, 15, 0.1) 100%
    );
}

/* ── Content ── */
.bento-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    z-index: 5;
}

/* ── Badges ── */
.bento-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 99px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(0,171,162,0.15);
    border: 1px solid rgba(0,171,162,0.4);
    color: #00ABA2;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* ── Icon ── */
.bento-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}
.bento-card:hover .bento-icon {
    background: #00ABA2;
    border-color: #00ABA2;
    transform: rotate(-45deg);
}

/* ── Card header ── */
.bento-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

/* ── Card footer ── */
.bento-footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ── Title ── */
.bento-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin: 0;
}

/* ── Description ── */
.bento-desc {
    font-size: 0.84rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
    margin: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-card:hover .bento-desc {
    opacity: 1;
    max-height: 80px;
    margin-top: 8px;
}
/* first card always shows desc */
.bento-item:first-child .bento-desc {
    opacity: 1;
    max-height: 80px;
    margin-top: 8px;
}
.bento-item:first-child .bento-title {
    font-size: 1.55rem;
}

/* ── Tech tags ── */
.bento-tech-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-card:hover .bento-tech-row {
    opacity: 1;
    max-height: 60px;
}
.bento-tech-tag {
    display: inline-block;
    padding: 3px 9px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    font-size: 0.62rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
}

/* ── Meta row ── */
.bento-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.12);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}
.bento-card:hover .bento-meta-row {
    opacity: 1;
    max-height: 50px;
}
.bento-meta {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.bento-meta i {
    font-size: 0.62rem;
    color: rgba(0,171,162,0.9);
}
.bento-meta:last-child {
    color: #fff;
    font-weight: 800;
    font-size: 0.74rem;
    background: rgba(0,0,0,0.28);
    padding: 4px 12px;
    border-radius: 99px;
    border: 1px solid rgba(255,255,255,0.18);
}

/* ══ RESPONSIVE ═══════════════════════════════════════════ */
@media (max-width: 1200px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 360px;
    }
}
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 320px;
        gap: 14px;
    }
    .bento-item:nth-child(n) {
        grid-column: span 1 !important;
    }
    .bento-filter-row {
        width: 100% !important;
        border-radius: 16px !important;
        padding: 8px !important;
    }
    .bento-pill {
        font-size: 0.75rem !important;
        padding: 0 12px !important;
        height: 36px !important;
    }
    .bento-tech-row { display: none; }
    .bento-meta-row { flex-direction: column; align-items: flex-start; }
    .bento-title { font-size: 1rem; }
    .bento-content { padding: 16px !important; }
}
@media (max-width: 480px) {
    .bento-grid {
        grid-auto-rows: 280px;
    }
}
