::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-thumb {
    background: #2f3745;
    border-radius: 10px;
}

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

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(-60px, -60px);
    }
}

body {
    font-family: "Space Mono", Arial, Helvetica, sans-serif;
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    line-height: 1.6;
    background-color: #0c1512;
    color: #e6e6e6;
}

h1,
h2,
h3 {
    margin-bottom: 10px;
    color: #ffffff;
}

h2 {
    margin-top: 50px;
    border-bottom: 1px solid #2a2f3a;
    padding-bottom: 8px;
}

a {
    color: #62f8c4;
    text-decoration: none;
    transition: 0.2s ease;
}

a:hover {
    text-decoration: underline;
    color: #e7fef6;
}

.section {
    margin-bottom: 40px;
}

.section-full {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 40px;
    padding-right: 40px;
}

.skills-grid {
    display: grid;
    gap: 30px;
}

.main-projects {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 30px 0 20px 0;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.main-projects::-webkit-scrollbar {
    height: 8px;
    display: none;
}

.main-projects::-webkit-scrollbar-track {
    background: #141c18;
    border: 1px solid #1f2a23;
}

.main-projects::-webkit-scrollbar-thumb {
    background: #2f3745;
    border-radius: 10px;
}

.main-project-card {
    min-width: 380px;
    max-width: 380px;
    background: #141c18;
    border: 1px solid #1f2a23;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, border 0.25s ease;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.main-project-card:hover {
    border: 1px solid #2f3745;
}

.main-project-images {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: 200px;
    gap: 2px;
    overflow: hidden;
    border-bottom: 1px solid #222833;
}

.main-project-images div {
    position: relative;
    overflow: hidden;
}

.main-project-images div:first-child {
    grid-row: span 2;
}

.main-project-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.main-project-images>* {
    overflow: hidden;
}

.main-project-images div:hover {
    z-index: 10;
}

.main-project-images div:hover img {
    transform: scale(1.1);
}

.main-project-images.single-image {
    display: block;
    height: 200px;
}

.main-project-images.single-image div {
    width: 100%;
    height: 100%;
}

.main-project-images.single-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.main-project-content {
    padding: 18px;
}

.main-project-content h3 {
    margin-bottom: 10px;
}

.main-project-content p {
    margin-bottom: 10px;
}

.projects-list {
    list-style: none;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.project {
    display: flex;
    gap: 20px;
    background: #141c18;
    border: 1px solid #1f2a23;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.2s ease, border 0.2s ease;
}

.project:hover {
    border: 1px solid #2f3745;
}

.project-image {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #2a2f3a;
    flex-shrink: 0;
}

.project h3 {
    margin-bottom: 8px;
}

.project p {
    margin-bottom: 8px;
}

.tech-stack {
    font-style: italic;
    color: #9aa4b2;
}

.commits {
    margin-top: 8px;
    padding-left: 18px;
    color: #c9d1d9;
}

.commits li {
    margin-bottom: 4px;
}

.project p a {
    margin-right: 15px;
}

ul {
    margin-top: 8px;
}

hr {
    border: none;
    border-top: 1px solid #2a2f3a;
    margin: 40px 0;
}

@media (max-width: 768px) {
    .project {
        flex-direction: column;
    }

    .project-image {
        width: 100%;
        height: 180px;
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}
