:root {
  --primary: #37bfb5;
}
body {
  font-family: "Inter", sans-serif;
}
.text-primary {
  color: var(--primary);
}
.bg-primary {
  background-color: var(--primary);
}
.border-primary {
  border-color: var(--primary);
}
.hover\:bg-primary-dark:hover {
  background-color: #2ca39a;
}
.text-primary-light {
  color: #4fd4ca;
}
.hover\:text-primary-light:hover {
  color: #4fd4ca;
}
.hover\:text-white:hover {
  color: white !important;
}
.hover\:text-black:hover {
  color: black !important;
}
.gradient-bg {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
}
.card-gradient {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}
.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}
.hover-scale {
  transition: transform 0.3s ease;
}
.hover-scale:hover {
  transform: scale(1.05);
}
.glow {
  box-shadow: 0 0 20px rgba(55, 191, 181, 0.3);
}
.glow:hover {
  box-shadow: 0 0 30px rgba(55, 191, 181, 0.5);
}
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}
.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* Background particles */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.6;
  animation: float-up 15s linear infinite;
}

.particle.large {
  width: 3px;
  height: 3px;
  opacity: 0.4;
  animation-duration: 20s;
}

.particle.small {
  width: 1px;
  height: 1px;
  opacity: 0.8;
  animation-duration: 12s;
}

@keyframes float-up {
  0% {
    transform: translateY(100vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-10vh) translateX(50px) rotate(360deg);
    opacity: 0;
  }
}

/* Language switcher styles */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-flag {
  width: 32px;
  height: 22px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
}

.language-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.language-flag::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.1) 100%);
  pointer-events: none;
}

.language-flag:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border-color: var(--primary);
}

.language-flag.active {
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(55, 191, 181, 0.5);
  transform: scale(1.05);
}

.language-flag.active::before {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--primary);
}

/* Flag icons for countries without images */
.flag-uk {
  background: #012169;
  position: relative;
  width: 100%;
  height: 100%;
}
.flag-uk::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
                /* White cross */ linear-gradient(to bottom, transparent 40%, white 40%, white 60%, transparent 60%),
    linear-gradient(to right, transparent 40%, white 40%, white 60%, transparent 60%), /* Red cross */ linear-gradient(to bottom, transparent 45%, #c8102e 45%, #c8102e 55%, transparent 55%),
    linear-gradient(to right, transparent 45%, #c8102e 45%, #c8102e 55%, transparent 55%), /* Diagonal white stripes */ linear-gradient(45deg, transparent 47%, white 47%, white 53%, transparent 53%),
    linear-gradient(-45deg, transparent 47%, white 47%, white 53%, transparent 53%), /* Diagonal red stripes */ linear-gradient(45deg, transparent 49%, #c8102e 49%, #c8102e 51%, transparent 51%),
    linear-gradient(-45deg, transparent 49%, #c8102e 49%, #c8102e 51%, transparent 51%);
}

/* Language content visibility */
.lang-pl,
.lang-en {
  display: none;
}

body.polish .lang-cs {
  display: none;
}

body.polish .lang-pl {
  display: block;
}

body.english .lang-cs {
  display: none;
}

body.english .lang-en {
  display: block;
}

/* Client cards equal height */
.client-card {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo {
  max-width: 80px;
  max-height: 100%;
  object-fit: contain;
  width: auto;
  height: auto;
}

/* Navbar scrolled styles */
#navbar.scrolled {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(55, 191, 181, 0.2);
}
