* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    font-family: Arial, sans-serif;
}

nav {
    background-color: black;
    opacity: 97%;
    position: fixed;
    width: 100%;
    height: 95px;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2em;
}

nav a {
    text-decoration: none;
    color: hotpink;
    padding: 20px;
    border-radius: 10px;
    transition: 0.3s;
}

nav a:hover {
    color: hotpink;
    transform: translateY(-3px);
    box-shadow: 2px 4px 10px hotpink;
}

#index {
    background-color: black;
    opacity: 95%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    gap: 25em;
    padding: 20px;
}

.index-text h1 {
    color: white;
    font-size: 42pt;
}

.index-text h3 {
    color: white;
    font-size: 20pt;
    font-weight: lighter;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.index-slika img {
    width: 100%;
    height: 450px;
    padding-left: 15em;
}

/*OSOBNO*/
#osobno {
    background-color: black;
    opacity: 97%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px;
    width: 100%;
    height: 100vh;
    color: hotpink;
}

.osobno-img {
    width: 650px;
    margin-right: 8em;
}

.osobno-text {
    text-align: left;
    font-size: 18pt;
    width: 700px;
    margin-left: 4em;
    margin-bottom: 7em;
    line-height: 1.5;
}

.osobno-text h3 {
    font-size: 28pt;
    font-weight: bolder;
    padding-bottom: 2em;
}

/*PROJEKTI*/
#projekti1, #projekti2 {
    width: 100%;
    height: 100vh;
    background-color: black;
    opacity: 95%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

#projekti2{
    background-color: black;
    opacity: 97%;
}

.h1-razred{
    font-size: 34pt;
    font-style: bold;
    margin-bottom: 15em;
    color:rgb(174, 17, 114)
}

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

.radovi-box {
    width: 350px;
    height: 300px;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: hotpink;
    border-radius: 10px;
    transition: 0.3s;
    padding: 20px;
    text-align: center;
}

.radovi-box a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    margin-top: 10px;
    padding: 5px 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    transition: 0.3s;
}

.radovi-box a:hover {
    background-color: rgb(231, 145, 196);
    opacity: 85%;
    color: rgb(174, 17, 114);
}

footer {
    background-color: black;
    opacity: 97%;
    width: 100%;
    height: 95px;
    font-size: 16px;
    color: hotpink;
    text-align: center;
    padding-top: 47px;
}


@media (max-width: 768px) {

    nav {
        font-size: 12pt;
    }

    #index {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        padding: 20px;
        text-align: center;
        height: 100vh;
    }

    .index-text h3 {
        font-size: 18pt;
        margin-bottom: 10px;
        margin-top: 8em;
    }

    .index-text h1 {
        font-size: 34pt;
    }

    .index-slika img {
        width: 90%;
        height: 300px;
        padding-left: 0;
        margin-top: 9em;
    }

    #osobno {
        flex-direction: column;
        gap: 20px;
        padding: 10px;
    }

    .osobno-img {
        width: 60%;
        margin-right: 0;
        margin-top: 130px;
        margin-bottom: 5px;
        max-width: none;
        height: 200px;
    }

    .osobno-text {
        width: 100%;
        margin-left: 0;
        margin-top: 5px;
        max-width: 90%;
        font-size: 16pt;
    }

    .h1-razred{
        padding-bottom: 6em;
        padding-left: 2em;
        font-size: 24pt;
    }
    .radovi {
        flex-direction: column;
        margin-top: 8em;
        gap: 20px;
        margin-right: 4em;
    }

    .radovi-box {
        width: 90%;
        height: fit-content;
    }

    footer {
        font-size: 14px;
    }
}