html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
}

::selection {
  background: #2563eb;
  color: white;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: #2563eb;
  transition: 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.glass {
  backdrop-filter: blur(18px);
}

/* Reveal Animation */

.reveal {
  opacity: 0;

  transform: translateY(40px);

  transition: 0.8s ease;
}

.reveal.active {
  opacity: 1;

  transform: translateY(0);
}

/* Floating Animation */

.float {
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

/* Smooth Scroll */

html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: #2563eb;

  border-radius: 20px;
}

::-webkit-scrollbar-track {
  background: #e5e7eb;
}


/* ==========================================================
   Marquee Ticker — pure CSS, GPU-accelerated, infinite loop
   ========================================================== */
.marquee-wrapper {
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
    width: max-content;
    animation: marquee-scroll 18s linear infinite;
}

.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused; /* pause on hover so users can read */
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); } /* -50% because content is duplicated 2x */
}

/* Respect users who've asked the OS to reduce motion */
@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
        transform: none;
    }
}
