/* ============================================
   Bryze Webdesign Portfolio
   Dark theme with glassmorphism — accent: red
   ============================================ */

.bp-portfolio {
    --bp-glass: rgba(255, 255, 255, 0.05);
    --bp-glass-hover: rgba(255, 255, 255, 0.08);
    --bp-glass-border: rgba(255, 255, 255, 0.1);
    --bp-glass-border-hover: rgba(220, 50, 50, 0.3);
    --bp-text: #e0e0e0;
    --bp-text-muted: #999;
    --bp-accent: #dc3232;
    --bp-accent-light: #ff4d4d;
    --bp-accent-glow: rgba(220, 50, 50, 0.15);
    --bp-white: #fff;
    --bp-radius: 16px;
    --bp-transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    color: var(--bp-text);
    background: transparent;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 80px;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

.bp-portfolio > * {
    position: relative;
    z-index: 1;
}

.bp-portfolio a {
    color: inherit;
    text-decoration: none;
}

/* ---- Hero ---- */
.bp-hero {
    text-align: center;
    padding: 80px 20px 40px;
    position: relative;
}

.bp-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--bp-white);
    margin: 0 0 20px;
    line-height: 1.1;
}

.bp-accent {
    color: var(--bp-accent-light);
    font-style: italic;
    text-shadow: 0 0 30px rgba(220, 50, 50, 0.4);
}

.bp-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--bp-text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---- Banner ---- */
.bp-ai-banner {
    padding: 32px 36px;
    margin: 32px 4px 48px;
    background: rgba(220, 50, 50, 0.04);
    border: 1px solid rgba(220, 50, 50, 0.15);
    border-radius: var(--bp-radius);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    animation: bp-fadeUp 0.6s ease-out both;
}

.bp-banner-items {
    display: flex;
    gap: 0;
}

.bp-banner-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
    padding: 0 28px;
}

.bp-banner-item:first-child {
    padding-left: 0;
}

.bp-banner-item:last-child {
    padding-right: 0;
}

.bp-banner-divider {
    width: 1px;
    align-self: stretch;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.bp-ai-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bp-accent), var(--bp-accent-light));
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--bp-white);
    letter-spacing: 0.05em;
    box-shadow: 0 4px 20px rgba(220, 50, 50, 0.3);
}

.bp-ai-content h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bp-white);
    margin: 0 0 6px;
}

.bp-ai-content p {
    font-size: 0.85rem;
    color: var(--bp-text-muted);
    line-height: 1.6;
    margin: 0 0 10px;
}

.bp-ai-content p:last-child {
    margin-bottom: 0;
}

.bp-ai-content p strong {
    color: var(--bp-white);
}

.bp-ai-logos {
    display: flex;
    gap: 8px;
}

.bp-ai-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--bp-text);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* ---- Filter Buttons ---- */
.bp-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0 20px 48px;
}

.bp-filter-btn {
    background: var(--bp-glass);
    color: var(--bp-text-muted);
    border: 1px solid var(--bp-glass-border);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--bp-transition);
    font-family: inherit;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.bp-filter-btn:hover {
    color: var(--bp-white);
    border-color: var(--bp-glass-border-hover);
    background: var(--bp-accent-glow);
}

.bp-filter-btn.active {
    background: var(--bp-accent);
    color: var(--bp-white);
    border-color: var(--bp-accent);
    font-weight: 600;
    box-shadow: 0 0 20px rgba(220, 50, 50, 0.3);
}

/* ---- Grid ---- */
.bp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 28px;
    padding: 0 4px;
}

/* ---- Card (Glassmorphism) ---- */
.bp-card {
    background: var(--bp-glass);
    border: 1px solid var(--bp-glass-border);
    border-radius: var(--bp-radius);
    overflow: hidden;
    transition: var(--bp-transition);
    animation: bp-fadeUp 0.6s ease-out both;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.bp-card:hover {
    background: var(--bp-glass-hover);
    border-color: var(--bp-glass-border-hover);
    transform: translateY(-6px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(220, 50, 50, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.bp-card-link {
    display: block;
}

/* ---- Card Image ---- */
.bp-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
}

.bp-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
}

.bp-card:hover .bp-card-image img {
    transform: scale(1.05);
    filter: brightness(0.6);
}

.bp-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--bp-transition);
    background: rgba(0, 0, 0, 0.4);
}

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

.bp-visit {
    background: var(--bp-accent);
    color: var(--bp-white);
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transform: translateY(10px);
    transition: transform var(--bp-transition), box-shadow var(--bp-transition);
}

.bp-card:hover .bp-visit {
    transform: translateY(0);
    box-shadow: 0 4px 20px rgba(220, 50, 50, 0.4);
}

/* ---- Card Body ---- */
.bp-card-body {
    padding: 24px 24px 28px;
    border-top: 1px solid var(--bp-glass-border);
}

.bp-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--bp-white);
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.bp-card-desc {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--bp-text-muted);
    margin: 0 0 14px;
}

.bp-card-scope {
    font-size: 0.8rem;
    color: var(--bp-accent-light);
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

/* ---- Tags ---- */
.bp-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bp-tag {
    background: rgba(255, 255, 255, 0.05);
    color: var(--bp-text-muted);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bp-tag-ai {
    background: rgba(220, 50, 50, 0.1);
    color: var(--bp-accent-light);
    border-color: rgba(220, 50, 50, 0.2);
}

/* ---- CTA (Glass panel) ---- */
.bp-cta {
    text-align: center;
    margin-top: 80px;
    padding: 60px 40px;
    background: var(--bp-glass);
    border: 1px solid var(--bp-glass-border);
    border-radius: var(--bp-radius);
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
}

.bp-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--bp-accent), transparent);
}

.bp-cta::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(220, 50, 50, 0.05), transparent 70%);
    pointer-events: none;
}

.bp-cta h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--bp-white);
    margin: 0 0 12px;
    font-weight: 700;
    position: relative;
}

.bp-cta p {
    color: var(--bp-text-muted);
    font-size: 1.05rem;
    margin: 0 0 32px;
    position: relative;
}

.bp-cta-btn {
    display: inline-block;
    background: var(--bp-accent);
    color: var(--bp-white) !important;
    padding: 14px 40px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--bp-transition);
    letter-spacing: 0.02em;
    position: relative;
}

.bp-cta-btn:hover {
    background: var(--bp-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(220, 50, 50, 0.3);
}

/* ---- Animations ---- */
@keyframes bp-fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bp-card.bp-hidden {
    display: none;
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
    .bp-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bp-hero {
        padding: 50px 16px 40px;
    }

    .bp-card-body {
        padding: 20px 20px 24px;
    }

    .bp-cta {
        margin-top: 50px;
        padding: 40px 24px;
    }

    .bp-banner-items {
        flex-direction: column;
        gap: 24px;
    }

    .bp-banner-item {
        padding: 0;
    }

    .bp-banner-divider {
        width: 100%;
        height: 1px;
    }

    .bp-ai-banner {
        padding: 28px 24px;
    }
}

@media (min-width: 861px) and (max-width: 1200px) {
    .bp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
