/* ===== Linqcon Custom Styles ===== */

/* Navbar frosted glass */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .nav-logo-dark { display: block; }
.nav-scrolled .nav-logo-light { display: none; }
.nav-scrolled .nav-link { color: #0F2340 !important; }
.nav-scrolled .nav-link:hover { color: #2563EB !important; }

/* Scroll-triggered animations */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
[data-animate].animate-in {
  opacity: 1;
  transform: translateY(0);
}
[data-animate="fade-left"] {
  transform: translateX(-24px);
}
[data-animate="fade-left"].animate-in {
  transform: translateX(0);
}
[data-animate="fade-right"] {
  transform: translateX(24px);
}
[data-animate="fade-right"].animate-in {
  transform: translateX(0);
}

/* Stagger children */
[data-animate-delay="100"] { transition-delay: 0.1s; }
[data-animate-delay="200"] { transition-delay: 0.2s; }
[data-animate-delay="300"] { transition-delay: 0.3s; }
[data-animate-delay="400"] { transition-delay: 0.4s; }

/* Hero connector dash animation */
@keyframes dashFlow {
  to { stroke-dashoffset: -20; }
}
.connector-line {
  stroke-dasharray: 8, 12;
  animation: dashFlow 1.5s linear infinite;
}

/* Hero floating particles */
@keyframes floatParticle1 {
  0%, 100% { transform: translate(0, 0); opacity: 0.6; }
  50% { transform: translate(12px, -8px); opacity: 1; }
}
@keyframes floatParticle2 {
  0%, 100% { transform: translate(0, 0); opacity: 0.4; }
  50% { transform: translate(-10px, 10px); opacity: 0.9; }
}
@keyframes floatParticle3 {
  0%, 100% { transform: translate(0, 0); opacity: 0.5; }
  50% { transform: translate(8px, 12px); opacity: 1; }
}
.particle-1 { animation: floatParticle1 3s ease-in-out infinite; }
.particle-2 { animation: floatParticle2 4s ease-in-out infinite 0.5s; }
.particle-3 { animation: floatParticle3 3.5s ease-in-out infinite 1s; }

/* Shield pulse */
@keyframes shieldPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
.shield-pulse {
  animation: shieldPulse 3s ease-in-out infinite;
}

/* Data flow particles through shield */
@keyframes dataFlowThrough {
  0% { transform: translateX(-60px); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(60px); opacity: 0; }
}
.data-particle {
  animation: dataFlowThrough 2.5s ease-in-out infinite;
}
.data-particle:nth-child(2) { animation-delay: 0.5s; }
.data-particle:nth-child(3) { animation-delay: 1s; }
.data-particle:nth-child(4) { animation-delay: 1.5s; }
.data-particle:nth-child(5) { animation-delay: 2s; }

/* Horizontal connector line between steps */
.step-connector {
  position: absolute;
  top: 40px;
  left: calc(33.33% + 20px);
  right: calc(33.33% + 20px);
  height: 2px;
  background: linear-gradient(90deg, #2563EB, #3B82F6, #2563EB);
  opacity: 0.3;
}

/* Partner logo greyscale -> color on hover */
.partner-card img,
.partner-card svg {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.partner-card:hover img,
.partner-card:hover svg {
  filter: grayscale(0%);
  opacity: 1;
}

/* Trust pillar card accent */
.trust-card {
  border-left: 3px solid #2563EB;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.trust-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.mobile-menu.open {
  max-height: 400px;
}

/* CTA button hover effect */
.cta-btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}
.cta-btn-white:hover {
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

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

/* Language switcher active state */
.lang-active {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
