.tech-stack__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-top: 50px;
}

/* Column variants */
.tech-stack__grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.tech-stack__grid--5 {
    grid-template-columns: repeat(5, 1fr);
}

.tech-stack__grid--6 {
    grid-template-columns: repeat(6, 1fr);
}

/* ── Dark card (default) ───────────────────────────── */

.tech-card {
    padding: 20px 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.45s var(--ease-card),
                box-shadow 0.45s var(--ease-card),
                border-color 0.3s ease;
}

.tech-card:hover {
    border-color: rgba(242, 101, 34, 0.45);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), 0 6px 16px rgba(242, 101, 34, 0.1);
}

.tech-card__icon {
    margin-bottom: 12px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--icon-box-border);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(242, 101, 34, 0.12) 0%, rgba(242, 101, 34, 0.04) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tech-card__icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(43%) sepia(88%) saturate(722%) hue-rotate(357deg) brightness(101%) contrast(91%);
}

.tech-card__title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #FFFFFF;
    letter-spacing: 0.01em;
}

/* WYSIWYG list styles */
.tech-card__list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.tech-card__list ul li {
    margin-bottom: 6px;
    position: relative;
    padding-left: 16px;
}

.tech-card__list p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

/* ── Light card ────────────────────────────────────── */

.tech-card--light {
    background: var(--card-gradient);
    border-color: rgba(0, 2, 14, 0.08);
    box-shadow: 0 8px 24px rgba(0, 2, 14, 0.04), 0 2px 8px rgba(0, 2, 14, 0.03);
}

.tech-card--light:hover {
    border-color: rgba(242, 101, 34, 0.22);
    box-shadow: 0 20px 40px rgba(0, 2, 14, 0.07), 0 6px 16px rgba(0, 2, 14, 0.05);
}

.tech-card--light .tech-card__icon {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.tech-card--light .tech-card__title {
    color: var(--color-text-main);
}

.tech-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 1px;
    background: var(--color-primary);
}

.tech-card--light .tech-card__list ul,
.tech-card--light .tech-card__list p {
    color: var(--color-text-secondary);
}

/* ── Responsive ────────────────────────────────────── */

@media (max-width: 1280px) {
    .tech-stack__grid,
    .tech-stack__grid--4,
    .tech-stack__grid--5,
    .tech-stack__grid--6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .tech-stack__grid,
    .tech-stack__grid--4,
    .tech-stack__grid--5,
    .tech-stack__grid--6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .tech-stack__grid,
    .tech-stack__grid--4,
    .tech-stack__grid--5,
    .tech-stack__grid--6 {
        grid-template-columns: 1fr;
    }

    .tech-card {
        border-radius: 14px;
    }
}
