/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* Pozadina */
body {
  background: linear-gradient(135deg, #0a0f29 0%, #1a1a2e 25%, #16213e 50%, #25143d 75%, #2d1b69 100%);
  color: #fff;
  min-height: 100vh;
}



/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background: linear-gradient(135deg, #0a0f29 0%, #1a1a2e 25%, #16213e 50%, #25143d 75%, #2d1b69 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: slideDown 0.8s ease-out;
}

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

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}


.hero-logo {
  height: 200px;
  width: auto;
  max-width: 500px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.6));
  margin: 0 auto;
  position: relative;
  display: block;
}



.hero-logo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(142, 36, 170, 0.3) 0%, rgba(90, 0, 255, 0.2) 30%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: -1;
  border-radius: 50%;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.menu-toggle {
  font-size: 24px;
  cursor: pointer;
  display: block;
}

nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 60px;
  right: 10px;
  background: rgba(0,0,0,0.8);
  padding: 12px;
  border-radius: 10px;
}

nav.active {
  display: flex;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin: 8px 0;
  white-space: nowrap;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 6px;
}

nav a:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* Hero sekcija */
/* Hero Section */
.hero {
  text-align: center;
  padding: 80px 20px 60px 20px; /* Reduced padding */
  animation: fadeInUp 1s ease-out;
}

/* Adjust the logo size */
.hero-logo {
  height: 150px; /* Slightly smaller size */
  max-width: 400px; /* Controlled max-width */
  margin: 0 auto;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.6));
  display: block;
}

/* Video Section */
.proofs {
  text-align: center;
  padding: 60px 40px;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.video-container {
  display: inline-block; /* Ovaj način koristi inline-block da video bude centriran */
  position: relative;
  padding: 35px; /* Dodajemo prostor oko videa, možete prilagoditi */
  background: rgba(0, 0, 0, 0.7); /* Tamnija nijansa */
  border-radius: 15px; /* Zaobljene ivice */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); /* Blaga senka za 3D efekat */
}

.proofs h2 {
  margin-bottom: 40px;
  font-size: 28px;
  color: #fff;
  font-weight: bold;
  animation: fadeInUp 1s ease-out 0.8s both;
}

.proofs video {
  width: 100%;
  max-width: 600px; /* Maksimalna širina videa */
  border-radius: 10px; /* Zaobljene ivice videa */
  outline: none;
  display: block;
  margin: 0 auto;
  animation: fadeInUp 1s ease-out 1s both;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.proofs video:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

/* For smaller screens */
@media (max-width: 768px) {
  .hero {
    padding: 60px 30px 50px 30px; /* Reduced padding */
  }

  .hero-logo {
    height: 120px;
    max-width: 350px;
  }

  .proofs {
    padding: 30px 20px;
  }

  .proofs video {
    max-width: 100%; /* Ensures the video fits on smaller screens */
  }
}


/* Circular Icons Section */
.gallery {
  padding: 60px 20px;
  text-align: center;
  animation: fadeInUp 1s ease-out 1.2s both;
}

.gallery h2 {
  margin-bottom: 30px;
  font-size: 24px;
  color: #fff;
  font-weight: bold;
  animation: fadeInUp 1s ease-out 1.4s both;
}

.proof-icons {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.proof-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,255,255,0.1);
  min-width: 120px;
  animation: fadeInUp 1s ease-out calc(1.6s + var(--delay, 0s)) both;
}

.proof-icon:nth-child(1) { --delay: 0s; }
.proof-icon:nth-child(2) { --delay: 0.1s; }
.proof-icon:nth-child(3) { --delay: 0.2s; }

.proof-icon:hover {
  transform: translateY(-8px) scale(1.05);
  background: rgba(255,255,255,0.1);
  border-color: #8e24aa;
  box-shadow: 0 10px 30px rgba(142, 36, 170, 0.3);
}

.icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8e24aa, #5a00ff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.proof-icon:hover .icon-circle {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(142, 36, 170, 0.4);
}

.icon-symbol {
  color: #fff;
  font-size: 24px;
  font-weight: bold;
}

.proof-label {
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
}


/* Footer */



footer {
  position: relative;
  background: #000;
  padding: 40px 15px;
  text-align: center;
  color: #ccc;
  overflow: hidden;
}

/* Smooth divider between gallery and footer */
.section-divider {
  position: relative;
  width: 100%;
  line-height: 0;
}

.section-divider svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* Containers and sections */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 80px 30px 60px 30px;
  }
  
  .hero-logo {
    height: 200px;
    max-width: 500px;
  }
  
  .proofs {
    padding: 50px 30px;
  }
  
  .proof-icons {
    gap: 20px;
  }
  
  .proof-icon {
    min-width: 100px;
    padding: 15px;
  }
  
  .icon-circle {
    width: 60px;
    height: 60px;
  }
  
  .icon-symbol {
    font-size: 20px;
  }
  
  .video-container {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  header {
    padding: 15px 20px;
  }
  
  .logo {
    font-size: 20px;
  }
  
  .hero {
    padding: 60px 20px 40px 20px;
  }
  
  .hero-logo {
    height: 150px;
    max-width: 350px;
  }
  
  .proofs {
    padding: 40px 20px;
  }
  
  .proof-icons {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}

/* Desktop nav */
@media (min-width: 900px) {
  .menu-toggle { display: none; }
  header {
    justify-content: center;
    gap: 60px;
  }
  nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    gap: 30px;
    background: transparent;
    padding: 0;
  }
  nav a { 
    margin: 0; 
    opacity: 0.9; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
  }
  nav a:hover { 
    opacity: 1; 
    transform: translateY(-2px);
    color: #e0e0e0;
  }
  nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8e24aa, #5a00ff);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
  }
  nav a:hover::after {
    width: 100%;
  }
  header { backdrop-filter: blur(6px); }
  
  /* Desktop improvements */
  .hero {
    padding: 120px 60px 100px 60px;
  }
  
  .hero-logo {
    height: 250px;
    max-width: 600px;
  }
  
  .proofs {
    padding: 80px 60px;
  }
}


/* Particles canvas */
#tsparticles {
  position: absolute;
  bottom: 0;       /* vezano za dno footera */
  left: 0;
  width: 100%;
  height: 100%;    /* sada zauzima samo footer */
  z-index: 0;      /* iza sadržaja */
}


.footer-content {
  position: relative;
  z-index: 1; /* sadržaj iznad particles */
  max-width: 500px;
  margin: auto;
}

.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
}

.footer-logo img {
  width: 40%;   /* ne više % jer treba stabilna veličina */
  height: 40%;
  filter: drop-shadow(0 0 10px #5a00ff) drop-shadow(0 0 20px #00d4ff);
}

.footer-menu {
  list-style: none;
  margin: 20px 0;
  padding: 0;
}

.footer-menu li {
  margin: 8px 0;
}

.footer-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: 0.3s;
}

.footer-menu a:hover {
  color: #00d4ff;
  text-shadow: 0 0 8px #5a00ff;
}

footer p {
  margin-top: 20px;
  font-size: 14px;
  color: #888;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.service-card {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  transition: transform .25s ease, box-shadow .25s ease;
}

.service-card h3 {
  margin-bottom: 8px;
}

.service-card p { color: #ccc; }

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
}

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

/* 3D rotating images */
/* Za sve ekrane */
.rotate-gallery {
  display: flex;
  flex-direction: column; /* Slike i rotacija jedna ispod druge */
  gap: 20px;  /* Razmak između kartica */
  justify-content: center;
  flex-wrap: wrap;
}

/* Za mobilne uređaje */
@media (max-width: 768px) {
  .rotate-gallery {
    flex-direction: column;  /* Slike ispod jedna druge na mobilnim uređajima */
  }

  .rot3d-card {
    width: 100%;  /* Širina kartica na mobilnim uređajima */
  }
}

/* Za desktop uređaje */
@media (min-width: 769px) {
  .rotate-gallery {
    flex-direction: column;  /* Raspored u kolonama umesto redovima */
  }

  .rot3d-card {
    width: 100%;  /* 100% širina na desktop uređajima, kako bi bile ispod jedna druge */
  }
}


.rot3d-card {
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
}

.rot3d-inner {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 16/10;
  transform-style: preserve-3d;
  animation: spinY 10s linear infinite;
}

.rot3d-inner .face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  backface-visibility: hidden;
}

.rot3d-inner .back {
  transform: rotateY(180deg);
}

.rot3d-card:nth-child(2) .rot3d-inner { animation-duration: 12s; }
.rot3d-card:nth-child(3) .rot3d-inner { animation-duration: 14s; }



@keyframes spinY {
  0% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg); }
  100% { transform: rotateY(360deg); }
}

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


/* Globalni partikli */
#globalParticles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;  /* Ovaj canvas ide u pozadinu */
  pointer-events: none; /* Omogućava klikove i interakciju sa elementima iznad */
}

/* Specifični partikli u footeru - ne treba da budu preklopljeni */
footer {
  position: relative;
  z-index: 1; /* Osiguravamo da footer bude iznad globalnih particli */
}


/* Galerija - raspored slika */
.gallery {
  display: flex;
  flex-direction: column; /* Slike ispod slika */
  gap: 20px;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.gallery-item {
  width: 100%;
  max-width: 400px;  /* Fiksna širina slika u galeriji */
  margin: 0 auto;
}

.gallery-image {
  width: 100%;
  height: 300px;  /* Fiksna visina slika */
  object-fit: cover; /* Prilagođava sliku unutar zadanog prostora */
  border-radius: 15px; /* Zaobljene ivice */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);  /* Senke oko slika */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efekat pri hover-u */
.gallery-image:hover {
  transform: scale(1.05); /* Slika postaje veća pri hover-u */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Lightbox efekat: Dodavanje efekta zatvaranja kad se klikne bilo gde */
#lightbox {
  display: none; /* Početno nije prikazano */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Poluprovidna crna pozadina */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease;
}

#lightbox.open {
  display: flex;
}

/* Responsivnost - manji ekrani */
@media (max-width: 768px) {
  .gallery-item {
    max-width: 100%;
  }
  .gallery-image {
    height: 200px; /* Manja visina slika na manjim ekranima */
  }
}



/* Stilizovanje proizvoda */
.product {
  width: 300px;
  margin: 20px auto;
  text-align: center;
}

/* Stilizovanje cene */
.price {
  font-size: 24px;
  margin-bottom: 20px;
}

/* Stilizovanje slajdera */
.price-slider {
  width: 100%;
  height: 15px;
  background: linear-gradient(to right, #4a148c, #6a1b9a); /* Početni gradient */
  border-radius: 10px;
  -webkit-appearance: none;
  appearance: none;
  transition: all 0.3s ease;  /* Efekat pri promeni */
  box-shadow: 0 0 10px rgba(74, 20, 140, 0.7);  /* Glow efekat oko slajdera */
}

/* Stilizovanje thumb-a (klizača) na slajderu */
.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  background: #4a148c;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;  /* Promena boje pri prevlačenju mišem */
}

/* Stilizovanje thumb-a na slajderu za Firefox */
.price-slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  background: #4a148c;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

/* Promena boje slajdera pri hover-u */
.price-slider:hover {
  background: linear-gradient(to right, #6a1b9a, #8e24aa); /* Svetliji gradient pri hover-u */
}

/* Promena boje klizača (thumb-a) pri hover-u */
.price-slider:hover::-webkit-slider-thumb {
  background: #8e24aa;  /* Promena boje thumb-a pri hover-u */
}

.price-slider:hover::-moz-range-thumb {
  background: #8e24aa;  /* Promena boje thumb-a pri hover-u za Firefox */
}

/* Prikaz trenutne vrednosti cene */
.price-display {
  margin-top: 10px;
  font-size: 18px;
}

/* Stilizovanje dugmeta "Narudi" */
.order-button {
  margin-top: 20px;
  padding: 12px 24px;
  background-color: #4a148c;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Promena boje dugmeta pri hover-u */
.order-button:hover {
  background-color: #