:root {
    --bg-color: #0a0a1f;
    --card-bg: rgba(20, 20, 45, 0.4);
    --primary-text: #e0e0e0;
    --secondary-text: #a0a0c0;
    --glow-color: rgba(100, 150, 255, 0.6);
    --border-radius: 15px;
}

body {
    background-color: var(--bg-color);
    color: var(--primary-text);
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 1rem;
    overflow-x: hidden;
}

.background-wave {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #0a0a1f, #1a1a3f, #0d0d2b);
    background-size: 200% 200%;
    animation: gradient-wave 20s ease infinite;
}

@keyframes gradient-wave {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.container {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: auto;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.projects {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 0 20px var(--glow-color);
    animation: wiggle 0.4s ease-in-out;
}

@keyframes wiggle {

    0%,
    100% {
        transform: translateY(-1px) scale(1.01) rotate(0deg);
    }

    25% {
        transform: translateY(-1px) scale(1.01) rotate(-0.3deg);
    }

    75% {
        transform: translateY(-1px) scale(1.01) rotate(0.3deg);
    }
}

.profile {
    text-align: center;
}

.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--glow-color);
}

.profile h1 {
    margin: 0.5rem 0;
}

.profile p {
    color: var(--secondary-text);
    font-size: 0.9rem;
}

.lang-bars {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.lang-item {
    font-size: 0.9em;
}

.bar-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    height: 18px;
    padding-left: 5px;
}

.bar {
    background: var(--glow-color);
    height: 10px;
    border-radius: 5px;
}

.lang-item span:last-child {
    font-size: 0.8em;
    color: var(--secondary-text);
}

.project-card {
    cursor: pointer;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.project-card h2 {
    margin: 0;
    font-size: 1.2rem;
}

.description {
    color: var(--secondary-text);
}

.readme-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.project-card.expanded .readme-content {
    /* max-height: 800px; */
    max-height: fit-content;
    transition: max-height 0.5s ease-in;
}

.readme-inner {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
    padding-top: 1rem;

    line-height: 1.6;
}

.readme-inner img {
    max-width: 100%;
    border-radius: 8px;
}

.button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--glow-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.2s;
}

.button:hover {
    background: rgba(120, 170, 255, 0.8);
}

.test,
#refresh-btn {
    padding: 0px;
    place-items: center;
}

#refresh-bar {
    background: linear-gradient(270deg, #0f2027, #203a43, #2c5364, #203a43);
    animation: waveBGBtn 30s ease infinite;
    place-items: center;
}

@keyframes waveBGBtn {
    0% {
        background-position-x: 0%;
    }

    50% {
        background-position-x: 100%;
    }

    100% {
        background-position-x: 0%;
    }
}

#refresh-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* This centers the bar under the text */
}

#refresh-text {
    margin: 10px 0px 10px 0px;
}

#refresh-bar {
    margin: 0px 0px 10px 0px;
    width: 70%;
    /* This is key! It makes the bar fill the parent container's width */
    height: 5px;
    /* Adjust height for desired thickness */
    background: linear-gradient(270deg, #0f2027, #203a43, #2c5364, #203a43);
    background-size: 200% 100%;
    /* Allows the gradient to be animated */
    animation: waveBGBtn 1s ease infinite;
    /* The animation you already have */
    border-radius: 5px;
    /* Optional: adds rounded corners */
    display: none;
}

@keyframes waveBGBtn {
    0% {
        background-position-x: 0%;
    }

    50% {
        background-position-x: 100%;
    }

    100% {
        background-position-x: 0%;
    }
}

.stats.card a {
    text-decoration: none;
}

.project-filters {
    /* width: fit-content; */
    justify-content: center;
    display: flex;
    padding: 0px;
}

.project-filters .button {
    margin-top: 0%;
}

.project {
    display: none;
}

.script {
    display: block;
}

.project-filters li {
    list-style: none;
}

.code-container {
    background-color: #2d2d2d;
    /* Dark background */
    color: #ccc;
    /* Light text color */
    padding: 1em;
    border-radius: 5px;
}

.keyword {
    color: #f92672;
}

/* A bright pink for keywords */
.string {
    color: #e6db74;
}

/* A yellow for strings */
.comment {
    color: #75715e;
}

/* A muted gray for comments */
.function {
    color: #66d9ef;
}

/* A light blue for function names */


.card-header h2 {
    text-align: center;
    /* Centers the heading text */

}

.webpage-list {
    /* display: flex; Enables Flexbox on the parent container */
    list-style: none;
    /* Removes the default bullet points */
    padding: 0;
    /* Removes default padding */
    justify-content: space-around;
    /* Distributes items evenly with space between them */
    align-items: center;
    /* Aligns items vertically in the center */
}

.webpage-item {
    flex: 1;
    /* Makes each item take up an equal amount of space */
    margin: 0 10px;
    /* Adds space between the items */
    /* Add any other styling for the individual cards here */
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.tooltip {
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1000;
    white-space: nowrap;
}

.tooltip-hidden {
    display: none;
}

.contact {
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    padding: 2px;
}