/* MIM Global Theme Override */

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Custom selection */
::selection { background: #3b82f6; color: white; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Nav glow when scrolled */
.shadow-lg#site-header {
  border-bottom: 1px solid rgba(59,130,246,0.08);
}

/* Card hover improvements for all cards site-wide */
.hover\:shadow-xl:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.15), 0 0 30px rgba(59,130,246,0.05) !important;
}

/* Gradient text utility (used across the site) */
.gradient-text {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Service/feature cards — add subtle glow on hover */
.border-surface-darker {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.border-surface-darker:hover {
  border-color: rgba(59,130,246,0.15);
}

/* CTA buttons — add glow on hover */
.btn-magnetic:hover {
  box-shadow: 0 0 25px rgba(59,130,246,0.3), 0 0 50px rgba(59,130,246,0.1);
}

/* Dark section backgrounds — subtle PCB grid */
.bg-primary {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(59,130,246,0.04) 1px, transparent 0);
  background-size: 60px 60px;
}

/* Glassmorphic glass header */
.glass {
  background: rgba(15,23,42,0.8) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
