/* ===============================
   CONTACT HERO – FRACTURE ANIMATION
================================ */

.contact-hero {
  position: relative;
  overflow: hidden;
}

/* -------------------------------
   TEXT FRACTURE
-------------------------------- */
.contact-content h1,
.contact-content p {
  opacity: 0;
  transform:
    translateX(-30px)
    translateY(25px)
    rotate(-2deg)
    scale(0.97);
  transition:
    opacity 1.2s ease,
    transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

/* -------------------------------
   SOCIAL ICON FRACTURE
-------------------------------- */
.contact-social a {
  opacity: 0;
  transform:
    translateY(25px)
    rotate(12deg)
    scale(0.8);
  transition:
    opacity 1s ease,
    transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

/* -------------------------------
   CONTACT DETAILS FRACTURE
-------------------------------- */
.contact-details li {
  opacity: 0;
  transform:
    translateX(20px)
    rotate(3deg);
  transition:
    opacity 1s ease,
    transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

/* ===============================
   ASSEMBLED STATE
================================ */

.contact-hero.animate h1,
.contact-hero.animate p {
  opacity: 1;
  transform: none;
}

.contact-hero.animate .contact-social a {
  opacity: 1;
  transform: none;
}

.contact-hero.animate .contact-details li {
  opacity: 1;
  transform: none;
}

/* -------------------------------
   STAGGER (CRITICAL FOR FRACTURE)
-------------------------------- */
.contact-hero.animate h1 { transition-delay: 0.1s; }
.contact-hero.animate p  { transition-delay: 0.25s; }

.contact-hero.animate .contact-social a:nth-child(1) { transition-delay: 0.4s; }
.contact-hero.animate .contact-social a:nth-child(2) { transition-delay: 0.55s; }
.contact-hero.animate .contact-social a:nth-child(3) { transition-delay: 0.7s; }
.contact-hero.animate .contact-social a:nth-child(4) { transition-delay: 0.85s; }
.contact-hero.animate .contact-social a:nth-child(5) { transition-delay: 1s; }

.contact-hero.animate .contact-details li:nth-child(1) { transition-delay: 0.6s; }
.contact-hero.animate .contact-details li:nth-child(2) { transition-delay: 0.75s; }
.contact-hero.animate .contact-details li:nth-child(3) { transition-delay: 0.9s; }

/* ===============================
   MOBILE SAFETY
================================ */
@media (max-width: 768px) {
  .contact-content h1,
  .contact-content p,
  .contact-social a,
  .contact-details li {
    opacity: 1 !important;
    transform: none !important;
  }
}
