@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", serif;
}
#body {
  overflow-x: hidden !important;
}
.loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  z-index: 1000;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #fff;
  width: 100%;
}

.loader {
  width: 50px;
  aspect-ratio: 1;
  display: grid;
  border: 4px solid #0000;
  border-radius: 50%;
  border-color: #ccc #0000;
  animation: l16 1s infinite linear;
}
.loader::before,
.loader::after {
  content: "";
  grid-area: 1/1;
  margin: 2px;
  border: inherit;
  border-radius: 50%;
}
.loader::before {
  border-color: #007bff #0000;
  animation: inherit;
  animation-duration: 0.5s;
  animation-direction: reverse;
}
.loader::after {
  margin: 8px;
}
@keyframes l16 {
  100% {
    transform: rotate(1turn);
  }
}
#mobileNav {
  display: none;
}

#pcNav {
  width: 100%;
  border-bottom: 1px solid #33333327;
  position: fixed;
  top: 0;
  background-color: #fff;
  z-index: 10;
}
#openNav {
  display: none;
}
.nav-active {
  color: #3674b5 !important;
}

#pcNav nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 98%;
  max-width: 1600px;
  padding-top: 15px;
  font-size: 1.1rem;
  padding-bottom: 15px;
  margin-inline: auto;
}
#pcNav nav img {
  width: 200px;
}
#pcNav .content-c {
  display: flex;
  align-items: center;
}
#pcNav .nav-list {
  display: flex;
  align-items: center;
  margin-right: 60px;
}
#pcNav .nav-list a {
  text-decoration: none;
  color: #2b2b2b;
  margin-inline: 15px;
}

#pcNav .nav-list a:focus,
#pcNav .nav-list a:focus-visible,
#pcNav .nav-list a:active {
  outline: none;
  border: none;
  box-shadow: none;
}

#pcNav .language {
  display: flex;
  align-items: center;
  border-right: 1px solid #2b2b2b;
  padding-right: 60px;
}
#pcNav .language div {
  cursor: pointer;
  display: flex;
  align-items: center;
}
#pcNav .language div span {
  color: #000;
  font-weight: 500;
  margin-left: 5px;
}
#pcNav .language .flag-icon {
  margin-right: 10px;
}

.language .cyrilis {
  color: #000;
}

.language .latin {
  color: #000;
}

.language .germany {
  color: #000;
}

#pcNav .content-c .social-medias {
  display: flex;
  align-items: center;
  margin-left: 40px;
}

#pcNav .content-c .social-medias a {
  display: grid;
  place-content: center;
  width: 35px;
  height: 35px;
  background-color: #3674b5;
  margin-inline: 5px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: transform 0.3s ease;
}

#pcNav .content-c .social-medias a:hover {
  transform: translateY(-5px);
}

footer {
  margin-top: 100px;
  border-top: 1px solid #33333327;
  background-color: #011224;
}
#footerForm {
  display: flex;
  justify-content: center;
}
#footerForm .left,
#footerForm .right {
  padding-top: 45px;
  padding-bottom: 35px;
}
#footerForm .left {
  width: 40%;
  color: #fff;
  display: grid;
  place-content: center;
}
#footerForm .left h5 {
  font-size: 1.2rem;
  margin-bottom: 0px;
  color: #ffffffb6;
}
#footerForm .left h4 {
  font-size: 2.25rem;
  color: #fff;
  font-weight: bold;
}
#footerForm .right {
  width: 60%;
}

#footerForm .right .input-c {
  width: 70%;
  display: flex;
  align-items: center;
  background-color: #fff;
  height: 80px;
  margin-left: 35px;
  border-radius: 125px;
}

#footerForm .right .input-c input {
  width: 100%;
  background-color: transparent;
  border: none;
  height: 60px;
  margin-left: 10px;
}
#footerForm .right .input-c input:focus {
  outline: none;
}
#footerForm .right .input-c button {
  height: 60px;
  width: 200px;
  margin-inline: 10px;
  border-radius: 100px;
  border: none;
  background-color: #3674b5;
  color: #fff;
}

footer .flex-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 98%;
  max-width: 1700px;
  margin-inline: auto;
}

footer .main-c {
  display: flex;
  margin-top: 30px;
  padding-bottom: 20px;
}
footer .part {
  max-width: 200px;
  margin-left: 60px;
}
footer .part h4 {
  position: relative;
  left: -18px;
  margin-bottom: 20px;
  color: #2b2b2b;
  font-weight: bold;
}
footer .part ul {
  padding: 0 !important;
  margin: 0 !important;
}

footer .part ul li {
  margin-bottom: 10px;
  list-style-type: circle;
}
footer .part ul li a {
  color: #4b4c4d;
  text-decoration: none;
}
footer .part ul li a:hover {
  color: #2b2b2b;
}
.bottom-footer {
  padding-top: 50px;
}
.bottom-footer h6 {
  color: #fff;
  font-weight: bold;
  font-size: 1.4rem;
}
.bottom-footer .text-dark {
  color: #f0f0f0fa !important;
}
.bottom-footer p {
  color: #f0f0f0fa !important;
}

footer .f-f {
  border-top: 1px solid #f0f0f03b;
  color: #fff;
}
footer .f-f a {
  color: #fff;
  font-weight: bold;
}
footer hr {
  background-color: #007bff !important;
}
@media only screen and (max-width: 1499px) {
  .bottom-footer h6 {
    font-size: 1.2rem;
  }
  #footerForm .left {
    width: 30%;
  }
  #footerForm .right {
    width: 70%;
  }
}
@media only screen and (max-width: 1279px) {
  #pcNav nav {
    padding-top: 20px;
  }
  #pcNav nav img {
    width: 160px;
  }
  #pcNav nav {
    font-size: 1.03rem;
  }
  #pcNav .nav-list {
    margin-right: 30px;
  }
  #pcNav .nav-list a {
    margin-inline: 7px;
  }
  #pcNav .language {
    padding-right: 35px;
  }
  #pcNav .content-c .social-medias a {
    width: 32px;
    height: 32px;
  }
  #pcNav .content-c .social-medias {
    margin-left: 20px;
  }

  #footerForm .right .input-c {
    width: 90%;
  }
  #footerForm .right .input-c {
    height: 65px;
  }
  #footerForm .right .input-c input {
    height: 55px;
  }
  #footerForm .right .input-c button {
    height: 55px;
  }
  .bottom-footer h6 {
    font-size: 1.1rem;
  }
  #footerForm .left h5 {
    font-size: 1.05rem;
  }
  #footerForm .left h4 {
    font-size: 2rem;
  }
}
@media only screen and (max-width: 1023px) {
  #pcNav {
    display: none;
  }
  #mobileNav {
    position: fixed;
    width: 100%;
    z-index: 10;
    border-bottom: 1px solid #33333327;
    background-color: #fff;
    display: block;
  }

  #mobileNav nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 95%;
    margin-inline: auto;
    padding: 10px 0;
  }
  #mobileNav nav a {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #mobileNav img {
    width: 130px;
    object-fit: contain;
  }

  #openNav {
    /* display: flex; */
    position: fixed;
    left: 0;
    top: 0;
    min-height: 100vh;
    width: 100%;
    z-index: 11;
    background-color: rgba(0, 0, 0, 0.5);
  }
  #openNav .content-c {
    background-color: #fff;
    height: 100vh;
    width: 320px;
    overflow: auto;
    transition: transform 0.3s ease-in-out;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.2);
  }
  #openNav .top-c {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: linear-gradient(135deg, #3674b5, #1e4b7b);
    color: white;
  }
  #openNav .top-c span {
    font-size: 1.3rem;
  }
  #openNav .top-c i {
    position: relative;
    top: 2px;
    font-size: 1.15rem;
  }
  .close-btn {
    font-size: 20px;
    cursor: pointer;
  }
  #openNav .mid-c ul {
    padding: 0;
    margin: 0;
    list-style: none;
  }
  #openNav .mid-c ul li {
    margin-top: 15px;
  }
  #openNav .mid-c a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2b2b2b;
    font-size: 1rem;
    padding: 10px 15px;
    transition: background 0.3s;
    border-radius: 5px;
  }
  #openNav .mid-c a:hover {
    background-color: rgba(54, 116, 181, 0.1);
  }
  #openNav .mid-c a i {
    color: #3674b5;
    margin-right: 10px;
  }
  #openNav .custom-border {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: 15px;
  }
  #openNav .lang-f-c {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s;
  }
  #openNav .lang-f-c:hover {
    background: rgba(54, 116, 181, 0.1);
  }
  #openNav .lang-f-c .fi {
    margin-right: 10px;
  }
  #openNav .flag-icon {
    margin-right: 20px;
  }
  #openNav .arr-icon span {
    color: #2b2b2b;
  }
  #languageCollapse {
    padding: 0px 15px;
  }
  #languageCollapse ul {
    padding: 0;
    margin: 0;
    list-style: none;
  }
  #languageCollapse li {
    margin-top: 15px;
  }
  #languageCollapse .fi {
    margin-right: 10px;
  }
  #languageCollapse li a {
    text-decoration: none;
    color: #2b2b2b;
    font-size: 1rem;
    display: flex;
    align-items: center;
    padding: 0 !important;
    border: 0 !important;
  }
  #openNav .sub-container {
    margin-top: 15px;
    padding-inline: 10px;
  }
  #navSubForm div {
    display: flex;
  }
  #navSubForm input {
    width: 100%;
    border: 1px solid #33333327;
    font-size: 0.97rem;
    height: 45px;
    padding-inline: 5px;
    border-radius: 5px;
    margin-right: 10px;
  }
  #navSubForm input:focus {
    outline: none;
  }
  #navSubForm button {
    border: none;
    background-color: #3674b5;
    color: #fff;
    width: 120px;
    border-radius: 5px;
  }
  #openNav .social-medias {
    display: flex;
    align-items: center;
    padding-inline: 10px;
    margin-bottom: 10px;
  }

  #openNav .social-medias a {
    display: grid;
    place-content: center;
    width: 35px;
    height: 35px;
    background-color: #3674b5;
    margin-inline: 5px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease;
  }

  #openNav .social-medias a:hover {
    transform: translateY(-5px);
  }
}
@media only screen and (max-width: 767px) {
  #footerForm .right .input-c {
    height: 55px;
  }
  #footerForm .right .input-c input {
    height: 45px;
  }
  #footerForm .right .input-c button {
    height: 45px;
  }
  #footerForm .left h5 {
    font-size: 0.95rem;
  }
  #footerForm .left h4 {
    font-size: 1.8rem;
  }
  #footerForm .right .input-c {
    margin-left: 20px;
  }
}
@media only screen and (max-width: 499px) {
  #footerForm {
    flex-direction: column;
  }
  #footerForm .left {
    text-align: center;
  }
  #footerForm .left,
  #footerForm .right {
    width: 100%;
  }
  #footerForm .left {
    padding-top: 20px;
    padding-bottom: 0px;
  }

  #footerForm .right {
    padding: 0px;
    margin-top: 20px;
  }

  #footerForm .right .input-c {
    width: calc(100% - 15px);
    margin-inline: auto;
  }
  #footerForm .left h5 {
    font-size: 0.9rem;
  }
  #footerForm .left h4 {
    font-size: 1.7rem;
  }
}

/* === Profesionalne scroll animacije === */

/* Bazne postavke za animirane elemente */
.scroll-animate {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

/* Animacija - Fade Up (od dole prema gore) */
.scroll-animate.fade-up {
  transform: translateY(30px);
}

/* Animacija - Fade In (samo transparentnost) */
.scroll-animate.fade-in {
  transform: none;
}

/* Animacija - Fade Left (s leva) */
.scroll-animate.fade-left {
  transform: translateX(-30px);
}

/* Animacija - Fade Right (s desna) */
.scroll-animate.fade-right {
  transform: translateX(30px);
}

/* Aktivno stanje - element je vidljiv */
.scroll-animate.animate-in {
  opacity: 1;
  transform: translate(0, 0);
}

/* Suptilniji efekat za kartice i manje elemente */
.card-c.scroll-animate,
.partner-card.scroll-animate,
.custom-news.scroll-animate {
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Smooth transition za sve animacije */
@media (prefers-reduced-motion: no-preference) {
  .scroll-animate {
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
}

/* Za korisnike koji preferiraju smanjeno kretanje */
@media (prefers-reduced-motion: reduce) {
  .scroll-animate {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* === Dodatne animacije i hover efekti === */

/* Smooth hover efekat za sve kartice */
.partner-card,
.custom-card,
.single-blog,
.custom-news {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover,
.custom-news:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Specificne animacije za sekcije */
section#introduction {
  animation-delay: 0.2s;
}

section#blogs,
section#services,
section#partners,
section#actions {
  animation-delay: 0.1s;
}

/* Hero title animacija */
#welcome h2 {
  animation: fadeInScale 1.2s ease-out;
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Staggered animacija za liste i grid elemente */
.flex-container > *:nth-child(1) { transition-delay: 0s; }
.flex-container > *:nth-child(2) { transition-delay: 0.1s; }
.flex-container > *:nth-child(3) { transition-delay: 0.2s; }
.flex-container > *:nth-child(4) { transition-delay: 0.3s; }
.flex-container > *:nth-child(5) { transition-delay: 0.4s; }
.flex-container > *:nth-child(6) { transition-delay: 0.5s; }

/* Optimizacija performansi */
.scroll-animate {
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Dodatni efekat za slike koje se ucitavaju */
img {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

img:hover {
  opacity: 0.95;
}

/* Prevent global image hover effects from affecting header logos */
#pcNav .logo img:hover,
#pcNav .logo a img:hover,
#mobileNav a img:hover {
  opacity: 1 !important;
  transform: none !important;
}

/* Gumbi hover efekat */
button,
.btn,
a button {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

button:hover,
.btn:hover,
a button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(54, 116, 181, 0.3);
}

button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button:hover::before {
  width: 300px;
  height: 300px;
}

/* === Smooth scroll behavior === */
html {
  scroll-behavior: smooth;
}

/* === Navbar animacije === */
header {
  animation: slideDown 0.5s ease-out;
}

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

/* Navbar link hover efekat */
nav a {
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #3674b5;
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* Disable underline effect for logo links and social media links */
#pcNav .logo a::after,
#pcNav .logo a:hover::after,
#mobileNav a::after,
#mobileNav a:hover::after,
#pcNav .content-c .social-medias a::after,
#pcNav .content-c .social-medias a:hover::after,
#openNav .social-medias a::after,
#openNav .social-medias a:hover::after {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

/* Remove focus/active outlines and tap highlights for logo anchors */
#pcNav .logo a:focus,
#pcNav .logo a:focus-visible,
#pcNav .logo a:active,
#mobileNav a:focus,
#mobileNav a:focus-visible,
#mobileNav a:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* Footer animacija */
footer {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Paralax efekat za hero sekcije */
#welcome {
  position: relative;
  overflow: hidden;
}

/* Loader animacija fade out */
.loader-container {
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader-container.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Text reveal animacija */
.text-reveal {
  overflow: hidden;
  display: inline-block;
}

.text-reveal > * {
  display: inline-block;
  animation: slideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

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

/* Pulse animacija za CTA button */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(54, 116, 181, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(54, 116, 181, 0);
  }
}

button.cta-pulse {
  animation: pulse 2s infinite;
}

/* Improved scroll indicator */
.scroll-indicator {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* === Parallax efekat za hero sekcije === */
#welcome {
  --parallax-y: 0px;
}

#welcome::before {
  transform: translateY(var(--parallax-y));
  transition: transform 0.1s ease-out;
  will-change: transform;
}

/* === Dodatne optimizacije === */

/* Smooth image load */
img {
  opacity: 0;
  animation: imageLoad 0.5s ease-in forwards;
}

@keyframes imageLoad {
  to {
    opacity: 1;
  }
}

/* Focus states za accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid #3674b5;
  outline-offset: 2px;
}

/* Reduced motion override za sve animacije */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Scroll Animation Helpers */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

/* Default / fadeInUp */
.animate-on-scroll[data-animation="animate__fadeInUp"] {
  transform: translateY(30px);
}

.animate-on-scroll[data-animation="animate__fadeInDown"] {
  transform: translateY(-30px);
}

.animate-on-scroll[data-animation="animate__fadeIn"] {
  transform: translateY(0);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
