/* Tech Stack Container */
.tech-stack-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding: 2rem 0;
    overflow: hidden;
    /* Prevent horizontal scrollbar on body */
}

.tech-category {
    position: relative;
    width: 100%;
}

.category-title {
    font-size: 1.5rem;
    color: #a5b4fc;
    margin-bottom: 1.5rem;
    padding-left: 5%;
    /* Align with container padding roughly */
    font-family: 'Special Gothic Expanded One', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(165, 180, 252, 0.3);
}

/* Track Wrapper */
.tech-track-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    cursor: grab;
}

.tech-track-wrapper:active {
    cursor: grabbing;
}

/* The Track */
.tech-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    will-change: transform;
    /* Animation will be handled by JS for better control over drag/resume */
}

/* Tech Items - NO BACKGROUND CARDS */
.tech-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    /* All background, border, and border-radius removed per user request */
    user-select: none;
    white-space: nowrap;
}

.tech-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-icon i,
.tech-icon svg {
    font-size: 1.8rem;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
    transition: transform 0.3s ease;
}

.tech-item:hover .tech-icon i,
.tech-item:hover .tech-icon svg {
    transform: scale(1.1);
}

.tech-item span {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #e2e8f0;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* Specific styling for Python gradient svg to match size */
.tech-icon svg {
    width: 30px;
    height: 30px;
}

/* Make GitHub and Unreal Engine icons white for visibility */
.tech-icon i.devicon-github-original,
.tech-icon i.devicon-unrealengine-original {
    color: #ffffff !important;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

.tech-item:hover .tech-icon i.devicon-github-original,
.tech-item:hover .tech-icon i.devicon-unrealengine-original {
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.6));
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .category-title {
        font-size: 1.2rem;
        padding-left: 1rem;
    }

    .tech-item {
        padding: 0.8rem 1.5rem;
    }

    .tech-item span {
        font-size: 0.9rem;
    }

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

    .tech-icon i,
    .tech-icon svg {
        font-size: 1.5rem;
    }
}