@keyframes popUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ID Card Container */
.id-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    max-width: 900px;
    margin: 40px auto;
    animation: popUp 0.5s ease-out;
}

/* ID Card Details Section */
.id-details {
    max-width: 100%; /* Full width for text */
    line-height: 1.6;
    color: #333;
}

.id-details h2 {
    margin-bottom: 15px;
    font-size: 2rem;
    font-weight: 700;
    color: rgb(88, 102, 255);
    text-align: center;
}

.skill-category p {
    font-size: 1.1rem;
    color: #333;
    margin: 10px 0;
}

.skill-category strong {
    color: rgb(88, 102, 255);
}

.id-details hr {
    border: 1px solid black;
    width: 80%;
    margin: 20px auto;
}

.section__container {
    text-align: center;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skills-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Allow wrapping if the screen is small */
    gap: 20px; /* Space between categories */
    max-width: 900px;
    width: 100%; /* Ensure it takes full width of container */
    margin-top: 20px;
}

.skill-category {
    flex: 1;
    min-width: 250px; /* Ensure they don't shrink too much */
  
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

/* --- Mobile-specific styles --- */
@media (max-width: 768px) {
    .id-card {
        margin-top: 20px; /* Adjust top margin for smaller screens */
        padding: 15px; /* Reduce padding */
        max-width: 95%; /* Allow it to take more width */
    }

    .id-details h2 {
        font-size: 1.5rem; /* Smaller heading font size */
        margin-bottom: 10px;
    }

    .skill-category p {
        font-size: 1rem; /* Slightly smaller paragraph font size */
    }

    .skills-row {
        flex-direction: column; /* Stack skill categories vertically */
        align-items: center; /* Center items when stacked */
        gap: 15px; /* Reduce gap between stacked categories */
    }

    .skill-category {
        min-width: unset; /* Remove minimum width constraint */
        width: 90%; /* Make categories take up more width */
        padding: 10px; /* Reduce padding */
    }

    .id-details hr {
        width: 90%; /* Adjust hr width for smaller screens */
        margin: 15px auto;
    }

    .section__container {
        padding: 20px; /* Reduce overall section padding */
    }
}

/* Further adjustments for very small mobile screens */
@media (max-width: 480px) {
    .id-card {
        padding: 10px;
        margin: 15px auto;
    }

    .id-details h2 {
        font-size: 1.3rem;
    }

    .skill-category p {
        font-size: 0.9rem;
    }

    .skill-category {
        width: 100%; /* Full width for categories on very small screens */
    }
}
