.btn-facebook {
    --btn-bg: #1877F2;
    background-color: var(--btn-bg);
    color: floralwhite !important;
}

.btn-twitter {
    --btn-bg: #1DA1F2;
    background-color: var(--btn-bg);
    color: floralwhite !important;
}

.btn-instagram {
    --btn-bg: #E4405F;
    background-color: var(--btn-bg);
    color: floralwhite !important;
}

.btn-linkedin {
    --btn-bg: #0077B5;
    background-color: var(--btn-bg);
    color: floralwhite !important;
}

.btn-github {
    --btn-bg: #333;
    background-color: var(--btn-bg);
    color: floralwhite !important;
}

.btn-youtube {
    --btn-bg: darkred;
    background-color: var(--btn-bg);
    color: floralwhite !important;
}

.btn-discord {
    --btn-bg: #7289DA;
    background-color: var(--btn-bg);
    color: floralwhite !important;
}

.btn-reddit {
    --btn-bg: #FF4500;
    background-color: var(--btn-bg);
    color: floralwhite !important;
}

.btn-tiktok {
    --btn-bg: #000000;
    background-color: var(--btn-bg);
    color: floralwhite !important;
}

.btn-artstation {
    --btn-bg: #2C2F3D;
    background-color: var(--btn-bg);
    color: floralwhite !important;
}

.dynamic-social-link {
    width: 70px;
    height: 70px;
    background-color: #2b303d;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--color-opacity-1);
    transition: background-color 0.3s ease, transform 0.3s ease;

    & .fs-5 {
        font-size: 2rem !important;
    }
}

.dynamic-social-link i {
    color: var(--font-color);
    position: relative;
    transition: transform 0.5s, color 0.5s;
}

.dynamic-social-link:hover i {
    transform: translateY(-8px);
    color: var(--font-color);
}

.dynamic-social-link::after {
    content: attr(title);
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%; /* Ensure it takes up the full width of the parent */
    font-size: 0.8rem;
    color: var(--font-color);
    opacity: 0;
    text-align: center; /* Align the text in the center */
    white-space: nowrap; /* Prevent text from wrapping */
    overflow: hidden; /* Hide any overflow */
    text-overflow: ellipsis; /* Add ellipsis if text overflows */
    transition: bottom 0.5s ease, opacity 0.5s ease;
}

.dynamic-social-link:hover::after {
    bottom: 1px;
    opacity: 1;
}

.content-wrapper {
    margin: 0;
}

.profile-wrapper {
    display: flex;
    flex-direction: row;
    margin: 2rem 0;
    justify-content: center;
    gap: 2rem;
}

.profile-card {
    position: relative;
    display: flex;
    flex-direction: column;
    word-wrap: break-word;
    background-clip: border-box;
    border-radius: var(--border-radius-md);
    padding: 1rem;
    background-color: #1a1d25;
    border: 2px solid var(--color-purple);
    flex: 1;
}

.profile-card .content-header {
    display: flex;
    flex-direction: column;
    align-items: center;

    & .position {
        color: darkgoldenrod;
    }
}

.profile-card .content-socials {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.skills-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Responsive columns */
    grid-template-rows: repeat(4, 1fr);
    gap: 1rem;
    align-items: start; /* Ensures items stay at the top */
    word-wrap: break-word;
    background-clip: border-box;
    border-radius: var(--border-radius-md);
    padding: 1rem;
    background-color: #1a1d25;
    border: 2px solid var(--color-purple);
    flex: 1;
}

.skill-card {
    height: fit-content;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--border-radius-md);
    background-color: rgba(255, 255, 255, 0.05); /* Slight contrast */
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
    position: relative;
}

.skill-card::after {
    content: attr(data-title); /* Use the custom attribute */
    position: absolute;
    bottom: 90%; /* Position above the element */
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-opacity-light-9);
    padding: 4px 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease-in-out;

    backdrop-filter: blur(3px);
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
}

.skill-card:hover {
    transform: scale(1.05);
    background-color: rgba(255, 255, 255, 0.1);
    cursor: default;

    &::after {
        opacity: 1;
        visibility: visible;
    }

}

.skill-card img {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.skill-info {
    flex: 1; /* Take remaining space */
    color: var(--font-color);
    min-width: 0; /* Ensures it respects the flex container */

}

.skill-info p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: darkgoldenrod;
    width: 100%;
    white-space: nowrap; /* Prevent wrapping */
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Show "..." if text is too long */

    & strong {
        color: var(--font-color);
    }
}

.tabs-container {
    display: flex;
    flex-direction: row;
    width: fit-content;
    margin: 0 auto;
}

.tab-link {
    display: inline-block;
    cursor: pointer;
    padding: 0.75rem 3rem;
    border-bottom: none;
    border-top-left-radius: var(--border-radius-md);
    border-top-right-radius: var(--border-radius-md);
    transition: all 0.3s ease; /* Smooth transition for all changes */
    position: relative;

    &:hover {
        color: #f3d377;
        background-color: #1d202a;
        box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}

.tab-link.active {
    background-color: #1d202a;
    box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-tabs {
    border-bottom: none;
    gap: 0.5rem;
}

.btn-load-more {
    grid-column: 2; /* Place in the middle column */
    justify-self: center; /* Center horizontally */
    align-self: center; /* Center vertically */
    color: var(--font-color);
    transition: background-color 0.25s ease-in-out;
    font-size: 0.9rem !important;
    display: inline-flex; /* Make the link behave like a button */
    align-items: center; /* Vertically align content */
    justify-content: center; /* Horizontally center content */
    padding: .375rem .75rem; /* Add some padding for consistent button size */
    text-decoration: none; /* Remove underline from the <a> tag */
    border: 1px solid var(--color-opacity-light-1);
    cursor: pointer; /* Make it look clickable */
    background-color: #3D3145;
}

.btn-load-more:hover {
    background-color: #332839;
    color: var(--font-color);
}


.repos-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    margin: 2rem auto;
    gap: 1rem;
    justify-items: center;

    & .content-card {
        max-width: 500px;
    }
}

.repo-content-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0.5rem 0 0.5rem;
    height: 100%;
}

.repo-content-body {
    & .repo-content-tags {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        margin-bottom: 0.5rem;
        padding: 0 1rem;
    }

    & .tag {
        color: lightgray;
        padding: 0 0.5rem;
        border-radius: var(--border-radius-sm);
    }

    & .tag:hover {
        cursor: help;
    }

    & .tag-public {
        background-color: #42496e;
    }

    & .tag-forked {
        background-color: #385b76;
    }
    

    & .tag-archived {
        background-color: darkred;
    }

    & .tag-stars i {
        color: darkgoldenrod;
    }

    & .tag-forks i {
        color: #53836a;
    }

    & .tag-language i {
        color: #627c7f;
    }
}

.repo-content-body .repo-content-summary {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    border-bottom: 1px solid var(--color-opacity-light-1);
    border-top: 1px solid var(--color-opacity-light-1);
    margin-bottom: 0.5rem;

    & h5 {
        font-size: 1.2rem;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        text-align: center;
        padding: 0;
        margin: 1rem 0 0 0;
    }

    & .repo-description {
        margin: 0 1rem;
        font-size: 1rem;
        text-align: center;
    }

    & .muted {
        color: var(--font-color);
        opacity: 0.5;
        font-size: 0.9rem;
        margin: 0 0 1rem 0;
        text-align: center;
    }
}

.repo-content-body .repo-content-summary .categories-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    
    & .category-badge {
        color: goldenrod;
        padding: 0 0.35rem;
        opacity: 0.8;
        font-size: 0.8rem;
        text-align: center;
        background-color: var(--color-opacity-light-1);
        border-radius: var(--border-radius-lg);
    }
}

.repo-content-body .repo-content-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.8rem;
    margin-top: 0.5rem;

    & a {
        text-decoration: none;
        font-weight: bold;
        border: 1px solid var(--color-purple);
        color: var(--font-color);
        padding: 0.5rem 1rem;
        border-radius: var(--border-radius-sm);
        transition: all 0.3s ease-in-out;
    }

    & a:hover {
        background-color: var(--color-purple);
        color: #fff;
    }
}

.repo-content-body .repo-content-license {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-top: 1rem;

    & p {
        display: inline-block;
        margin: 0.5rem 1rem;
    }
}

.repo-content-body .repo-content-dates {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-top: 1px solid var(--color-opacity-light-1);
    padding: 0.5rem 0.5rem 0 0.5rem;

    & p {
        color: var(--font-color);
        opacity: 0.5;
        font-size: 0.9rem;
    }
}

.projects-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    margin: 2rem auto;
    gap: 1rem;
    justify-items: center;

    & .content-card {
        max-width: 500px;
    }
}

.project-content-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem 0.5rem 0 0.5rem;
    height: 100%;
}

.project-content-details {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
    padding: 0 1rem;
    gap: 0.3rem;

    & .tag {
        color: lightgray;
        padding: 0 0.5rem;
        border-radius: var(--border-radius-sm);
        font-size: 0.75rem;
    }

    & .tag-public {
        background-color: #42496e;
    }

    & .tag-archived {
        background-color: darkred;
    }
}

.project-content-body .project-content-summary {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    border-bottom: 1px solid var(--color-opacity-light-1);
    border-top: 1px solid var(--color-opacity-light-1);
    margin-bottom: 0.5rem;

    & h5 {
        font-size: 1.2rem;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        text-align: center;
        padding: 0;
        margin: 1rem 0 0 0;
    }

    & .project-description {
        margin: 0 1rem;
        font-size: 1rem;
        text-align: center;
    }

    & .muted {
        color: var(--font-color);
        opacity: 0.5;
        font-size: 0.9rem;
        margin: 0 0 1rem 0;
        text-align: center;
    }
}

.project-content-body .project-content-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.8rem;
    margin-top: 0.5rem;

    & a {
        text-decoration: none;
        font-weight: bold;
        border: 1px solid var(--color-purple);
        color: var(--font-color);
        padding: 0.5rem 1rem;
        border-radius: var(--border-radius-sm);
        transition: all 0.3s ease-in-out;
    }

    & .btn-no-file {
        color: var(--font-color);

        &:hover {
            background-color: unset;
            cursor: not-allowed;
            color: var(--font-color);
        }
    }

    & a:hover {
        background-color: var(--color-purple);
        color: #fff;
    }

    & i {
        margin-right: 0.5rem;
    }
}

.project-content-body .project-content-collaborators {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
    font-size: 0.9rem;

    & .collab-title {
        color: var(--font-color) !important;
        display: block;
        width: 100%;
        text-align: center;
    }

    & p {
        display: inline-block;
        margin: 0.5rem 0.25rem;
        color: darkgoldenrod;
    }
}

.project-content-body .project-content-dates {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-top: 1px solid var(--color-opacity-light-1);
    padding: 0.5rem 0.5rem 0 0.5rem;

    & p {
        color: var(--font-color);
        opacity: 0.5;
        font-size: 0.9rem;
    }
}

/* Sub-section Blogs */
.blogs-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    margin: 2rem auto;
    gap: 1rem;
    justify-items: center;

    & .content-card {
        max-width: 500px;
    }
}

.blog-content-header {
    margin: 0 auto 1rem auto;
    width: 100%;

    & img {
        height: 230px;
        width: 100%;
        margin: 0 auto;
        object-fit: cover;
        border-radius: var(--border-radius-md);
        box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    }
}

.blog-content-body {
    margin: 0 auto;
    padding-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
    width: 100%;
}

.blog-content-body-info {
    width: 100%;
    display: flex;
    flex-direction: row;
    font-size: 0.8rem !important;
    opacity: 0.8;

    & .body-info-publish,
    & .body-info-counters {
        display: flex;
        flex-direction: row;
        gap: 1rem;
    }

    & .body-info-counters {
        margin: 0 0 0 auto;
    }

    & .bi-heart-fill {
        color: darkred;
    }

    & .bi-chat-dots-fill {
        color: cornflowerblue;
    }
}

.body-info-title {
    flex-grow: 1;
    width: 100%;
    text-align: center;
    transition: all 1s cubic-bezier(.23, 1, .32, 1);

    &:hover {
        color: var(--font-color);
    }

    &:hover .separator {
        border-color: var(--color-opacity-light-5);
        transform: translateX(5px); /* Moves right */
        animation: wiggle 0.3s ease-in-out infinite alternate;
    }

    & h3 {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Keyframes for a smooth left-right movement */
@keyframes wiggle {
    0% {
        transform: translateX(-4px); /* Moves left */
    }
    100% {
        transform: translateX(4px); /* Moves right */
    }
}

.blog-summary {
    font-size: 1rem;
    line-height: 1.5;
    text-align: justify;
    color: #ddd; /* Light text color */
    background: rgba(60, 50, 70, 0.4);
    padding: 0.8rem;
    border-left: 4px solid var(--color-purple); /* Accent color */
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.2s ease-in-out;
    height: 230px; /* Adjust based on your layout */
    overflow-y: auto;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: var(--color-purple) rgba(255, 255, 255, 0.1);

    & .bi-star-fill,
    & .updated-label {
        color: goldenrod;
    }
}

/* Scrollbar styling for WebKit-based browsers */
.blog-summary::-webkit-scrollbar {
    width: 6px;
}

.blog-summary::-webkit-scrollbar-thumb {
    background-color: var(--color-purple);
    border-radius: 3px;
}

.blog-summary::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

/* Hover effect */
.blog-summary:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}


@media (max-width: 1400px) {
    .content-wrapper {
        flex-direction: column; /* Stack items vertically */
    }

    .profile-card,
    .skills-wrapper {
        width: 100%; /* Make them take full width */
    }

    .skills-wrapper {
        grid-template-rows: repeat(3, 1fr);

        & p {
            font-size: 0.8rem;
        }
    }

}

@media (max-width: 1024px) {
    .tab-link {
        padding: 0.7rem 2rem;
    }

}

@media (max-width: 768px) {
    .skills-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .skill-card {
        flex-direction: column;
        text-align: center;
    }

    .skill-card img {
        width: 50px;
        height: 50px;
    }

    .tab-link {
        padding: 0.7rem 1rem;
    }

    .nav-tabs {
        gap: 0;
    }
}

