﻿.tech-stack-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-icon-wrapper {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

    .tech-icon-wrapper.visible {
        opacity: 1;
        transform: translateY(0);
    }

.tech-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.2));
}

.tech-icon-wrapper::before {
    content: attr(data-tech);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    color: white;
    font-family: 'gendy', sans-serif;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 12px;
    border-radius: 12px;
}

.tech-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: radial-gradient(circle at center, rgba(82, 140, 223, 0.1), transparent);
    opacity: 0;
    transition: all 0.3s ease;
}

/* Hover Effects */
.tech-icon-wrapper:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 8px 12px rgba(82, 140, 223, 0.2);
}

    .tech-icon-wrapper:hover .tech-icon {
        transform: scale(1.1);
    }

    .tech-icon-wrapper:hover::before {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    .tech-icon-wrapper:hover::after {
        opacity: 1;
    }

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .tech-stack-container {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 1.5rem;
        padding: 1rem;
    }

    .tech-icon-wrapper {
        padding: 1rem;
    }

        .tech-icon-wrapper::before {
            font-size: 0.8rem;
            bottom: -25px;
        }
}

@media screen and (max-width: 380px) {
    .tech-stack-container {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 1rem;
    }

    .tech-icon-wrapper {
        padding: 0.8rem;
    }
}
