/* Tech Stack Section Styles */
.tech-stack-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.tech-category {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.tech-category:hover::before {
    opacity: 1;
}

.tech-category:hover {
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.15);
}

.tech-category-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #E5E7EB;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.tech-category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #3B82F6, #9333EA);
    border-radius: 3px;
}

.tech-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
    justify-items: center;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 1rem;
    border-radius: 12px;
    width: 100%;
    height: 100%;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.tech-item:hover::before {
    opacity: 1;
}

.tech-item:hover {
    transform: translateY(-5px) scale(1.05);
}

.tech-icon {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3));
}

.tech-item:hover .tech-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.5));
}

.tech-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #E5E7EB;
    transition: all 0.3s ease;
}

.tech-item:hover .tech-name {
    color: #3B82F6;
}

.tech-item:hover .tech-icon {
    animation: techPulse 2s infinite;
}

/* Skill bar styles */
.skill-bar-container {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 0.5rem;
    overflow: hidden;
    position: relative;
}

.skill-bar {
    height: 100%;
    background: linear-gradient(90deg, #3B82F6, #9333EA);
    border-radius: 3px;
    transition: width 1s ease-in-out;
    position: relative;
}

.skill-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.1) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes techPulse {
    0% {
        filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.6));
    }
    100% {
        filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3));
    }
}

@media (max-width: 768px) {
    .tech-items {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 1rem;
    }

    .tech-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .tech-name {
        font-size: 0.8rem;
    }
}
