/* 🛠️ TECHNOLOGY STACK SECTION */

.tech-stack-section {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(180deg, 
        rgba(99, 102, 241, 0.02) 0%, 
        rgba(139, 92, 246, 0.02) 100%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
    position: relative;
}

.tech-stack-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
}

/* Header */
.tech-stack-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.tech-stack-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.tech-stack-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

.tech-stack-helper {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: var(--spacing-xl) auto 0;
    line-height: 1.5;
    text-align: center;
}

/* Tech Logos Grid */
.tech-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--spacing-md);
    max-width: 1000px;
    margin: 0 auto;
}

.tech-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--white);
    border: 2px solid rgba(99, 102, 241, 0.08);
    border-radius: var(--border-radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100px;
    position: relative;
    overflow: hidden;
}

.tech-logo-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.tech-logo-item:hover {
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.12);
}

/* Tech Icon */
.tech-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.tech-icon i,
.tech-icon svg {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Brand Colors - Original */
.tech-cloudflare {
    background: rgba(247, 130, 35, 0.12);
}
.tech-cloudflare i {
    color: #F78223;
}

.tech-aws {
    background: rgba(255, 153, 0, 0.12);
}
.tech-aws i {
    color: #FF9900;
}

.tech-nodejs {
    background: rgba(104, 160, 99, 0.12);
}
.tech-nodejs i {
    color: #68A063;
}

.tech-nextjs {
    background: rgba(0, 0, 0, 0.08);
}
.tech-nextjs svg {
    color: #000000;
}

.tech-socketio {
    background: rgba(0, 0, 0, 0.08);
}
.tech-socketio i {
    color: #010101;
}

.tech-mysql {
    background: rgba(0, 117, 143, 0.12);
}
.tech-mysql i {
    color: #00758F;
}

.tech-mongodb {
    background: rgba(71, 162, 72, 0.12);
}
.tech-mongodb i {
    color: #47A248;
}

.tech-letsencrypt {
    background: rgba(0, 60, 158, 0.12);
}
.tech-letsencrypt i {
    color: #003C9E;
}

.tech-redis {
    background: rgba(220, 54, 46, 0.12);
}
.tech-redis i {
    color: #DC362E;
}

.tech-nginx {
    background: rgba(0, 150, 57, 0.12);
}
.tech-nginx i {
    color: #009639;
}

.tech-ejs {
    background: rgba(185, 47, 89, 0.12);
}
.tech-ejs i {
    color: #B92F59;
}

.tech-ubuntu {
    background: rgba(221, 72, 20, 0.12);
}
.tech-ubuntu i {
    color: #DD4814;
}

/* Hover States with Brand Colors */
.tech-logo-item:hover .tech-cloudflare {
    background: #F78223;
    transform: scale(1.1);
}
.tech-logo-item:hover .tech-cloudflare i {
    color: var(--white);
}

.tech-logo-item:hover .tech-aws {
    background: #FF9900;
    transform: scale(1.1);
}
.tech-logo-item:hover .tech-aws i {
    color: var(--white);
}

.tech-logo-item:hover .tech-nodejs {
    background: #68A063;
    transform: scale(1.1);
}
.tech-logo-item:hover .tech-nodejs i {
    color: var(--white);
}

.tech-logo-item:hover .tech-nextjs {
    background: #000000;
    transform: scale(1.1);
}
.tech-logo-item:hover .tech-nextjs svg {
    color: var(--white);
}

.tech-logo-item:hover .tech-socketio {
    background: #010101;
    transform: scale(1.1);
}
.tech-logo-item:hover .tech-socketio i {
    color: var(--white);
}

.tech-logo-item:hover .tech-mysql {
    background: #00758F;
    transform: scale(1.1);
}
.tech-logo-item:hover .tech-mysql i {
    color: var(--white);
}

.tech-logo-item:hover .tech-mongodb {
    background: #47A248;
    transform: scale(1.1);
}
.tech-logo-item:hover .tech-mongodb i {
    color: var(--white);
}

.tech-logo-item:hover .tech-letsencrypt {
    background: #003C9E;
    transform: scale(1.1);
}
.tech-logo-item:hover .tech-letsencrypt i {
    color: var(--white);
}

.tech-logo-item:hover .tech-redis {
    background: #DC362E;
    transform: scale(1.1);
}
.tech-logo-item:hover .tech-redis i {
    color: var(--white);
}

.tech-logo-item:hover .tech-nginx {
    background: #009639;
    transform: scale(1.1);
}
.tech-logo-item:hover .tech-nginx i {
    color: var(--white);
}

.tech-logo-item:hover .tech-ejs {
    background: #B92F59;
    transform: scale(1.1);
}
.tech-logo-item:hover .tech-ejs i {
    color: var(--white);
}

.tech-logo-item:hover .tech-ubuntu {
    background: #DD4814;
    transform: scale(1.1);
}
.tech-logo-item:hover .tech-ubuntu i {
    color: var(--white);
}

/* Tech Name */
.tech-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.tech-logo-item:hover .tech-name {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .tech-stack-title {
        font-size: 1.375rem;
    }

    .tech-logos-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: var(--spacing-sm);
    }

    .tech-logo-item {
        min-height: 90px;
        padding: var(--spacing-sm);
    }

    .tech-icon {
        width: 40px;
        height: 40px;
    }

    .tech-icon i {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .tech-logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

