* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

.container {
    display: grid;
    grid-template-columns: 25% 75%;
    grid-template-rows: 25% 75%;
    gap: 2px;
}

.top-left {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    display: flex;
    background-color: #000099;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.top-left img {
    max-width: 100%;
    height: auto;
}

.top-right {
    background-color: #ee0000;
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
}

.bottom-left {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    background-color: #dd0000;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    padding: 10px;
}

.bottom-left a {
    text-decoration: none;
    color: black;
    margin: 10px 0;
}

.bottom-right {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    background-color: #999999;
    overflow-y: auto;
    padding: 20px;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.language-grid div {
    text-align: center;
}

.language-grid img {
    max-width: 100%;
    height: auto;
}

.languageBox{
    text-align: center;
    margin-bottom: 20px;
}

.CV-item img {
    width: 200px;
    height: 200px;

}

/* Responsive Layout for Mobile */
@media (max-width: 768px) {
    .container {
        display: flex;
        flex-direction: column;
        height: auto;
    }


    .top-left {
        order: 1;
        background-color: #000099;
        width: 100%;
        height: auto;
    }


	.top-left img {
	    max-width: 60%;
	    height: auto;
	}


    .top-right {
        order: 2;
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    .bottom-left {
        order: 3;
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }

    .bottom-right {
        order: 4;
        width: 100%;
        overflow: visible;
        padding: 10px;
    }

    .language-grid {
        grid-template-columns: 1fr;
    }
}
