html {
    scrollbar-gutter: stable;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h2 {
    text-shadow: 0 2px 8px rgba(0, 0, 3, 0.9);
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.7;
    padding: 0px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    gap: 20px;
}

.ascii-logo {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 4px;
    /* -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none; */
    white-space: pre;
    margin: 0;
    padding: 0;
    line-height: 1.1;
    /* overflow-x: auto; */
}

.logo {
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.23s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.logo:hover {
    text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.26);;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px;
    background-color: #1e1e1e;
    border-radius: 14px 14px 14px 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0px 0px 14px 14px;
}

.footer-container {
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
    color: #777;
    border-radius: 14px 14px 0px 0px;
}
.footer-links {
    display: flex;
    gap: 25px;
}
.footer-links a {
    color: #999;
    text-decoration: none;
}
.footer-links a:hover {
    color: #ff4d4d;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav a {
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.2s;
    padding: 6px 12px;
    border-radius: 6px;
}
.nav a:hover,
.nav a.active {
    background-color: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
}

.projects-section {
    margin-bottom: 50px;
}
.section-title {
    font-family: "Inter", sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #ffffff;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.project-card {
    width: 100%;
    height: 280px;
    background-color: #181818;
    border: 1px solid #333;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.23s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background-image: var(--card-cover, none);
    background-size: cover;
    background-position: center;
    transition: all 0.23s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.project-card:hover {
    scale: 1.03;
}

.project-card:hover::before {
    height: 100%;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.project-card .card-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(24, 24, 24, 1) 0%,
        rgba(24, 24, 24, 0.6) 50%,
        transparent 100%
    );
    z-index: 1;
}

.project-card .card-content {
    position: relative;
    z-index: 2;
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card h3 {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.project-card .card-spacer {
    flex-grow: 1;
}

.project-card .card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    .header-content {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    .nav {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
