/* Skills Section Styles */
.skills-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(17, 24, 39, 0.8) 100%);
    position: relative;
    overflow: hidden;
}

.skills-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.tech-stack-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.tech-item {
    position: relative;
    cursor: pointer;
    height: 80px;
}

.tech-item-card {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 0.75rem 0.5rem;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    overflow: hidden;
}

/* Create minimalist stacked card effect */
.tech-item-card::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    z-index: -1;
    transition: all 0.3s ease;
}

.tech-item-card::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    z-index: -2;
    transition: all 0.3s ease;
}

/* Subtle hover effects */
.tech-item:hover .tech-item-card {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 
        0 12px 25px -8px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.tech-item:hover .tech-item-card::before {
    transform: translateY(4px) scale(0.98);
    opacity: 0.5;
}

.tech-item:hover .tech-item-card::after {
    transform: translateY(8px) scale(0.96);
    opacity: 0.3;
}

.tech-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    display: block;
}

.tech-item:hover .tech-icon {
    transform: scale(1.1);
}

.tech-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: #d1d5db;
    transition: color 0.3s ease;
    line-height: 1.2;
}

.tech-item:hover .tech-name {
    color: #ffffff;
}

/* Color variants for different technologies */
.tech-html .tech-item-card { 
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    border-color: rgba(251, 146, 60, 0.3); 
}
.tech-html:hover .tech-item-card { 
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.2) 0%, rgba(0, 0, 0, 0.9) 100%);
    border-color: rgba(251, 146, 60, 0.8); 
}
.tech-html .tech-icon { color: #fb923c; }

.tech-css .tech-item-card { 
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    border-color: rgba(59, 130, 246, 0.3); 
}
.tech-css:hover .tech-item-card { 
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(0, 0, 0, 0.9) 100%);
    border-color: rgba(59, 130, 246, 0.8); 
}
.tech-css .tech-icon { color: #3b82f6; }

.tech-js .tech-item-card { 
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    border-color: rgba(251, 191, 36, 0.3); 
}
.tech-js:hover .tech-item-card { 
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(0, 0, 0, 0.9) 100%);
    border-color: rgba(251, 191, 36, 0.8); 
}
.tech-js .tech-icon { color: #fbbf24; }

.tech-react .tech-item-card { 
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    border-color: rgba(6, 182, 212, 0.3); 
}
.tech-react:hover .tech-item-card { 
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(0, 0, 0, 0.9) 100%);
    border-color: rgba(6, 182, 212, 0.8); 
}
.tech-react .tech-icon { color: #06b6d4; }

.tech-php .tech-item-card { 
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    border-color: rgba(139, 92, 246, 0.3); 
}
.tech-php:hover .tech-item-card { 
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(0, 0, 0, 0.9) 100%);
    border-color: rgba(139, 92, 246, 0.8); 
}
.tech-php .tech-icon { color: #8b5cf6; }

.tech-mysql .tech-item-card { 
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    border-color: rgba(37, 99, 235, 0.3); 
}
.tech-mysql:hover .tech-item-card { 
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(0, 0, 0, 0.9) 100%);
    border-color: rgba(37, 99, 235, 0.8); 
}
.tech-mysql .tech-icon { color: #2563eb; }

.tech-laravel .tech-item-card { 
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    border-color: rgba(239, 68, 68, 0.3); 
}
.tech-laravel:hover .tech-item-card { 
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(0, 0, 0, 0.9) 100%);
    border-color: rgba(239, 68, 68, 0.8); 
}
.tech-laravel .tech-icon { color: #ef4444; }

.tech-csharp .tech-item-card { 
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    border-color: rgba(168, 85, 247, 0.3); 
}
.tech-csharp:hover .tech-item-card { 
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(0, 0, 0, 0.9) 100%);
    border-color: rgba(168, 85, 247, 0.8); 
}
.tech-csharp .tech-icon { color: #a855f7; }

.tech-dotnet .tech-item-card { 
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    border-color: rgba(99, 102, 241, 0.3); 
}
.tech-dotnet:hover .tech-item-card { 
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(0, 0, 0, 0.9) 100%);
    border-color: rgba(99, 102, 241, 0.8); 
}
.tech-dotnet .tech-icon { color: #6366f1; }

.tech-architecture .tech-item-card { 
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    border-color: rgba(16, 185, 129, 0.3); 
}
.tech-architecture:hover .tech-item-card { 
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(0, 0, 0, 0.9) 100%);
    border-color: rgba(16, 185, 129, 0.8); 
}
.tech-architecture .tech-icon { color: #10b981; }

.tech-node .tech-item-card { 
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    border-color: rgba(34, 197, 94, 0.3); 
}
.tech-node:hover .tech-item-card { 
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(0, 0, 0, 0.9) 100%);
    border-color: rgba(34, 197, 94, 0.8); 
}
.tech-node .tech-icon { color: #22c55e; }

.tech-git .tech-item-card { 
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    border-color: rgba(251, 146, 60, 0.3); 
}
.tech-git:hover .tech-item-card { 
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.2) 0%, rgba(0, 0, 0, 0.9) 100%);
    border-color: rgba(251, 146, 60, 0.8); 
}
.tech-git .tech-icon { color: #fb923c; }

.tech-tailwind .tech-item-card { 
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    border-color: rgba(6, 182, 212, 0.3); 
}
.tech-tailwind:hover .tech-item-card { 
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(0, 0, 0, 0.9) 100%);
    border-color: rgba(6, 182, 212, 0.8); 
}
.tech-tailwind .tech-icon { color: #06b6d4; }

.tech-firebase .tech-item-card { 
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    border-color: rgba(251, 191, 36, 0.3); 
}
.tech-firebase:hover .tech-item-card { 
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(0, 0, 0, 0.9) 100%);
    border-color: rgba(251, 191, 36, 0.8); 
}
.tech-firebase .tech-icon { color: #fbbf24; }

.tech-ionic .tech-item-card { 
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    border-color: rgba(59, 130, 246, 0.3); 
}
.tech-ionic:hover .tech-item-card { 
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(0, 0, 0, 0.9) 100%);
    border-color: rgba(59, 130, 246, 0.8); 
}
.tech-ionic .tech-icon { color: #3b82f6; }

.tech-unity .tech-item-card { 
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    border-color: rgba(156, 163, 175, 0.3); 
}
.tech-unity:hover .tech-item-card { 
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.2) 0%, rgba(0, 0, 0, 0.9) 100%);
    border-color: rgba(156, 163, 175, 0.8); 
}
.tech-unity .tech-icon { color: #9ca3af; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .tech-stack-grid {
        grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
        gap: 0.75rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .tech-item {
        height: 100px;
    }
    
    .tech-item-card {
        padding: 1rem 0.5rem;
    }
    
    .tech-icon {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .tech-name {
        font-size: 0.8rem;
        font-weight: 600;
        word-break: break-word;
        max-width: 100%;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .tech-stack-grid {
        grid-template-columns: repeat(auto-fit, minmax(75px, 1fr));
        gap: 0.5rem;
        padding: 0 0.5rem;
    }
    
    .tech-item {
        height: 90px;
    }
    
    .tech-item-card {
        padding: 0.75rem 0.25rem;
    }
    
    .tech-icon {
        font-size: 1.25rem;
        margin-bottom: 0.35rem;
    }
    
    .tech-name {
        font-size: 0.75rem;
        font-weight: 600;
        line-height: 1.1;
    }
}

@media (max-width: 640px) {
    .tech-stack-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
}
