body {
  background-color: #131313;
  color: #e5e2e1;
  font-family: "Lexend", sans-serif;
  overflow-x: hidden;
}

.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-gradient {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(0, 123, 255, 0.1) 0%,
    rgba(19, 19, 19, 1) 100%
  );
}

/* Smoother Transitions */
.glow-hover {
  transition:
    box-shadow 1s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.5s ease;
}

.glow-hover:hover {
  box-shadow: 0 0 35px rgba(0, 123, 255, 0.5);
}

.card-glow-hover {
  transition:
    box-shadow 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.8s ease;
}

.card-glow-hover:hover {
  box-shadow: 0 0 40px rgba(0, 123, 255, 0.2);
  border-color: rgba(0, 123, 255, 0.4);
}

.card-glow-hover:hover .material-symbols-outlined {
  transform: scale(1.15) translateY(-6px);
}

/* Grid Texture Overlay */
.grid-bg::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  animation: grid-move 30s linear infinite;
  pointer-events: none;
}

@keyframes ripple {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.4);
  }

  70% {
    box-shadow: 0 0 0 25px rgba(255, 59, 48, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
  }
}

.animate-ripple {
  animation: ripple 3s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

/* Scroll Reveal Utility - Smoothed */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* LED Breathing Animation Container */
.printer-glow-container {
  position: relative;
  mask-image: linear-gradient(black, black);
  /* Keeps the image sharp */
}

.printer-led-overlay {
  position: absolute;
  inset: 0;
  mix-blend-mode: color-dodge;
  pointer-events: none;
  background:
    radial-gradient(circle at 75% 65%, rgba(0, 123, 255, 0.3), transparent 30%),
    radial-gradient(circle at 25% 65%, rgba(0, 123, 255, 0.3), transparent 30%),
    radial-gradient(circle at 50% 85%, rgba(0, 123, 255, 0.4), transparent 40%);
  animation: blue-breathing 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  opacity: 0.8;
}

.logo-container {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  padding-top: 0.4rem;
  height: 70px;
  display: flex;
  align-items: center;
}

.logo-container img {
  /* height: 100%; */
  height: 50px;
  width: auto;
}
.logo-link {
  display: block;
  line-height: 0; /* evita che il link aggiunga spazio */
}

.logo-link img {
  display: block; /* evita spazi indesiderati */
}

nav.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

details > * {
  will-change: opacity, transform;
}

@keyframes sentinel-smooth-open {
  0% {
    opacity: 0;
    transform: translateY(-6px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce-slow {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

.animate-bounce-slow {
  animation: bounce-slow 1.6s infinite ease-in-out;
}

/* Ultra smooth page fade-in */
#page-wrapper {
  opacity: 0;
  transition: opacity 0.35s ease-out;
}

#page-wrapper.show {
  opacity: 1;
}
