/* ==========================================================================
   UTILITIES
   Animations, loader, utility classes, focus states, print styles, scrollbar
   ========================================================================== */

  /* Animations */
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
  }

  .reveal.active {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
  }

  .reveal-left.active {
    opacity: 1;
    transform: translateX(0);
  }

  .reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease;
  }

  .reveal-right.active {
    opacity: 1;
    transform: translateX(0);
  }

  .reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s ease;
  }

  .reveal-scale.active {
    opacity: 1;
    transform: scale(1);
  }

  /* Loader */
  .loader {
    position: fixed;
    inset: 0;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }

  .loader.hidden {
    opacity: 0;
    visibility: hidden;
  }

  .loader-content {
    text-align: center;
  }

  .loader-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    animation: loader-spin 2s linear infinite;
  }

  @keyframes loader-spin {
    to { transform: rotate(360deg); }
  }

  .loader-progress {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
  }

  .loader-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--gradient-main);
    border-radius: 2px;
    animation: loader-progress 2s ease forwards;
  }

  @keyframes loader-progress {
    to { width: 100%; }
  }

  /* Utility Classes */
  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
  }

  /* Focus States */
  :focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
  }

  /* Print Styles */
  @media print {
    nav, .hero-bg-video, .hero-3d-layer, .floating-shapes {
      display: none;
    }
    body {
      color: #000;
      background: #fff;
    }
  }

  /* Scrollbar */
  ::-webkit-scrollbar {
    width: 12px;
  }

  ::-webkit-scrollbar-track {
    background: var(--dark);
  }

  ::-webkit-scrollbar-thumb {
    background: var(--gradient-main);
    border-radius: 6px;
    border: 2px solid var(--dark);
  }

  ::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
  }
