body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #1c1c1c;
    color: #ffeadb;
}

a {
    color: #7a94b3;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2 {
    color: #2ec27e;
}

/* === ROZVRŽENÍ STRÁNKY === */
.container {
    display: flex;
    max-width: 1200px;
    margin: 50px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
}


/* === LEFT PANEL === */
.left-panel {
    width: 280px;
    background-color: #3a4252;
    padding: 30px 20px;
    text-align: center;
}

.profile-img {
    width: 100%;
    border-radius: 40px;
    margin-bottom: 20px;
}

.left-panel h2 {
    margin: 10px 0;
    font-size: 22px;
}

.info-line {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

.info-line .icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    filter: brightness(0) invert(1);
}

/* === RIGHT PANEL === */
.right-panel {
    flex: 1;
    padding: 40px 50px;
    background-color: #2b2b2b;
}

/* === ABOUT === */
.about {
    margin-bottom: 40px;
}

.about p {
    font-size: 16px;
    line-height: 1.6;
}

.about p span {
    color: #cf6f70;
}
/* === PROJECTS === */
.projects {
    margin-bottom: 40px;
}


.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
    align-items: start;
}

.project-box {
    background-color: #2a2a2a;
    border: 1px solid #3a4252;
    padding: 15px;
    min-height: 95px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
}

.project-box:hover {
    background-color: #333;
}

.project-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 14px;
    color: #7a94b3;
}

.more-icon {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.project-box.expanded .more-icon {
    transform: rotate(180deg);
}

.project-box a {
    font-size: 18px;
    font-weight: bold;
}

.project-box p {
    margin-top: 8px;
    margin-bottom: 0px;
    font-size: 14px;
    color: #b4b7c0;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lang-tag {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #b4b7c0;
}

.lang-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border-color: #ffeadb;
    border-style: solid;
    border-width: 1px;
    display: inline-block;
    margin-right: 6px;
}

.project-details {
    display: flex;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #3a4252;
    gap: 15px;
}

.project-details img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.details-text h4 {
    margin: 0;
    color: #2ec27e;
}

.details-text p {
    color: #b4b7c0;
    font-size: 14px;
    margin-top: 5px;
}

.details-text .last-commit {
    font-style: italic;
    font-size: 12px;
    color: #797979;
}


/* === FULL IMAGE VIEW === */
.image-overlay {
    display: flex;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(28, 28, 28, 0.9);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.image-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.image-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 0 20px #000;
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}

.image-overlay.active img {
    transform: scale(1);
}



/* === MEDIA QUERIES === */

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        margin: 0;
        box-shadow: none;
        border-radius: 0;
    }

    .left-panel {
        width: 100%;
        padding: 20px;
        border-bottom: 2px solid #2b2b2b;
    }

    .right-panel {
        padding: 20px;
    }

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

    .project-details {
        flex-direction: column;
        align-items: center;
    }

    .project-details img {
        width: 100%;
        height: auto;
    }
}
