/* T&M Showcase Site - Custom Styles & Technical Patterns */

/* Base transitions and smooth scrolling */
html {
  scroll-behavior: smooth;
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Custom engineering background grid pattern */
.tech-grid {
  background-image: 
    linear-gradient(to right, rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Custom engineering dot grid pattern */
.tech-dots {
  background-image: radial-gradient(rgba(148, 163, 184, 0.1) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

/* Subtle glowing accent circles (background) */
.glow-spot-blue {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, rgba(14, 165, 233, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
}

.glow-spot-testo {
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
}

.glow-spot-atom {
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.12) 0%, rgba(249, 115, 22, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
}

/* Premium diagonal technical line accents */
.tech-diagonal {
  position: relative;
  overflow: hidden;
}

.tech-diagonal::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.03) 25%, transparent 25%, transparent 50%, rgba(30, 41, 59, 0.03) 50%, rgba(30, 41, 59, 0.03) 75%, transparent 75%, transparent);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Subtle border animation on card hover */
.tech-card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.08);
}

/* Keyframe Animations */
@keyframes pulseSubtle {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

.animate-pulse-subtle {
  animation: pulseSubtle 4s ease-in-out infinite;
}

/* Accessible outline behavior */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid #0ea5e9;
  outline-offset: 2px;
}
