/* =========================================================
   VARIJABLE BOJA
   ========================================================= */
:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --accent-color: #28a745;
}

/* =========================================================
   OSNOVNI STILOVI STRANICE
   ========================================================= */
body {
  scroll-behavior: smooth;
}

/* =========================================================
   LOGO PLACEHOLDER
   ========================================================= */
.logo-placeholder {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
}
.logo-placeholder::before {
  content: "QR";
}

/* =========================================================
   SOCIAL IKONICE
   ========================================================= */
.social-icons a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  text-decoration: none;
}
.social-icons a:hover {
  background: var(--primary-color);
  color: white !important;
  border-color: var(--primary-color);
}

/* =========================================================
   LANGUAGE TOGGLE
   ========================================================= */
.language-toggle {
  display: flex;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--primary-color);
}
.language-toggle .lang-btn {
  border: none;
  border-radius: 0;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  font-weight: 600;
  min-width: 35px;
}
.language-toggle .lang-btn.active {
  background: var(--primary-color);
  color: white;
}
.language-toggle .lang-btn:not(.active) {
  background: transparent;
  color: var(--primary-color);
}
.language-toggle .lang-btn:hover {
  background: var(--primary-color);
  color: white;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar-toggler {
  border: none;
  padding: .25rem .4rem;
  font-size: 1rem;
}
.navbar-toggler:focus {
  box-shadow: none;
}
.navbar-brand {
  font-size: 1.1rem;
}
.navbar-logo {
  height: 40px;
  width: auto;
  max-height: 50px;
}

/* =========================================================
   HERO SEKCIJA
   ========================================================= */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 80px 0 40px 0;
  margin-top: 40px;
}
.qr-showcase {
  padding: 1rem 0;
}
.phone-mockup {
  width: 200px;
  height: 300px;
  background: #333;
  border-radius: 25px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-screen {
  background: white;
  border-radius: 15px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
}
.phone-screen img {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
}
.scan-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.7rem;
  margin-top: 10px;
}

/* =========================================================
   PREDNOSTI SEKCIJA
   ========================================================= */
.advantage-card {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  /* Uklanjamo skrivene elemente - sada su odmah vidljivi */
  opacity: 1;
  transform: translateY(0);
}

.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.advantage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.advantage-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  position: relative;
  overflow: hidden;
}

.advantage-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.advantage-card:hover .advantage-icon::after {
  transform: translateX(100%);
}

.advantage-card h5 {
  color: #333;
  font-weight: 600;
}

.advantage-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* =========================================================
   PARTNERI SEKCIJA
   ========================================================= */
.partners-section {
  padding: 1rem 0;
  background: white;
}

/* =========================================================
   PAKETI - KARTICE
   ========================================================= */
.g-4, .gy-4 {
    --bs-gutter-y: 1.5rem;
    justify-content: center;
}
.package-card {
  transition: transform 0.3s ease;
  border: 2px solid transparent;
  /* Uklanjamo skrivene elemente - sada su odmah vidljivi */
  opacity: 1;
  transform: translateY(0);
}
.package-card:hover {
  transform: translateY(-5px);
}
.package-card.featured {
  border-color: var(--primary-color);
  position: relative;
}
.badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 5px 15px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}
.price-display {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin: 1rem 0;
}

/* =========================================================
   PACKAGE PERIOD STYLING - NOVA KLASA
   ========================================================= */
.package-period {
  color: var(--primary-color) !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  margin-bottom: 1.5rem !important;
  padding: 0.5rem 1rem;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 8px;
  border-left: 3px solid var(--primary-color);
}

/* =========================================================
   PARTNER KARTICE
   ========================================================= */
.partner-card {
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 350px;
  margin: 0 auto;
  position: relative;
  /* Uklanjamo skrivene elemente - sada su odmah vidljivi */
  opacity: 1;
  transform: translateY(0);
}
.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.partner-logo-img {
  width: 300px;
  height: 100px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  background: #f8f9fa;
  position: relative;
}
.partner-logo-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.qr-code-preview {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: #f8f9fa;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary-color);
  z-index: 10;
}

/* =========================================================
   KONTAKT SEKCIJA
   ========================================================= */
.contact-section {
  padding: 1rem 0;
  background: white;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.col-12 {
    margin-bottom: 10px;
    flex: 0 0 auto;
    width: 100%;
}

/* =========================================================
   BUTTON STILOVI
   ========================================================= */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  transform: translateY(-2px);
}
.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background-color: #1c1c1c !important;
  color: #ccc !important;
}

footer * {
  color: #ccc !important;
}

footer a {
  color: #ccc !important;
  text-decoration: none;
}

footer a:hover {
  color: white !important;
  text-decoration: underline;
}

footer h5,
footer h6 {
  color: #fff !important;
  font-weight: 600;
}

footer .btn-outline-light {
  color: #ccc !important;
  border-color: #ccc !important;
}

footer .btn-outline-light:hover {
  background: white !important;
  color: #1c1c1c !important;
  border-color: white !important;
}

footer p {
  color: #ccc !important;
}

footer hr {
  background-color: #ccc !important;
  opacity: 0.3;
  border: none;
  height: 1px;
}

footer .text-muted {
  color: #999 !important;
}

.py-5 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

/* =========================================================
   BACK TO TOP
   ========================================================= */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none;
  z-index: 1000;
  width: 45px;
  height: 45px;
}

/* =========================================================
   ANIMACIJE - OPCIONALNE (samo za hover efekte)
   ========================================================= */
/* Uklanjamo problematične animacije koje skrivaju sadržaj */
.partner-card.animate,
.package-card.animate,
.advantage-card.animate {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   VALIDACIJA FORMI
   ========================================================= */
.form-control.is-invalid {
  border-color: #dc3545;
}
.form-control.is-valid {
  border-color: var(--accent-color);
}

/* =========================================================
   RESPONSIVE STILOVI
   ========================================================= */
@media (max-width: 768px) {
  .phone-mockup {
    width: 150px;
    height: 250px;
  }
  .hero-section {
    padding-top: 40px;
  }
  .navbar-logo {
    height: 32px;
  }
  .partner-logo-img {
    width: 280px;
    height: 90px;
  }
  
  .advantage-card {
    padding: 1.5rem 1rem;
  }
  
  .advantage-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 60px 0 25px 0;
    text-align: center;
  }
  
  .hero-section h1 {
    font-size: 1.8rem;
  }
  
  .hero-section .btn {
    display: inline-block;
    margin: 0.3rem auto;
  }
  
  .hero-section .btn-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .price-display {
    font-size: 1.8rem;
  }
  
  .partner-card {
    padding: 1rem;
  }
  
  .qr-code-preview {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
  
  .advantage-card {
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
  }
  
  .package-period {
    font-size: 0.8rem !important;
    padding: 0.4rem 0.8rem;
  }
}

/* =========================================================
   RAZMAK OD VRHA SEKCIJE DO NASLOVA
   ========================================================= */
section h2, section h3, section h4 {
  margin-top: 20px;
}