:root {
    --crna: black;
    --bela: white;
    --zlatna: rgb(197, 179, 110);
  }

/* SCROLL bar */
/* Stilizacija vertikalne trake za skrolovanje */
::-webkit-scrollbar {
    width: 12px;
}

/* Stilizacija pozadine trake za skrolovanje */
::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    border-radius: 10px;
}

/* Stilizacija samog klizaca */
::-webkit-scrollbar-thumb {
    background-color: black;
    border-radius: 10px;
    border: 3px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #1d1d1d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Rubik", sans-serif;
}

h2, h3 {
    font-family: "Rubik", sans-serif;
}

p {
    font-family: "Rubik", sans-serif;
}

/* NAV BAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: black;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1002;
}

.logo img {
    height: 40px;
    width: auto;
    margin-left: 43px;
}

.nav-links {
    list-style: none;
    display: flex;
    margin-right: 40px;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 18px;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
}

header {
    background-color: var(--crna);
    color: var(--bela);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 74px;
}

header h1 {
    font-size: 1.8em;
    margin-left: 33px;
    animation: slideIn 1s ease-out; 
    position: relative;
    color: var(--zlatna);
}

.intro {
  max-width: 1100px;
  margin: 60px auto;
  padding: 40px 20px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.intro h2 {
  flex-basis: 100%;
  font-size: 2em;
  color: var(--crna);
  margin-bottom: 10px;
  text-align: center;
}

.intro img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #d4af37;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.intro p {
  flex: 2 1 400px;
  font-size: 1.1em;
  line-height: 1.6;
  color: #333;
  text-align: justify;
}

.services {
  max-width: 1100px;
  margin: 40px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
}

.card {
  background-color: var(--bela);
  border-left: 5px solid var(--zlatna);
  border-radius: 10px;
  padding: 20px;
  width: calc(50% - 10px); /* dve u redu sa gap-om */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
}

/* Jednaka visina kartica */
.services {
  align-items: stretch;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: var(--crna);
    margin-bottom: 10px;
}

.card p {
    color: #555;
    font-size: 1em;
}

.contact-cta {
    text-align: center;
    margin: 60px 20px;
}

.contact-cta a {
    display: inline-block;
    background-color: var(--crna);
    color: var(--bela);
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s;
}

.contact-cta a:hover {
    background-color: var(--zlatna);
    color: var(--crna);
}

@media (max-width: 768px) {
    .intro {
        flex-direction: column;
        text-align: center;
    }

    .intro p {
        padding-top: 20px;
    }

    .services {
      flex-direction: column;
      align-items: center;
    }

    header {
      flex-direction: column;
      text-align: center;
    }

    .card {
        width: 100%;
    }
}

/* FOOTER */
.footer {
    background-color: black;
    color: white;
    padding: 20px 0;
    text-align: center;
    font-family: "Rubik", sans-serif;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer p {
    font-size: 1em;
    margin: 0;
}

.footer a {
    color: rgb(197, 179, 110);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

@media screen and (min-width: 769px) {
    .close-menu {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        padding: 15px 30px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        z-index: 1003;
    }

    .menu-toggle.hidden {
        display: none;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        margin-right: 0;
        background-color: black;
        text-align: left;
        padding-top: 60px;
        transition: right 0.3s ease-in-out;
        z-index: 1003;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        padding: 15px;
    }

    .nav-links a {
        color: white;
        font-size: 20px;
        display: block;
    }

    .close-menu {
        display: none;
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 30px;
        color: white;
        cursor: pointer;
    }

    .nav-links.active .close-menu {
        display: block;
    }
    
    .logo img { 
        margin-left: 0px;
    }
    
    header h1 {
        margin-left: 0;
    }
    
    .intro h2 {
        text-align: left;
    }

    .footer p {
        font-size: 0.9em;
    }
}

/* Globalna animacija div */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.content-wrapper {
    animation: fadeIn 3s ease-out;
}

/* Animacija za header */
@keyframes slideIn {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}