/* ============================================
   tatoLabs SAS - Global Styles
   ============================================ */

/* --- Scroll Snap (desktop only) --- */
@media (min-width: 768px) {
  #snap-container {
    scroll-snap-type: y mandatory;
    overflow-y: auto;
    height: 100vh;
    scroll-behavior: smooth;
  }
  #snap-container > section,
  #snap-container > footer {
    scroll-snap-align: start;
  }
}

@media (max-width: 767px) {
  #snap-container {
    height: auto;
    overflow: visible;
  }
}

/* --- Custom Scrollbar --- */
#snap-container::-webkit-scrollbar {
  width: 6px;
}
#snap-container::-webkit-scrollbar-track {
  background: transparent;
}
#snap-container::-webkit-scrollbar-thumb {
  background: rgba(128, 128, 128, 0.2);
  border-radius: 3px;
}
#snap-container::-webkit-scrollbar-thumb:hover {
  background: rgba(128, 128, 128, 0.4);
}

/* --- Scroll Animations --- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-animate].animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* --- Keyframes --- */
@keyframes pulse-slow {
  0%, 100% { opacity: 0.1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.2; transform: translate(-50%, -50%) scale(1.08); }
}
.animate-pulse-slow {
  animation: pulse-slow 6s ease-in-out infinite;
}

@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0) translateX(-50%); }
  50% { transform: translateY(10px) translateX(-50%); }
}
.animate-bounce-subtle {
  animation: bounce-subtle 2s ease-in-out infinite;
}

@keyframes typing-dot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
  animation: fade-in-up 0.4s ease-out forwards;
}

/* --- Gradient Text --- */
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .animate-pulse-slow,
  .animate-bounce-subtle {
    animation: none;
  }
  #snap-container {
    scroll-behavior: auto;
  }
}

/* --- Dark / Light Mode Transition --- */
html {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- Selection --- */
::selection {
  background: rgba(99, 102, 241, 0.3);
  color: inherit;
}
