/*-- Performance & Accessibility Optimizations --*/

/* Very conservative performance optimizations */
@supports (content-visibility: auto) {
  @media (max-width: 479px) {
    section#contact {
      content-visibility: auto;
      contain-intrinsic-size: 500px;
    }
  }
}

/* Conservative CLS prevention - no visual changes */
.about-img-small {
  max-width: 100%;
  height: auto;
}

/* Ensure cursor works properly on desktop */
@media (min-width: 992px) {
  .cursor-light {
    cursor: none;
  }
  
  #animated-cursor {
    display: block;
  }
}

@media (max-width: 991px) {
  .cursor-light {
    cursor: default;
  }
  
  #animated-cursor {
    display: none;
  }
}

/* Reduce layout shift with image aspect ratios */
img {
  height: auto;
}

/* Conservative animation optimizations */
@media (prefers-reduced-motion: reduce) {
  .animated-wrap,
  .wow {
    animation-duration: 0.1s !important;
  }
}

/* Skip links for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  z-index: 100000;
  color: #fff;
  background: #000;
  text-decoration: none;
  padding: 8px 16px;
}

.skip-link:focus {
  top: 6px;
}
