/* Animation and Interaction Styles */

/* Keyframe Animations */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-12px) translateX(4px);
  }
  50% {
    transform: translateY(-8px) translateX(8px);
  }
  75% {
    transform: translateY(-16px) translateX(4px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromTop {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInFromBottom {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes scaleIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3/* Advanced CSS Animations and Micro-interactions */

/* Keyframe Animations */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-8px) translateX(4px);
  }
  50% {
    transform: translateY(-12px) translateX(8px);
  }
  75% {
    transform: translateY(-8px) translateX(4px);
  }
}

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

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

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

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

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

@keyframes slideInUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translateY(0);
  }
  40%, 43% {
    transform: translateY(-8px);
  }
  70% {
    transform: translateY(-4px);
  }
  90% {
    transform: translateY(-2px);
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-2px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(2px);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(124, 58, 237, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.6), 0 0 30px rgba(65, 105, 225, 0.4);
  }
}

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

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from, to {
    border-color: transparent;
  }
  50% {
    border-color: var(--gold);
  }
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

/* Component Animations */

/* Header Animations */
header {
  animation: slideInDown 0.6s ease-out;
}

.brand {
  animation: fadeInLeft 0.8s ease-out 0.2s both;
}

.menu a {
  animation: fadeInDown 0.6s ease-out both;
}

.menu a:nth-child(1) { animation-delay: 0.1s; }
.menu a:nth-child(2) { animation-delay: 0.2s; }
.menu a:nth-child(3) { animation-delay: 0.3s; }
.menu a:nth-child(4) { animation-delay: 0.4s; }
.menu a:nth-child(5) { animation-delay: 0.5s; }
.menu a:nth-child(6) { animation-delay: 0.6s; }
.menu a:nth-child(7) { animation-delay: 0.7s; }

.cta .btn {
  animation: fadeInRight 0.8s ease-out both;
}

.cta .btn:first-child {
  animation-delay: 0.3s;
}

.cta .btn:last-child {
  animation-delay: 0.4s;
}

/* Logo Animation */
.logo {
  animation: scaleIn 0.8s ease-out 0.2s both;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  animation: glow 2s ease-in-out infinite;
}

/* Hero Section Animations */
.hero-badge {
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.headline {
  animation: fadeInUp 1s ease-out 0.4s both;
}

.gradient-text {
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
}

.sub {
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-actions {
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-actions .btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero-actions .btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.hero-actions .btn:hover::before {
  width: 300px;
  height: 300px;
}

.quick-grid {
  animation: fadeInUp 0.8s ease-out 1s both;
}

.chip {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chip:nth-child(1) { animation: fadeInUp 0.6s ease-out 1.1s both; }
.chip:nth-child(2) { animation: fadeInUp 0.6s ease-out 1.2s both; }
.chip:nth-child(3) { animation: fadeInUp 0.6s ease-out 1.3s both; }
.chip:nth-child(4) { animation: fadeInUp 0.6s ease-out 1.4s both; }
.chip:nth-child(5) { animation: fadeInUp 0.6s ease-out 1.5s both; }
.chip:nth-child(6) { animation: fadeInUp 0.6s ease-out 1.6s both; }

.chip:hover {
  transform: translateY(-4px) scale(1.02);
}

.hero-cards .card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-cards .card:nth-child(1) { animation: fadeInRight 0.8s ease-out 0.9s both; }
.hero-cards .card:nth-child(2) { animation: fadeInRight 0.8s ease-out 1.1s both; }
.hero-cards .card:nth-child(3) { animation: fadeInRight 0.8s ease-out 1.3s both; }

.hero-cards .card:hover {
  transform: translateY(-8px) scale(1.02);
}

.card-icon {
  transition: all 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  animation: pulse 1s ease-in-out;
}

/* Button Hover Effects */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}

.btn:hover::after {
  width: 200%;
  height: 200%;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 25px 60px rgba(65, 105, 225, 0.4);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

/* Section Animation Delays */
.section:nth-child(2) .reveal { animation-delay: 0.1s; }
.section:nth-child(3) .reveal { animation-delay: 0.2s; }
.section:nth-child(4) .reveal { animation-delay: 0.3s; }

/* Card Hover Effects */
.solution-card,
.job-card,
.testimonial-card,
.case-study-card,
.support-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.solution-card::before,
.job-card::before,
.testimonial-card::before,
.case-study-card::before,
.support-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(65, 105, 225, 0.1));
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.solution-card:hover::before,
.job-card:hover::before,
.testimonial-card:hover::before,
.case-study-card:hover::before,
.support-card:hover::before {
  opacity: 1;
}

.solution-card:hover,
.job-card:hover,
.testimonial-card:hover,
.case-study-card:hover,
.support-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

/* Icon Animations */
.solution-icon,
.support-icon,
.case-study-icon,
.course-icon {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.solution-card:hover .solution-icon,
.support-card:hover .support-icon,
.case-study-card:hover .case-study-icon,
.course:hover .course-icon {
  transform: scale(1.1) rotate(5deg);
  animation: bounce 0.6s ease;
}

/* EmployeeForm Animations */
.input,
select,
textarea {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.input:focus,
select:focus,
textarea:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(65, 105, 225, 0.15);
}

.form-group {
  position: relative;
}

.form-group label {
  transition: all 0.3s ease;
}

.input:focus + label,
select:focus + label,
textarea:focus + label {
  color: var(--royal);
  transform: translateY(-2px);
}

/* Carousel Animations */
.scroll {
  scroll-behavior: smooth;
}

.slide {
  transition: all 0.3s ease;
}

.carousel-btn {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.carousel-btn:hover {
  transform: scale(1.1);
  background: rgba(124, 58, 237, 0.3);
}

.carousel-btn:active {
  transform: scale(0.95);
}

/* Course Card Animations */
.course {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.course:hover {
  transform: translateY(-4px);
}

.course-thumb {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.course-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(124, 58, 237, 0.2), rgba(65, 105, 225, 0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.course:hover .course-thumb::after {
  opacity: 1;
}

/* Statistics Animations */
.stat-number {
  transition: all 0.3s ease;
}

.stat-card:hover .stat-number,
.stat-item:hover .stat-number {
  transform: scale(1.1);
  animation: pulse 1s ease-in-out;
}

/* Mobile Menu Animations */
.mobile-menu-overlay {
  backdrop-filter: blur(0px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-menu-overlay.active {
  backdrop-filter: blur(20px);
}

.mobile-menu-content {
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-menu-overlay.active .mobile-menu-content {
  transform: translateY(0);
}

.mobile-nav-link {
  transform: translateX(-50px);
  opacity: 0;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active .mobile-nav-link {
  transform: translateX(0);
  opacity: 1;
}

.mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-nav-link:nth-child(6) { transition-delay: 0.35s; }
.mobile-nav-link:nth-child(7) { transition-delay: 0.4s; }

/* Bottom Navigation Animations */
.bottom-nav {
  animation: slideInUp 0.6s ease-out 0.5s both;
}

.bottom-nav-link {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.bottom-nav-link::before {
  content: '';
  position: absolute;
  inset: 2px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(65, 105, 225, 0.2));
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bottom-nav-link.active::before,
.bottom-nav-link:hover::before {
  opacity: 1;
}

.bottom-nav-link.active {
  transform: translateY(-4px) scale(1.05);
}

/* Footer Animations */
footer {
  animation: fadeInUp 0.8s ease-out;
}

.social-links a {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-links a:hover {
  transform: translateY(-4px) rotate(10deg) scale(1.1);
}

/* Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Error States */
.error {
  animation: shake 0.6s ease-in-out;
}

/* Success States */
.success {
  animation: bounce 0.6s ease-in-out;
}

/* Focus and Accessibility */
.btn:focus-visible,
.input:focus-visible,
.mobile-nav-link:focus-visible,
.bottom-nav-link:focus-visible {
  outline: 2px solid var(--royal);
  outline-offset: 2px;
  animation: glow 1s ease-in-out;
}

/* Scroll-triggered animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.reveal.fade-left {
  transform: translateX(-30px);
}

.reveal.fade-right {
  transform: translateX(30px);
}

.reveal.scale {
  transform: scale(0.9);
}

.reveal.show.fade-left,
.reveal.show.fade-right {
  transform: translateX(0);
}

.reveal.show.scale {
  transform: scale(1);
}

/* Performance Optimizations */
.orb,
.logo::after,
.gradient-text {
  will-change: transform;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .orb {
    animation: none;
  }

  .logo::after {
    animation: none;
  }

  .gradient-text {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Print styles */
@media print {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .btn:hover,
  .card:hover,
  .solution-card:hover,
  .job-card:hover,
  .testimonial-card:hover {
    border: 2px solid currentColor;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn:hover,
  .card:hover,
  .solution-card:hover,
  .job-card:hover,
  .testimonial-card:hover,
  .case-study-card:hover,
  .support-card:hover {
    transform: none;
  }

  .btn:active,
  .card:active,
  .solution-card:active,
  .job-card:active,
  .testimonial-card:active,
  .case-study-card:active,
  .support-card:active {
    transform: scale(0.98);
  }
}

/* Dark mode animations */
@media (prefers-color-scheme: dark) {
  .glow {
    animation: glow 2s ease-in-out infinite;
  }
}

/* Container-based animations */
@container (min-width: 400px) {
  .card {
    transition: transform 0.3s ease;
  }

  .card:hover {
    transform: translateY(-4px);
  }
}

