/* Visual Effects for Ramtraders Website */

/* Glowing Effects */
.glow {
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #00C851, 0 0 20px #00C851;
  }
  to {
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #00A041, 0 0 40px #00A041;
  }
}

/* Gradient Text Effects */
.gradient-text {
  background: linear-gradient(135deg, #00C851, #00A041, #00C851);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Particle Effects */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #00C851;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}

.particle.animate {
  animation: particleFloat 1.5s ease-out forwards;
}

@keyframes particleFloat {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) translateX(20px);
    opacity: 0;
  }
}

/* Ripple Effects */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 200, 81, 0.3);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Blur In Effects */
.blur-in {
  filter: blur(5px);
  animation: blurIn 0.8s forwards;
}

@keyframes blurIn {
  to {
    filter: blur(0);
  }
}

/* Scale Effects */
.scale-in {
  transform: scale(0.8);
  opacity: 0;
  animation: scaleIn 0.6s forwards;
}

@keyframes scaleIn {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Rotate Effects */
.rotate-in {
  transform: rotate(-10deg);
  opacity: 0;
  animation: rotateIn 0.6s forwards;
}

@keyframes rotateIn {
  to {
    transform: rotate(0);
    opacity: 1;
  }
}

/* Flip Effects */
.flip-in {
  transform: perspective(400px) rotateY(90deg);
  opacity: 0;
  animation: flipIn 0.8s forwards;
}

@keyframes flipIn {
  to {
    transform: perspective(400px) rotateY(0);
    opacity: 1;
  }
}

/* Slide Effects */
.slide-in-left {
  transform: translateX(-100%);
  opacity: 0;
  animation: slideInLeft 0.6s forwards;
}

@keyframes slideInLeft {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-right {
  transform: translateX(100%);
  opacity: 0;
  animation: slideInRight 0.6s forwards;
}

@keyframes slideInRight {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-top {
  transform: translateY(-100%);
  opacity: 0;
  animation: slideInTop 0.6s forwards;
}

@keyframes slideInTop {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.slide-in-bottom {
  transform: translateY(100%);
  opacity: 0;
  animation: slideInBottom 0.6s forwards;
}

@keyframes slideInBottom {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Zoom Effects */
.zoom-in {
  transform: scale(0.5);
  opacity: 0;
  animation: zoomIn 0.6s forwards;
}

@keyframes zoomIn {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.zoom-out {
  animation: zoomOut 0.6s forwards;
}

@keyframes zoomOut {
  to {
    transform: scale(0.5);
    opacity: 0;
  }
}

/* Fade Effects */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.6s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.fade-out {
  animation: fadeOut 0.6s forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}

/* Background Effects */
.animated-bg {
  background-size: 200% 200%;
  animation: bgShift 4s ease infinite;
}

@keyframes bgShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Border Effects */
.animated-border {
  position: relative;
  overflow: hidden;
}

.animated-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 200, 81, 0.4), transparent);
  transition: 0.5s;
}

.animated-border:hover::before {
  left: 100%;
}

/* Shadow Effects */
.shadow-pulse {
  animation: shadowPulse 2s infinite;
}

@keyframes shadowPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 200, 81, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 200, 81, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 200, 81, 0);
  }
}

/* Text Effects */
.text-pop {
  display: inline-block;
}

.text-pop span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: textPop 0.5s forwards;
}

@keyframes textPop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Wave Effects */
.wave {
  animation: wave 2s infinite linear;
}

@keyframes wave {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Shake Effects */
.shake {
  animation: shake 0.5s;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* Spin Effects */
.spin {
  animation: spin 2s linear infinite;
}

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

/* Bounce Effects */
.bounce {
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Morph Effects */
.morph {
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
  0% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

/* Responsive Effects */
@media (max-width: 768px) {
  .slide-in-left,
  .slide-in-right {
    transform: translateX(0);
    opacity: 1;
    animation: none;
  }
  
  .zoom-in {
    transform: scale(1);
    opacity: 1;
    animation: none;
  }
  
  .rotate-in {
    transform: rotate(0);
    opacity: 1;
    animation: none;
  }
}