/* --- 1. Global & Background --- */
body {
    margin: 0;
    padding: 0;
    background-color: #121212;
    font-family: "Fira Code", monospace;
    color: #ddd;
    overflow-x: hidden;
}

#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* --- 2. Layout & Containers --- */
.container {
    max-width: 1000px;
    margin: auto;
    padding: 36px 16px;
    position: relative;
    z-index: 1;
}

.card {
    background-color: rgba(255, 255, 255, 0.075);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* --- 3. Navigation --- */
#nav-bar {
    display: flex;
    padding-bottom: 30px;
}

#nav-bar>h1 {
    margin: 0 10px;
    cursor: pointer;
}

/* --- 4. Typography --- */
h1 {
    margin: 0 0 16px;
    font-size: 2rem;
    color: #fff;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* --- 5. Icon Links & Brand Colors --- */
.icon-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.icon-row a {
    font-size: 1.3rem;
    transition: transform 0.2s;
    text-decoration: none;
}

.icon-row a:hover {
    transform: scale(1.2);
}

.fa-linkedin,
.fa-artstation {
    color: #49bfff;
}

.fa-github {
    color: #fff;
}

.fa-youtube,
.fa-itch-io {
    color: #ff6161;
}

.fa-envelope {
    color: #c062ff;
}

.fa-file {
    color: #53ff56;
}

/* --- 6. Projects Grid & Cards --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    background-color: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}

.project-card> :is(img, video) {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.project-card .content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.project-card h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.1rem;
}

.project-card .content p {
    font-size: 0.85rem;
    color: #a0a0a0;
    line-height: 1.5;
    margin: 10px 0 15px;
    font-weight: 400;
}

.project-card a {
    margin-top: 12px;
    color: #1abc9c;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.project-card a:hover {
    text-decoration: underline;
    opacity: 1;
}

/* --- 7. Tags, Stacks & GitHub Info --- */
.tech-stack span {
    background-color: #333;
    color: #ccc;
    font-size: 0.7rem;
    padding: 2px 6px;
    margin: 2px -5px 2px 2px;
    display: inline-block;
    border-radius: 4px;
}

.tech-stack span i {
    margin-right: 4px;
}

[class^="year-stack-"] {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

[class^="year-stack-"] span {
    color: #121212;
    font-size: 0.7rem;
    padding: 2px 8px;
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    font-weight: 600;
}

[class^="year-stack-"] span i {
    margin-right: 6px;
}

.year-stack-2026 span {
    background-color: #3ec6c9;
}

.year-stack-2025 span {
    background-color: #c5b53e;
}

.year-stack-2024 span {
    background-color: #c27146;
}

.year-stack-2023 span {
    background-color: #60bc3f;
}



/* --- 8. Footer --- */
footer {
    background-color: rgba(255, 255, 255, 0.075);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    max-width: 1000px;
    margin: 40px auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    font-size: 0.85rem;
    color: #8b949e;
}

footer p {
    margin: 0;
    white-space: nowrap;
}

.view-count-raw {
    font-family: "Fira Code", monospace;
    font-size: 0.85rem;
    color: #ccd6f6;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}

.dot-recent {
    width: 8px;
    height: 8px;
    background-color: #ff5e4d;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    display: inline-block;
    margin-right: 8px;
}

.dot-recent::after {
    content: "";
    inset: 0;
    background-color: #ff5e4d;
    border-radius: 50%;
    position: absolute;
    animation: pulse-red 2s infinite ease-out;
}

.commit-info i {
    margin-right: 8px;
}

@keyframes pulse-red {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    70% {
        transform: scale(3.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* --- 10. Extras --- */
.muted-subtitle {
    color: #888;
    font-size: 1rem;
    margin: 0 0 16px;
    font-weight: 400;
}

.badge-row {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.badge {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ddd;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge i {
    color: #fff;
}

.keyword {
    color: #fff;
    font-weight: 600;
    padding-bottom: 1px;
}

.status-wrapper {
    position: absolute;
    top: 18px;
    right: 16px;
    z-index: 5;
}

.status-wrapper a {
    opacity: 1;
    margin-top: 0;
}

.side-icon {
    color: #fff;
    font-size: 1.2rem;
    opacity: 0.9;
    filter: drop-shadow(0 0 5px rgba(165, 180, 252, 0.3));
    cursor: pointer;
}

.side-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

.update-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.053);
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.update-pill:hover {
    background: rgba(255, 255, 255, 0.06);
}

.update-pill i {
    margin-right: 8px;
    font-size: 0.8rem;
}

/* --- 11. Media Queries --- */
@media (max-width: 1012px) {
    footer {
        flex-direction: column;
        text-align: center;
        padding: 16px;
        margin: 20px 16px;
        gap: 12px;
    }

    footer p {
        white-space: normal;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.6rem;
    }

    p {
        font-size: 0.95rem;
    }

    .icon-row {
        justify-content: center;
    }

    .project-card>img {
        height: 140px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 12px;
    }

    .card {
        padding: 16px;
    }

    h1 {
        font-size: 1.4rem;
    }

    .project-card>img {
        height: 120px;
    }
}