/* Technology Grid — Card layout for /technology hub page */
/* Extends .service-grid / .service-card classes from service-grid.css */

/* ── Tech card visual — centered icon instead of cover image ── */
.tech-card__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 50%, #f5f3ff 100%);
}

.tech-card__icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.tech-card:hover .tech-card__icon {
    transform: scale(1.1);
}

.tech-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

/* ── Category colour variants ── */
.tech-card__visual--frontend {
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 50%, #e0f2fe 100%);
    color: #0891b2;
}

.tech-card__visual--backend {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #d1fae5 100%);
    color: #16a34a;
}

.tech-card__visual--mobile {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #bfdbfe 100%);
    color: #2563eb;
}

.tech-card__visual--ai-ml {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 50%, #ddd6fe 100%);
    color: #4338ca;
}

.tech-card__visual--database {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 50%, #fef3c7 100%);
    color: #ca8a04;
}

.tech-card__visual--cloud {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 50%, #fed7aa 100%);
    color: #ea580c;
}

.tech-card__visual--other {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    color: #64748b;
}

/* ── Related services links ── */
.tech-related-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

a.tech-related-link,
a.tech-related-link:link,
a.tech-related-link:visited {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 12px;
    text-decoration: none;
    color: #1a202c;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.25s ease;
}

a.tech-related-link:hover {
    border-color: #3563E9;
    color: #3563E9;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(53, 99, 233, 0.1);
}

.tech-related-link__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f0f4ff;
    color: #3563E9;
    flex-shrink: 0;
}

.tech-related-link:hover .tech-related-link__icon {
    background: #3563E9;
    color: #fff;
}

/* ── Override service-grid visual height for tech ── */
.tech-grid .service-card__visual {
    height: 160px;
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .tech-related-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 576px) {
    .tech-related-links {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tech-related-link {
        padding: 16px 20px;
        font-size: 14px;
    }

    .tech-card__visual {
        height: 140px;
    }

    .tech-card__icon {
        width: 60px;
        height: 60px;
    }
}
