/* Mobile Enhancements for EmprendyUp
   Improves mobile UX with better touch interactions and animations
*/

/* Fade-in animation for content */
.fade-in {
  animation: fadeIn 0.8s ease-in-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  /* Enhanced hero section */
  .aali_tm_section.loaded .content {
    animation: slideUp 0.6s ease-out forwards;
  }
  
  /* Better touch targets for mobile */
  .aali_tm_button a, 
  .simple_button a {
    padding: 15px 25px !important;
    margin: 5px 0;
    border-radius: 8px;
    transition: all 0.3s ease;
  }
  
  .aali_tm_button a:active,
  .simple_button a:active {
    transform: scale(0.95);
  }
  
  /* Mobile social icons */
  .mobile-social {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    display: flex;
    justify-content: center;
    margin-top: 40px;
  }
  
  .mobile-social ul {
    display: flex !important;
    flex-direction: row !important;
  }
  
  .mobile-social ul li {
    margin: 0 15px !important;
  }
  
  /* Mobile email */
  .mobile-mail {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
  }
  
  /* Enhanced scroll indicator */
  .mobile-enhanced.aali_tm_down {
    margin-top: 30px;
  }
  
  .mobile-enhanced .down-icon {
    animation: bounce 2s infinite;
  }
  
  /* Optimize image for mobile */
  .mobile-optimized.avatar {
    position: relative !important;
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 auto 30px !important;
    display: block !important;
  }
  
  /* Improved typography for mobile */
  .aali_tm_hero .content .hello {
    font-size: 18px !important;
    margin-bottom: 15px !important;
  }
  
  .aali_tm_hero .content .name {
    font-size: 50px !important;
    line-height: 1.2 !important;
  }
  
  .aali_tm_hero .cd-headline {
    font-size: 18px !important;
  }
  
  .aali_tm_hero .cd-headline b {
    font-size: 26px !important;
  }
  
  /* Hero buttons layout for mobile */
  .aali_tm_hero .hero_buttons {
    display: flex;
    align-items: center;
    margin-top: 30px !important;
  }
  
  .aali_tm_hero .simple_button {
    margin-left: 0 !important;
    margin-top: 15px !important;
  }
}

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

/* Animation for content slide up */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Improved touch feedback */
.aali_tm_button a:active,
.simple_button a:active,
.socials ul li a:active {
  opacity: 0.7;
}

/* Smooth transitions for all interactive elements */
.aali_tm_button a,
.simple_button a,
.socials ul li a,
.hero_mail a {
  transition: all 0.3s ease !important;
}
