html {
    touch-action: manipulation;
}

body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

.navbar {
    top: 50px;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    transition: background-color 0.5s ease;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.navbar-menu {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.navbar-menu li {
    margin: 0 20px;
}

.navbar-menu li a {
    position: relative;
    color: white;
    text-decoration: none;
    font-weight: 100;
    font-size: 1.2rem;
    color: black;
}

.navbar-menu li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: black;
    transition: width 0.3s ease;
}

.navbar-menu li a:hover::after {
    width: 100%;
}

.navbar ul li:last-child {
    margin-right: 110px;
}

.navbar-logo {
    margin-left: 50px;
}

.logo {
    width: 120px;
}

.call-btn {
    display: none;
}

@media screen and (max-width: 768px) {

    .header-desktop {
        display: none;
    }

    .header-mobile {
        display: block;
    }

    .contact-info-container {
        display: none;
    }

    .navbar-logo {
        margin-right: 30px;
        margin-left: 30px;
    }

    .logo {
        width: 80px;
    }

    .navbar {
        position: relative;
        top: 0;
        overflow: hidden;
    }

    .navbar-menu li {
        margin: 0 10px;
    }

    .navbar-menu li a {
        font-size: 1rem;
    }

    .navbar ul li:last-child {
        margin-right: 50px;
    }

    .call-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #FBBF24;
        height: 70px;
        width: 70px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        z-index: 100;
    }

    .call-btn-icon {
        width: 55%;
    }
}

@media only screen and (min-width:769px) and (max-width: 1224px) {
    .navbar-menu li {
        margin: 0 25px;
    }

    .navbar-menu li a {
        font-size: 1.5rem;
    }

    .navbar ul li:last-child {
        margin-right: 50px;
    }

    .navbar-logo {
        margin-left: 70px;
    }
}

.section-portfolio {
    margin-top: 5%;
    margin-left: 5%;
    margin-right: 5%;
}

.section-portfolio h1 {
    font-size: 2.5rem;
    font-weight: 100;
    margin-top: 2%;
    margin-bottom: 3%;
    text-align: center;
}

.section-portfolio p {
    font-size: 1.2rem;
    font-weight: 100;
}

.gallery {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.gallery-images {
    display: flex;
}

.gallery-images img {
    width: 280px;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
}

.gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.row {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.gallery img {
    width: 250px;
    height: 200px;
    object-fit: cover;
    margin-right: 10px;
    cursor: pointer;
    transition: filter .2s ease-in-out;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    margin-top: 5%;
}

.modal-content .slides {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.modal-content .slides .slide {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: 80vw;
    height: 80vh;
}

.close {
    color: #fff;
    position: absolute;
    top: 15px;
    right: 35px;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.prev,
.next {
    color: #fff;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

.prev {
    left: 8px;
}

.next {
    right: 8px;
}

@media screen and (max-width: 767px) {
    .row {
        flex-direction: column;
    }

    .gallery img {
        margin-bottom: 50px;
    }

    .section-portfolio h2 {
        margin-bottom: 10%;
        margin-top: 10%;
    }

    .gallery-images img {
        width: 100px;
        height: 70px;
    }

    .modal-content {
        margin-top: 30%;
    }

    .gallery img {
        margin-right: 0px;
    }

    .close {
        top: 20%;
    }

    .prev {
        left: 0;
    }

    .next {
        right: 0;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery img {
        margin: 20px;
        width: 330px;
        height: 400px;
    }

    .modal-content {
        margin-top: 15%;
    }
}