/* ========== BASE ========== */
* { font-family: 'Inter', sans-serif; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: #faf9f6; color: #1a1a2e; margin: 0; }

/* ========== PORTFOLIO CARD ========== */
.portfolio-card {
    border-radius: 18px;
    padding: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: block;
    text-decoration: none;
}
.portfolio-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}
.portfolio-card .card-inner {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/11;
}
.portfolio-card .card-inner .placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    position: relative;
}
.portfolio-card .card-label {
    padding: 8px 4px 2px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== FILTER PILLS ========== */
.filter-pill {
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    border: 1.5px solid #ddd;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.filter-pill:hover { border-color: #999; color: #333; }
.filter-pill.active {
    background: #1a1a2e;
    color: #fff;
    border-color: #1a1a2e;
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.mobile-menu.open { transform: translateX(0); }

/* ========== NAVBAR SCROLL ========== */
.nav-scrolled {
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06) !important;
}

/* ========== DETAIL PAGE ========== */
.detail-body { background: #ffffff; }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #faf9f6; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* ========== ANIMATIONS ========== */
.fade-in-card {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.fade-in-card.visible {
    opacity: 1;
    transform: scale(1);
}
