:root {
  --nav-h: 70px;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
}

body {
  padding-top: calc(var(--nav-h) - 3px);
}

#body {
  padding-top: 0px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

p, a, li, span {
  font-weight: 400;
}

#logo {
  height: 40px;
  width: auto;
  margin-right: 10px;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #0b1d3a !important;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
  backdrop-filter: blur(8px);
}

.navbar .nav-link {
  color: rgba(255,255,255,0.7);
  transition: color 0.3s ease;
}

.navbar .nav-link:hover {
  color: #23d7ff;
}

.navbar .nav-link.active {
  color: #ffffff !important;
  font-weight: 600;
}

.navbar .nav-link.active::after {
  content: none !important;
}

.navbar.scrolled {
  box-shadow: 0 4px 10px rgba(0,0,0,0.45);
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #050b1e;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #23d7ff, #2c4dff);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #2c4dff, #8338ec);
}

.custom-toggler {
  border: none;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
}
.custom-toggler:focus {
  box-shadow: none;
}

.hamburger {
  position: relative;
  width: 28px;
  height: 18px;
}

.bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transform-origin: center center;
  transition: transform .25s ease, opacity .2s ease, width .2s ease;
}

.bar.top {
  top: 0;
}
.bar.middle {
  top: 8px;
}
.bar.bottom {
  top: 16px;
}

.custom-toggler.opened .bar.top {
  transform: translateY(8px) rotate(45deg);
}
.custom-toggler.opened .bar.middle {
  opacity: 0;
}
.custom-toggler.opened .bar.bottom {
  transform: translateY(-8px) rotate(-45deg);
}

@media (pointer: coarse) {
  .custom-toggler {
    width: 56px;
    height: 56px;
  }
}

.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: linear-gradient(180deg, #0b1d3a 0%, #050b1e 100%);
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 3;
}

.hero-text {
  position: absolute;
  top: 40%;
  left: 5%;
  transform: translateY(-60%);
  max-width: 45%;
  z-index: 2;
  color: white;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(90deg, #23d7ff, #2c4dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  opacity: 1;
}

.section {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

.about-section {
  background: #ffffff;
  color: #0b1d3a;
}

.about-section h2 {
  color: #0b1d3a;
  font-weight: 700;
}

.about-section .lead {
  color: #113060;
}

.stats-section {
  background: #fff;
  color: #0b1d3a;
}

.stats-section h3 {
  font-size: 3rem;
  font-weight: 700;
  color: #0b1d3a;
  margin-bottom: 0.5rem;
}

.stats-section p {
  font-size: 1.1rem;
  font-weight: 500;
  color: #0b1d3a;
}

@media (max-width: 768px) {
  .stats-section h3 {
    font-size: 2.2rem;
  }
  .stats-section p {
    font-size: 1rem;
  }
}

.abstract-bg {
  width: 115%;
  height: 100vh;
  background: url('../assets/pozadiina2.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: scroll;
}

.services-section {
  background: #ffffff;
}

.services-section .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.service-box {
  position: relative;
  height: 340px;
  perspective: 1200px;
  cursor: pointer;
}

.service-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  border: 1px solid rgba(44,77,255,0.16);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  background: #ffffff;
  transform-style: preserve-3d;
  transition:
    transform 0.6s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

/* GRADIENT LINE – border efekat */
.service-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(120deg, #23d7ff, #2c4dff, #8338ec, #23d7ff);
  background-size: 180% 180%;
  opacity: 0;
  transition: opacity 0.3s ease, background-position 3s linear;
  -webkit-mask: 
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* HOVER SAMO KAD NIJE AKTIVNA */
.service-box:not(.active):hover .service-inner {
  border-color: #0b1d3a;
  box-shadow: 0 20px 46px rgba(11, 29, 58, 0.95); /* jaka teget senka */
}

.service-box:not(.active):hover .service-inner::after {
  opacity: 1;
  background-position: 100% 50%;
}

.service-front,
.service-back {
  position: absolute;
  inset: 0;
  padding: 2rem 1.6rem 2.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  backface-visibility: hidden;
  border-radius: 18px;
}

.service-front {
  justify-content: center;
  background: #ffffff;
}

.service-back {
  justify-content: flex-start;
  background:
    radial-gradient(circle at 20% 0%, rgba(35,215,255,0.18), transparent 60%),
    radial-gradient(circle at 90% 20%, rgba(131,56,236,0.16), transparent 65%),
    #050b1e;
  transform: rotateY(180deg);
}

.service-icon {
  font-size: 3rem;
  background: linear-gradient(90deg, #23d7ff, #2c4dff, #8338ec);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.4rem;
}

.service-front h5,
.service-back h5 {
  font-weight: 700;
  margin-bottom: 0;
}

.service-front h5 {
  color: #0b1d3a;
}

.service-back .service-icon {
  background: none;
  -webkit-text-fill-color: #ffffff;
}

.service-back h5 {
  color: #ffffff;
  margin-bottom: 0.7rem;
}

.service-desc {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #cbd2ef;
  margin-top: 0.6rem;
}

/* aktivna = okrenuta pozadina ka korisniku */
.service-box.active .service-inner {
  transform: rotateY(180deg);
  border-color: #0b1d3a;
  box-shadow:
    inset 0 0 0 1px rgba(35,215,255,0.55),
    0 20px 40px rgba(0,0,0,0.8);
}

@media (max-width: 576px) {
  .service-box {
    height: 300px;
  }

  .service-front,
  .service-back {
    padding: 1.6rem 1.2rem 2rem;
  }

  .service-icon {
    font-size: 2.4rem;
  }

  .service-front h5,
  .service-back h5 {
    font-size: 1rem;
  }

  .service-desc {
    font-size: 0.86rem;
  }
}


.contact-section {
  position: relative;
  background:
    radial-gradient(600px 400px at 15% 0%, rgba(44,77,255,0.18), transparent 60%),
    radial-gradient(500px 360px at 85% 20%, rgba(35,215,255,0.15), transparent 65%),
    linear-gradient(180deg, #0b1d3a 0%, #050b1e 100%);
  padding-top: 15%;
  padding-bottom: 100px;
  overflow: hidden;
}

.contact-wave {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 160px;
  display: block;
  transform: scaleY(-1);
  transform-origin: center;
  z-index: 0;
}

.contact-section .container {
  position: relative;
  z-index: 2;
}

.text-secondary {
  color: #cbd2ef;
}

.contact-form .form-label {
  color: #cbd2ef;
}
.contact-form .form-control {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
}
.contact-form .form-control:focus {
  border-color: #23d7ff;
  box-shadow: 0 0 0 .25rem rgba(35,215,255,.25);
}

.btn-primary {
  background: linear-gradient(90deg, #23d7ff, #2c4dff);
  border: 0;
}
.btn-primary:hover {
  filter: brightness(1.08);
}
.btn-outline-light {
  border-color: rgba(255,255,255,0.45);
}

.contact-info .bi {
  color: #23d7ff;
}
.socials .social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  transition: all .2s ease;
}
.socials .social:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.28);
}

@media (max-width: 768px) {
  .contact-section {
    padding-top: 140px;
    padding-bottom: 80px;
  }
  .contact-wave {
    height: 120px;
  }
}

.btn-send {
  background: linear-gradient(90deg, #23d7ff, #23d7ff);
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
}

.btn-send:hover {
  background: linear-gradient(90deg, #23d7ff, #2c4dff);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(90deg, #23d7ff, #2c4dff);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

.site-footer {
  background: linear-gradient(180deg, #0b1d3a 30%, #050b1e 100%);
  border-top: 1px solid white;
  padding: 40px 0 30px;
  color: #fff;
  font-size: 0.95rem;
}

.site-footer .footer-logo span {
  font-size: 1.1rem;
  color: #fff;
}

.site-footer a {
  color: #cbd2ef;
  text-decoration: none;
  transition: color .2s ease;
}

.site-footer a:hover {
  color: #23d7ff;
}

.site-footer .social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  transition: all .2s ease;
}

.site-footer .social:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.28);
}

.hero-video-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.2;
  transform: scaleX(-1);
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

@media (max-width: 992px) {
  .navbar-collapse {
    background-color: #0b1d3a;
    padding: 1rem;
  }
  .nav-link {
    font-size: 1.1rem;
    padding: 0.5rem 0;
  }
  .hero-section {
    height: 75vh;
  }
  .hero-text {
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    max-width: 80%;
    text-align: left;
  }
  .hero-text h1 {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
    line-height: 1.3;
  }
  .hero-video-el {
    object-fit: cover;
    opacity: 0.25;
  }
  .abstract-bg {
    height: 60vh;
    background-position: center top;
  }
}

@media (max-width: 576px) {
  .hero-section {
    height: 45vh;
  }
  .hero-text {
    top: 45%;
    left: 6%;
    transform: translateY(-45%);
    max-width: 85%;
  }
  .hero-text h1 {
    font-size: clamp(1.1rem, 4.5vw, 1.5rem);
    line-height: 1.3;
  }
  .abstract-bg {
    height: 45vh;
    background-position: center top;
  }
}

.about-line {
  position: absolute;
  top: 20%;
  left: -100px;
  width: 180px;
  height: auto;
  opacity: 0.8;
  z-index: 1000000;
}

.about-line svg {
  width: 100%;
  height: auto;
}

.about-line .path {
  fill: none;
  stroke: url(#gradientStroke);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: dash 6s ease-in-out infinite alternate;
}

@keyframes dash {
  from { stroke-dashoffset: 900; }
  to { stroke-dashoffset: 0; }
}

.transition-section {
  position: relative;
  height: 35vh;
  background: transparent;
  overflow: hidden;
  animation: gradientMove 15s ease infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: transparent !important;
}

#particles-hero {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: transparent;
  z-index: 2000;
  opacity: 0.6;
}

.hero-video {
  position: relative;
  z-index: 1;
}

img.cursor-logo {
  width: 32px;
  height: 32px;
  user-select: none;
  pointer-events: none;
  border: 1px solid red;
}

.company-info p {
  line-height: 1.5;
}


/* Language dropdown (navbar) */
.lang-dropdown .btn-lang{
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  letter-spacing: .2px;
  transition: all .2s ease;
}

.lang-dropdown .btn-lang:hover{
  transform: translateY(-1px);
  border-color: rgba(35,215,255,0.55);
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
}

.lang-dropdown .btn-lang:focus{
  box-shadow: 0 0 0 .2rem rgba(35,215,255,.18);
}

.lang-menu{
  background: rgba(5,11,30,0.98);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 46px rgba(0,0,0,0.55);
  border-radius: 14px;
  padding: .35rem;
  min-width: 180px;
}

.lang-menu .dropdown-item{
  border-radius: 10px;
  padding: .55rem .75rem;
  color: rgba(255,255,255,0.88);
  font-weight: 500;
}

.lang-menu .dropdown-item:hover,
.lang-menu .dropdown-item.active{
  background: linear-gradient(90deg, rgba(35,215,255,.25), rgba(44,77,255,.25));
  color: #fff;
}

@media (max-width: 992px){
  .lang-dropdown{ margin-top: .75rem; }
  .lang-dropdown .btn-lang{
    width: 100%;
    justify-content: space-between;
  }
}

      
      
.lang-menu {
        background: rgba(11, 29, 58, 0.98);
        border: 1px solid rgba(255,255,255,0.16);
        box-shadow: 0 16px 40px rgba(0,0,0,0.45);
        backdrop-filter: blur(10px);
        padding: 0.4rem;
        min-width: 170px;
      }
      .lang-menu .dropdown-item {
        color: rgba(255,255,255,0.85);
        border-radius: 10px;
        padding: 0.55rem 0.75rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
      }
      .lang-menu .dropdown-item:hover,
      .lang-menu .dropdown-item:focus {
        background: rgba(35,215,255,0.12);
        color: #23d7ff;
      }
      .lang-toggle {
        color: rgba(255,255,255,0.8) !important;
      }
      .lang-toggle:hover {
        color: #23d7ff !important;
      }
      .lang-pill {
        font-size: 0.72rem;
        padding: 0.15rem 0.45rem;
        border-radius: 999px;
        border: 1px solid rgba(255,255,255,0.18);
        color: rgba(255,255,255,0.78);
      }
      @media (max-width: 992px) {
        .lang-menu { width: 100%; }
      }

      /* Poruke forme */
      .form-alert {
        margin-bottom: 12px;
        border-radius: 12px;
        padding: 12px 14px;
        font-size: 0.95rem;
        border: 1px solid rgba(255,255,255,0.18);
        background: rgba(255,255,255,0.06);
      }
      .form-alert.success { border-color: rgba(35,215,255,0.35); }
      .form-alert.error { border-color: rgba(255,99,132,0.35); }