@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

/* ⭐ Zvijezde */
#stars {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at bottom, #020111 0%, #000 100%);
  pointer-events: none;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  z-index: 10;
}

header .logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

header img {
  height: 55px;
  width: auto;
  filter: brightness(1.1);
  transition: transform 0.3s ease, filter 0.3s ease;
}

header img:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

header h1 {
  font-size: 1.6rem;
  letter-spacing: 2px;
}

header nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 25px;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

header nav a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

header nav a.active {
  text-shadow: 0 0 15px rgba(0,200,255,0.8);
}

/* HERO */
#hero {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100vh;
}

#hero .content h2 {
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 0 15px rgba(255,255,255,0.3);
}

#hero .content h3 {
  font-size: 1.5rem;
  color: #ffffff;
}

/* === OPŠTE SEKCIJE === */
.centered-section {
  padding: 100px 50px;
  background: rgba(0,0,0,0.45);
  border-radius: 25px;
  backdrop-filter: blur(8px);
  margin: 0 auto 120px;
  max-width: 1200px;
  color: #fff;
  line-height: 1.8;
}

.centered-section h2 {
  font-size: 2.4rem;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 0 0 12px rgba(255,255,255,0.3);
}

.centered-section p {
  font-size: 1.1rem;
  color: #dce7ff;
  text-align: center;
  margin-bottom: 20px;
}

/* === GALERIJA === */
.gallery-section {
  min-height: 100vh;
  padding: 100px 50px;
  text-align: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  border-radius: 25px;
  max-width: 1300px;
  margin: 0 auto 120px;
}

.gallery-header {
  max-width: 800px;
  margin: 0 auto 60px;
  text-align: center;
}

.gallery-header h2 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  text-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.gallery-header p {
  font-size: 1.1rem;
  color: #cfdfff;
  line-height: 1.6;
}

/* Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
  justify-items: center;
  align-items: stretch;
  margin-top: 30px;
}

.gallery-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(255,255,255,0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  aspect-ratio: 16/9;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
  filter: brightness(0.8) contrast(1.05);
  display: block;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px rgba(255,255,255,0.15);
}

.gallery-item:hover img,
.gallery-item:hover video {
  filter: brightness(1);
}

/* Overlay */
.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 25px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.1));
  color: #fff;
  opacity: 0;
  transform: translateY(40%);
  transition: opacity 0.4s ease, transform 0.4s ease;
  text-align: left;
}

.gallery-item:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item .overlay h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.gallery-item .overlay p {
  font-size: 0.95rem;
  color: #aad2ff;
}

/* === POPUP === */
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 300;
}

.popup.active {
  visibility: visible;
  opacity: 1;
}

.popup-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(20px);
  border-radius: 25px;
  padding: 40px 50px;
  width: 95%;
  height: 90vh;
  box-shadow: 0 0 30px rgba(255,255,255,0.15);
  position: relative;
  animation: fadeIn 0.45s ease;
}

.popup-left {
  flex: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.popup-left img,
.popup-left video {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(255,255,255,0.2);
  object-fit: contain;
}

/* DESNA STRANA POPUPA */
.popup-right {
  flex: 1;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-right: 20px;
}

.popup-right h3 {
  font-size: 2.3rem;
  margin-bottom: 25px;
  font-weight: 700;
  background: linear-gradient(90deg, #fff, #b2dfff);
   background-clip: text;
  -webkit-background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.meta-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 25px;
}

.ai-info, .model-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* AI ikona glow */
.ai-info img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 15px rgba(251, 252, 252, 0.4);
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0% { box-shadow: 0 0 12px rgba(100,180,255,0.3); transform: scale(1); }
  50% { box-shadow: 0 0 24px rgba(100,180,255,0.6); transform: scale(1.05); }
  100% { box-shadow: 0 0 12px rgba(100,180,255,0.3); transform: scale(1); }
}

.label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9ecfff;
  margin-bottom: 2px;
}

.value {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
}

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
  margin: 10px 0 20px;
}

.prompt-title {
  font-size: 1.1rem;
  color: #9ecfff;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}

.prompt-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 22px;
  border-radius: 14px;
  box-shadow: inset 0 0 18px rgba(255,255,255,0.08);
  font-family: monospace;
  color: #e8e8e8;
  font-size: 1rem;
  line-height: 1.7;
  transition: background 0.3s ease;
  min-height: 120px;
  overflow: hidden;
}

.prompt-box:hover {
  background: rgba(255,255,255,0.08);
}

/* Typewriter */
.typing-cursor {
  display: inline-block;
  width: 10px;
  background: #9ecfff;
  margin-left: 3px;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Navigacija popup-a */
.popup .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s ease;
}

.popup .close:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  padding: 10px 15px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: background 0.3s ease, transform 0.3s ease;
  z-index: 400;
}

.nav-arrow:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-50%) scale(1.1);
}

.nav-arrow.left { left: 25px; }
.nav-arrow.right { right: 25px; }

@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.97);}
  to {opacity: 1; transform: scale(1);}
}

/* FOOTER */
footer {
  background: rgba(0, 0, 0, 0.7);
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #aaa;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .popup-content { flex-direction: column; height: 90vh; gap: 20px; padding: 30px; }
  .popup-right { padding: 0; text-align: center; }
  .nav-arrow { display: none; }
  header { flex-direction: column; padding: 15px; }
  header nav a { margin: 10px; }
}

/* Ukloni glow s aktivnog linka */
header nav a.active {
  text-shadow: none;
  color: #fff;
}

/* Ispravi overlay i z-index */
.gallery-item {
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.gallery-item:hover .overlay {
  opacity: 1 !important;
  transform: translateY(0) !important;
  z-index: 2;
}

/* Overlay da bude vidljiv za sve slike */
.gallery-item .overlay {
  opacity: 1;
  transform: none;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.05));
  transition: background 0.3s ease;
}
.gallery-item:hover .overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.15));
}

/* Dugmad */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #fff;
  color: #000;
  transform: scale(1.05);
}

.ai-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  padding: 6px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .ai-badge {
  opacity: 1;
  transform: scale(1.05);
}

.ai-badge img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.ai-badge span {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.btn-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}



/* === Dropdown meni – samo zastavice (kompaktna verzija) === */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: color 0.3s ease;
}

/* Glavni container */
.dropdown-content {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  min-width: auto;             /* automatska širina prema sadržaju */
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s 0.25s;
  padding: 4px;                /* blago unutrašnje poravnanje */
}

/* Aktivno stanje */
.dropdown.open .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
}

/* Svaka zastava kao "dugme" */
.dropdown-content a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;                /* manji padding */
  transition: background 0.3s ease, transform 0.2s ease;
}

.dropdown-content a:hover {
  background: rgba(255,255,255,0.15);
  transform: scale(1.05);
  border-radius: 6px;
}

/* Zastavice */
.flag {
  width: 28px;
  height: 20px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 6px rgba(255,255,255,0.25);
  margin: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Efekat na hover zastave */
.flag:hover {
  transform: scale(1.08);
  box-shadow: 0 0 10px rgba(255,255,255,0.4);
}



/* Responsive Design */
@media (max-width: 768px) {
  .content h2 { font-size: 2rem; }
  .content h3 { font-size: 1.2rem; }
  
  header { 
    flex-direction: column;
    gap: 15px;
    padding: 15px; 
  }
  
  header nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  
  header .logo-group { 
    margin-bottom: 5px; 
  }
  
  #about .content {
    padding: 40px 30px;
  }
  
  #about .content h2 {
    font-size: 2.2rem;
  }
  
  #about .content h3 {
    font-size: 1.4rem;
  }
  
  #about .content p {
    font-size: 1rem;
    line-height: 1.8;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    padding: 0 15px;
  }
  
  .team-grid .member .img-wrap {
    width: 150px;
    height: 150px;
  }
  
  .member h3 {
    font-size: 1.1rem;
  }
  
  .member p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .team-grid .member .img-wrap {
    width: 200px;
    height: 200px;
  }
}



/* Responsive Design */
@media (max-width: 768px) {
  .content h2 { font-size: 2rem; }
  .content h3 { font-size: 1.2rem; }
  
  header { 
    flex-direction: column;
    gap: 15px;
    padding: 15px; 
  }
  
  header nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  
  header .logo-group { 
    margin-bottom: 5px; 
  }
  
  #about .content {
    padding: 40px 30px;
  }
  
  #about .content h2 {
    font-size: 2.2rem;
  }
  
  #about .content h3 {
    font-size: 1.4rem;
  }
  
  #about .content p {
    font-size: 1rem;
    line-height: 1.8;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    padding: 0 15px;
  }
  
  .team-grid .member .img-wrap {
    width: 150px;
    height: 150px;
  }
  
  .member h3 {
    font-size: 1.1rem;
  }
  
  .member p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .team-grid .member .img-wrap {
    width: 200px;
    height: 200px;
  }
}