body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f8f9fa;
    line-height: 1.6;
}

.hero {
    background-color: #000;
    color: #00ced1;
    text-align: center;
    padding: 50px 20px;
}

.hero h1 {
    font-size: 2.5em;
    margin: 0;
}

.hero p {
    margin: 10px 0 20px;
}

.social-links a {
    color: #00ced1;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.social-links a:hover {
    color: #008b8b;
}

main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    margin-bottom: 40px;
}

section h2 {
    font-size: 1.8em;
    border-bottom: 3px solid #00ced1;
    display: inline-block;
    margin-bottom: 20px;
}

.profile {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    flex-wrap: wrap;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #00ced1;
    margin-bottom: 15px;
    margin-right: 10px;
}

.profile div {
    flex: 1;
}

@media (max-width: 768px) {
    .profile {
        flex-direction: column;
        text-align: center;
    }

    .profile div {
        flex: none;
    }
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.skill {
    background-color: #e0e0e0;
    padding: 15px 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


.skill:nth-child(5),
.skill:nth-child(11),
.skill:nth-child(12),
.skill:nth-child(13) {
    background-color: #00ced1; /* Pokročilý */
    color: #fff;
}

.skill:nth-child(1),
.skill:nth-child(3),
.skill:nth-child(4),
.skill:nth-child(6),
.skill:nth-child(7),
.skill:nth-child(8),
.skill:nth-child(9),
.skill:nth-child(10),
.skill:nth-child(14) {
    background-color: #7fffd4; /* Mierne pokročilý */
}

.skill:nth-child(2) {
    background-color: #b0e0e6; /* Základy */
}

.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills-list li {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f4f4f4;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.skills-list li strong {
    color: rgba(26, 145, 179, 0.65);
    font-weight: bold;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-advanced {
    background-color: #00ced1;
}

.legend-intermediate {
    background-color: #7fffd4;
}

.legend-basic {
    background-color: #b0e0e6;
}

.education-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.education-item {
    background-color: #fff;
    padding: 15px 20px;
    border-left: 5px solid #00ced1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.education-item h3 {
    margin: 0;
    font-size: 1.2em;
}

.education-item span {
    color: #999;
    font-size: 0.9em;
}

.download-btn {
    display: inline-block;
    background-color: #00ced1;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-left: 20px;
}

.divider {
    border: none;
    border-top: 2px solid #ccc;
    margin: 20px 0;
    width: 100%;
}

.download-btn:hover {
    background-color: #008b8b;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #000;
    color: #fff;
}
