@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

html, body {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", serif;
    overflow-x: hidden;
}

/* ========================= */
/* NAVBAR                    */
/* ========================= */

.navbar {
    height: 8vh;
    padding: 0.5rem;
}

.navbar-brand img {
    margin-left: 30px;
}

.navbar-toggler {
    border: none;
    font-size: 1.25rem;
    color: #fff;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-toggler:focus, 
.btn-close:focus {
    box-shadow: none;
    outline: none;
}

.nav-link {
    color: #fff;
    font-weight: 200;
    position: relative;
    font-family: "Montserrat", serif;
    font-size: 1.5rem;
}

.nav-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #fff;
    visibility: hidden;
    transition: 0.1s ease-in-out;
}

.nav-link:hover::before, 
.nav-link.active::before {
    width: 100%;
    visibility: visible;
}

.offcanvas-body .nav-link {
    color: #fff !important;
    display: flex;
    justify-content: center;
}

.offcanvas-header {
    background-color: gray;
}

.offcanvas-header .btn-close {
    color: white !important;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/junel-mujar-51jzoz1dsro-unsplash.jpg') no-repeat center center/cover;
    filter: brightness(30%);
    z-index: -1;
}

.content {
    position: relative;
    color: white;
    text-align: left;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

h2 {
    font-size: 3rem;
    font-weight: 500;
}

h1 {
    font-size: 5rem;
    margin-bottom: 20px;
    font-family: "Montserrat", serif;
    font-weight: 700;
}

.buttons {
    display: flex;
    gap: 20px;
}

.button {
    padding: 10px 20px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.356);
    color: white;
    cursor: pointer;
    transition: background 0.3s;
    font-family: "Montserrat", serif;
    display: flex;
    justify-content: center;
    border-radius: 30px;
    width: 150px;
    height: 45px;
}

.button:hover {
    background: rgba(255, 255, 255, 0.11);
}

.sekce-projekty {
    background-color: rgb(88, 81, 81);
}

.moje-prace {
    text-align: center;
    font-size: 5rem;
    padding-top: 50px;
}

.projekty-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.projekty-buttons button {
    padding: 10px 20px;
    margin-bottom: 20px;
    border: none;
    border-radius: 5px;
    color: white;
    background: rgba(255, 255, 255, 0.356);
    cursor: pointer;
    transition: background 0.3s;
}

.projekty-buttons button:hover {
    background: rgba(255, 255, 255, 0.11);
}

.projekty-buttons a {
    color: white;
    text-decoration: none;
}

.scroll-down {
    position: absolute;
    bottom: 20px;  
    transform: translateX(-50%);
    font-size: 6vh;   
    color: #fff; 
    cursor: pointer;
    animation: bounce 2s infinite;
    z-index: 2;
    left: 50%;
}

.scroll-down i {
    font-size: 6rem; 
    display: inline-block;
}

.scroll-down:hover {
    color: rgba(255, 255, 255, 0.11);
}

p{
    text-align: center;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

@media (max-width: 390px) {
    .scroll-down {
        font-size: 5vh;  
        bottom: 10px;   
        left: 44%;
    }

    .scroll-down i {
        font-size: 5rem; 
    }

    h2 {
        font-size: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .buttons {
        flex-direction: column;
        gap: 10px;
    }
}