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

body {
    background-color: #000;
    color: #fff;
    font-family: 'Minecraftia', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

#p5-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 830px;
    height: 333px;
    z-index: 0;
    pointer-events: none;
    background-color: transparent;
    flex-grow: 1;
    min-width: 0;
    flex-shrink: 1;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px;
}

.title-section {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 100px;
    gap: 40px;
    padding-top: 50px;
}

.title-text {
    padding-top: 10px;
    flex-shrink: 0;
}

h1 {
    font-size: 48px;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 18px;
    margin-bottom: 10px;
}

.description {
    font-size: 14px;
}

h2 {
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid #555;
    padding-bottom: 5px;
}

.content {
    display: flex;
    gap: 60px;
    margin-top: 40px;
}

.languages {
    flex: 1;
}

.language-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.language {
    background-color: #111;
    padding: 10px;
    text-align: center;
    border: 2px solid #333;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, filter 0.3s ease;
    font-weight: bold;
}

.language:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
    cursor: default;
}

.language:nth-child(1) {
    background: linear-gradient(45deg, #306998, #FFD43B, #646464);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 1px rgba(255,255,255,0.1);
}

.language:nth-child(2) {
    background: linear-gradient(135deg, 
        #E8E8E8 0%,
        #E8E8E8 25%,
        #A0A0A0 25%,
        #A0A0A0 50%,
        #C0C0C0 50%,
        #C0C0C0 75%,
        #B0B0B0 75%,
        #B0B0B0 100%
    );
    background-size: 16px 16px;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: pixelShimmer 3s steps(8) infinite;
    text-shadow: 
        0 0 1px rgba(255,255,255,0.2),
        0 1px 2px rgba(0,0,0,0.3);
    position: relative;
}

.language:nth-child(2)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.2), 
        transparent
    );
    transform: translateX(-100%);
    animation: shine 3s infinite;
}

.language:nth-child(3) {
    background: linear-gradient(45deg, #f89820, #E76F00, #5382A1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 1px rgba(255,255,255,0.1);
}

.projects {
    flex: 2;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.project {
    background-color: #111;
    padding: 15px;
    border: 2px solid #333;
    display: flex;
    flex-direction: column;
}

.project-image-container {
    width: 100%;
    height: 160px;
    overflow: hidden;
    margin-bottom: 15px;
    padding: 3px;
    background-color: #181818;
    border: 1px solid #333;
    position: relative;
}

.project-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    transition: transform 0.3s ease;
}

.project-image-container:hover .project-image {
    transform: scale(1.05);
}

.project h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.project p {
    margin-bottom: 15px;
    font-size: 12px;
    flex-grow: 1;
}

.project-link {
    display: inline-block;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    font-size: 12px;
    align-self: flex-start;
}

.project-link:hover {
    background-color: #444;
}

.social-links {
    font-size: 12px;
    margin-top: 5px;
    font-style: italic;
    color: #666;
}

.social-links a {
    color: #666;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 0.7;
}

.separator {
    margin: 0 5px;
    opacity: 0.7;
}

footer {
    margin-top: auto;
    padding-top: 40px;
    font-size: 12px;
    opacity: 0.7;
    text-align: center;
}

footer p {
    margin-bottom: 5px;
}

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

    h1 {
        font-size: 36px;
        text-align: center;
    }

    .subtitle, .description {
        text-align: center;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-image-container {
        height: 140px;
    }

    .title-section {
        margin-bottom: 60px;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding-top: 30px;
    }

    #p5-container {
        position: relative;
        flex-grow: 0;
        width: 90%;
        max-width: 400px;
        height: 250px;
        top: auto;
        right: auto;
        min-width: auto;
    }
}

@keyframes shimmer {
    0% { background-position: -200% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes shine {
    100% {
        transform: translateX(100%);
    }
}

@keyframes pixelShimmer {
    0% { background-position: 0 0; }
    100% { background-position: 32px 32px; }
}

.discord-button, .kofi-button {
    display: none;
}

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

#p5-container {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }