@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Space+Grotesk:wght@500;700&display=swap');

/* We are using Tailwind CDN via injection in layout-head.php, 
   so this stylesheet is now exclusively for complex CSS animations 
   and specific pseudo-element textures that are verbose in Tailwind. */

/* Base reset for anything Tailwind didn't catch */
html, body {
  overflow-x: hidden;
}

/* ---------------------------------
   CSS Textures
----------------------------------*/
.dot-grid-bg {
  position: relative;
  background-color: var(--color-primary, #0f172a);
}

.dot-grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.dot-grid-bg > * {
  position: relative;
  z-index: 1;
}

/* ---------------------------------
   Gradients
----------------------------------*/
.text-gradient {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------------------------------
   Animations
----------------------------------*/
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* ---------------------------------
   Scroll Reveal System
----------------------------------*/
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Fade from right/left for alternating sections */
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.scroll-reveal.revealed.reveal-left, 
.scroll-reveal.revealed.reveal-right {
  transform: translateX(0);
}

/* ---------------------------------
   Custom Scrollbar
----------------------------------*/
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-surface, #f8fafc);
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1; /* slate-300 */
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8; /* slate-400 */
}
