:root {
  --primary-blue: #e7cd3a;   /* glavni žuti ton */
  --dark-blue: #ccaa00;      /* tamnija žuta za hovere i outline */
  --light-blue: #ffea70;     /* svetlija žuta za hover, akcent */
  --black: #0d0d0d;          /* može ostati ista za dark background */
  --gray: #999999;            /* može ostati ista */
  --light-gray: #1a1a1a;      /* može ostati ista */
  --white: #ffffff;           /* može ostati ista */



  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 60px;

  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Samo za desktop */
@media (min-width: 1024px) {
  html {
    zoom: 1.35; /* povećava sve za 125% samo na desktopu */
  }
}

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

.section-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(204, 173, 0, 0.9),
    transparent
  );
  box-shadow:
    0 0 10px rgba(204, 201, 0, 0.6),
    0 0 20px rgba(201, 204, 0, 0.4);
}





body {
  margin: 0;
  background-color: var(--black);  /* glavni dark background */
  color: var(--white);             /* default tekst */
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden; /* sprečava horizontalni scroll, ali dozvoljava vertikalni */

}

body.site-loaded {
  overflow: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-md);
  color: var(--white);
}

h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
}

p {
  margin-bottom: var(--spacing-sm);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: var(--spacing-sm) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;

  background-color: rgba(0,0,0,0.7); /* blago tamna, ne bela */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); /* Safari */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  
}



.nav-links {
  list-style: none;
  display: flex;
  gap: 35px;
}

.nav-links a {
  color: #fff; /* boja teksta */
  text-decoration: none;
  position: relative;
  font-weight: 600;
  padding: 4px 0;
  transition: color 0.3s ease;
}

/* linija koja se animira */
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;             /* debljina linije */
  background-color: #ccbe00; /* plava boja */
  transition: width 0.3s ease;
}

/* hover efekat */
.nav-links a:hover::after {
  width: 100%;
}

/* opcionalno: promena boje teksta na hover */
.nav-links a:hover {
  color: #fcff33;
}


.mobile-header {
  display: none;
}


@media (max-width: 768px) {
  /* Mobile header wrapper */
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  z-index: 1100;
  background-color:var(--light-gray); /* crna pozadina */
}

/* Wrapper za logo + sub tekst */
.mobile-logo-wrapper {
  display: flex;
  flex-direction: column; /* jedno ispod drugog */
  align-items: flex-start; /* levo poravnanje */
  gap: 2px; /* mali razmak između logo i teksta */
}

/* Logo u mobilnom headeru */
.mobile-logo {
  color: var(--white);
  font-size: 30px;
  font-weight: bold;
  line-height: 1.2;
}

/* Sub tekst ispod logoa */
.mobile-tagline {
  color: hsla(0, 0%, 100%, 0.75);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
  max-width: 1502px;
}



  /* Hamburger dugme */
  .hamburger {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 1100;
    width: 30px;
    height: 24px;
  }


  .hamburger span {
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary-blue);
    left: 0;
    transition: all 0.3s ease;
  }

  .hamburger span:nth-child(1) { top: 0; }
  .hamburger span:nth-child(2) { top: 10px; }
  .hamburger span:nth-child(3) { top: 20px; }

  .hamburger.active span:nth-child(1) { transform: rotate(45deg); top: 10px; }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg); top: 10px; }

  /* Sidebar meni */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;             /* sada zauzima 100% ekrana */
    height: 100vh;
    background-color: #000000; /* solidna boja */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1050;
    padding: 0;
    margin: 0;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links li {
    list-style: none;
    width: 100%;
  }

  .nav-links a {
    font-size: 1.8rem;
    color: #fff;
    text-decoration: none;
    text-align: center;
    display: block;
    width: 100%;
    padding: 15px 0;
  }


  .nav-links a:hover {
    color: #b8b8b8;
  }
}





.header .container {
  display: flex;
  justify-content: space-between; /* raspoređuje logo, nav i dugme */
  align-items: center;
  padding: 0 var(--spacing-lg); /* horizontalni padding za razmak od ivica */
  gap: 40px; /* dodatni spacing između elemenata ako želiš */
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-blue);
  margin: 0;
}

.tagline {
  font-size: 0.75rem;
  color: var(--gray);
  margin: 0;
}

.header-phone {
  background-color: var(--primary-blue);
  color: var(--black);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

.header-phone:hover {
  background-color: var(--dark-blue);
}

.hero {
  position: relative;
  min-height: 500px;
  color: #fff;
  overflow: hidden;
  padding: 120px 0 100px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(0,0,0,0.8) 100%
  );
  z-index: 2;
}

.hero-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%; /* ⬅ pomera sliku nadole */
  transform: translate(-50%, -50%);
  z-index: 1;
}

/* MOBILE */
@media screen and (max-width: 768px) {
  .hero-bg {
    object-position: center 80% !important;
  }
}


.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* smanji ako želiš svetliji video */
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 150px 20px; /* prostor za tekst */
}

.hero-title {
  font-size: 2rem;
  max-width: 900px;
  margin: -90px auto 20px;
  letter-spacing: -0.02em;
  font-weight: 700;
  
}

.hero-description {
  font-size: 16px;
  max-width: 760px;
  margin: 50px auto 25px;
  opacity: 0.9;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}





.hero-cta {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 10px 15px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--black);
}

.btn-primary:hover {
  color: var(--white);
  background-color: var(--light-gray);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background-color: var(--light-gray);
  color: var(--white);
  border: 2px solid var(--light-gray);
}

.btn-secondary:hover {
  background-color: var(--black);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
  background-color: var(--dark-blue);
}

.btn-full {
  width: 100%;
}

/* Fade-in animacije */
.hero-title, .hero-description, .hero-cta {
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
}

.hero-title { animation-delay: 0.3s; }
.hero-description { animation-delay: 0.6s; }
.hero-cta { animation-delay: 0.9s; }

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}



.services {
  padding: var(--spacing-xl) 0;
  background-color: var(--black);
}

.services h2 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

.service-card {
  background-color: var(--light-gray);
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  padding: var(--spacing-md);
  text-align: center;
  transition: all 0.3s ease;
  
}

.service-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(204, 156, 0, 0.15);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.service-card h3 {
  color: var(--white);
  margin-bottom: var(--spacing-xs);
}

.service-card p {
  color: var(--gray);
  font-size: 0.95rem;
  margin: 0;
}



.section-description {
  text-align: center;
  color: var(--gray);
  margin-bottom: var(--spacing-lg);
  font-weight: 600;
}


.booking-form {
  max-width: 420px;       /* manja širina */
  width: 100%;
  margin-bottom: 50px;
  background-color: var(--black);
  padding: 16px 20px;     /* smanjen padding za manju visinu */
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  font-size: 0.95rem;     /* manji font */
}

.form-group {
  margin-bottom: 12px;    /* manji razmak između inputa */
}


.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--white);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--light-gray);
  color: #fff;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
  background-color: var(--black);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--white);
}

.form-group textarea {
  resize: vertical;
}

.form-message {
  margin-top: var(--spacing-sm);
  padding: var(--spacing-sm);
  border-radius: 6px;
  font-weight: 500;
  display: none;
  color: #ffffff;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  display: block;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  display: block;
}

.why-us {
  padding: var(--spacing-xl) 0;
  background-color: var(--light-gray);
}

.why-us h2 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

.why-card {
  text-align: center;
  padding: var(--spacing-md);
  background-color: var(--black);
  border-radius: 25px;
}

.why-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-blue);
}

.why-card h3 {
  color: var(--primary-blue);
  margin-bottom: var(--spacing-xs);
}

.why-card p {
  color: var(--white);
  font-weight: 400;
  margin: 0;
}

/* RESPONSIVE: mobilni uređaji */
@media (max-width: 768px) {
  .why-us {
    padding: 40px 0; /* manje odozgo i odozdo */
  }

  .why-us h2 {
    font-size: 1.5rem; /* manji naslov */
    margin-bottom: var(--spacing-md);
  }

  .why-card {
    padding: 16px; /* manji padding */
    border-radius: 15px; /* malo manje za mobilni */
  }

  .why-icon {
    font-size: 2.2rem; /* manja ikona */
    margin-bottom: var(--spacing-xs);
  }

  .why-card h3 {
    font-size: 1.2rem; /* manji naslov kartice */
  }

  .why-card p {
    font-size: 0.95rem; /* malo manji tekst */
  }
}










.cars-for-sale {
  padding: var(--spacing-xl) 0;
  background-color: var(--black);
}

.cars-for-sale h2 {
  text-align: center;
}

.cars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.car-card {
  background-color: var(--light-gray);
  border-radius: 8px;
  padding: var(--spacing-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  

}


.car-card:hover {
  transform: translateY(-6px) scale(1.01);

  border-color: var(--primary-blue);
}

.car-image {
  width: 100%;
  height: 200px;        /* visina slike unutar kartice */
  margin-bottom: var(--spacing-sm);
  overflow: hidden;     /* sakriva višak slike */
  border-radius: 8px;   /* blago zaobljeni uglovi */
}

.car-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;    /* slika popunjava okvir kartice */
  display: block;       /* uklanja eventualni whitespace ispod slike */
}


.car-card h3 {
  color: var(--white);
  margin-bottom: var(--spacing-xs);
}

.car-details {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-xs);
}

.car-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: var(--spacing-sm);
}

.cars-cta {
  text-align: center;
}

.towing {
  position: relative; /* važno za pozicioniranje sadržaja iznad slike */
  padding: var(--spacing-xl) 0;
  background-color: var(--black);
  color: var(--white);
  overflow: hidden; /* da slika ne prelazi sekciju */
  
  /* Full-width pozadina */
  background-image: url('img/slep.jpeg'); /* tvoja slika */
  background-size: cover;      /* popunjava celu sekciju */
  background-position: center; /* centrirana slika */
  background-repeat: no-repeat;
}

/* Ako želiš blagi overlay efekat za bolju čitljivost teksta */
.towing::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.65); /* crni overlay sa 40% opacity */
  z-index: 1;
}

/* Sadržaj iznad pozadine */
.towing-content {
  position: relative;
  z-index: 2; /* iznad overlay-a */
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-lg);
}

.towing-text {
  flex: 1;
}

.towing h2 {
  color: var(--primary-blue);
  margin-bottom: var(--spacing-sm);
}

.towing p {
  margin-bottom: var(--spacing-md);
  opacity: 0.9;
  font-weight: 400;
  max-width: 600px;
}

.towing-features {
  list-style: none;
  margin-bottom: var(--spacing-lg);
}

.towing-features li {
  padding: var(--spacing-xs) 0;
  font-size: 1.05rem;
  color: var(--white);
  font-weight: 700;
}

.towing-icon {
  flex: 0 0 150px; 
  display: flex;
  align-items: center;
  justify-content: center;
}


/* RESPONSIVE */
@media (max-width: 768px) {
  .towing-content {
    flex-direction: column-reverse; /* tekst iznad slike na mobilnom */
    align-items: center;
    text-align: center;
  }

  .towing-text h2 {
    font-size: 1.5rem;
  }

  .towing-text p,
  .towing-features li {
    font-size: 0.95rem;
  }
}


.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;

}

/* FAQ */
.faq {
  background-color: var(--black);
  padding: var(--spacing-lg);
  border-radius: 10px;
}

.faq-title {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
}

.faq-item {
  background-color: #1f1f1f;
  padding: var(--spacing-md);
  border-radius: 8px;
  margin-bottom: var(--spacing-sm);
}

.faq-item summary {
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 24px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  color: var(--primary-blue);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  color: #bebebe;
  margin-top: var(--spacing-sm);
  line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact {
  padding: var(--spacing-xl) 0;
  background-color: var(--black);

}

.contact h2 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.contact-item h3 {
  color: var(--white);
  margin-bottom: var(--spacing-sm);
}

.contact-item p {
  color:#bebebe;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
}

.contact-item a {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 1.2rem;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-note {
  font-size: 0.9rem;
  color: var(--gray);
}
.contact-faq-grid {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}




.map-container {
  width: 100%;           /* zauzima širinu ekrana / roditelja */
  max-width: 800px;      /* opcionalno, da ne bude preširoko na desktopu */
  height: 100%;         /* visina mape */
  margin: 0 auto;        /* centriranje */
  border: 2px solid var(--primary-blue); /* tvoj border */
  border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-placeholder {
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.map-placeholder p:first-child {
  font-size: 4rem;
  margin-bottom: var(--spacing-sm);
}


.footer {
  background-color: var(--black);
  color: var(--white);
  padding: 10px;
  text-align: center;
  font-size: 15px;
}

.footer p {
  margin-bottom: var(--spacing-xs);
  opacity: 0.8;
}

.footer-keywords {
  font-size: 0.85rem;
  opacity: 0.6;
}


/* Sakrij header na mobilnim uređajima */
@media (max-width: 768px) {
  .header {
    display: none;
  }
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .container {
    padding: 0 var(--spacing-md);
  }

  .hero {
    padding: 80px 0;
    
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-description {
    font-size: 1.2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-us-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .cars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}











.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 999999;
  pointer-events: none;
}

.particles::before,
.particles::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,102,204,0.15) 0%, transparent 70%);
  filter: blur(80px);
  animation: float 20s linear infinite;
}

.particles::after {
  width: 500px;
  height: 500px;
  animation-duration: 25s;
  animation-direction: reverse;
}

@keyframes float {
  from {
    transform: translate(-20%, -20%);
  }
  to {
    transform: translate(120%, 120%);
  }
}



.speed-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}


section {
  animation: fadeUp 0.8s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.4),
    transparent
  );
  transform: translateX(-100%);
}

.btn-primary:hover::after {
  transform: translateX(100%);
  transition: transform 0.6s ease;
}


@media (max-width: 768px) {
  .mobile-footer {
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-blue);
    padding: 8px 20px;
    border-radius: 12px;
    display: inline-flex; /* inline-flex da se ne širi preko ekrana */
    flex-direction: column;
    align-items: center;
    z-index: 1100;
    max-width: fit-content; /* širina zavisi od sadržaja */
  }

  .mobile-phone {
    color: #1f1f1f;
    font-size: 1.1rem;
    text-decoration: none;
    font-weight: 600;
    
  }

}


/* Sakrij na desktopu */
@media (min-width: 769px) {
  .mobile-footer {
    display: none;
  }
}


.hidden {
  display: none !important;
}





.back-to-top {
  position: fixed;
  bottom: 65px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-blue); /* plava */
  color: #1f1f1f;
  text-align: center;
  line-height: 50px;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: none; /* sakriveno dok ne skroluje */
  z-index: 2000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background-color: var(--dark-blue);
  transform: translateY(-3px);
}



/* ========================= */
/* BACKGROUND GRID - RESPONSIVE */
/* ========================= */
.bg-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 6 kolona */
  grid-template-rows: repeat(2, 1fr);    /* 2 reda */
  gap: 5px;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.bg-item {
  width: 100%;
  height: 100%;
  object-fit: cover; /* popuni celu ćeliju */
  display: block;

  animation: bgZoom 25s linear infinite alternate;
}

/* RESPONSIVE PRILAGOĐAVANJE ZA MALI EKRAN */
@media (max-width: 1024px) {
  .bg-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 kolone na tabletu */
    grid-template-rows: repeat(3, 1fr);    /* 3 reda da stane sve */
  }
}

@media (max-width: 768px) {
  .bg-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 kolone na telefonu */
    grid-template-rows: repeat(4, 1fr);    /* 4 reda da stane sve */
  }
}

@media (max-width: 480px) {
  .bg-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 kolone na malim ekranima */
    grid-template-rows: repeat(6, 1fr);    /* 6 redova */
  }
}


/* Spori zoom za sve elemente */
@keyframes bgZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.05); }
}

/* Dark overlay preko celog grida (opciono) */
.bg-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2;
}


#start-screen {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* centriranje po sredini */
  width: 100vw;
  height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  /* Blagi gradient + poluprovidno da se vidi sajt iza */
  background: linear-gradient(135deg, rgba(30,33,68,0.7), rgba(17, 14, 54,0.7));

  /* Blur efekat pozadine */
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px); /* za Safari */

  /* Fade animacija */
  transition: opacity 1.5s ease-in-out, backdrop-filter 1.5s ease, background 1.5s ease;

  opacity: 1;
  z-index: 9999; /* vrlo visok */
}

/* Kada klikne na start */
#start-screen.hide {
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(0);
  background: linear-gradient(135deg, rgba(30,33,68,0), rgba(14, 45, 54,0));
}









#start-btn {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 200px;          /* veće dugme da tekst stane */
  height: 200px;
  border-radius: 50%;    /* okruglo */
  font-weight: 700;
  font-size: 1.5rem;     /* veći tekst */
  text-align: center;
  cursor: pointer;
  background-color: #1a1a1a; /* tamno siva pozadina */
  color: #fff;                /* tekst bele boje */
  overflow: hidden;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
  animation: pulseButton 2s infinite alternate;
  padding: 0 15px;            /* više prostora za tekst */
  text-transform: uppercase;
  z-index: 999999999;
}

/* Deblji unutrašnji outline */
#start-btn::before {
  content: "";
  position: absolute;
  inset: 8px;                   /* unutrašnji rub */
  border: 5px solid var(--dark-blue);       /* deblji outline, tamno siva */
  border-radius: 50%;
  pointer-events: none;
}

/* Pulse animacija */
@keyframes pulseButton {
  0% {
    transform: scale(1);
    box-shadow: 0 0 25px rgba(0,0,0,0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0,0,0,0.6);
  }
  100% {
    transform: scale(1.1);
    box-shadow: 0 0 55px rgba(0,0,0,0.8);
  }
}

/* Shine efekat */
#start-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.3),
    transparent
  );
  transform: translateX(-100%);
  pointer-events: none;
  transition: transform 0.6s ease;
  border-radius: 50%;
}

#start-btn:hover::after {
  transform: translateX(100%);
}

/* Hover efekti */
#start-btn:hover {
  background-color: #333;  /* tamnija siva */
  transform: scale(1.12);
  box-shadow: 0 0 60px rgba(0,0,0,0.7);
}

/* Klik efekti */
#start-btn:active {
  transform: scale(0.95);
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}








/* Opšta reveal animacija */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Service card animacija */
.service-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.service-card.active {
  opacity: 1;
  transform: translateY(0);
}



/* ========================= */
/* TESTIMONIAL TEKST STILOVI */
/* ========================= */

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  text-align: center;
}

/* ZVEZDICE */
.testimonial-card .stars {
  color: #f5c518; /* zlatne zvezdice */
  font-size: 0.9rem;
  letter-spacing: 2px;
}

/* TEKST RECENZIJE */
.testimonial-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #eaeaea;
  margin: 0;
  font-style: italic;
}

/* IME KLIJENTA */
.testimonial-card h4 {
  margin-top: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--light-blue);
}

.testimonials {
  padding: 20px 0 40px;
  background-color: var(--light-gray); /* pozadina sekcije */
  position: relative;
  overflow: hidden;
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--white);
}

.testimonials-container {
  max-width: 1200px; /* širina kao Why Us */
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.testimonials-container::before,
.testimonials-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 50px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.testimonials-container::before {
  left: 0;
  background: linear-gradient(to right, var(--light-gray), rgba(255,255,255,0));
}

.testimonials-container::after {
  right: 0;
  background: linear-gradient(to left, var(--light-gray), rgba(255,255,255,0));
}

.testimonials-track {
  display: flex;
  gap: 8px; /* manji razmak između kartica */
  animation: scroll 25s linear infinite;
}

.testimonial-card {
  flex: 0 0 auto;
  background: var(--black);
  color: var(--primary-blue);
  padding: 12px;
  border-radius: 4px; /* manji radius */
  min-width: 180px; /* uže kartice */
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.testimonial-card h4 {
  color: var(--light-blue);
  margin-top: 8px;
  font-weight: 500;
  font-size: 0.85rem;
}

.testimonial-card p::before,
.testimonial-card p::after {
  content: "";
}


@media (max-width: 768px) {
  .testimonial-card {
    min-width: 150px;
    padding: 10px;
  }

  .testimonial-card .stars {
    font-size: 0.75rem;
    letter-spacing: 1px;
  }

  .testimonial-card p {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .testimonial-card h4 {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .testimonial-card {
    min-width: 135px;
    padding: 8px;
  }

  .testimonial-card p {
    font-size: 0.75rem;
  }
}

/* Kontinuirana glatka animacija */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.stats-line-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  gap: 10px;
  flex-wrap: nowrap;
  overflow: hidden;
  margin-bottom: 0px; /* može da ostane 0 jer padding sekcije već pravi razmak */
}

.statistics-section {
  padding: 0px 0 50px 0; /* gornji i donji padding */
  background-color: var(--light-gray);
  display: flex;
  justify-content: center;
  flex-direction: column; /* da label i brojevi budu u koloni ako je potrebno */
}

/* SVAKI ELEMENT */
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 10px;
  white-space: nowrap;
  color: #fff;
  background-color: var(--black);
  flex: 1 1 0;      /* fleksibilno smanjenje */
  min-width: 0;     /* sprečava overflow */
  text-align: center;
}

/* BROJ + IKONICA */
.stat-item .number-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-item .number {
  font-size: clamp(14px, 2vw, 22px); /* skaliranje broja */
  font-weight: 700;
  color: var(--primary-blue);
  margin-right: 4px;
}

.stat-item .icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--dark-blue);
}

/* LABEL iznad broja */
.stat-item .label {
  font-size: clamp(12px, 1.2vw, 16px);
  font-weight: 600;
  margin-bottom: 1px;
  margin-right: 0;
}

/* RESPONSIVE: mobilni uređaji */
@media (max-width: 768px) {
  .stat-item {
    padding: 10px 8px;
    flex: 1 1 auto; /* fleksibilno smanjenje */
  }

  .stat-item .label {
    font-size: 11px;
  }

  .stat-item .number {
    font-size: 16px;
  }

  .stat-item .icon svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 480px) {
  .stat-item .label {
    font-size: 12px;
  }

  .stat-item .number {
    font-size: 24px;
  }

  .stat-item .icon svg {
    width: 12px;
    height: 12px;
  }
}





/* ========================= */
/* GALERIJA SEKCIJA           */
/* ========================= */

.gallery-preview {
  padding: 60px 20px;
  background-color: var(--black);
  text-align: center;
}

.gallery-preview h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #fff;
}

.gallery-preview .section-description {
  font-size: 1rem;
  color: #ffffffa8;
  margin-bottom: 40px;
}



/* ========================= */
/* GALERIJA KARTICE           */
/* ========================= */

/* GRID */
.gallery-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* KARTICE */
.gallery-card {
  position: relative;
  border-radius: 16px; /* malo veći radius */
  overflow: hidden;
  height: 280px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  /* NOVO: pozadina i padding */
  background-color: var(--light-gray); /* bg oko slike */
  padding: 8px; /* prostor između slike i bg */
}

/* SLIKA UNUTAR KARTICE */
.gallery-card .gallery-image {
  width: 100%;
  height: 100%;
  border-radius: 12px; /* radius unutar paddinga */
  overflow: hidden;
}


/* Hover efekti */
.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* SLIKA */
.gallery-card .gallery-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.gallery-card .gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-image img {
  transform: scale(1.05);
}

/* TAMNI OVERLAY */
.gallery-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.35);
  z-index: 2; /* iznad slike */
  transition: background 0.3s ease;
}

.gallery-card:hover::before {
  background: rgba(0,0,0,0.2);
}

/* TEKST - h3 sa pulsirajućim efektom */
.gallery-card h3 {
  position: relative;
  z-index: 3;
  text-align: center;
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
  margin: 0;
  padding: 0 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  transition: opacity 0.3s ease;
  
  /* Pulsiranje */
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.gallery-card:hover h3 {
  opacity: 0.9; /* tekst ostaje vidljiv kada hover */
}


/* PULSIRAJUĆI GLOW NA SLIKAMA */
.gallery-card .gallery-image img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: pulse-glow 3s infinite; /* sporije od teksta */
}

@keyframes pulse-glow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  }
  50% {
    transform: scale(1.02); /* blago zumiranje */
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .gallery-card {
    height: 220px;
  }

  .gallery-card h3 {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .gallery-card {
    height: 180px;
  }

  .gallery-card h3 {
    font-size: 1.2rem;
  }
}


/* ================================================= */
/*                    GALERIJA GRID                  */
/* ================================================= */

.gallery-section {
  padding: 115px 20px;
  background: var(--black);
  text-align: center;
}

.gallery-section h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}

/* GRID – kvadratne kartice (512x512 ratio) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1300px;
  margin: 0 auto;
}

.gallery-item {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;
  background: #000;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
  transform: scale(1.04);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Play ikonica za video */
.gallery-item[data-type="video"]::after {
  content: "▶";
  position: absolute;
  font-size: 2.4rem;
  color: #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  text-shadow: 0 0 14px rgba(0, 0, 0, 0.9);
}

/* ================================================= */
/*                      MODAL                        */
/* ================================================= */

.gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(5px);
  z-index: 10000;
}

/* CLOSE (X) unutar modal-content */
.gallery-modal .close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 2.8rem;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s ease;
  z-index: 10001;
  user-select: none;
  padding: 5px;
}

.gallery-modal .close:hover {
  opacity: 0.7;
}

/* Responsive za telefone */
@media (max-width: 768px) {
  .gallery-modal .close {
    top: 8px;
    right: 8px;
    font-size: 2.4rem;
    padding: 8px;
  }
}



/* Aktivni modal */
.gallery-modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

/* Media u modalu */
.media-container img,
.media-container video {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 14px;
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.9);
}



/* ================================================= */
/*                  STRELICE                         */
/* ================================================= */

.gallery-modal .prev,
.gallery-modal .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.2rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
  background: none;
  padding: 0;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
  outline: none; /* uklanja outline kada se klikne ili fokusira */
  border: none;  /* uklanja eventualni border */
}

.gallery-modal .prev:hover,
.gallery-modal .next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.12);
}

.prev {
  left: -70px;
}

.next {
  right: -70px;
}

/* ================================================= */
/*                 RESPONSIVE                        */
/* ================================================= */

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
  }

  .prev {
    left: 10px;
  }

  .next {
    right: 10px;
  }

  .close {
    top: -40px;
    font-size: 2rem;
  }
}



/* KO SMO MI? Sekcija */
.about-us {
  background-color: var(--black); /* svetla pozadina za profesionalni izgled */
  padding: 60px 20px; /* više prostora oko teksta */
  font-family: 'Arial', sans-serif;
  color: #e4e4e4; /* tamno siva boja za bolju čitljivost */
}

.about-us .container {
  max-width: 900px; /* širi tekst i bolje poravnanje */
  margin: 0 auto;
  line-height: 1.8; /* prostraniji redovi za lakše čitanje */
}

.about-us h2 {
  font-size: 36px; /* veći naslov */
  font-weight: 700;
  color: var(--white); /* profesionalna plava */
  text-align: center;
  margin-bottom: 30px;
}

.about-us p {
  font-size: 18px; /* veći tekst za lakše čitanje */
  margin-bottom: 25px;
  text-align: justify; /* poravnanje teksta sa leve i desne strane */
}

.about-us strong {
  color: var(--primary-blue); /* naglašeni ključni pojmovi u plavoj boji */
}







/* =========================
   FIXED SERVICE SWITCH
   ========================= */

/* =========================
   FIXED SERVICE SWITCH – BOTTOM CENTER
   ========================= */

.service-switch-fixed {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}


/* dugme */
.service-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.2px;
  transition: all 0.25s ease;
}

/* AUTOMATSKI MENJAČI */
.service-switch.auto {
  background: var(--primary-blue);
  color: #111;
  box-shadow:
    0 10px 25px rgba(245, 196, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* hover */
.service-switch.auto:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 35px rgba(245, 196, 0, 0.6),
    0 0 0 1px rgba(0, 0, 0, 0.1);
}


/* MOBILE – FIXED SERVICE SWITCH ON TOP */
@media (max-width: 768px) {
  .service-switch-fixed {
    top: 90px;       /* distance from top */
    bottom: auto;    /* uklanja bottom */
    left: 50%;
    transform: translateX(-50%);
  }

  .service-switch {
    padding: 8px 14px; /* manja veličina za mobilni */
    font-size: 13px;
  }
}