/* ===== TECH STACK SECTION ===== */

.tech-stack-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

body.dark-mode .tech-stack-section {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.tech-stack-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.05) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.tech-stack-content {
    position: relative;
    z-index: 1;
}

.tech-category {
    margin-bottom: 48px;
}

.category-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 24px;
    text-align: center;
}

.tech-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 24px;
    align-items: center;
    justify-items: center;
}

.tech-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    min-height: 140px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

body.dark-mode .tech-logo-item {
    background: #1e293b;
    border-color: #334155;
}

.tech-logo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.1), transparent);
    transition: left 0.6s;
}

.tech-logo-item:hover::before {
    left: 100%;
}

.tech-logo-item:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.2);
}

body.dark-mode .tech-logo-item:hover {
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.4);
}

.tech-logo-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.tech-logo-item:hover .tech-logo-img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.tech-logo-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
}

.tech-logo-category {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

/* Marquee Animation Alternative */
.tech-logos-scroll {
    display: flex;
    gap: 24px;
    animation: scroll 20s linear infinite;
    padding: 20px 0;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.tech-logos-scroll:hover {
    animation-play-state: paused;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .tech-logos-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 16px;
    }

    .tech-logo-item {
        min-height: 120px;
        padding: 16px;
    }

    .tech-logo-img {
        width: 48px;
        height: 48px;
    }

    .tech-stack-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .tech-logos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}