body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;
}

body,
button,
input,
textarea,
a {
  font-smooth: always;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: neutralscale;
  text-rendering: optimizeLegibility;
  font-stretch: 105% !important;
}



@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scroll {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

.sticky-nav {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.fade-in {
  animation: fadeIn 2s ease-out;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(45deg) scale(1.2);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

.primary-button:hover .icon-transition {
  animation: rotation 500ms linear;
}

.secondary-button:hover .icon-transition {
  animation: rotation 500ms linear;
}

.mobile-menu {
  transition: transform 0.3s ease-in-out;
  transform: translateX(100%);
}

.mobile-menu.active {
  transform: translateX(0);
}


* {
  transition: all 0.2s ease;
  box-sizing: border-box;
  /* Ensures consistent sizing during resizes */
}

/* Optional: Prevent image distortion on resize */
img {
  object-fit: cover;
  transition: width 0.2s ease, height 0.2s ease;
}

/* Optional: Adjust container resizing */
.container {
  transition: width 0.2s ease, height 0.2s ease;
}

/* For flexbox or grid layouts */
.flex,
.grid {
  transition: all 0.2s ease;
}