main {
    max-width: 900px;
    margin: var(--spacing-lg) auto;
    padding: var(--spacing-md);
}

.profile-section {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--spacing-lg);
    align-items: start;
    padding: var(--spacing-md);
    background: var(--card-bg);
    border-radius: 0.5rem;
    margin-bottom: var(--spacing-lg);  
    
    & img {
        width: 250px;           
        height: 250px;         
        object-fit: cover;          
        object-position: center;    
        border-radius: 50%;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        transition: transform 0.3s ease;
        
        &:hover {
            transform: scale(1.05) rotate(3deg);
        }
    }
}

/* Wrapper for the profile pic and new links */
.profile-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem; /* Space between pic and links */
}

/* Styles for the links list */
.profile-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    gap: 1rem; /* Space between icons */
    margin: 0;
    padding: 0;
}

/* Styles for the individual links */
.profile-links li {
    padding: 0;
}

/* MODIFIED: Normal state now has transparent background and border */
.profile-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent; /* No background by default */
    border: 1px solid transparent; /* No border by default (keeps layout stable) */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    
    /* The <img> icon itself will be styled below */
}


/* Style for the <img> icons inside the links (dark by default) */
.profile-links a img {
    width: 26px;
    height: 26px;
    transition: filter 0.3s ease;
    
    /* This filter changes the black SVG to match var(--text-color) */
    /* filter: invert(14%) sepia(6%) saturate(1007%) hue-rotate(167deg) brightness(95%) contrast(87%); */
}



@media (max-width: 768px) {
    .profile-section {
        grid-template-columns: 1fr;
        text-align: center;
        
        & img {
            width: 200px;
            height: 200px;
            margin: 0 auto;
        }
    }
    
    .profile-links a {
        width: 40px;
        height: 40px;
    }

    .profile-links a img {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .profile-section img {
        width: 150px;
        height: 150px;
    }
}

/* Skills list with Flexbox */
.skills-section {
    margin-top: var(--spacing-md);
    
    & ul {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        list-style: none;
        
        & li {
            /* USE COLOR-MIX for skill tag background */
            background: color-mix(in srgb, var(--secondary-color), var(--primary-color) 40%);
            color: white;
            padding: 0.5em 1.5em;
            border-radius: 2rem;
            font-weight: 600;
            transition: all 0.3s ease;
            
            &:hover {
                /* USE COLOR-MIX for darker hover */
                background: color-mix(in srgb, var(--primary-color), black 20%);
                transform: translateY(-3px);
            }
        }
    }
}

/* Progress bars styling */
progress {
    width: 100%;
    height: 25px;
    border-radius: 0.5rem;
    margin: 0.5rem 0;
    appearance: none;
    
    &::-webkit-progress-bar {
        background-color: #e0e0e0;
        border-radius: 0.5rem;
    }
    
    &::-webkit-progress-value {
        background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
        border-radius: 0.5rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .profile-section {
        grid-template-columns: 1fr;
        text-align: center;
    }
}