/**
 * global.css
 *
 * Global stylesheet for the BridgePoints Insight website.
 * Contains base typography, CSS reset, font-face declarations,
 * loading screen styles, scroll-to-top button, container layout,
 * and scroll-triggered animation keyframes.
 */

@font-face {
  font-family: 'NunitoSans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/NunitoSans/NunitoSans-VariableFont.ttf') format('truetype');
}

@font-face {
  font-family: 'ArchivoBlack';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/ArchivoBlack/ArchivoBlack-Regular.ttf') format('truetype');
}

/* ============================================
   Base Typography & Reset
   ============================================ */

body {
  font-family: 'NunitoSans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  margin: 0;
  padding: 0;
  background-color: #FBFBFC;
}

h1, h2, h3, h4 {
  font-family: 'ArchivoBlack', sans-serif;
  font-weight: 700 !important;
  margin: 0;
  color: #000;
  padding: 0;
  line-height: 1.2;
  letter-spacing: 1px;
}

.btn, .subtitle, strong {
  font-family: 'ArchivoBlack', sans-serif;
  font-weight: 700;
}

ul, ol, li {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
  cursor: pointer;
}

a:hover {
  text-decoration: none;
}

/* ============================================
   Loading Screen
   ============================================ */

.loading-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-spinner {
  width: 50px;
  height: 50px;
}

.loading-wrapper.hidden {
  opacity: 0;
  visibility: hidden;
}

/* ============================================
   Scroll-to-Top Button
   ============================================ */

.scroll-top {
  display: block;
  position: fixed;
  bottom: 10px;
  text-align: center;
  right: 2%;
  width: 40px;
  height: 40px;
  line-height: 40px;
  font-size: 12px;
  color: #fff;
  text-decoration: none;
  border-radius: 100%;
  z-index: 9999;
  transition: all 0.5s ease;
  cursor: pointer;
  backface-visibility: hidden;
}

.scroll-top .scroll-icon {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: rotate(-90deg);
}

/* ============================================
   Container Layout
   ============================================ */

@media (min-width: 1500px) {
  .container {
    max-width: 1500px;
  }
}

.container-content {
  max-width: 1200px !important;
  margin: 0 auto;
}

/* ============================================
   Scroll-Triggered Animations
   ============================================ */

.fadeInUp {
  animation: fadeInUp 1s ease-in-out;
}

.animation-fadeInLeft.active {
  animation: fadeInLeft 1s ease forwards;
}

.animation-fadeInRight.active {
  animation: fadeInRight 1s ease forwards;
}

.animation-fadeInUp.active {
  animation: fadeInUp 1s ease forwards;
}

.img-fadeInRight.active {
  animation: fadeInRight 1s ease forwards;
}

.img-fadeInUp.active {
  animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
