/* BASIC SETUP */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior:smooth;
}

body {
    font-family: "Roboto", sans-serif;
    color: white;
    width: 100%;
}

/* INTRO */
/* @01--PREHEADER */
/* @02--HEADER */
/* @03--O NAMA */
/* @04--PROJEKTI */
/* @05--KONTAKT */

/*01 - PREHEADER */
.pre-header {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: space-between;
    color: white;
    align-items: center;
    background-color: rgb(47, 36, 130);
    font-size: 14px;
}

.info {
    display: flex;
    margin: 30px;
}

.info-holder {
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    margin: 20px;
}

.info-holder img {
    width: 26px;
    height: 26px;
}

.info-holder .img-bigger {
    height: 18px;
    width: 22px;
    margin-right: 5px;
}

.info-holder img {
    width: 25px;
    height: 25px;
    transition: 0.3s;
}

.info-holder img:hover {
    scale: 1.3;
}

.links {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px;
}

.links img {
    width: 25px;
    height: 25px;
    transition: 0.3s;
}

.links img:hover {
    scale: 1.3;
}

@media only screen and (max-width: 1200px) {
    .pre-header {
        font-size: 12px;
    }
    .links img {
        width: 20px;
        height: 20px; 
        transition: 0.3s;
    }
}

@media only screen and (max-width: 798px) {
    .pre-header {
        display: none;
    }
    .hamburger-menu {
        color: rgba(47, 36, 130, 0.712);
        font-size: 18px;
        font-weight: 800;
    }
}

/*02 - HEADER */
.header {
    height: 120px;
    position: fixed;
    left: 0;
    width: 100%;
    background-color: rgba(47, 36, 130, 0.712);
    transition: top 0.3s;
    font-size: 18px;
    font-weight: 700;
    box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
    border-radius: 0 0 24px 24px;
}

.nav {
    display: flex;
    justify-content: center;
}

.navigation {
    width: 70%;
    height: 120px;
}

.list {
    display: flex;
    justify-content: space-evenly;
    text-align: center;
    align-items: center;
}

.logo {
    width: 75px;
    height: 75px;
    transition: 0.3s;
}

.logo:hover {
    scale: 1.2;
}

.list-item {
    margin: 20px;
    list-style: none;
}

.hover-efect {
    display: inline-block;
    position: relative;
    text-decoration: none;
    color: white;
}
  
.hover-efect::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: gold;
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}
  
.hover-efect:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.hamburger-menu {
    margin: 15px;
    display: none;
    position: fixed;
    z-index: 1;
    width: 30px;
    height: 30px;
}

.ham-open {
    width: 350px;
    height: 600px;
    background-color: rgba(47, 36, 130, 0.712);
    position: absolute;
    position: fixed;
    display: none;
}

.ham-menu {
    position: relative;
    top: 10%;
    left: 2%;
    margin:5px;
}

.ham-menu li {
    list-style: none;
    margin: 14px 0;
}

.ham-menu a {
    text-decoration: none;
    font-size: 18px;
}

.hr-line {
    position: relative;
    top: 10%;
    width: 60%;
    height: 1px;
    background-color: gold;
}

.ham-social{
    position: relative;
    top: 10%;
}

.ham-social img {
    width: 30px;
    height: 30px;
    margin: 10px;
    cursor: pointer;
}

.ham-logo {
    position: relative;
    top: 30%;
    left: 37%;
    width: 50px;
}

.ham-logo img {
    width: 75px;
    height: 75px;
}

@media only screen and (max-width: 798px) {
    .header {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }
}

/*03 - HOME */
.home {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-image: url('./assets/DJI_0379\ 3.webp');
    background-position: top;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
}

.home-text-holder {
    max-width: 750px;
    height: auto;
    padding: 20px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.219);
    box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
    border-radius: 22px;
}

.home-text-holder h1 {
    font-size: 44px;
    color: rgb(255, 255, 255);
}

.prikljuci {
    margin: 50px;
    width: 200px;
    height: 50px;
    box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
    background-color: rgb(47, 36, 130); 
    border: none;
    color: white;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: 1s;
    border-radius: 16px;
}

.prikljuci a {
    text-decoration: none;
    color: white;
    padding: 200px 50px;
}

 .prikljuci:hover {
    background-color: gold;
}

/*04 - O NAMA */
.o-nama {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
}

.o-nama-holder {
    margin: 50px;
    width: 65%;
    height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    text-align: center;
    background-color: rgba(47, 36, 130, 0.712);
    color: white;
    box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
    border-radius: 22px;
} 

.o-nama h2 {
    margin-top: 10px;
}

.o-nama-holder p {
    font-size: 16px;
    line-height: 28px;
    letter-spacing: 1px;
    width: 80%;
    margin: 10px auto;
}

.o-nama-vise {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: space-evenly;
    margin: 50px;
    border-radius: 22px;
}

.l-side {
    width: 40%;
    height: 350px;
    background-color: rgba(47, 36, 130, 0.712);
    display: flex;
    align-items: center;
    box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
    border-radius: 22px;
}

.l-side p {
    font-size: 16px;
    line-height: 28px;
    letter-spacing: 1px;
    width: 80%;
    margin: 10px auto;
} 


.r-side {
    width: 40%;
    height: 350px;
    background-image: url('./assets/home.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
    transition: 0.5s;
    border-radius: 22px;
}

.r-side:hover {
    scale: 1.1;
}

.vise {
    width: 250px;
    height: 50px;
    font-size: 16px;
    font-weight: 800;
    background-color: rgb(47, 36, 130); 
    box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
    border: none;
    color: white;
    margin: 20px;
    cursor: pointer;
    transition: 1s;
    border-radius: 16px;
}

.vise a {
    padding: 20px;
    color: white;
    text-decoration: none;
}

.vise:hover {
    background-color: #ffd700;
}

.line {
    width: 90%;
    height: 1px;
    background-color: #ffd700;
    margin: auto;

}

@media only screen and (max-height: 2000px) {
    .o-nama {
        height: auto;
    }
}

@media only screen and (max-width: 1500px) {
    .o-nama-holder p {
        font-size: 14px;
        line-height: 24px;
    }
}

@media only screen and (max-width: 1200px) {
    .o-nama-holder {
        width: 90%;
    }

    .o-nama-vise  {
        flex-direction: column-reverse;
    }

    .r-side {
        width: 90%;
    }

    .l-side {
        width: 90%;
        margin-top: 75px;
    }
}

@media only screen and (max-width: 1150px) {
    .o-nama-holder  {
        width: 80%;
        height: auto;
    }
}

@media only screen and (max-width: 400px) {
    .l-side   {
        height: auto;
    }
}

/* 05 - PROJEKTI */

/* .projects {
    margin: 80px auto auto auto;
    margin-bottom: 80px;
    width: 95%;
    height: auto;
    overflow-x: hidden;
    overflow-y: hidden;
    white-space: nowrap;
    word-break: break-word;
    scroll-behavior: smooth;
    display: flex;
    flex-wrap: nowrap;
}


.project {
    flex: 0 0 300px;
    width: 100%; 
    height: 80vh;
    margin-right: 20px;
    color: black;
    font-size: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    scroll-snap-align: center;
    overflow: hidden;
    border-radius: 20px;
} */

.projects {
    margin: 80px auto auto auto ;
    width: 95%;
    height: auto;
    overflow-x: auto; /* Omogućava horizontalni skrol */
    overflow-y: hidden; /* Zabrani vertikalni skrol */
    white-space: nowrap; /* Sprečava prelamanje u novi red */
    word-break: break-word; 
    scroll-behavior: smooth;
    display: flex;
    flex-wrap: nowrap; /* Svi projekti u jednom redu */
}

.project {
    flex: 0 0 auto; /* Sprečava rastezanje elemenata */
    width: 100%; /* Postavi širinu svakog projekta */
    height: 80vh;
    margin-right: 20px;
    color: black;
    font-size: 24px;
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    text-align: center;
    scroll-snap-align: center;
    overflow: hidden; /* Sprečava unutrašnje skrolovanje */
    border-radius: 20px;
}

.project-img {
    width: 49%;
    height: 100%;
}

.project-img img {
    width: 100%;
    height: 100%;
}

.project-holder {
    width: 49%;
    height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 50px;
    border: 1px solid #ffd700;
    border-radius: 0 20px 20px 0 ;
    border-left: none;
}

.project-details {
    margin: 10px;
    color: rgb(67, 13, 194);
    /* overflow-y: auto; */
}

.project-details h3 {
    white-space: normal;
    word-break: break-word;
    text-align: center;
}

.project-details p {
    /* border: 1px solid brown; */
    white-space: normal;
    word-break: break-word;
    text-align: center;
    font-size: 20px;

}

@media only screen and (max-height: 660px) {
    .project {
        height: 100vh;
    }

}



@media only screen and (max-width: 660px) {
    .project-details p {
        font-size: 18px;
    }

    .project-details h3 {
        font-size: 22px;
    }

    .project-holder {
        padding: 0;
    }
}

@media only screen and (max-width: 1400px) {

    .projects {
        width: 100%;
        height: auto;
        /* display: flex; */
        flex-direction: column;
        overflow-x: hidden;
        flex-wrap: wrap; /* Da deca idu ispod, a ne sve u jedan red */
        white-space: normal; /* Da dozvoli prelamanje u novi red */
    }

    .project {
        width: 70%;
        display: flex;
        flex-direction: column;
        height: auto;
        margin: auto;
        margin-bottom: 50px;
        border-radius: 20px;
        border: 1px solid #ffd700;
    }

    .project-img {
        width:60%;
        margin-top: 50px;
        /* height: 20%; */
    }

    .project-img img {
        border-radius: 16px;
    }

    .project-holder {
        width: 100%;
        margin: auto;
        border-radius: 0;
        border: none;
    }

}







.footer {
    width: 100%;
    height: auto;
    background-color: rgba(47, 36, 130, 0.712);
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    border-radius: 24px 24px 0 0;
}

.footer-holder {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.footer-info {
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    margin: 20px;
}

.footer-info .footer-img {
    width: 32px;
    height: 32px;
    margin: 2px;
}

.footer-info .diff {
    width: 29px;
    height: 19px;
    padding-right: 5px;
}

.footer-holder img {
    width: 175px;
    height: 175px;
}

.footer-input {
    width: 250px;
    height: 30px;
    background-color: rgba(255, 217, 0, 0.692);
    border: #ffd700;
    border-radius: 10px;
}

.contact-btn {
    width: 160px;
    height: 40px;
    box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
    background-color: rgb(47, 36, 130);
    border: none;
    color: white;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: 1s;
    border-radius: 8px;
}

.contact-btn:hover{
    background-color: gold;
}

@media only screen and (max-width: 855px) {
    .footer-holder img {
        width: 135px;
        height: 135px;
    }
}

@media only screen and (max-width: 777px) {
    .none {
        display: none;
    }

}

@media only screen and (max-width: 565px) {
    .footer-info p {
        font-size: 14px;
    }
    .footer-input {
        width: 190px;
    }
}

@media only screen and (max-width: 483px) {
    .footer {
        flex-direction: column;
    }
    .footer-info p {
        font-size: 16px;
    }
    .footer-input {
        width: 250px;
    }
    .contact-btn{
        margin-bottom: 40px;
    }
}

