/* 
 * Technology Section Fixes
 * This file contains fixes for the technologies section to ensure proper display on all screen sizes
 */

/* Fix for tech-simple-scroll container */
.tech-simple-scroll-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
}

/* Fix for tech-simple-scroll-wrapper */
.tech-simple-scroll-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    padding: 1rem 0;
}

/* Fix for tech-simple-scroll */
.tech-simple-scroll {
    display: flex;
    gap: 1rem;
    width: max-content;
    padding: 0.5rem 0;
    box-sizing: border-box;
}

/* Fix for tech-simple-item */
.tech-simple-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    max-width: 100px;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Ensure proper spacing between items */
.tech-simple-scroll .tech-simple-item {
    margin-right: 0.5rem;
}

/* Fix for icon and text alignment */
.tech-simple-item i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.tech-simple-item span {
    font-size: 0.8rem;
    text-align: center;
    word-break: break-word;
}

/* Mobile-specific fixes */
@media (max-width: 768px) {
    .tech-simple-scroll-container {
        padding: 0;
        margin: 0 auto;
        width: 100%;
    }
    
    .tech-simple-scroll-wrapper {
        padding: 0.5rem 0;
        margin: 0;
        width: 100%;
    }
    
    .tech-simple-scroll {
        padding: 0.5rem 0.5rem;
        gap: 0.75rem;
    }
    
    .tech-simple-item {
        min-width: 90px;
        max-width: 90px;
        padding: 0.75rem;
    }
    
    .tech-simple-item i {
        font-size: 1.75rem;
    }
    
    .tech-simple-item span {
        font-size: 0.7rem;
    }
}

/* Small mobile fixes */
@media (max-width: 480px) {
    .tech-simple-scroll-container {
        overflow-x: hidden;
    }
    
    .tech-simple-scroll-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .tech-simple-scroll-wrapper::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }
    
    .tech-simple-scroll {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .tech-simple-item {
        min-width: 80px;
        max-width: 80px;
        padding: 0.75rem 0.5rem;
    }
    
    .tech-simple-item i {
        font-size: 1.5rem;
    }
    
    /* Prevent animation on mobile to avoid overflow issues */
    .tech-simple-scroll {
        animation: none !important;
    }
}
