/* 
* FURSAN Defense and Security - Animations Stylesheet
* Author: Claude
* Version: 1.0
*/

/* ===== Animations ===== */

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

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Fade In Left Animation */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-left {
  animation: fadeInLeft 0.5s ease forwards;
}

/* Fade In Right Animation */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-right {
  animation: fadeInRight 0.5s ease forwards;
}

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

.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

/* Zoom In Animation */
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.zoom-in {
  animation: zoomIn 0.5s ease forwards;
}

/* Pulse Animation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Spin Animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.spin {
  animation: spin 2s linear infinite;
}

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

.bounce {
  animation: bounce 2s ease infinite;
}

/* Slide In Animation */
@keyframes slideIn {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.slide-in {
  animation: slideIn 0.5s ease forwards;
}

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

.shake {
  animation: shake 0.8s ease;
}

/* Rotate Animation */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.rotate {
  animation: rotate 2s linear infinite;
}

/* Hover Animation Classes */
.hover-float {
  transition: transform 0.3s ease;
}

.hover-float:hover {
  transform: translateY(-10px);
}

.hover-grow {
  transition: transform 0.3s ease;
}

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

.hover-glow {
  transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 15px rgba(0, 116, 217, 0.5);
}

/* Animation Delay Utilities */
.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

.delay-700 {
  animation-delay: 0.7s;
}

.delay-1000 {
  animation-delay: 1s;
}

/* Animation Duration Utilities */
.duration-300 {
  animation-duration: 0.3s;
}

.duration-500 {
  animation-duration: 0.5s;
}

.duration-700 {
  animation-duration: 0.7s;
}

.duration-1000 {
  animation-duration: 1s;
}

.duration-2000 {
  animation-duration: 2s;
}

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

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

.fill-both {
  animation-fill-mode: both;
}
/* Animações para efeito de bandeiras ondulando ao vento - para animate.css */

/* Keyframes para simular o efeito de ondas e dobras nas bandeiras */
@keyframes flag-wave {
  0% {
    transform: perspective(1000px) rotateX(2deg) rotateY(0deg) skewY(0deg);
    filter: drop-shadow(2px 10px 6px rgba(0, 0, 0, 0.3));
  }
  25% {
    transform: perspective(1000px) rotateX(0deg) rotateY(1deg) skewY(0.5deg);
    filter: drop-shadow(-2px 8px 5px rgba(0, 0, 0, 0.25));
  }
  50% {
    transform: perspective(1000px) rotateX(-1deg) rotateY(0deg) skewY(-0.5deg);
    filter: drop-shadow(3px 6px 7px rgba(0, 0, 0, 0.35));
  }
  75% {
    transform: perspective(1000px) rotateX(0deg) rotateY(-1deg) skewY(0.25deg);
    filter: drop-shadow(-3px 8px 6px rgba(0, 0, 0, 0.3));
  }
  100% {
    transform: perspective(1000px) rotateX(2deg) rotateY(0deg) skewY(0deg);
    filter: drop-shadow(2px 10px 6px rgba(0, 0, 0, 0.3));
  }
}

/* Keyframes para movimento de tecido ondulante */
@keyframes fabric-ripple {
  0% {
    background-position: 0% 0%;
  }
  25% {
    background-position: 1% -1%;
  }
  50% {
    background-position: 0% 1%;
  }
  75% {
    background-position: -1% 0%;
  }
  100% {
    background-position: 0% 0%;
  }
}

/* Aplicando ambas as animações */
.flags-background {
  animation:
          flag-wave 8s ease-in-out infinite,
          fabric-ripple 12s linear infinite;
  will-change: transform, filter, background-position;
}

/* Efeitos de luz e sombra para aumentar o realismo */
@keyframes light-shift {
  0%, 100% {
    box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: inset 0 0 70px rgba(255, 255, 255, 0.2);
  }
}

/* Adicionando efeito de luz para aumentar a sensação de movimento */
.latin-america-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(45deg,
  rgba(255, 255, 255, 0) 0%,
  rgba(255, 255, 255, 0.03) 50%,
  rgba(255, 255, 255, 0) 100%);
  animation: light-shift 5s ease-in-out infinite;
  z-index: 0;
}

/* Animação para texto destacado */
@keyframes highlight-pulse {
  0%, 100% {
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
  }
  50% {
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8), 0 0 5px rgba(255, 255, 255, 0.3);
  }
}

.highlight {
  animation: highlight-pulse 3s ease-in-out infinite;
}

/* Animação para o divisor central */
@keyframes divider-glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
  }
}

.center-divider {
  animation: divider-glow 4s ease-in-out infinite;
}

/* Animação ao aparecer na tela */
@keyframes content-reveal {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.latin-america-section.visible .latin-america-content {
  animation: content-reveal 1s ease-out forwards;
}