/* ==========================================================================
   Hero Header: Technology Stack Category Options Styles
   Location: css/hero-header-options-category.css
   ========================================================================== */

.tc-hero-technologies {
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    margin-bottom: 0 !important;
    width: 100% !important;
}

/* Neutralize any rogue paragraph or break elements */
.tc-hero-technologies p,
.tc-hero-technologies br {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tc-tech-label {
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin-right: 8px !important;
}

.tc-tech-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    background-color: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #f8fafc !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

.tc-tech-btn img {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain !important;
    transition: filter 0.3s ease !important;
    filter: brightness(0.9) !important;
}

.tc-tech-btn:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

.tc-tech-btn:hover img {
    filter: brightness(1.2) drop-shadow(0 0 5px rgba(255, 255, 255, 0.5)) !important;
}

/* 🚀 HIDDEN ITEMS & SMOOTH POP-IN ANIMATION */
.tc-tech-hidden-item {
    display: none !important;
}

/* Dual selector to guarantee display override */
.tc-hero-technologies.is-expanded .tc-tech-hidden-item,
#mcb-tech-container.is-expanded .tc-tech-hidden-item {
    display: inline-flex !important;
    animation: techPop 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes techPop {
    from { 
        opacity: 0; 
        transform: scale(0.85) translateY(12px); 
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

/* 🔄 +X EXPANDING & ROTATING CIRCLE TOGGLE BUTTON */
.tc-tech-more-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    padding: 8px 14px !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    font-family: 'Poppins', sans-serif !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    outline: none !important;
}

.tc-tech-more-text {
    font-size: 14px !important;
    font-weight: 800 !important;
    display: inline-block !important;
}

.tc-tech-more-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.tc-tech-more-icon svg {
    width: 16px !important;
    height: 16px !important;
    stroke-width: 3 !important;
    stroke: currentColor !important;
}

/* When expanded: Hide +X badge, morph button to circle, rotate chevron */
.tc-hero-technologies.is-expanded .tc-tech-more-btn .tc-tech-more-text,
#mcb-tech-container.is-expanded .tc-tech-more-btn .tc-tech-more-text {
    display: none !important;
}

.tc-hero-technologies.is-expanded .tc-tech-more-btn,
#mcb-tech-container.is-expanded .tc-tech-more-btn {
    padding: 8px !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
}

.tc-hero-technologies.is-expanded .tc-tech-more-btn .tc-tech-more-icon,
#mcb-tech-container.is-expanded .tc-tech-more-btn .tc-tech-more-icon {
    transform: rotate(-180deg) !important;
}

.tc-tech-more-btn:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: #ffffff !important;
}

@media (max-width: 768px) {
    .tc-hero-technologies { 
        flex-direction: row !important; 
        gap: 8px !important; 
    }
    .tc-tech-label { 
        width: 100% !important; 
        margin-right: 0 !important; 
        margin-bottom: 5px !important; 
        text-align: center !important; 
    }
}