/* --- Základ --- */
body {
    margin: 0;
    font-family: "Times New Roman", Times, serif;
    background-color: black;
    color: white;
    min-height: 100vh;
}

/* --- Menu (nahoře vždy) --- */
.menu {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 40px;

    position: fixed;
    top: 0;
    left: 0;

    padding: 20px 0;
    background-color: black;
    z-index: 1000;
}

.menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.menu a:hover {
    color: #38e4c5;
}

/* --- Obsah --- */
.content {
    padding: 20px;
    max-width: 900px;
    margin: 110px auto 0 auto; /* odsazení pod menu */
}

/* --- Dlaždice --- */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.card, .card1 {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card {
    border: 1px solid white;
}

.card1 {
    border: 1px solid black;
}

.card img, .card1 img {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.card h3, .card1 h3 {
    margin: 10px;
}

.card p, .card1 p {
    margin: 0 10px 10px;
}

@media (hover: hover) {
    .card:hover {
        border-color: #faa9c2;
    }
}

/* --- Text --- */
.content p {
    line-height: 1.6;
    margin-bottom: 15px;
}

/* --- Vzdělání --- */
.vzdelani-item,
.podradek {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.vzdelani-item .rok {
    font-weight: bold;
    text-align: right;
}

.podradek .skola-detail {
    font-size: 0.9rem;
    color: #ccc;
}

/* --- Newsletter --- */
.newsletter {
    margin-top: 40px;
    max-width: 500px;
}

.newsletter form {
    display: flex;
    gap: 10px;
}

.newsletter input {
    flex: 1;
    padding: 10px;
    background: black;
    color: white;
    border: 1px solid white;
}

.newsletter button {
    padding: 10px 20px;
    background: rgb(11, 150, 154);
    border: none;
    color: white;
    cursor: pointer;
}

.newsletter button:hover {
    background: #0022cf;
}

/* --- Portfolio projekty --- */
.portfolio-list {
    display: flex;
    flex-direction: column;
}


.project {
    display: flex;
    align-items: center;
    gap: 25px;
    min-height: 45vh;   /* menší výška */
    padding: 25px;      /* menší vnitřní okraje */
    text-decoration: none;
    color: white;
    border: 1px solid black;
    transition: border 0.3s;
}

.project img {
    width: 60%;
    max-height: 55vh;
    object-fit: cover;
}

.project-text {
    max-width: 500px;
}

.project-text h3 {
    margin: 0 0 10px 0;
    font-size: 2rem;
}

.project-text p {
    margin: 0;
    line-height: 1.6;
}

@media (hover:hover) {
    .project:hover {
        border: 1px solid white;
    }
}

/* --- Mobil --- */
@media (max-width: 768px) {

    .menu {
        gap: 20px;
        padding: 15px 0;
    }

    .content {
        margin: 90px 15px 0 15px;
        max-width: 100%;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .card img, .card1 img {
        width: 95%;
        margin: auto;
    }

    .newsletter form {
        flex-direction: column;
    }

    .newsletter button {
        width: 100%;
    }

    .project {
        flex-direction: column;
        padding: 20px;
    }

    .project img {
        width: 100%;
        max-height: none;
    }
}