/* Braine Template Animations */

/* Floating Animation */
@keyframes float {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.05);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

/* Pulse Animation */
@keyframes pulse {
  0% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.2;
  }
  100% {
    opacity: 0.1;
  }
}

/* Hero Appear Animation */
@keyframes hero-appear {
  0% {
    opacity: 0.2;
    transform: scale(0.96);
    box-shadow: 0 0 0 rgba(162, 89, 255, 0);
  }
  60% {
    opacity: 1;
    transform: scale(1.04);
    box-shadow: 0 0 40px 0 rgba(162, 89, 255, 0.18), 0 0 100px 0 rgba(255, 46, 99, 0.12);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 8px 40px 0 rgba(162, 89, 255, 0.18);
  }
}

/* Particle Float Animation */
@keyframes particle-float {
  0% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-100px) translateX(50px); }
  50% { transform: translateY(-50px) translateX(100px); }
  75% { transform: translateY(-150px) translateX(50px); }
  100% { transform: translateY(0) translateX(0); }
}

/* Pulse Efficiency Badge Animation */
@keyframes pulse-efficiency {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(255, 46, 99, 0.25);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(255, 46, 99, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(255, 46, 99, 0.25);
  }
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide In Animation */
@keyframes slideIn {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Scale In Animation */
@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Rotate In Animation */
@keyframes rotateIn {
  from {
    transform: rotate(-10deg) scale(0.8);
    opacity: 0;
  }
  to {
    transform: rotate(0) scale(1);
    opacity: 1;
  }
}

/* Bounce In Animation */
@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  70% {
    transform: scale(0.9);
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Shake Animation */
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

/* Glow Animation */
@keyframes glow {
  0% {
    box-shadow: 0 0 5px rgba(162, 89, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(162, 89, 255, 0.8);
  }
  100% {
    box-shadow: 0 0 5px rgba(162, 89, 255, 0.5);
  }
}

/* Animation Classes */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 4s ease-in-out infinite;
}

.animate-fade-in {
  animation: fadeIn 1s ease-out forwards;
}

.animate-slide-in {
  animation: slideIn 0.8s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.8s ease-out forwards;
}

.animate-rotate-in {
  animation: rotateIn 0.8s ease-out forwards;
}

.animate-bounce-in {
  animation: bounceIn 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
}

.animate-shake {
  animation: shake 0.8s cubic-bezier(.36,.07,.19,.97) both;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

/* Animation Delays */
.delay-100 {
  animation-delay: 100ms;
}

.delay-200 {
  animation-delay: 200ms;
}

.delay-300 {
  animation-delay: 300ms;
}

.delay-400 {
  animation-delay: 400ms;
}

.delay-500 {
  animation-delay: 500ms;
}

/* Animation Durations */
.duration-500 {
  animation-duration: 500ms;
}

.duration-1000 {
  animation-duration: 1000ms;
}

.duration-1500 {
  animation-duration: 1500ms;
}

.duration-2000 {
  animation-duration: 2000ms;
}

/* Animation Timing Functions */
.ease-in {
  animation-timing-function: ease-in;
}

.ease-out {
  animation-timing-function: ease-out;
}

.ease-in-out {
  animation-timing-function: ease-in-out;
}

.cubic-bezier {
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation Fill Modes */
.fill-forwards {
  animation-fill-mode: forwards;
}

.fill-backwards {
  animation-fill-mode: backwards;
}

.fill-both {
  animation-fill-mode: both;
}

/* Animation Iteration Count */
.infinite {
  animation-iteration-count: infinite;
}

/* Animation Direction */
.alternate {
  animation-direction: alternate;
}

.reverse {
  animation-direction: reverse;
}

.alternate-reverse {
  animation-direction: alternate-reverse;
}

/* Animation Play State */
.paused {
  animation-play-state: paused;
}

.running {
  animation-play-state: running;
}

/* Animation Properties */
.animate-all {
  animation: fadeIn 1s ease-out forwards;
}

.animate-all:hover {
  animation: pulse 1s ease-in-out infinite;
}

/* Animation Utilities */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Animation for Background Elements */
.bg-shape-1 {
  animation: float 8s ease-in-out infinite;
}

.bg-shape-2 {
  animation: float 12s ease-in-out infinite;
}

.bg-shape-3 {
  animation: float 10s ease-in-out infinite;
}

/* Animation for Particles */
.particle {
  animation: particle-float 15s infinite linear;
}

/* Animation for Hero Section */
.hero.hero-animate {
  animation: hero-appear 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  animation-fill-mode: both;
}

/* Animation for Efficiency Badge */
.efficiency-badge {
  animation: pulse-efficiency 2s infinite ease-in-out;
}

/* Animation for Cards */
.service-card, .testimonial-card, .blog-card, .step-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover, .testimonial-card:hover, .blog-card:hover, .step-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(162, 89, 255, 0.15);
}

/* Animation for Buttons */
.btn {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(162, 89, 255, 0.2);
}

/* Animation for Links */
a {
  transition: color 0.3s ease;
}

a:hover {
  color: #73A5FF;
}

/* Animation for Images */
.img-hover-zoom {
  overflow: hidden;
}

.img-hover-zoom img {
  transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
  transform: scale(1.1);
}

/* Animation for Icons */
.icon-animate {
  transition: transform 0.3s ease;
}

.icon-animate:hover {
  transform: scale(1.2);
}

/* Animation for Form Elements */
input, textarea, select {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: #73A5FF;
  box-shadow: 0 0 0 2px rgba(162, 89, 255, 0.2);
}

/* Animation for Navigation */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #73A5FF;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Animation for Section Transitions */
.section-transition {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-transition.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animation for Counters */
.counter {
  display: inline-block;
  transition: transform 0.3s ease;
}

.counter:hover {
  transform: scale(1.1);
}

/* Animation for Progress Bars */
.progress-bar {
  transition: width 1.5s ease-in-out;
}

/* Animation for Tabs */
.tab-content {
  transition: opacity 0.3s ease;
}

/* Animation for Accordions */
.accordion-item {
  transition: max-height 0.3s ease;
}

/* Animation for Modals */
.modal {
  transition: opacity 0.3s ease;
}

/* Animation for Tooltips */
.tooltip {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Animation for Dropdowns */
.dropdown-menu {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Animation for Alerts */
.alert {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Animation for Badges */
.badge {
  transition: transform 0.3s ease;
}

.badge:hover {
  transform: scale(1.1);
}

/* Animation for Cards */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Animation for Images */
.img-fluid {
  transition: transform 0.3s ease;
}

.img-fluid:hover {
  transform: scale(1.05);
}

/* Animation for Buttons */
.btn {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Animation for Links */
a {
  transition: color 0.3s ease;
}

a:hover {
  color: #73A5FF;
}

/* Animation for Icons */
.icon {
  transition: transform 0.3s ease;
}

.icon:hover {
  transform: scale(1.2);
}

/* Animation for Form Elements */
input, textarea, select {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: #73A5FF;
  box-shadow: 0 0 0 2px rgba(162, 89, 255, 0.2);
}

/* Animation for Navigation */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #73A5FF;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Animation for Section Transitions */
.section-transition {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Animation for Counters */
.counter {
  display: inline-block;
  transition: transform 0.3s ease;
}

.counter:hover {
  transform: scale(1.1);
}

/* Animation for Progress Bars */
.progress-bar {
  transition: width 1.5s ease-in-out;
}

/* Animation for Tabs */
.tab-content {
  transition: opacity 0.3s ease;
}

/* Animation for Accordions */
.accordion-item {
  transition: max-height 0.3s ease;
}

/* Animation for Modals */
.modal {
  transition: opacity 0.3s ease;
}

/* Animation for Tooltips */
.tooltip {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Animation for Dropdowns */
.dropdown-menu {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Animation for Alerts */
.alert {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Animation for Badges */
.badge {
  transition: transform 0.3s ease;
}

.badge:hover {
  transform: scale(1.1);
}

/* Integration Logos Animated - Custom Hover Effect */
.integration-logos-animated .logo-item img {
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(162, 89, 255, 0.10), 0 1.5px 6px rgba(0,0,0,0.08);
  transition: 
    transform 0.5s cubic-bezier(0.4,0,0.2,1),
    box-shadow 0.5s cubic-bezier(0.4,0,0.2,1),
    filter 0.5s cubic-bezier(0.4,0,0.2,1);
  background: #fff;
  padding: 10px;
  width: 90px;
  height: 90px;
  object-fit: cover;
}
.integration-logos-animated .logo-item img:hover {
  transform: scale(1.18) rotate(-7deg);
  box-shadow: 0 0 32px 0 rgba(162, 89, 255, 0.35), 0 8px 32px rgba(64,169,255,0.12);
  filter: drop-shadow(0 0 12px #73A5FF88) brightness(1.08);
  z-index: 2;
}

/* Integrations Section - Center Glow & Moving Icons */
.integration-logos-animated {
  position: relative;
  min-height: 260px;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
}
.integration-center-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 40%, #40a9ff 60%, #1a2a4f 100%);
  box-shadow: 0 0 80px 30px #40a9ff55, 0 0 0 8px #fff2, 0 0 0 1px #40a9ff44;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: center-glow-pulse 3s ease-in-out infinite;
}
.integration-center-circle img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px #fff8) drop-shadow(0 0 8px #73A5FFcc);
}
@keyframes center-glow-pulse {
  0%, 100% { box-shadow: 0 0 80px 30px #40a9ff55, 0 0 0 8px #fff2, 0 0 0 1px #40a9ff44; }
  50% { box-shadow: 0 0 120px 50px #40a9ff88, 0 0 0 12px #fff3, 0 0 0 2px #40a9ff66; }
}
.integration-row {
  position: absolute;
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  width: 100%;
  pointer-events: none;
}
.integration-row-top {
  top: 30%;
  z-index: 1;
  animation: icons-move-right 12s linear infinite;
}
.integration-row-bottom {
  bottom: 30%;
  z-index: 1;
  animation: icons-move-left 14s linear infinite;
}
@keyframes icons-move-right {
  0% { transform: translateX(-20%); }
  100% { transform: translateX(20%); }
}
@keyframes icons-move-left {
  0% { transform: translateX(20%); }
  100% { transform: translateX(-20%); }
}
.integration-icon {
  width: 80px;
  height: 80px;
  margin: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  filter: blur(0.2px) grayscale(0.05);
  transition: opacity 0.3s, filter 0.3s, transform 0.3s;
  pointer-events: auto;
}
.integration-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 2px 12px #73A5FF22;
  background: #fff;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s, filter 0.4s;
}
.integration-icon:hover img {
  transform: scale(1.18) rotate(-7deg);
  box-shadow: 0 0 32px 0 #73A5FF55, 0 8px 32px #40a9ff22;
  filter: drop-shadow(0 0 12px #73A5FF88) brightness(1.08);
  z-index: 2;
}
.integration-icon:hover {
  opacity: 1;
  filter: none;
  z-index: 3;
}
/* Fading effect for icons near the edge */
.integration-row .integration-icon:first-child,
.integration-row .integration-icon:last-child {
  opacity: 0.5;
  filter: blur(0.7px) grayscale(0.15);
}
.integration-row .integration-icon:nth-child(2),
.integration-row .integration-icon:nth-last-child(2) {
  opacity: 0.7;
  filter: blur(0.3px) grayscale(0.08);
}
.integration-row .integration-icon:nth-child(3) {
  opacity: 1;
  filter: none;
}
/* Responsive adjustments */
@media (max-width: 900px) {
  .integration-center-circle { width: 100px; height: 100px; }
  .integration-center-circle img { width: 48px; height: 48px; }
  .integration-icon { width: 54px; height: 54px; }
  .integration-icon img { width: 38px; height: 38px; }
}
@media (max-width: 600px) {
  .integration-center-circle { width: 70px; height: 70px; }
  .integration-center-circle img { width: 32px; height: 32px; }
  .integration-icon { width: 32px; height: 32px; }
  .integration-icon img { width: 22px; height: 22px; }
  .integration-row { top: 22% !important; bottom: 22% !important; }
}

.integration-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(90deg, #73A5FF 0%, #40a9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  filter: drop-shadow(0 2px 16px #73A5FF33);
  margin-bottom: 38px;
  letter-spacing: 0.01em;
  line-height: 1.2;
  transition: font-size 0.3s;
}
@media (max-width: 900px) {
  .integration-title { font-size: 1.5rem; margin-bottom: 24px; }
}
@media (max-width: 600px) {
  .integration-title { font-size: 1.1rem; margin-bottom: 16px; }
}

.integration-title-highlight {
  display: block;
  font-size: 2.7rem;
  font-weight: 900;
  background: linear-gradient(90deg, #40a9ff 0%, #73A5FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  filter: drop-shadow(0 4px 24px #40a9ff55);
  margin-top: 6px;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-shadow: 0 2px 8px #fff2;
}
@media (max-width: 900px) {
  .integration-title-highlight { font-size: 1.7rem; }
}
@media (max-width: 600px) {
  .integration-title-highlight { font-size: 1.1rem; }
}
