
.animate-fade-in {
  animation: fade-in 0.8s ease-out;
}

.animate-scale-in {
  animation: scale-in 0.6s ease-out 0.3s both;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-in {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.animate-fade-in {
  animation: fade-in 0.8s ease-out;
}

.animate-scale-in {
  animation: scale-in 0.6s ease-out 0.3s both;
}

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

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

/* Fade sequence from accomplishments to services */
.section-fade-seq {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
  transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
  will-change: opacity, transform, filter;
}

.section-fade-seq.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .section-fade-seq {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* Mobile-first layout refinements */
html,
body {
  overflow-x: hidden;
}

img,
video,
canvas,
iframe {
  max-width: 100%;
}

@media (max-width: 1024px) {
  #particleCanvas {
    opacity: 0.8;
  }
}

@media (max-width: 767px) {
  #home {
    padding-top: 5.5rem;
  }

  #home .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #home h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
    line-height: 1.12;
  }

  #home .flex.items-center.gap-8.mb-8 {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
  }

  #home .flex.items-center.gap-8.mb-8 .w-px {
    display: none;
  }

  #globeCanvas {
    width: min(92vw, 340px) !important;
    height: min(92vw, 340px) !important;
    max-width: 100%;
    max-height: 340px;
    display: block;
    margin: 0 auto;
    touch-action: pan-y;
  }

  #aboutLeftPanel {
    margin-right: 0 !important;
  }

  #aboutLeftPanel img {
    width: min(100%, 290px);
    margin: 0 auto;
    display: block;
  }

  #aboutRightPanel h2 {
    font-size: clamp(1.65rem, 7vw, 2.2rem);
    line-height: 1.2;
  }

  #missionVision .mission-panel,
  #missionVision .vision-panel {
    padding: 2rem 1.25rem !important;
  }

  #missionVision h3 {
    font-size: 2rem;
  }

  #servicesDrag > div {
    min-width: 0 !important;
  }

  #contact .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #contact address p,
  footer .text-sm {
    overflow-wrap: anywhere;
  }
}
