/* ========================================
   Our Team / Workforce Section
   ======================================== */
.team-section {
    position: relative;
    background-color: white;
    padding-top: var(--space-120);
    padding-bottom: var(--space-120);
    z-index: 2;
    overflow: hidden;
}

/* Background Elements */
.team-bg-decoration {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle at bottom right, rgba(237, 28, 36, 0.05) 0%, transparent 70%);
    z-index: 0;
}

/* Content Layout */
.team-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-48);
    position: relative;
    z-index: 2;
}

.team-intro {
    grid-column: span 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-visuals {
    grid-column: span 7;
    position: relative;
    /* Min height for the badge cloud */
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gamified "Skill Badges" */
.skill-badge-container {
    position: relative;
    width: 100%;
    height: 400px;
    perspective: 1000px;
}

.skill-card {
    position: absolute;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
    padding: var(--space-24);
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    /* Hidden initially */
    transform: translateY(50px) scale(0.9);
}

.skill-card:hover {
    transform: scale(1.05) translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(237, 28, 36, 0.15);
    border-color: rgba(237, 28, 36, 0.3);
    z-index: 10;
}

/* Positioning specific cards in a cloud */
.skill-card.pos-1 {
    top: 10%;
    left: 0%;
    transform: rotate(-5deg);
}

.skill-card.pos-2 {
    top: 5%;
    right: 10%;
    transform: rotate(5deg);
}

.skill-card.pos-3 {
    bottom: 15%;
    left: 15%;
    transform: rotate(3deg);
}

.skill-card.pos-4 {
    bottom: 20%;
    right: 0%;
    transform: rotate(-3deg);
}

.skill-icon {
    width: 56px;
    height: 56px;
    background: var(--color-alto);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-16);
    color: var(--color-woodsmoke);
    font-size: 24px;
}

/* Highlight one card */
.skill-card.highlight .skill-icon {
    background: var(--color-crimson);
    color: white;
}

.skill-title {
    font-weight: bold;
    color: var(--color-tuatara);
    margin-bottom: var(--space-8);
    font-size: var(--text-base);
}

.skill-desc {
    font-size: var(--text-sm);
    color: #666;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 1024px) {

    .team-intro,
    .team-visuals {
        grid-column: span 12;
    }

    .team-intro {
        text-align: center;
        margin-bottom: var(--space-64);
    }

    .skill-badge-container {
        height: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-16);
        perspective: none;
    }

    .skill-card {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .skill-badge-container {
        grid-template-columns: 1fr;
    }
}