/* 1. GLOBAL RESET - Essential for responsive layouts */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Ensures padding doesn't increase element width */
}

body {
    font-family: sans-serif; /* Just for preview purposes */
    background-color: #f9f9f9;
}

.skills {
    padding: 60px 0; /* Add vertical breathing room */
    background-color: #fff;
}

/* 2. CONTAINER - Keeps content centered and adds side padding on mobile */
.container {
    max-width: 1200px; /* Maximum width on large screens */
    margin: 0 auto;    /* Centers the container */
    padding: 0 20px;   /* Safety padding for mobile edges */
    width: 100%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.divider {
    width: 60px;
    height: 4px;
    background-color: #3B82F6;
    margin: 0 auto;
    border-radius: 2px;
}

/* 3. THE GRID - Your logic was good, I just refined the gap */
.skills-flexing {
    display: grid;
    /* Magic Logic: 
       Create as many columns as fit. 
       Minimum width is 220px. 
       If space remains, share it properly (1fr).
    */
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
    gap: 30px; /* slightly larger gap for cleaner look */
}

.skill-div {
    background-color: #fff;
    padding: 30px 20px;
    border-radius: 12px; /* Slightly softer corners */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee; /* Subtle border for structure */
}

.skill-div:hover {
    transform: translateY(-10px); /* Moves up slightly */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.skills-icon {
    width: 80px;
    height: 80px;
    background-color: #eff6ff; /* Very light blue */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #3B82F6;
    font-size: 35px;
    transition: 0.3s;
}

.skill-div:hover .skills-icon {
    background-color: #3B82F6;
    color: #fff;
}

.skill-name {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

