@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400..700&display=swap');

body {
    font-family: 'Pixelify Sans', cursive;
    margin: 0;
    font-size: 16px;
}

header {
    width: 1300px;
    max-width: 90%;
    margin: auto;
    display: grid;
    grid-template-columns: 20% 80%;
    grid-template-rows: 50px;
    align-items: center; 
    position: relative; 
    z-index: 10; 
}

header .logo img {
    height: 40px;
    padding-top: 30px;
}

header nav ul {
    display: flex;
    justify-content: end;
    align-items: center;
    z-index: 1; 
}

header nav ul li {
    list-style: none;
    margin-left: 60px;
    margin-top: 30px;
}

header nav ul li a {
    display: inline-block; 
    padding: 10px 20px; 
    background-color: #1100ff; 
    color: #fff; 
    text-decoration: none; 
    border-radius: 5px; 
    transition: background-color 0.3s ease; 
}

header nav ul li a:hover {
    background-color: #1e026b; 
}

.pozadi {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: -50px;
}

.pozadi .content {
    text-align: center;
    color: rgb(255, 255, 255);
    text-shadow: 0 10px 50px #630707;
    position: relative; 
    z-index: 5; 
}

.content .title {
    font-size: 8em;
}

@keyframes animationBlur {
    0%, 80% {
        filter: blur(0);
    }
    90% {
        filter: blur(5px);
    }
    100% {
        filter: blur(0);
    }
}

.pozadi .bgVideo {
    position: absolute;
    right: 0;
    bottom: 0;
    min-height: 100%;
    min-width: 100%; 
    z-index: -1; 
    filter: brightness(0.4);
}

#twsprojekty h2{
    color: white;
}
#pgmprojekty h2{
    color: white;
}

.work-container {
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
}

.work-item {
    flex: 0 0 30%; 
    margin: 10px; 
    position: relative; 
}

.project-button {
    display: block; 
    width: 100%; 
    height: 200px; 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    color: white; 
    text-decoration: none; 
    border-radius: 5px; 
    overflow: hidden; 
    transition: transform 0.3s ease; 
}

.project-button:hover {
    transform: scale(1.05); 
}

.project-button h3 {
    position: absolute; 
    bottom: 10px; 
    left: 50%; 
    transform: translateX(-50%); 
    background: rgba(0, 0, 0, 0.5); 
    padding: 10px; 
    border-radius: 5px; 
}

footer {
    background-color: rgba(0, 0, 0, 0.8); 
    color: white; 
    text-align: center;
    padding: 10px 0; 
    position: relative; 
    bottom: 0; 
    width: 100%; 

}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.8); 
}

.modal-content {
    margin: auto;
    display: block;
    width: 90%; 
    max-width: 600px; 
    height: auto; 
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

#caption {
    margin: auto;
    display: block;
    text-align: center;
    color: white;
    padding: 10px 0;
    height: 150px; 
}

#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: none; 
    justify-content: center;
    align-items: center;
    font-size: 24px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

#scrollToTopBtn:hover {
    background-color: #ff4747;
    transform: translateY(-5px);
}

#scrollToTopBtn.show {
    display: flex; 
}

html {
    scroll-behavior: smooth; 
}

@media (max-width: 1200px) {
    header {
        grid-template-columns: 30% 70%; 
    }

    header nav ul li {
        margin-left: 30px; 
    }
}