/* Skill Cards Animation and Layout */
.skill-category {
    background: rgba(52, 73, 94, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    transition: all 0.5s ease;
    cursor: pointer;
    position: relative;
    width: 100%;
    max-width: 800px;
}

@media screen and (max-width: 768px) {
    .skills-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 20px;
        padding: 20px 0;
        scroll-padding: 20px;
        margin: 0 -20px;
        padding: 20px;
    }

    .skill-category {
        flex: 0 0 85%;
        scroll-snap-align: start;
        margin: 0;
        transform: none !important;
        opacity: 1 !important;
        min-width: 280px;
    }

    /* Hide scrollbar but keep functionality */
    .skills-grid::-webkit-scrollbar {
        display: none;
    }
    .skills-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    /* Ensure proper spacing and alignment */
    .skills-content {
        padding: 0 20px;
    }

    .skill-category:first-child {
        margin-left: 0;
    }

    .skill-category:last-child {
        margin-right: 0;
    }
}

/* Desktop styles */
@media screen and (min-width: 769px) {
    .skills-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
        padding: 20px 0;
    }

    .skill-category {
        margin: 0;
    }
}

/* Common styles for both mobile and desktop */
.skill-category h3 {
    color: #ECF0F1;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateX(5px);
}

.skill-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-name {
    color: #ECF0F1;
    font-size: 1.1rem;
}

.skill-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(to right, #34495E, #7F8C8D);
    border-radius: 3px;
    transition: width 0.5s ease;
}