/* ================= ANIMATIONS - Metalight Solutions ================= */
/* Custom animations for enhanced look and feel */

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

/* ---------- Keyframe Animations ---------- */

/* Hero content entrance - staggered reveal */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

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

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(121, 46, 241, 0.2);
  }
  50% {
    box-shadow: 0 6px 20px rgba(121, 46, 241, 0.35);
  }
}

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

/* ---------- Hero Section Entrance (Index) ---------- */
.hero-content .badge-custom {
  animation: fadeInUp 0.7s ease-out forwards;
}

.hero-content .hero-title {
  animation: fadeInUp 0.8s ease-out 0.15s forwards;
  opacity: 0;
}

.hero-content .hero-description {
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
  opacity: 0;
}

.hero-content .btn-contact {
  animation: fadeInUp 0.8s ease-out 0.45s forwards;
  opacity: 0;
}

.hero-images {
  animation: fadeInRight 1s ease-out 0.2s forwards;
  opacity: 0;
}

/* ---------- Stat Cards - Staggered entrance ---------- */
.stat-card {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.stat-card.stat-position-1 { animation-delay: 0.5s; }
.stat-card.stat-position-2 { animation-delay: 0.6s; }
.stat-card.stat-position-3 { animation-delay: 0.7s; }
.stat-card.stat-position-4 { animation-delay: 0.8s; }
.stat-card.stat-position-5 { animation-delay: 0.9s; }
.stat-card.stat-position-6 { animation-delay: 1s; }
.stat-card.stat-position-7 { animation-delay: 1.1s; }

/* ---------- Enhanced Hover Effects ---------- */
.service-card {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
}

.why-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.12);
}

/* Stat cards - no hover effect */

/* ---------- Button Animations ---------- */
.btn-contact,
.btn-know-more {
  transition: transform 0.3s ease,
              box-shadow 0.3s ease,
              background 0.3s ease;
}

.btn-contact:hover,
.btn-know-more:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(121, 46, 241, 0.35);
}

.btn-contact:active,
.btn-know-more:active {
  transform: translateY(-1px);
}

/* ---------- Header / Nav Animations ---------- */
.site-header {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-nav a,
.header-cta {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Card Arrow Hover ---------- */
.service-card:hover .card-arrow {
  transform: translate(4px, -4px);
  opacity: 1;
}

.card-arrow {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- Footer Links ---------- */
.footer-links a,
.footer-brand p {
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-links a:hover {
  color: var(--secondary-color, #8b5cf6) !important;
  transform: translateX(4px);
}

/* ---------- Hero Arrow subtle float ---------- */
.hero-arrow-image {
  animation: float 3s ease-in-out infinite;
}

/* ---------- About/Contact Hero sections ---------- */
.about-hero-content h1,
.contact-hero .hero-title {
  animation: fadeInUp 0.8s ease-out forwards;
}

.about-hero-content .about-desc,
.contact-hero .hero-desc {
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

.about-hero-image img,
.technology-hero-image img,
.staffing-hero-image img {
  animation: fadeInRight 1s ease-out 0.3s forwards;
}

/* ---------- Staffing hero entrance ---------- */
.staffing-hero-content h1 {
  animation: fadeInUp 0.7s ease-out forwards;
}

.staffing-hero-content .staffing-desc {
  animation: fadeInUp 0.8s ease-out 0.15s forwards;
  opacity: 0;
}

.staffing-hero-content .staffing-models {
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
  opacity: 0;
}

/* ---------- Framework / Service rows hover ---------- */
.framework-item,
.service-row,
.domain-card,
.delivery-card,
.industry-item {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.framework-item:hover,
.domain-card:hover,
.delivery-card:hover {
  transform: translateY(-4px);
}

.service-row .service-image img,
.service-row .service-content {
  transition: transform 0.4s ease;
}

.service-row:hover .service-image img {
  transform: scale(1.03);
}

/* ---------- Tab buttons ---------- */
.tab,
.tab-btn,
.value-tab,
.culture-tab {
  transition: all 0.3s ease;
}

.tab:hover,
.tab-btn:hover,
.value-tab:hover,
.culture-tab:hover {
  transform: translateY(-1px);
}

/* ---------- Form / Input focus ---------- */
.custom-input:focus,
.form-control.custom-input:focus {
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* ---------- Mobile menu slide-in ---------- */
.mobile-menu-container {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu-container.show {
  animation: slideDown 0.35s ease-out forwards;
}

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

/* ---------- Dropdown menu animation ---------- */
.dropdown-menu {
  animation: fadeInDown 0.25s ease-out;
}

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

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