/* Animation Classes */
@keyframes float {
    0% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-10px);
    }
    100% {
      transform: translateY(0px);
    }
  }
  
  @keyframes pulse {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.05);
    }
    100% {
      transform: scale(1);
    }
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes slideInRight {
    from {
      opacity: 0;
      transform: translateX(50px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes slideInLeft {
    from {
      opacity: 0;
      transform: translateX(-50px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  /* Apply animations */
  .hero-image {
    animation: float 6s ease-in-out infinite;
  }
  
  .floating-badge {
    animation: pulse 3s ease-in-out infinite;
  }
  
  .badge-1 {
    animation-delay: 0s;
  }
  
  .badge-2 {
    animation-delay: 1s;
  }
  
  .badge-3 {
    animation-delay: 2s;
  }
  
  .feature-card:hover .feature-icon {
    animation: pulse 1s ease-in-out;
  }
  
  /* Scroll animations */
  .js-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  
  .js-scroll.scrolled {
    opacity: 1;
    transform: translateY(0) !important;
  }
  
  .js-scroll--up {
    transform: translateY(50px);
  }
  
  .js-scroll--right {
    transform: translateX(-50px);
  }
  
  .js-scroll--left {
    transform: translateX(50px);
  }
  
  /* Section animations */
  .section-title,
  .section-subtitle {
    animation: fadeIn 1s ease-out;
  }
  
  .features-grid {
    animation: fadeIn 1s ease-out 0.2s forwards;
  }
  
  .benefit-item:nth-child(odd) {
    animation: slideInLeft 0.8s ease-out forwards;
  }
  
  .benefit-item:nth-child(even) {
    animation: slideInRight 0.8s ease-out forwards;
  }
  
  /* Delay animations for better sequence */
  .feature-card:nth-child(1) {
    animation-delay: 0.1s;
  }
  
  .feature-card:nth-child(2) {
    animation-delay: 0.2s;
  }
  
  .feature-card:nth-child(3) {
    animation-delay: 0.3s;
  }
  
  .feature-card:nth-child(4) {
    animation-delay: 0.4s;
  }
  
  .feature-card:nth-child(5) {
    animation-delay: 0.5s;
  }
  
  .feature-card:nth-child(6) {
    animation-delay: 0.6s;
  }
  
  .benefit-item:nth-child(1) {
    animation-delay: 0.1s;
  }
  
  .benefit-item:nth-child(2) {
    animation-delay: 0.3s;
  }
  
  .benefit-item:nth-child(3) {
    animation-delay: 0.5s;
  }
  
  .benefit-item:nth-child(4) {
    animation-delay: 0.7s;
  }
  
  /* Focus states for accessibility */
  button:focus,
  a:focus,
  input:focus,
  select:focus,
  textarea:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
  }
  
  /* Animation for mobile menu */
  .menu-active .menu-toggle span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .menu-active .menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-active .menu-toggle span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  .menu-active nav ul {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: var(--white);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    animation: fadeIn 0.3s ease-out;
  }
  
  /* Animated highlight underline */
  @keyframes expandUnderline {
    from {
      width: 0;
    }
    to {
      width: 100%;
    }
  }
  
  nav ul li a:not(.btn-contact)::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width var(--transition-normal);
  }
  
  nav ul li a:not(.btn-contact):hover::after {
    width: 100%;
  }
  
  /* Button hover effects */
  .submit-btn {
    overflow: hidden;
    position: relative;
  }
  
  .submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
  }
  
  .submit-btn:hover::after {
    width: 300%;
    height: 300%;
  }
  
  /* Screenshot slider animation */
  @keyframes fadeInSlide {
    from {
      opacity: 0;
      transform: translateX(50px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  .screenshot.active {
    animation: fadeInSlide 0.5s ease-out forwards;
  }
  
  /* Header scroll animation */
  .header-scrolled {
    padding: var(--space-xs) 0;
    box-shadow: var(--shadow-md);
  }
  
  /* Loading animation for form submission */
  @keyframes spinner {
    to {
      transform: rotate(360deg);
    }
  }
  
  .loading .submit-btn::before {
    content: '';
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--white);
    animation: spinner 0.8s linear infinite;
  }
  
  .loading .submit-btn {
    color: transparent;
  }
  
  /* Success animation */
  @keyframes checkmark {
    0% {
      stroke-dashoffset: 100;
    }
    100% {
      stroke-dashoffset: 0;
    }
  }
  
  .success-checkmark {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    position: relative;
    display: none;
  }
  
  .success-checkmark .check-icon {
    width: 60px;
    height: 60px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid var(--primary-green);
  }
  
  .success-checkmark .check-icon::before {
    content: "";
    position: absolute;
    top: 3px;
    left: -2px;
    width: 30px;
    height: 15px;
    border-style: solid;
    border-width: 0 0 4px 4px;
    border-color: var(--primary-green);
    transform-origin: 100% 100%;
    transform: rotate(-45deg);
    animation: checkmark 0.8s ease;
  }
  
  .form-success .success-checkmark {
    display: block;
  }
  
  .form-success .form-group,
  .form-success .submit-btn {
    display: none;
  }
  
  /* Error animation */
  @keyframes shake {
    0%, 100% {transform: translateX(0);}
    10%, 30%, 50%, 70%, 90% {transform: translateX(-5px);}
    20%, 40%, 60%, 80% {transform: translateX(5px);}
  }
  
  .error-input {
    animation: shake 0.6s ease-in-out;
    border-color: var(--primary-coral) !important;
  }