/* 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;
}

ul.nav-links li a.active-link {
  color: rgb(197, 179, 110);
  font-weight: bold;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
}

/* HERO - pocetna slika */
/* HERO - pocetna slika */
.hero {
    position: relative;
    margin-top: 74px;
}

.hero img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-text {
  animation: popIn 0.8s ease-out forwards;

  /* tvoja postojeća pravila: */
  white-space: pre-line;
  position: absolute;
  top: 14%;
  left: 18%;
  text-align: left;
  color: white;
  font-family: "Special Gothic Expanded One", sans-serif;
  font-size: 1.65em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 3px;
  overflow: hidden;
  z-index: 1;
  opacity: 0;
}

/* OVERLAY - zamagljenje pozadine kada je menu otvoren */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
    z-index: 1001;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* SERVICES section */
.services-new {
    padding: 60px 20px 40px 20px;
    background: #f5f5f5;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.section-title {
    font-family: "Rubik", sans-serif;
    font-size: 2.5em;
    font-weight: 700;
    color: black;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.8;
    width: 65%;
    text-align: justify;
    margin: 0 auto;
    line-height: 1.6;
}

.service-card {
    background: rgb(226, 226, 226);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Kada kartica postane vidljiva */
.service-card.show {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.cta-button {
    display: inline-block;
    margin-top: 40px;
    padding: 10px 20px;
    background-color: rgb(197, 179, 110);
    color: black;
    font-family: "Rubik", sans-serif;
    font-size: 1em;
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: black;
    color: rgb(167, 152, 92);
}

/* Responsive */
@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 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;
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
    .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;
    }

    .hero img {
        width: 100%;
        height: 72vh;
        object-fit: cover;
    }

    .hero-text {
        font-size: 1em;
        text-align: left;
        top: 10%;
        left: 5%;
        transform: translateX(-50%);
        padding: 0 15px;
        width: 83%;
        letter-spacing: 0;
    }
    
    .section-subtitle {
        width: 87%;
    }

    .footer p {
        font-size: 0.9em;
    }
}

@media screen and (min-width: 769px) {
    .close-menu {
        display: none;
    }
}