/* =========================================================
   DASHBOARD LAYOUT
========================================================= */

.dashboard {
    display: flex;
    gap: 25px;
    padding: 20px;
    min-height: 100%; /* No fixed height */
}

/* =========================================================
   PANELS
========================================================= */

.dashboard__projects,
.dashboard__skills {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    padding: 20px;
}

/* LEFT PANEL */

.dashboard__projects {
    border: 1px solid var(--about-border-color_1);
}

/* RIGHT PANEL */

.dashboard__skills {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--about-border-color_2);
    background: rgba(0, 0, 0, 0.35);
}

/* =========================================================
   PROJECT CONTAINER (SCROLLABLE)
========================================================= */

.projects__container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    overflow-y: auto;
    padding-right: 10px;
}

/* =========================================================
   LARGE INTERACTIVE PROJECT CARD
========================================================= */

.project-card {
    position: relative;
    width: 100%;
    min-height: 230px; /* BIG cards */
    flex-shrink: 0; /* Prevent flex compression */
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

/* =========================================================
   MEDIA
========================================================= */

.project-card img,
.project-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================================
   TITLE STRIP (DEFAULT)
========================================================= */

.project-title {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 22px;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.4s ease;
}

/* =========================================================
   OVERLAY
========================================================= */

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 35px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.project-overlay h3 {
    margin-bottom: 25px;
    font-size: 1.4rem;
}

/* Scrollable content */

.project-overlay-content {
    overflow-y: auto;
    flex: 1;
}

.project-overlay-content ul {
    padding-left: 24px;
    line-height: 1.7;
    font-size: 1rem;
}

/* =========================================================
   ACTIVE STATE
========================================================= */

.project-card.active .project-title {
    top: 0;
    bottom: auto;
    background: transparent;
    text-align: left;
}

.project-card.active .project-overlay {
    opacity: 1;
    transform: translateY(0);

    border: 1px solid rgba(0, 200, 255, 0.6);
    box-shadow:
        inset 0 0 60px rgba(0, 200, 255, 0.15),
        0 0 25px rgba(0, 200, 255, 0.35);
}

/* =========================================================
   SKILL MATRIX
========================================================= */

.skills__container {
    flex: 1;                 /* THIS is critical */
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 15px;
    padding-top: 7PX;
    align-content: flex-start;  /* prevents weird vertical centering */
}

.skill-bubble {
    position: relative;
    padding: 12px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--nav-grey);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
}

.skill-bubble:hover {
    transform: translateY(-3px);
}

.skill-bubble.active {
    border: 1px solid var(--text-color);
    box-shadow: 0 0 12px var(--text-color);
    color: var(--text-color);
}

.skill-bubble.dim {
    opacity: 0.25;
}

/* Frequency Badge */

.skill-count {
    position: absolute;
    top: -7px;
    right: -7px;
    background: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================================
   SEARCH INPUT
========================================================= */

.skill-search {
    margin-top: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.05);
    color: var(--text-color);
    font-size: 0.9rem;
}

/* =========================================================
   CLEAR BUTTON
========================================================= */

.matrix-footer {
    margin-top: 15px;
}

.clear-btn {
    padding: 10px 18px;
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
}

.clear-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

/* =========================================================
   SCROLLBAR POLISH
========================================================= */

.projects__container::-webkit-scrollbar,
.skills__container::-webkit-scrollbar {
    width: 6px;
}

.projects__container::-webkit-scrollbar-thumb,
.skills__container::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .dashboard {
        flex-direction: column;
    }

    .project-card {
        min-height: 500px;
    }
}