/* Scroll Reveals */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Staggered Children */
.stagger-children > *:nth-child(1) { transition-delay: 100ms; }
.stagger-children > *:nth-child(2) { transition-delay: 200ms; }
.stagger-children > *:nth-child(3) { transition-delay: 300ms; }
.stagger-children > *:nth-child(4) { transition-delay: 400ms; }
.stagger-children > *:nth-child(5) { transition-delay: 500ms; }
.stagger-children > *:nth-child(6) { transition-delay: 600ms; }

/* Hover Animations */

/* Nav Links Underline */
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--accent);
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.nav-links a.active::after {
  width: 100%;
}

/* Cards Hover */
.hover-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hover-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px var(--accent-glow);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Buttons Hover */
.btn:hover {
  transform: scale(1.03);
}

.btn-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Icons Animation */
.icon-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(79, 142, 247, 0.1);
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: transform 0.4s ease, background 0.4s ease, color 0.4s ease;
}

.hover-card:hover .icon-spin {
  transform: rotate(360deg);
  background: var(--accent);
  color: #fff;
}

/* Team Avatar Pulse */
.team-avatar {
  position: relative;
}

.team-avatar::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color 0.4s ease, transform 0.4s ease;
}

.hover-card:hover .team-avatar::before {
  border-color: var(--accent);
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* Button Arrow Slide */
.btn-arrow svg, .btn-arrow i {
  transition: transform 0.3s ease;
  margin-left: 8px;
}

.btn-arrow:hover svg, .btn-arrow:hover i {
  transform: translateX(4px);
}

/* Social Icons Glow */
.social-links a:hover {
  background: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: translateY(-3px);
}
