@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Marcellus&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Sorts+Mill+Goudy:ital@0;1&display=swap');

*,
::before,
::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

:root {
    --font-1: font-family: "Marcellus", serif;
    --font-2: font-family: "Sorts Mill Goudy", serif;
    --font-3: font-family: "Open Sans", sans-serif;
    --font-4: font-family: "Nunito Sans", sans-serif;
    --font-5: font-family: "Cormorant Garamond", serif;

    --color-1: #176B87;
    --color-2: #86B6F6;
    --color-3: #B4D4FF;
    --color-4: #EEF5FF;
}

html {
    scroll-behavior: smooth;
}

p {
    font-family: var(--font-3);
    line-height: 25px;
}

h3 {
    font-size: 1.7em;
    font-family: var(--font-4);
    color: var(--color-1);

}

img {
    max-width: 100%;
    vertical-align: middle;
    height: auto;
    shape-margin: 1rem;

}

@keyframes animacija {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(90deg);
    }

    50% {
        transform: rotate(180deg);
    }

    75% {
        transform: rotate(270deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.desktop-nav {
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 0 100px;
    position: absolute;
    top: 0;


    >a {
        width: 100%;
        text-decoration: none;
        margin-right: auto;

        img {
            width: 70px;
            animation-name: animacija;
            animation-duration: 10s;
            animation-direction: alternate;
            transform: rotate(0deg);
            animation-iteration-count: infinite;
        }
    }

    span {
        color: white;
        display: none;
    }

    >ul {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        list-style: none;
        gap: 50px;

        a {
            color: white;
            font-family: var(--font-3);
            text-decoration: none;
            font-size: 1.3em;
            text-transform: uppercase;
            letter-spacing: 2px;
            transition: all 300ms ease-in-out;

            li {
                padding: 10px 25px;
                position: relative;
            }
        }

        li::before {
            content: '';
            position: absolute;
            width: 0%;
            height: 2px;
            background-color: var(--color-1);
            bottom: 0;
            left: 0;
            transition: all 300ms ease-in-out;
        }

        a:hover {
            color: var(--color-1);
        }

        a:hover li::before {
            width: 100%;
        }
    }
}

.mobile-nav {
    display: none;
}

@media only screen and (max-width: 800px) {
    .desktop-nav {
        padding: 50px;

        >a {
            width: 50px;
        }

        ul {
            display: none;
        }

        span {
            display: block;
            cursor: pointer;
        }
    }

    .mobile-nav {
        width: 100%;
        height: fit-content;
        background-color: var(--color-1);
        display: none;
        justify-content: center;
        align-items: center;
        flex-direction: column;

        ul {
            display: flex;
            justify-content: center;
            align-items: center;
            padding-block: 40px;
            flex-direction: column;
            gap: 50px;

            a {
                text-decoration: none;
                color: white;
                font-size: 1.3em;
            }

            li {
                padding: 10px 25px;
                list-style: none;

            }
        }
    }
}

.flex {
    display: flex;
    justify-content: center;
    align-items: center;
}

header {
    width: 100%;
    min-height: 100vh;
    position: relative;
    background-image: url(images/vecteezy_visualizing-futuristic-architecture-with-an-abstract-3d_30249097.jpg);
    background-size: cover;
    background-position: center;
    display: grid;
    place-items: center;

    h1 {
        width: 50%;
        font-size: 9rem;
        text-align: center;
        color: white;
        font-family: var(--font-3);
        text-shadow: 0 0 20px black;
    }

}

@media only screen and (max-width: 800px) {
    header {
        min-height: 50vh;

        h1 {
            font-size: 2.8rem;
            text-align: center;
        }
    }
}

main {
    max-width: 1000px;
    margin: auto;
    padding: 100px 0;

    h2 {
        text-align: center;
        font-size: 2.5em;
    }
}

.section-1 {
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 80px;
    padding: 20px;
    margin: 80px 0;

    .inner {
        width: 100%;
        height: 100%;
    }

    .inner:first-of-type {
        background-image: url(images/blending-futuristic-building-seamlessly-into-desert-landscape.jpg);
        background-size: cover;
        background-position: center;
    }

    .inner:last-of-type {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        flex-direction: column;
        gap: 50px;
    }

    h3 {
        font-size: 1.7em;
        font-family: var(--font-4);

    }
}

.spacer {
    width: 100%;
    height: 500px;
    position: relative;

    img {
        width: 100%;
        object-fit: cover;
        height: 100%;
        filter: brightness(40%);
    }

    h3 {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        color: white;
        font-size: 2.4em;
        line-height: 60px;
    }
}

@media only screen and (max-width: 800px) {
    main {
        width: 100%;
        margin: 0;
        height: fit-content;
    }

    header {
        margin: 0;
    }

    .section-1 {
        flex-direction: column;
        margin: 0;
    }

    .spacer {
        margin: 0;
        height: 200px;

        h3 {
            width: 100%;
            line-height: 30px;
            font-size: 1em;
        }
    }
}

.navigation-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 40px;

    .nav-item {
        padding: 15px 35px;
        border-radius: 2px;
        background-color: var(--color-1);
        color: var(--color-4);
        cursor: pointer;

        p {
            font-size: 1.3em;
            font-family: var(--font-3);

        }
    }
}

.content-wrapper {
    display: none;
    min-height: 200px;
}

.section-2 {
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 80px;
    padding: 20px;
    margin: 80px 0;

    .inner {
        width: 100%;
        height: 100%;
    }

    .inner:first-of-type {
        background-image: url(images/3d-rendering-abstract-buildingt.jpg);
        background-size: cover;
        background-position: center;
    }

    .inner:last-of-type {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        flex-direction: column;
        gap: 50px;
    }

    h3 {
        font-size: 1.7em;
        font-family: var(--font-4);

    }
}

.section-3 {
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 80px;
    padding: 20px;
    margin: 80px 0;

    .inner {
        width: 100%;
        height: 100%;
    }

    .inner:first-of-type {
        background-image: url(images/blending-futuristic-building-seamlessly-into-desert-landscape.jpg);
        background-size: cover;
        background-position: center;
    }

    .inner:last-of-type {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        flex-direction: column;
        gap: 50px;
    }
}

@media only screen and (max-width: 800px) {

    .section-2,
    .section-3 {
        flex-direction: column;
        margin: 0;
    }
}

.jquery-section {
    margin: 100px 0;
}

footer {
    width: 100%;
    background-color: var(--color-1);
    padding: 30px 0;
    display: grid;
    place-items: center;
    color: white;
    text-align: center;
}

.news-section {
    width: 100%;

    display: flex;
    margin: 100px 0;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 30px;

    .news-item {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 40px;

        .image-holder {
            width: 100%;
            height: 300px;

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }
    }

    button {
        padding: 10px 30px;
        border: none;
        font-size: 1.2em;
        font-family: var(--font-3);
        background-color: var(--color-1);
        border-radius: 2px;
        color: white;
    }
}

@media only screen and (max-width: 800px) {
    .news-section {
        flex-direction: column;
        padding: 0 20px;
    }
}

.inovations {
    margin: 150px 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    width: 800px;
    gap: 60px;
}

.fotogalerija {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    padding: 10px;

    .inner-item {
        width: 100%;
        aspect-ratio: 1;
        background-size: cover;
        background-position: center;
        transition: all 300ms ease-in-out;
        cursor: pointer;

        img {
            object-fit: cover;
            width: 100%;
            height: 100%;
        }
    }

    .inner-item:first-of-type {
        grid-column: 1 / span 2;
        grid-row: 1 / span 2;
        background-image: url(images/3d-rendering-abstract-building\ \(1\).jpg);
    }

    .inner-item:nth-of-type(2) {
        background-image: url(images/3d-rendering-abstract-building\ \(2\).jpg);
    }

    .inner-item:nth-of-type(3) {
        grid-column: 3;
        height: 100%;
        grid-row: 2 / span 2;
        background-image: url(images/3d-rendering-abstract-building\ \(6\).jpg);

    }

    .inner-item:nth-of-type(4) {
        grid-column: 1;
        grid-row: 3 / span 2;
        height: 100%;
        background-image: url(images/3d-rendering-abstract-building\ \(7\).jpg);
    }

    .inner-item:nth-of-type(5) {
        background-image: url(images/3d-rendering-abstract-building\ \(4\).jpg);
    }

    .inner-item:nth-of-type(6) {
        background-image: url(images/3d-rendering-abstract-building\ \(5\).jpg);
    }

    .inner-item:nth-of-type(7) {
        background-image: url(images/vecteezy_ai-generated-modern-architecture-reflects-the-vibrant-city_39031766.jpg);
    }

    .inner-item:hover {
        scale: 1.02;
    }
}

.section-4 {
    flex-direction: row-reverse;
}

@media only screen and (max-width: 800px) {
    .fotogalerija {
        gap: 10px;

    }

    .section-4 {
        flex-direction: column;
    }

}