/* Enhanced Tech Stack Section with Name Reveal */
#tech-stack {
    padding: 60px 0;
    position: relative;
}

#tech-stack .section-heading {
    font-family: 'Metropolis', sans-serif;
    font-weight: 300;
    font-size: 2rem;
    color: #5e747f;
    margin-bottom: 50px;
    position: relative;
}

#tech-stack .section-heading::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #BAE9E0, #D1AE5D);
    border-radius: 3px;
}

.tech-partners-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 0 auto;
    max-width: 1000px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.tech-partner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.6;
    position: relative;
    padding: 10px;
}

.tech-partner:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-5px);
}

.tech-partner img {
    height: 50px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

/* Logo name tooltip styling */
.tech-partner .logo-name {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: rgba(94, 116, 127, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-family: 'Metropolis', sans-serif;
}

/* Add a small arrow to the tooltip */
.tech-partner .logo-name:after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent rgba(94, 116, 127, 0.9) transparent;
}

/* Show tooltip on hover */
.tech-partner:hover .logo-name {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.tech-explainer {
    margin-top: 40px;
    color: #666;
    font-family: 'NeverMind', sans-serif;
    font-size: 1rem;
}

.tech-explainer small {
    font-size: 0.85rem;
    color: #888;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .tech-partners-container {
        gap: 30px;
    }
    
    .tech-partner img {
        height: 40px;
    }
}

@media (max-width: 767px) {
    #tech-stack .section-heading {
        font-size: 2rem;
    }
    
    .tech-partners-container {
        gap: 25px;
        padding: 15px;
    }
    
    .tech-partner img {
        height: 35px;
    }
    
    /* Adjust tooltip position for smaller screens */
    .tech-partner .logo-name {
        bottom: -25px;
        font-size: 10px;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .tech-partners-container {
        gap: 20px;
    }
    
    .tech-partner img {
        height: 30px;
    }
    
    /* Further adjust tooltip for very small screens */
    .tech-partner {
        margin-bottom: 15px;
    }
}