/* WORKING: Social Media Icons - Aggressive Standardization */
.social-media {
    margin: 2rem 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

/* FORCE ALL ICONS TO BE IDENTICAL INITIALLY */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5 !important;
    color: #666 !important;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

/* FORCE ALL CHILD ELEMENTS TO BE GRAY */
.social-icon * {
    color: #666 !important;
    fill: #666 !important;
    transition: all 0.3s ease !important;
}

/* FORCE ALL IMAGES TO BE GRAY */
.social-icon img {
    filter: grayscale(100%) brightness(0.6) !important;
    transition: filter 0.3s ease !important;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* FORCE ALL SVG PATHS TO BE GRAY */
.social-icon svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease !important;
}

.social-icon svg path,
.social-icon svg * {
    fill: #666 !important;
    transition: fill 0.3s ease !important;
}

/* BASE HOVER EFFECT */
.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    color: white !important;
}

/* HOVER: FORCE WHITE FOR ALL ELEMENTS */
.social-icon:hover *,
.social-icon:hover i,
.social-icon:hover svg,
.social-icon:hover svg path,
.social-icon:hover svg * {
    color: white !important;
    fill: white !important;
}

/* HOVER: FORCE WHITE FOR IMAGES */
.social-icon:hover img {
    filter: brightness(0) invert(1) !important;
}

/* BRAND COLORS ON HOVER */
.social-icon[title="Twitter"]:hover {
    background-color: #1DA1F2 !important;
}

.social-icon[title="LinkedIn"]:hover {
    background-color: #0077B5 !important;
}

.social-icon[title="GitHub"]:hover {
    background-color: #333333 !important;
}

.social-icon[title="HackerRank"]:hover {
    background-color: #2EC866 !important;
}

.social-icon[title="Datacamp"]:hover {
    background-color: #03EF62 !important;
}

.social-icon[title="Bluesky"]:hover {
    background-color: #00A8E8 !important;
}

.social-icon[title="WhatsApp"]:hover {
    background-color: #25D366 !important;
}

.social-icon[title="Kaggle"]:hover {
    background-color: #20BEFF !important;
}

.social-icon[title="HuggingFace"]:hover {
    background-color: #FFD21E !important;
}

.social-icon[title="Mail"]:hover {
    background-color: #EA4335 !important;
}

.social-icon[title="Resume/CV"]:hover {
    background-color: #FF6B6B !important;
}

.social-icon[title="Try Hack Me"]:hover {
    background-color: #C11E1E !important;
}

.social-icon[title="ORCID"]:hover {
    background-color: #A6CE39 !important;
}

.social-icon[title="Keyoxide"]:hover {
    background-color: #4078C0 !important;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .social-icons {
        gap: 0.9rem;
    }

    .social-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.1rem;
    }

    .social-icon img,
    .social-icon svg {
        width: 18px !important;
        height: 18px !important;
    }
}

@media (max-width: 768px) {
    .social-icons {
        gap: 0.8rem;
    }

    .social-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 1rem;
    }

    .social-icon img,
    .social-icon svg {
        width: 17px !important;
        height: 17px !important;
    }

    .social-icon:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
    }
}

@media (max-width: 480px) {
    .social-icons {
        gap: 0.6rem;
    }

    .social-icon {
        width: 34px !important;
        height: 34px !important;
        font-size: 0.95rem;
    }

    .social-icon img,
    .social-icon svg {
        width: 16px !important;
        height: 16px !important;
    }

    .social-icon:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
}