
.sidebar {
    width: calc(100vw + 500px);
    background-color: var(--secondary-bg);
    padding: 2.5rem;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-left: -100vw;
    padding-left: calc(100vw + 2.5rem);
}

.sidebar::-webkit-scrollbar {
    display: none;
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.6rem;
    margin-top: 3rem;
    position: relative;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    transition: opacity 0.5s ease, border-radius 0.3s ease;
    max-width: 120px;
    max-height: 120px;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-photo canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.game-of-life-container {
    margin-bottom: 1rem;
}

.contact-info {
    margin-bottom: 2rem;
    margin-top: 1rem;
    position: relative;
    z-index: 5;
    width: 100%;
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
    flex-wrap: wrap;
    gap: 5px;
}

.contact-item span {
    font-size: 0.8rem;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
}

.skills-section {
    margin-bottom: 15px;
}

.skill-category {
    margin-bottom: 10px;
}

.skill-title {
    margin-bottom: 20px;
    font-weight: 600;
}

.skill-title svg {
    display: block;
    margin-bottom: 10px;
    color: var(--accent);
}

.skill-list {
    font-size: 0.8rem;
    margin-bottom: 5px;
    line-height: 1.3;
    list-style: none;
    color: var(--secondary-text);
    word-wrap: break-word;
}

@media (max-width: 1345px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 2rem;
        overflow-y: visible;
    }

    .game-of-life-container {
        width: 300px !important;
        align-self: right !important;
    }

    .game-description {
        width: 300px !important;
        align-self: right !important;
    }

    .profile {
        flex-direction: column;
        align-items: center;
    }

    .profile-photo {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .contact-info {
        margin-top: 1.5rem;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1.5rem;
        overflow-y: visible;
    }

    .profile {
        flex-direction: column;
        align-items: center;
        margin-top: 1.5rem;
    }

    .profile-photo {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .contact-info {
        margin-bottom: 1.5rem;
        margin-top: 1.5rem;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .sidebar {
        padding: 1rem;
    }

    .contact-item span {
        font-size: 0.75rem;
    }

    .contact-info {
        margin-top: 2rem;
    }
}