@font-face {
  font-family: "FunnelDisplay";
  src: url("./FunnelDisplay.ttf") format("truetype");
}

@font-face {
  font-family: "StrecthPro";
  src: url("./StretchPro.otf") format("opentype");
}

body {
  font-family: "FunnelDisplay", sans-serif;
}

.font-title {
  font-family: "StrecthPro", sans-serif;
}

.blur-4xl {
  filter: blur(128px);
}

.blur-5xl {
  filter: blur(196px);
}

@keyframes slideUp {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.slide-up {
  animation: slideUp 0.5s ease-out forwards;
}

.delay-200 {
  animation-delay: 0.2s;
}

.hidden-until-animate {
  opacity: 0;
  animation-fill-mode: forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
  will-change: opacity, transform;
  /* Performance hint */
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Delays for Grid Items */
.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}

/* Clean, thin scrollbar for the modal */
.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Ensure the modal shows up when active */
#modal.active {
  opacity: 1;
  pointer-events: auto;
}

#modal.active #modal-content {
  transform: scale(1);
}

/* Optimized Infinite Scroll */
@keyframes scroll {
  0% {
    /* Use translate3d to force GPU acceleration */
    transform: translate3d(0, 0, 0);
  }
  100% {
    /* 
       Since we duplicated the list 4 times, we move -50% 
       (which covers 2 full sets) effectively resetting perfectly 
       in the middle without the user noticing.
    */
    transform: translate3d(-50%, 0, 0);
  }
}

.scroller-track {
  /* Crucial for smoothness */
  will-change: transform;
  animation: scroll 60s linear infinite; /* Slower speed (60s) usually looks smoother than 40s */
}

/* Pause on hover (Optional - remove if causes stutter on mobile touch) */
.scroller-track:hover {
  animation-play-state: paused;
}

/* Gradient Mask - Optimized */
.slider-mask {
  /* Create a new stacking context */
  position: relative;
  z-index: 1;

  /* The fade effect */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );

  /* Prevent interaction issues on edges */
  pointer-events: none;
}

/* Re-enable pointer events for the logos so they can be hovered */
.scroller-track > * {
  pointer-events: auto;
}

.prose h1 {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 0.5em;
  color: white;
}
.prose h2 {
  font-size: 1.5em;
  font-weight: bold;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: white;
}
.prose p {
  margin-bottom: 1em;
  color: #d1d5db;
  line-height: 1.7;
}

.prose strong {
  color: white;
  font-weight: bold;
}

/* Styling for Markdown Code Blocks (Triple Backticks) */
.prose pre {
  background-color: #0d0e17 !important; /* Extra dark for contrast */
  border: 1px solid rgba(255, 75, 92, 0.1); /* Subtle red accent border */
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1.5rem 0;
  overflow-x: auto;
}

.prose pre code {
  color: #ff4b5c !important; /* theme-accent */
  font-family: "Courier New", monospace;
  font-size: 0.9em;
  background: transparent !important;
  padding: 0 !important;
}

/* Inline Code (Single Backtick) */
.prose p code {
  color: #ff4b5c !important;
  background-color: rgba(255, 75, 92, 0.1) !important;
  padding: 2px 6px !important;
  border-radius: 4px;
  font-weight: 500;
  font-family: monospace;
}

/* 1. Fix Ordered Lists (The Numbers) */
.prose ol {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

/* 2. Fix Unordered Lists (The Dots) */
.prose ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

/* 3. Color the Numbers and Dots with your Accent Color */
.prose ol li::marker,
.prose ul li::marker {
  color: #ff4b5c; /* theme-accent */
  font-weight: bold;
}

/* 4. Style the Horizontal Rule (---) */
.prose hr {
  border: 0;
  border-top: 2px solid rgba(255, 75, 92, 0.3); /* Subtle accent color */
  margin: 2.5rem 0;
}

/* 5. Space out list items for better readability */
.prose li {
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

/* 6. Style the blockquote (">") */
.prose blockquote {
  border-left: 4px solid #ff4b5c;
  padding: 0.5rem 1rem;
  margin: 2rem 0;
  background-color: rgba(255, 75, 92, 0.05);
  font-style: italic;
  color: #9ca3af;
}

.prose blockquote p {
  margin-bottom: 0;
}
