/* ── Skills Page ── */
.skills-section { padding: 70px 60px 80px; }

.skills-headline { text-align: center; margin-bottom: 60px; }
.skills-headline h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: #3a86d8; margin: 0 0 12px; }
.skills-headline h3 { font-size: 36px; font-weight: 700; color: #1a1a1a; margin: 0 0 16px; }
.skills-headline p { font-size: 15px; color: #888; max-width: 520px; margin: 0 auto; line-height: 1.7; }
.headline-divider { width: 48px; height: 3px; background: #3a86d8; margin: 20px auto 0; border-radius: 2px; }

.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 24px; max-width: 1100px; margin: 0 auto; }

.tech-item { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 16px 22px; border: 1px solid #ebebeb; background: #fff; border-radius: 6px; transition: all 0.25s ease; position: relative; overflow: hidden; }
.tech-item::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: #3a86d8; transform: scaleX(0); transition: transform 0.25s ease; transform-origin: left; }
.tech-item:hover { border-color: #d0e4f7; box-shadow: 0 8px 32px rgba(58,134,216,0.10); transform: translateY(-4px); }
.tech-item:hover::after { transform: scaleX(1); }

.tech-item img { width: 56px; height: 56px; object-fit: contain; }
.tech-name { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #555; text-align: center; }
.tech-cat { font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: #aaa; background: #f7f7f7; padding: 2px 7px; border-radius: 20px; }

/* ── Filter Dropdown ── */
.skills-filter-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 44px;
}

.filter-dropdown {
    position: relative;
    width: 260px;
    user-select: none;
}

.filter-selected {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    letter-spacing: 0.03em;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-selected:hover {
    border-color: #3a86d8;
    box-shadow: 0 2px 12px rgba(58,134,216,0.10);
}

.filter-selected svg {
    transition: transform 0.25s ease;
    color: #aaa;
    flex-shrink: 0;
}

.filter-dropdown.open .filter-selected {
    border-color: #3a86d8;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.filter-dropdown.open .filter-selected svg {
    transform: rotate(180deg);
}

.filter-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #3a86d8;
    border-top: none;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    list-style: none;
    padding: 6px 0;
    margin: 0;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);

    /* Hidden by default */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease;
}

.filter-dropdown.open .filter-options {
    max-height: 400px;
    opacity: 1;
}

.filter-option {
    padding: 10px 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #666;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.filter-option:hover {
    background: #f0f6ff;
    color: #3a86d8;
}

.filter-option.active {
    background: #3a86d8;
    color: #fff;
}

/* ── Hide/Show cards ── */
.tech-item.hidden {
    display: none;
}

.tech-item.visible {
    display: flex;
}