/* ====================
   ENHANCED DASHBOARD CATEGORY CARDS
   ==================== */

/* Dashboard Section */
.tools-dashboard-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Category Dashboard Card */
.category-dashboard-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 2px solid transparent;
    position: relative;
}

.category-dashboard-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

/* Category Card Header */
.category-card-header {
    padding: 1.25rem 1rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

/* Category Icon Circle */
.category-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}

.category-dashboard-card:hover .category-icon-circle {
    transform: scale(1.1) rotate(5deg);
}

/* Gradient Backgrounds for Icons */
.bg-gradient-location {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-banking {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bg-gradient-geospatial {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.bg-gradient-text {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.bg-gradient-image {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.bg-gradient-network {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-seo {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bg-gradient-dev {
    background: linear-gradient(135deg, #e94057 0%, #8a2387 100%);
}

.bg-gradient-calc {
    background: linear-gradient(135deg, #fa8c16 0%, #d4380d 100%);
}

.bg-gradient-binary {
    background: linear-gradient(135deg, #ff6e7f 0%, #bfe9ff 100%);
}

/* Badge on Card */
.category-card-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.category-card-badge .badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.badge.bg-purple {
    background-color: #9b59b6 !important;
    color: white;
}

/* Category Card Body */
.category-card-body {
    padding: 0 1rem 1rem;
}

.category-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.category-card-description {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Tools List */
.category-tools-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tool-item {
    font-size: 0.875rem;
    color: #495057;
    display: flex;
    align-items: center;
    padding: 0.4rem 0;
    transition: all 0.2s ease;
}

.tool-item i {
    font-size: 0.75rem;
    flex-shrink: 0;
}

.category-dashboard-card:hover .tool-item {
    transform: translateX(5px);
}

/* Category Card Footer */
.category-card-footer {
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid #f0f0f0;
    margin-top: 0.5rem;
}

.explore-link {
    font-weight: 600;
    color: #667eea;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.explore-link i {
    transition: transform 0.3s ease;
}

.category-dashboard-card:hover .explore-link {
    color: #764ba2;
}

.category-dashboard-card:hover .explore-link i {
    transform: translateX(5px);
}

/* Responsive Design for Dashboard */
@media (max-width: 992px) {
    .category-icon-circle {
        width: 64px;
        height: 64px;
        font-size: 1.75rem;
    }

    .category-card-title {
        font-size: 1.2rem;
    }

    .category-card-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .category-dashboard-card {
        border-radius: 16px;
    }

    .category-card-header {
        padding: 1.5rem 1.25rem 0.75rem;
    }

    .category-icon-circle {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
        border-radius: 14px;
    }

    .category-card-body {
        padding: 0 1.25rem 1.25rem;
    }

    .category-card-footer {
        padding: 0.875rem 1.25rem 1.25rem;
    }

    .category-card-badge {
        top: 1.25rem;
        right: 1.25rem;
    }
}

@media (max-width: 576px) {
    .category-card-header {
        padding: 1.25rem 1rem 0.5rem;
    }

    .category-icon-circle {
        width: 52px;
        height: 52px;
        font-size: 1.35rem;
    }

    .category-card-title {
        font-size: 1.1rem;
    }

    .category-card-description {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }

    .category-card-body {
        padding: 0 1rem 1rem;
    }

    .category-card-footer {
        padding: 0.75rem 1rem 1rem;
    }

    .tool-item {
        font-size: 0.8rem;
    }

    .category-card-badge .badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
    }
}

/* Animation for Card Entrance */
@keyframes categoryCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-dashboard-card {
    animation: categoryCardFadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

/* Staggered animation for multiple cards */
.category-dashboard-card:nth-child(1) {
    animation-delay: 0.05s;
}

.category-dashboard-card:nth-child(2) {
    animation-delay: 0.1s;
}

.category-dashboard-card:nth-child(3) {
    animation-delay: 0.15s;
}

.category-dashboard-card:nth-child(4) {
    animation-delay: 0.2s;
}

.category-dashboard-card:nth-child(5) {
    animation-delay: 0.25s;
}

.category-dashboard-card:nth-child(6) {
    animation-delay: 0.3s;
}

.category-dashboard-card:nth-child(7) {
    animation-delay: 0.35s;
}

.category-dashboard-card:nth-child(8) {
    animation-delay: 0.4s;
}

.category-dashboard-card:nth-child(9) {
    animation-delay: 0.45s;
}

.category-dashboard-card:nth-child(10) {
    animation-delay: 0.5s;
}