/* =========================================================
   PORTFOLIO – Hero & Statistics
   ========================================================= */

.portfolio-hero {
    position: relative;
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2rem);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,255,255,0.78));
    backdrop-filter: blur(12px) saturate(130%);
    box-shadow:
        0 8px 24px rgba(0,0,0,0.05),
        0 0 0 1px rgba(255,255,255,0.4),
        inset 0 1px rgba(255,255,255,0.6);
}

.portfolio-hero__header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.portfolio-hero__title {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 700;
    color: var(--text-strong, #1a1a2e);
}

/* ── Stat cards ────────────────────────────────────────────── */

.portfolio-hero__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.portfolio-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1rem 0.5rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.portfolio-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.portfolio-stat__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #fff;
}

/* ── Clickable public card ────────────────────────────────── */

.portfolio-card--clickable {
    position: relative;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.portfolio-card--clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.portfolio-card--clickable .stretched-link {
    z-index: 1;
}

.portfolio-stat__icon--projects { background: var(--bs-primary, #0d6efd); }
.portfolio-stat__icon--sessions { background: var(--bs-success, #198754); }
.portfolio-stat__icon--assets   { background: var(--bs-warning, #ffc107); color: #1a1a2e; }
.portfolio-stat__icon--tags     { background: var(--bs-info, #0dcaf0); color: #1a1a2e; }

.portfolio-stat__value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-strong, #1a1a2e);
}

.portfolio-stat__label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--bs-secondary, #6c757d);
}

/* =========================================================
   PORTFOLIO – Tag Section Groups
   ========================================================= */

.portfolio-tag-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    background: rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.06);
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}

.portfolio-tag-section__header:hover {
    background: rgba(0,0,0,0.04);
}

.portfolio-tag-section__dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.portfolio-tag-section__chevron {
    transition: transform 0.2s ease;
    color: var(--bs-secondary, #6c757d);
}

.portfolio-tag-section__header[aria-expanded="false"] .portfolio-tag-section__chevron {
    transform: rotate(-90deg);
}

/* =========================================================
   PORTFOLIO – Timeline View
   ========================================================= */

.portfolio-timeline {
    position: relative;
    padding-left: 2rem;
}

.portfolio-timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--bs-border-color, #dee2e6);
}

.portfolio-timeline .timeline-month {
    position: relative;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bs-secondary, #6c757d);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
    padding-left: 0.25rem;
}

.portfolio-timeline .timeline-month:first-child {
    margin-top: 0;
}

.portfolio-timeline .timeline-entry {
    position: relative;
    margin-bottom: 1rem;
}

.portfolio-timeline .timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: absolute;
    left: calc(-2rem + 0.75rem - 5px);
    top: 1.1rem;
    background: var(--dot-color, var(--bs-primary, #0d6efd));
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--dot-color, var(--bs-primary, #0d6efd));
    z-index: 1;
}

.portfolio-timeline .timeline-card {
    border-radius: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.portfolio-timeline .timeline-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 575.98px) {
    .portfolio-timeline {
        padding-left: 0;
    }

    .portfolio-timeline::before {
        display: none;
    }

    .portfolio-timeline .timeline-dot {
        display: none;
    }

    .portfolio-timeline .timeline-entry {
        margin-bottom: 0.75rem;
    }
}

/* ── Responsive (hero) ───────────────────────────────────── */

@media (max-width: 575.98px) {
    .portfolio-hero__stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-stat__value {
        font-size: 1.25rem;
    }
}
