

/* Define project colors */
:root {
    --bordo: #740f36;
    --bordo-dark: #5a0e1b;
    --bordo-light: #a24d6f;
    --crna: #000000;
    --siva: #1c1c1c;
    --cream: #fdf6f0;
    --accent-blue: #556877;
    --soft-gold: #d4af37;
  }


html {
    overflow-x: hidden; /* Prevent horizontal scroll */
    scroll-padding-top: 80px; /* da ublažiš offset headera */
    scroll-behavior: smooth;
  }
  
/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background-color: var(--bordo);
  border-radius: 4px;
  border: 2px solid var(--bordo-light);
}


button:active {
  transform: scale(0.95);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}


body {
  margin: 0;
  background-color: var(--siva);
  color: var(--cream);
  

}

 h1, h2, h3, h4 {
  font-family: 'Exo 2', sans-serif;
}
  
body, p, input, textarea, button {
  font-family: 'Roboto', sans-serif;
}
  
b, strong {
  letter-spacing: 0.06em;
  font-weight: bold;
}
/*#region:preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--siva); /* siva pozadina */
  display: flex;
  z-index: 9999;
  transition: opacity 0.8s ease;
  text-align: center; /* dodato za svaki slučaj */
}

/* Kad se dodaje klasa za fade */
.preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader-icon{
  left: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-left: 50%;
}

/* Bounce animacija */
.loader-icon img {
  width: 100px;
  height: auto;
  animation: bounce 1s infinite;
}

/* Bounce keyframes */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/*#endregion:preloader */

/*#region:cookies */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: #2c2c2c;
  color: #fff;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  font-size: 0.95rem;
}

.cookie-banner p {
  margin: 0;
}

.cookie-banner a {
  color: var(--accent-blue);
  text-decoration: underline;
}

.cookie-banner button {
  background-color: var(--bordo);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.cookie-banner button:hover {
  background-color: #8d0000;
}
/* #endregion:cookies */

/*#region:header*/
  

  /* Header styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

  header h1 {
    font-family: 'MicroFLF', sans-serif;
    font-weight: bolder;
    
  }
  
  .header {
    position: fixed;
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
    height: 70px; /* ili koliko već koristiš */
    z-index: 1000;
    background-color: var(--bordo);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    border-radius: 30px
  }
  
  
  /* Svaka kolona (logo, centar, meni) */
  .header-left,
  .header-center,
  .header-right {
    flex: 1;
    display: flex;
    align-items: center;
  }
  
  /* Logo lijevo */
  .header-left {
    transform: translateX(-10px); /* malo lijevo */
  }
  
  .logo {
    height: 80px;
    width: 80px;
    padding-top: 5px;
  }

  
  /* Naslov tačno centriran */
  .header-center {
    justify-content: center;
    left: 50%;
    padding-top: 5px;
    overflow: hidden;
  }

  /* Wrapper koji "reza" sliku po visini */
  .title-wrapper {
    width: 300px;      /* širina slike koju želiš */
    height: 70px;      /* visina headera */
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute; /* da bude iznad headera */
    overflow: hidden;
  }

  .title-wrapper img {
    width: 300px;      /* širina fiksna */
    height: auto;      /* visina se proporcionalno smanjuje */
    object-fit: cover;
  }

  @media screen and (max-width: 500px) {
    .title-wrapper img {
      width: 200px;      /* smanji širinu na manjim ekranima */
      height: auto;
    }}
  

  /* Meni ikona desno */
  .header-right {
    justify-content: flex-end;
  }
  
  .menu-icon {
    position: relative;
    font-size: 28px;
    cursor: pointer;
    user-select: none;
    padding-right: 10px;
    padding-top: 5px;
  }

.menu-icon img,
.close-icon img {
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: transform 0.3s;
}

.menu-icon img:hover,
.close-icon img:hover {
  transform: scale(1.1);
}
/* #endregion:header */

/* #region:SIDE MENU STIL */
.side-menu {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background-color: var(--siva);
    color: white;
    padding: 25px;
    box-shadow: -2px 0 10px rgba(0,0,0,0.5);
    transition: right 0.3s ease;
    z-index: 1100;
    text-align: right;
    padding-right: 25px;
  }

  .menu-options {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
  }

  .lang-switch a{
    display: flex;
    align-items: right;
    gap: 10px;
    color: white;
    flex-direction: column;
    pointer-events: none; /* da ne može biti kliknuto */
    color: white; /* ili koja god ti je boja */
    text-decoration: none;
    padding-bottom: 15px;
    padding-top: 10px;
  }
  
  .lang-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
  }
  
  .lang-buttons button {
    flex: 1;
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 6px 12px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
  }
  
  .lang-buttons button:hover {
    background-color: rgb(105, 105, 105);
    color: white;
  }
  
  .lang-buttons button.active {
    background-color: var(--soft-gold);
    color: var(--crna);
  }
  
  .lang-switch button.active-lang {
    background-color: white;
    color: black;
    font-weight: bold;
    border: 2px solid #fff;
  }
  

  
  .side-menu ul {
    list-style: none;
    padding: 0;

  }
  
  .side-menu li {
    margin: 20px 0;
  }
  
  .side-menu a, span{
    text-decoration: none;
    color: white;
    font-size: 18px;
    transition: color 0.2s;
    font-family: 'Exo 2', sans-serif;
  }
  
  .side-menu a:hover {
    color: var(--accent-blue); /* bordo hover */
  }
  
  /* OVERLAY ZA ZAMRAČENJE POZADINE */
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  
  /* AKTIVNA STANJA */
  .side-menu.active {
    right: 0;
  }
  
  .overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .close-icon {
    cursor: pointer;  /* Ovo daje "ruku" kao kod dugmeta */
    padding-top: 20px;
  }
  
  

/* #endregion:SIDE MENU STIL */

/*#region:hero */
#pocetna {
  background-attachment: scroll;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
  

.hero {
    scroll-margin-top: 80px;
    position: relative;
    min-height: 100vh;
    height: 100dvh; /* moderni fix za mobilne uređaje */
    background-image: url('images/auto.jpg'); /* zamijeni sa svojom slikom */
    background-color: var(--crna); /* fallback ako slika ne učita */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
  }
  
  .hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* tamni sloj za čitljivost */
    z-index: 1;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
  }
  
  .hero-content h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
  }
  
  .hero-content p {
    font-size: 20px;
    opacity: 0.9;
  }
  
  .hero {
    background-image: url('images/auto.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll; /* ne koristiti fixed na iOS */
    -webkit-background-size: cover; /* iOS fix */
    -webkit-background-position: center;
    -webkit-background-repeat: no-repeat;
    -webkit-background-attachment: scroll;
    background-color: #000; /* fallback ako slika ne učita */
  }
  
  
/*#endregion:hero */

/*#region: onama */
.onama-section {
  padding: 0px 20px;
  padding-top: 20px;
  padding-bottom: 65px;
  background-color: var(--bordo);
  color: #ffffff;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.onama-section h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.onama-section p {
  max-width: 1000px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
}
@media (max-width: 600px) {
  .onama-section h2 {
    font-size: 28px;
  }

  .onama-section p {
    font-size: 16px;
    padding: 0 10px;
  }
}

/*#endregion:onama */

/*#region:scroll-down */

.scroll-down {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  animation: bounce 2s infinite;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.scroll-down img {
  width: 35px;
  height: 35px;
  opacity: 0.8;
}

.scroll-down:hover img {
  opacity: 1;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}


.wave-transition {
  position: relative;
  width: 100%;
  height: 100px;
  margin-top: -5px; /* da prekrije ivicu sekcije */
  overflow: hidden;
}

.wave-transition svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/*#endregion:scroll-down */

/*#region:services */



  .services-clean {
    background-color: #1c1c1c;
    color: #eee;
    padding: 60px 20px;
    padding-bottom: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
  }
  
  .services-clean .container {
    max-width: 1460px;
    margin: 0 auto;
  }
  
  .services-clean h2 {
    font-size: 36px;
    margin-bottom: 40px;
    font-weight: 700;
    letter-spacing: 1px;
  }
  
  .services-clean p {
    font-size: 18px;
    margin-bottom: 50px;
    color: #bbb;
  }
  
  .services-list {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
  }
  
  .service {
    display: flex;
    align-items: flex-start;
    max-width: 260px;
    margin: 0 auto;
  }
  
  .icon {
    font-size: 40px;
    color: #b22222; /* bordo crvena boja */
    margin-right: 15px;
    flex-shrink: 0;
    line-height: 1;
  }
  
  .text h3 {
    font-size: 22px;
    margin-bottom: 6px;
    font-weight: 600;
    color: #fff;
  }
  
  .text p {
    font-size: 16px;
    color: #ccc;
    line-height: 1.4;
    margin: 0;
  }
  
  /* Responsive: na manjim ekranima stave se u dva reda */
  @media (max-width: 800px) {
    .services-list {
      justify-content: center;
      gap: 30px;
    }
    .service {
      max-width: 45%;
      margin-bottom: 30px;
    }
  }
  
  @media (max-width: 450px) {
    .service {
      max-width: 100%;
    }
  }

  .icon i {
    font-size: 40px;
    color: var(--bordo) /* bordo crvena boja */
  }
  /*#endregion:services */
  
/*#region:auta */  
/* Sekcija */

/* Za srednje ekrane od 760px do 1100px */
@media (min-width: 760px) and (max-width: 1100px) {
  .cars-grid {
    max-width: 95%;
    margin: 0 auto;
  }
  
  .car-row {
    justify-content: center;
    gap: 20px;
  }
  
  .car-card {
    max-width: 320px;
    flex: 1 1 320px; /* fleksibilno širina, ali ne manja od 320px */
  }
}

/* Za manje ekrane ispod 760px */
@media (max-width: 759px) {
  .car-row {
    flex-direction: column;
    align-items: center;
  }

  .car-card {
    max-width: 90%;
  }
}

.cars-section {
  padding: 60px 20px;
  background-color: #111;
  color: #fff;
  text-align: center;
  scroll-margin-top: 80px;
}

.cars-section h2 {
  font-size: 32px;
  margin-bottom: 40px;
}

.cars-section .highlight {
  color: #e91e63;
  font-weight: 600;
}

/* Grid */
.cars-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.car-row {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
}

/* Kartica */

/* Traka “NEDOSTUPNO” */
.car-card .badge {
  position: absolute;
  top: 25px;
  right: -55px;
  background-color: #b22222;
  color: white;
  padding: 6px 60px;
  transform: rotate(45deg);
  font-weight: 700;
  font-size: 0.75rem;
  z-index: 3;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

/* Overlay samo na slici */
.car-card.nedostupno .car-image .overlay-auta {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
  pointer-events: none;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}


/* Slika se ponaša normalno unutar .car-image */
.car-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.car-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.car-card {
  background-color: #222;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 360px;
  transition: transform 0.3s ease;
}


.car-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.car-info {
  padding: 15px 20px;
}

.car-info h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

.car-info p {
  font-size: 14px;
  color: #aaa;
  margin: 0;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  gap: 30px;
}

.tab-btn {
  flex: 1 1;
  max-width: 200px;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 10px 20px;
  background-color: transparent;
  border: 2px solid white;
  color: white;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  border-radius: 50px;
}

.tab-btn.active,
.tab-btn:hover {
  background-color: white;
  color: var(--bordo);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: flex; 
  flex-direction: column;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.no-cars-card {
  background-color: #222; /* tamna pozadina */
  color: #fff;
  padding: 20px 30px;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: bolder;
  text-align: center;
  margin: 20px auto;
  max-width: 400px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  user-select: none;
}




/*#endregion:auta */  

/*#region:kontakt */

.cta-section {
  background: linear-gradient(to right, #1a1a1a, #2a2a2a);
  color: white;
  padding: 80px 20px;
  text-align: center;
  scroll-margin-top: 80px;
}

.cta-content h2 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  color: var(--bordo);
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.cta-button {
  background-color: var(--bordo);
  color: white;
  padding: 14px 30px;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 50px;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background-color: #8d0000;
}

@media (max-width: 768px) {
  .cta-section {
    animation: none !important;
    opacity: 1 !important;
  }
}


/* === KONTAKT SEKCIJA === */
.kontakt-section {
  padding: 80px 20px;
  background: linear-gradient(to right, #1e1e1e, #2c2c2c);
}

.kontakt-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
  align-items: stretch;
}

.kontakt-form, .kontakt-info {
  flex: 1 1 300px;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  color: white;
  display: flex;              /* Dodano */
  flex-direction: column;     /* Dodano */
  align-items: center;        /* Dodano */
}


.kontakt-form h3, .kontakt-info h3 {
  margin-bottom: 25px;
  color: #ffffff;
  text-align: center;
}

.kontakt-form input,
.kontakt-form textarea {
  width: 100%;
  margin-bottom: 20px;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background-color: rgba(255,255,255,0.1);
  color: white;
  font-size: 1rem;
}

.kontakt-form textarea {
  resize: vertical;
  min-height: 120px;
}

.kontakt-form button {
  background-color: var(--bordo);
  color: white;
  padding: 14px 30px;
  border: none;
  font-size: 1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.kontakt-form button:hover {
  background-color: #8d0000;
}

.kontakt-info{
  max-height: fit-content;
}

.kontakt-info p {
  margin-bottom: 15px;
  display: flex;
  gap: 15px;
  font-size: 1rem;
}

.kontakt-info a {
  color: #ffcccc;
  text-decoration: underline;
}

.map-container {
  margin-top: 30px;
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  align-self: center; /* Centriraj u kontakt-info */
}


/* RESPONSIVE */
@media (max-width: 768px) {
  .kontakt-container {
    flex-direction: column;
    align-items: center;
  }
}

/*#endregion:kontakt */

/*#region:footer */
.footer {
  border-top: 1px solid #444;
  padding: 8px 0;
  text-align: center;
  color: #aaa;
  font-size: 0.75rem; /* manji font */
  background-color: #111;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.footer .container {
  max-width: 1200px;
  margin: 0 auto;
}


/*#endregion:footer */
