@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(28, 197, 201, 0.3);
  }
  50% {
    box-shadow: 0 0 15px rgba(28, 197, 201, 0.6);
  }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

.pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-animate {
  background: linear-gradient(135deg, #1cc5c9, #0f7c82, #1b2a4a, #1cc5c9);
  background-size: 300% 300%;
  animation: gradient-shift 8s ease infinite;
}

.glass-effect {
  background: rgba(36, 54, 87, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hover-lift {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 10px rgba(28, 197, 201, 0.2);
}

/* Improved navigation */
#navbar.scrolled {
  background: rgba(14, 22, 38, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Grid pattern background */
.grid-bg {
  background-image:
    linear-gradient(rgba(28, 197, 201, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 197, 201, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Service card hover effect */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(28, 197, 201, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.service-card:hover::before {
  left: 100%;
}

/* Progress bar animation */
@keyframes progress {
  from {
    width: 0%;
  }
}

.progress-bar {
  animation: progress 1.5s ease-out forwards;
}

/* Testimonial carousel */
.testimonial-container {
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.testimonial-container::-webkit-scrollbar {
  display: none;
}

.testimonial-item {
  scroll-snap-align: start;
}

.kanalytics-pattern {
  background-color: #1b2a4a;
  background-image:
    radial-gradient(
      circle at 20% 30%,
      rgba(28, 197, 201, 0.05),
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(15, 124, 130, 0.05),
      transparent 40%
    ),
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%231CC5C9' stroke-opacity='0.04'%3E%3Cpath d='M0 50h100M50 0v100'/%3E%3C/g%3E%3C/svg%3E");
}

.tab-active {
  background: linear-gradient(135deg, #1cc5c9, #0f7c82);
  color: white;
}

.filter-btn.active {
  background: linear-gradient(135deg, #1cc5c9, #0f7c82);
  color: white;
}
.portfolio-item {
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.portfolio-item.hidden {
  opacity: 0;
  transform: scale(0.9);
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.timeline-line {
  position: relative;
}
.timeline-line::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #1cc5c9, #0f7c82);
  transform: translateX(-50%);
}
@media (max-width: 768px) {
  .timeline-line::before {
    left: 20px;
  }
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #1cc5c9;
  box-shadow: 0 0 0 3px rgba(28, 197, 201, 0.1);
}

/* Edge fade mask */
.marquee-viewport {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

/* The scroll animation — offset & duration set by JS */
@keyframes marqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(var(--marquee-offset, -50%)); }
}
.marquee-running {
    animation: marqueeScroll var(--marquee-duration, 40s) linear infinite;
    will-change: transform;
}

/* Pause on any hover inside the viewport */
.marquee-viewport:hover .marquee-running {
    animation-play-state: paused;
}

/* Testify button glow pulse */
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(28,197,201,0); }
    50%       { box-shadow: 0 0 22px 5px rgba(28,197,201,0.28); }
}
.btn-glow {
    animation: glowPulse 2.5s ease-in-out infinite;
}