/* Sparrowhawk CRM - Animation & Effects Styles */

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

/* Fade-in on scroll animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

/* Scroll reveal classes */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

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

.slide-in-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}

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

/* Hover effects for cards */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(32, 41, 69, 0.15);
}

/* Hover glow effect */
.hover-glow {
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(0, 74, 152, 0.3);
  border-color: #004A98;
}

/* Button hover effects */
.btn-hover-scale {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hover-scale:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(179, 249, 154, 0.4);
}

/* Link underline animation */
.link-underline {
  position: relative;
  text-decoration: none;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #004A98;
  transition: width 0.3s ease;
}

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

/* Scroll to top button */
#scrollToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #004A98, #202945);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(32, 41, 69, 0.3);
}

#scrollToTop.show {
  opacity: 1;
  visibility: visible;
}

#scrollToTop:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(32, 41, 69, 0.4);
}

/* Gradient text animation */
.gradient-text {
  background: linear-gradient(135deg, #004A98, #7BA0C4, #004A98);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease infinite;
}

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

/* Pulse animation for CTAs */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(179, 249, 154, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(179, 249, 154, 0);
  }
}

.pulse-on-hover:hover {
  animation: pulse 1.5s infinite;
}

/* Stagger 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;
}

/* Pricing banner */
.pricing-banner {
  position: relative;
  overflow: hidden;
}

.pricing-banner::before {
  content: 'Launching soon with early access pricing for cannabis brands and distributors.';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-5deg);
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #202945;
  font-family: 'Area', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: 0.05em;
  padding: 30px 50px;
  z-index: 10;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  border: 4px solid #202945;
  text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.5);
  max-width: 800px;
  text-align: center;
  line-height: 1.4;
}

.pricing-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(249, 249, 249, 0.85);
  backdrop-filter: blur(3px);
  z-index: 9;
}

/* Fade in elements on scroll */
.scroll-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Hero image float animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

/* Loading shimmer effect */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.shimmer {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(179, 249, 154, 0.3) 50%,
    transparent 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Page transition */
.page-transition {
  animation: fadeIn 0.5s ease-in;
}

/* 3D Flipping Card Effect */
.flip-card {
  perspective: 1000px;
  height: 400px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flip-card-front {
  background: linear-gradient(135deg, #ffffff, #F9F9F9);
  border: 2px solid #D6E0EC;
  box-shadow: 0 10px 30px rgba(32, 41, 69, 0.1);
}

.flip-card-back {
  background: linear-gradient(135deg, #004A98, #202945);
  color: white;
  transform: rotateY(180deg);
  box-shadow: 0 10px 40px rgba(0, 74, 152, 0.3);
}

/* SVG Mask Effects */
.svg-masked {
  position: relative;
  overflow: hidden;
}

.svg-masked::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
    transparent 30%,
    rgba(179, 249, 154, 0.1) 50%,
    transparent 70%
  );
  animation: svgMaskMove 3s infinite;
}

@keyframes svgMaskMove {
  0% {
    transform: translate(-100%, -100%) rotate(0deg);
  }
  100% {
    transform: translate(100%, 100%) rotate(360deg);
  }
}

/* Hover Shine Effect */
.hover-shine {
  position: relative;
  overflow: hidden;
}

.hover-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.hover-shine:hover::after {
  left: 100%;
}

/* Icon Bounce on Hover */
@keyframes iconBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.icon-bounce:hover svg {
  animation: iconBounce 0.6s ease;
}

/* Tilt effect on hover */
.tilt-on-hover {
  transition: transform 0.3s ease;
}

.tilt-on-hover:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) scale(1.02);
}
