/* ============================================
   ICS Registrar - Animations
   Separate animations file for full site
   ============================================ */

/* ---------- Keyframe Definitions ---------- */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(80px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.3); }
  50% { opacity: 1; transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* ---------- Scroll-Triggered Reveal Classes ---------- */

.reveal {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-fade-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-fade-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-fade-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-fade-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-fade-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-zoom {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-zoom.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Staggered Children ---------- */

.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-children.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.stagger-children.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.stagger-children.is-visible > *:nth-child(4) { transition-delay: 0.35s; }
.stagger-children.is-visible > *:nth-child(5) { transition-delay: 0.45s; }
.stagger-children.is-visible > *:nth-child(6) { transition-delay: 0.55s; }

/* ---------- Continuous Animations ---------- */

.animate-float {
  animation: floatY 5s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2.5s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spinRing 18s linear infinite;
}

.animate-spin-reverse {
  animation: spinRing 24s linear infinite reverse;
}

.animate-bounce-in {
  animation: bounceIn 0.9s ease both;
}

/* ---------- Section-Specific Animations ---------- */

/* Mission & Vision Section */
.mv-block {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.mv-block:hover {
  transform: translateY(-6px);
}

.mv-block h2 {
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.mv-block h2:hover {
  color: var(--color-accent);
  letter-spacing: 0.01em;
}

.mv-block .eyebrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.mv-block .eyebrow:hover {
  transform: translateX(8px);
}

/* About Section */
.about-visual img:first-child {
  animation: floatY 6s ease-in-out infinite;
}

.about-visual img:nth-child(2) {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-visual img:nth-child(2):hover {
  transform: scale(1.05) rotate(2deg);
}

.experience-badge {
  animation: pulse 3s ease-in-out infinite;
}

/* Hero Section */
.hero-seal {
  animation: spinRing 40s linear infinite;
  transform-origin: center;
}

.primary-cta {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.primary-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(232, 100, 28, 0.25);
}

.primary-cta:active {
  transform: translateY(-1px);
}

.primary-cta .cta-seal {
  transition: transform 0.4s ease;
}

.primary-cta:hover .cta-seal {
  transform: rotate(180deg);
}

/* Services animations handled in style.css for unified premium effects */

/* Team Section */
.team-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(15, 43, 36, 0.15);
}

.team-card img {
  transition: filter 0.4s ease, transform 0.5s ease;
}

.team-card:hover img {
  transform: scale(1.05);
}

.team-meta {
  transition: padding 0.3s ease, background 0.3s ease;
}

.team-card:hover .team-meta {
  padding-bottom: 1.3rem;
}

.team-name {
  transition: color 0.3s ease;
}

.team-card:hover .team-name {
  color: var(--color-accent);
}

/* Testimonials */
.testimonial-carousel {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-carousel:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 43, 36, 0.08);
}

.testimonial-slide blockquote {
  transition: color 0.3s ease;
}

.testimonial-slide.is-active blockquote {
  animation: fadeInUp 0.8s ease both;
}

.add-review-trigger {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.add-review-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 100, 28, 0.3);
}

/* Strategy / Why Us */
.why-us-points li {
  transition: transform 0.3s ease, padding-left 0.3s ease;
}

.why-us-points li:hover {
  transform: translateX(6px);
  padding-left: 2rem;
}

.why-us-points li::before {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-us-points li:hover::before {
  transform: scale(1.3);
  box-shadow: 0 0 0 6px rgba(232, 100, 28, 0.15);
}

/* Navigation */
.desktop-nav a {
  position: relative;
  transition: color 0.3s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
  width: 100%;
}

/* Footer */
footer a {
  transition: color 0.3s ease, padding-left 0.3s ease;
}

footer .footer-layout a:hover {
  padding-left: 6px;
}

.footer-social a svg {
  transition: transform 0.3s ease;
}

.footer-social a:hover svg {
  transform: translateY(-3px) scale(1.1);
}

/* ---------- Reduced Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-fade-up,
  .reveal-fade-left,
  .reveal-fade-right,
  .reveal-zoom,
  .stagger-children > *,
  .animate-float,
  .animate-pulse,
  .animate-spin-slow,
  .animate-spin-reverse,
  .animate-bounce-in {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}