/* Header - Redizajniran: čistiji, sa suptilnim prostranim lezanjem i efektom lebdenja */
.header {
  position: fixed;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 1280px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: rgb(255, 255, 255);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  z-index: 1000;
  transition: var(--transition);
  box-shadow: 0 4px 30px var(--primary);
}

.header.scrolled {
  top: 7px;
  padding: 12px 28px;
  background: rgb(255, 255, 255);
  border-color: rgba(37, 99, 235, 0.15);
}

.logo-img {
  height: 44px;
  width: auto;
  border-radius: 10px;
  object-fit: contain;
  transition: var(--transition);
}

.logo-img:hover {
  transform: scale(1.04);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.98rem;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.activeLink {
  color: var(--primary);
}

.nav-links a.activeLink::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none !important;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 130%;
  left: 0;
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  list-style: none;
  padding: 10px 0;
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 22px;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: var(--transition);
}

.dropdown-menu li a:hover {
  background: rgba(37, 99, 235, 0.06);
  color: var(--primary);
  padding-left: 26px;
}

/* ================================
   MOBILE MENU BUTTON
================================ */

.menu-toggle {
  display: none;

  width: 42px;
  height: 42px;

  padding: 0;

  flex-direction: column;
  justify-content: center;
  align-items: center;

  gap: 6px;

  background: transparent;
  border: none;

  cursor: pointer;

  position: relative;
  z-index: 1001;
}

/* Linije */

.menu-toggle span {
  display: block;

  width: 27px;
  height: 2px;

  background: var(--text-main);

  border-radius: 10px;

  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease,
    width 0.3s ease, background 0.3s ease;
}

/* ================================
   HAMBURGER → X
================================ */

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hover */

.menu-toggle:hover span {
  background: var(--primary);
}

/* ================================
   MOBILE
================================ */

@media (max-width: 968px) {
  .menu-toggle {
    display: flex;
  }
}

/* Responsive Styles */
@media (max-width: 968px) {
  .header {
    width: 94%;
    padding: 14px 20px;
    top: 10px;
  }
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: block !important;
  }
  .menu-toggle {
    display: flex;
  }
  .nav {
    position: absolute;
    top: 125%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px 5%;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  }
  .nav.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .services {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .text-overlay h1 {
    font-size: 2.6rem;
  }
  .customer-card h2 {
    font-size: 2.3rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* Footer - Redizajniran:duboka premium tamna podloga, viši nivo složenosti */
#footer {
  background: var(--dark-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 100px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* RANDOM SPANS: Svetlosni pejzaž u futeru za vizuelnu dubinu */
#footer span.footer-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 150px;
  background: rgba(37, 99, 235, 0.12);
  filter: blur(80px);
  pointer-events: none;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5% 70px 5%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 50px;
  position: relative;
  z-index: 2;
  text-align: left;
}

.footer-links h3,
.footer-social h3,
.footer-contact h3 {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #ffffff;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 700;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-links ul li a:hover {
  color: #ffffff;
  padding-left: 6px;
}

.footer-socials {
  display: flex;
  gap: 14px;
}

.footer-socials a {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  transition: var(--transition);
}

.footer-socials a:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.footer-contact p {
  color: #94a3b8;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.footer-contact p i {
  color: #60a5fa;
  font-size: 1.05rem;
}

.footer-contact a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
}

.footer-contact a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 5%;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #64748b;
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}

.footer-bottom a {
  color: #e2e8f0;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.footer-bottom a:hover {
  color: #60a5fa;
}

/* Phone Floating Icon */
.phone-icon {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary);
  color: white;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 25px var(--primary-glow);
  z-index: 999;
  transition: var(--transition);
}

.phone-icon:hover {
  transform: scale(1.1) rotate(6deg);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.35);
}

.phone-icon a {
  text-decoration: none;
  color: white;
  font-size: 1.25rem;
}

.hero-logo {
  width: 280px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.6));
  margin-bottom: 5px;
  animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Estetske linije i detalji */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(37, 99, 235, 0.25),
    transparent
  );
  margin: 30px auto;
}

/* Scroll Progress Bar - Desna strana */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 5px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.05);
  z-index: 9999;
  pointer-events: none;
}

.scroll-progress-thumb {
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, #012143, #8dc0ff);
  box-shadow: 0 0 10px #60a5fa;
  border-radius: 3px;
  transition: height 0.1s ease-out;
}

/* Uvlačenje i smanjivanje za Volvo podkategoriju */
.sub-item a {
  padding-left: 25px !important; /* Uvlači tekst malo udesno */
  font-size: 0.85em !important; /* Smanjuje veličinu teksta */
  color: #a0a0a0 !important; /* Malo blaža boja da se vidi da je podkategorija (opciono) */
}

/* Da strelica i tekst zasijaju plavo kad se pređe mišem, u tvom stilu */
.sub-item a:hover,
.sub-item a.activeLink {
  color: #60a5fa !important;
  padding-left: 30px !important; /* Mala animacija pomeranja udesno na hover */
  transition: all 0.3s ease;
}
