:root {
    --main-color: #080b17;
}
html {
    scroll-behavior: smooth;
    font-family: "Roboto", sans-serif;
}
body {
    padding: 0;
    margin: 0;
    font-family: "Roboto", sans-serif;
    background: #fff;
    overflow: scroll;
}
.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    animation: float linear infinite;
}
@keyframes float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

header {
    display: flex;
    background-color: var(--main-color);
    padding: 0 150px;
    margin:0;
    height: 30px;
    color: white;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--main-color);
}
.top {
    display: flex;
    justify-content: space-between;
    height: 50px;
    margin: 0 auto;
    padding: 0 150px;
    align-items: center;
    border: 1px solid var(--main-color);
}
.top ul{
    display: flex;
    padding: 0;
    margin: 0;
    align-items: center;
    gap: 2rem;
    list-style-type: none;
}
.top img {
    width: 200px;
}
.top a {
    font-style: normal;
    color: var(--main-color);
    text-decoration: none;
}
.top a:hover {
    text-decoration: underline;
}
.navkontakt {
    padding: 15px;
    background-color: var(--main-color);
    color: white;
    border: none;
    max-height: 48px;
    align-self: center;
    justify-self: center;
}
.navkontakt:hover {
    opacity: 0.9;
}
.invis {
    background-color: white;
}
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    width: 30px;
    height: 22px;
    border: none;
    padding: 0;
    cursor: pointer;
    align-self: center;
}
.menu-toggle span {
    display: block;
    height: 4px;
    width: 100%;
    background-color: var(--main-color);
    border-radius: 2px;
    transition: 0.3s ease;
}
.backupnav {
    display: none;
}

.main {
    height: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 0 1rem;
    padding-left: 150px;
    padding-right: 150px;
}

.naslovnica {
    background-image: url("./slike/1000036890.jpg");
    justify-content: space-between;
    flex-direction: row;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),  url("./slike/pozadina.jpg");
    background-size:cover;
    background-position: 100%;
    color: white;

}
.logonasl {
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    margin: 0;
    padding: 0;	
    gap: 5rem;
    padding-top: 85px;
    pointer-events:none;
    position: absolute;
    z-index: 1;
    max-width: 55%;
    
}
.logonasl img {
    width: 250px;
    position:absolute;
    top: 10px;
    left: auto;
    pointer-events:none;
    min-width: 200px;
    max-width: 250px;
}
.logonasl .kontaktdugme{
    width: 80%;
    max-width: 350px;
    min-width: 200px;
}
.naslovnica h1 {
    font-size: xxx-large;
    font-weight: 600;
    margin: 0;
    padding: 0;
}
.nasl {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.kontaktdugme {
    padding: 0.2rem 1rem;
    font-size:medium;
    border-radius: 8px;
    border-color: #ad8a17;
    background-color: #ad8a17;
    color: white;
    width:250px;
    z-index: 10;
    cursor:pointer;
    pointer-events:auto;
}
.usluge {
    display: flex;
    justify-content: center;
    gap: 40px;
    height: 900px;
}
.usluge h2 {
    margin:0;
    padding:0;
    padding-top: 30px;
    border-bottom: 1px solid black;
}
.usluge .kartice {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 100%;
}
#kartice2 {
    justify-content: center;
    gap: 15%;
}
.usluge .kartica {
    width: 250px;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    border-radius: 20px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.5);
}
.usluge .kartica:hover {
    box-shadow: 0 4px 10px black;
    background-color: white;
}
.kartica img {
    height: 100px;
    cursor: pointer;
}
.kartica span {
    padding: 0 15px;
    text-align: center;
    font-weight: bold;
    text-transform: capitalize;
}
.kartica a {
    text-decoration: none;
    color: var(--main-color);
}
.kartica a:hover {
    color: black;
    background-color: white;
}
.kartica:hover a {
    text-decoration: underline;
}

.filler {
    display: none;
}

.aboutp {
    max-width: 600px;
    text-align: start;
    align-self: flex-start;
    border-left: 2px solid var(--main-color);
    padding: 0 1rem;
    font-size: larger;
}
.about h1 {
    align-self: flex-start;
}
.about {
    justify-content: space-around;
    min-width: 300px;
    align-items: start;
    gap: 20px;
    background: linear-gradient(rgba(169, 147, 77, 0.4),rgba(20,36,84,0.8)),  url("./slike/engineer-meeting-architectural-project-working-with-partner.jpg");
    background-position: 100%;
    background-size: cover;
    color: white;
}
.about button {
    align-self: center;
}
.about > div {
    display: flex;
    width: 100%;
    justify-content: space-between;
}
.about img {
    max-width: 650px;
    max-height: 500px;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}
.kontaktform {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    width: 600px;
}
.main.kontakt {
    background: linear-gradient(rgba(169, 147, 77, 0.4),rgba(20,36,84,0.8)),  url("./slike/engineer-meeting-architectural-project-working-with-partner.jpg");
    background-position: 100%;
    background-size: cover;
}
.kontaktformst {
    height: 400px;
    color: white;
}
.kontaktforma {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 100%;
    width: 100%;
}
.form-group {
    display: flex;
    justify-content: space-between;
    width: 100%;
}
.form-group input {
    width: 50%;
}
.form-group textarea {
    width: 50%;
}
.kontaktforma button {
    max-width: 200px;
}
.greska::placeholder {
    color: red;
    opacity: 0.5;
    font-weight: bold;
}

footer {
    display: flex;
    height: 200px;
    background-color: var(--main-color);
    color: white;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    border: 1px solid var(--main-color);
    padding: 0 1rem;
}
footer ul {
    list-style-type: none;
}


.experience {
  position: relative;
  min-height: 100vh;
  background: url('slike/reference/vodovi.jpg') center/cover no-repeat;
  color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

/* Dark overlay */
.experience .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
}

/* Content container */
.experience .content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* Headings & paragraph */
.experience h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.experience p {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Grid layout */
.experience .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

/* Individual cards */
.experience .card {
  background: rgba(255,255,255,0.05); /* subtle transparency */
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.experience .card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.experience .card p {
  font-size: 0.95rem;
  color: #ddd;
  line-height: 1.4;
}

/* Hover effect */
.experience .card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.1);
}


@keyframes slideDown {
    from {opacity: 0; transform: translateY(-10px);}
    to   {opacity: 1; transform: translateY(0);}
}

.butdetalji {
    height: 30px;
    border: none;
    background-color: var(--main-color);
    color: white;
    width: 75px;
}
.butdetalji:hover {
    opacity: 0.9;
    cursor: pointer;
}

.listaref {
    height: 2000px;
    justify-content: space-evenly;
}
.listaref img {
    width: 400px;
}
.listaref div {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    line-height: 3em;
}

.uslugenasl {
    height: 100px;
}
.uslugenasl h1  {
    border-bottom: 1px solid var(--main-color);

}
.uslugedet {
    display: flex;
    flex-direction: row;
    width: auto;
    gap: 50px;
    justify-content: start;
    align-items: start;
    padding-top: 100px;
    height: fit-content;
    min-height: 600px;
}
.uslugedet img {
    height: 500px;
    width: 50%;
}
.uslugedet ul {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.uslugedet div{
    width: 50%;
}
hr {
    width: 30%;
    color: var(--main-color);
    border: none;
    height: 1px;
    background-color: var(--main-color);
}

.kontaktcont {
    display: flex;
    justify-content: center;
    padding-bottom: 50px;
}

.uslugedet.elektro h2 {
    border-bottom: 1px solid #f5c400;
}

.uslugedet.infra h2 {
    border-bottom: 1px solid #2bb673;
}
.uslugedet.sustavi h2{
    border-bottom: 1px solid #1e90ff;
}
.uslugedet.nadzor h2{
    border-bottom: 1px solid #ff6f61;
}
.uslugedet.zastita h2{
    border-bottom: 1px solid #9c27b0;
}


.site-footer {
  background-color: var(--main-color); /* dark background */
  color: #ddd;
  font-size: 0.95rem;
  height: auto;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 40px 20px;
}

.footer-top > div {
  flex: 1 1 200px;
  margin: 10px;
}

.footer-logo {
    flex: 0 0 180px;
}
.footer-logo img {
    max-width: 160px;
    height: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.footer-contact h4,
.footer-links h4,
.footer-newsletter h4 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 15px;
}

.footer-contact ul,
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li,
.footer-links li {
  margin-bottom: 8px;
}

.newsletter-form {
  display: flex;
  max-width: 300px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 3px 0 0 3px;
  outline: none;
}

.newsletter-form button {
  padding: 8px 15px;
  border: none;
  background-color: #007BFF; /* example accent color, adjust */
  color: #fff;
  cursor: pointer;
  border-radius: 0 3px 3px 0;
}

.newsletter-form button:hover {
  background-color: #0056b3; /* darker shade */
}

.footer-bottom {
  border-top: 1px solid #444;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.footer-legal p {
  margin: 0;
}

.footer-social a {
  margin-left: 15px;
  font-size: 1rem;
}

@media (max-width: 1024px) {
    header {
        flex-direction: column;
        text-align: center;
        gap: 5px;
        padding: 10px;
        font-size: 14px;
    }

    .top {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0 15px;
        position: relative;
    }

    .nav li{
        display: none;
    }
    .backupnav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .backupnav.show {
        display: flex;
    }

    .backupnav li {
        text-align: center;
        border-bottom: 1px solid #ddd;
        padding: 10px 0;
        list-style-type:none;
    }
    .backupnav li a {
        text-decoration: none;
        color: var(--main-color);
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 25px;
        height: 20px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        height: 3px;
        width: 100%;
        background: #333;
        border-radius: 3px;
    }

    .navkontakt {
        display: none;
    }

    .naslovnica img {
        width: 80%;
        height: auto;
    }

    .main {
        padding: 0;
        margin: 0;
        height: auto;
    }
    .naslovnica {
        justify-content: center;
        height: 500px;
    }

    .logonasl {
        justify-content: center;
    }

    .nasl h1 {
        font-size: 20px;
        text-align: center;
    }

    .nasl h3 {
        font-size: 14px;
        text-align: center;
    }

    .usluge .kartice,
    #kartice2 {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .kartica {
        width: 90%;
        max-width: 350px;
    }

    .about {
        height: auto;
        padding: 50px 0;
    }
    .aboutp {
        font-size: 12px;
        border: none;
    }


    .main.uslugedet {
        font-size: 12px;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    .main.uslugedet div {
        width: 100%;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .main.uslugedet img {
        display: none;
    }

    .experience {
        height: 1300px;
    }
    .experience .content {
        width: 80%;
        margin: 0 5%;
        text-align: center;
    }
    .experience .content p{
        font-size: 15px;
        overflow: auto;
    }








    footer {
        text-align: center;
        flex-direction: column;
        height: fit-content;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
    }

    .footer-logo img {
        width: 100%;
    }

    .footer-contact ul, .footer-links ul {
        padding: 0;
        list-style: none;
    }
}
@media (max-width: 600px) {
    h1, h2 {
        font-size: 1.4em;
    }

    button, input, textarea {
        font-size: 1em;
    }

    .kontaktform {
        width: 90%;
        margin: 0 auto;
    }

    .about > div {
        flex-direction: column;
    }

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