/* Animations and transitions for MK Collective landing page */

/* Fade-in animation for page elements */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Subtle pulse animation for CTA buttons */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Gradient shift animation */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Grid pattern subtle movement */
@keyframes gridMove {
  0% { background-position: 0px 0px; }
  100% { background-position: 20px 20px; }
}

/* Apply animations to elements */
.hero-content {
  animation: fadeIn 1s ease-out forwards;
}

.service-card {
  animation: fadeIn 0.8s ease-out forwards;
  animation-delay: calc(var(--card-index) * 0.1s);
  opacity: 0;
}

.cta-button:hover {
  animation: pulse 1.5s infinite ease-in-out;
}

.grid-background {
  animation: gridMove 30s linear infinite;
}

/* Highlight text animation */
.highlight {
  background: linear-gradient(90deg, var(--accent-yellow), #ffdd44);
  background-size: 200% 100%;
  animation: gradientShift 3s infinite ease-in-out;
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Hover effects for cards */
.service-card, .blog-card, .contact-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover, .blog-card:hover, .contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* Animated underline for navigation links */
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

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

/* Form input focus animations */
.form-group input, .form-group textarea {
  transition: border 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

/* Button hover animations */
.submit-btn, .subscribe-button, .cta-button {
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover, .subscribe-button:hover, .cta-button:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Animated icon for the visualization section */
.visualization-container {
  position: relative;
  overflow: hidden;
}

.visualization-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  20% { left: 100%; }
  100% { left: 100%; }
}

/* JavaScript for scroll reveal functionality */
/* 
document.addEventListener('DOMContentLoaded', function() {
  const revealElements = document.querySelectorAll('.reveal');
  
  function checkReveal() {
    const windowHeight = window.innerHeight;
    const revealPoint = 150;
    
    revealElements.forEach(element => {
      const revealTop = element.getBoundingClientRect().top;
      
      if(revealTop < windowHeight - revealPoint) {
        element.classList.add('active');
      }
    });
  }
  
  window.addEventListener('scroll', checkReveal);
  checkReveal();
});
*/
