/* Technologies Section Styles */
.tech-card {
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

#techCarousel {
    display: flex;
    transition: transform 0.7s ease-in-out;
}

.carousel-dot {
    transition: background-color 0.3s ease;
}

/* Ensure proper carousel item sizing */
@media (min-width: 1024px) {
    #techCarousel > div {
        width: calc(100% / 3);
    }
}

/* Modal styles */
#techModal {
    z-index: 9999;
}

/* Mobile card hover effects */
#technologies .lg\\:hidden .grid > div {
    transition: all 0.3s ease;
}

#technologies .lg\\:hidden .grid > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

#techCarousel img {
    object-fit: contain;
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90%;
}

@media (min-width: 768px) and (max-width: 1023px) {
    #mobile-tech-row1,
    #mobile-tech-row2 {
        gap: 6px;
    }
    
    #mobile-tech-row1 > div,
    #mobile-tech-row2 > div {
        height: 36px; /* Slightly taller on tablets */
    }
    
    #mobile-tech-row1 img,
    #mobile-tech-row2 img {
        padding: 2px;
    }
    
    #mobile-tech-row1 h3,
    #mobile-tech-row2 h3 {
        font-size: 0.75rem; /* text-sm */
        padding: 4px;
    }
}