/* Global reset */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Main body styling with gradient background */
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(160deg, #0c1231 0%, #000000 100%);
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    color: #ffffffd2;
    margin: 0;
    padding: 0;
    overflow-x: hidden;  /* Disables horizontal scrolling */
    /* overflow-y is auto by default (enables vertical scrolling) */
}

.container {
  flex-grow: 1;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 6rem);

  background-color: rgba(0, 0, 0, 0);

  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

/* Scrollbar styling for Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #000;  /* Black background for the track */
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #60b6e5, #4157fd);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #6fc3ff, #586eff);
}

/* Scrollbar buttons (arrows at top/bottom or left/right) */
::-webkit-scrollbar-button {
  height: 10px;
  background: linear-gradient(180deg, #60b6e5, #4157fd);
  border-radius: 10px;
  border: none;
}

::-webkit-scrollbar-button:hover {
  background: linear-gradient(180deg, #6fc3ff, #586eff);
}

/* Firefox support */
* {
  scrollbar-width: thin;
  scrollbar-color: #60b6e5 #000;  /* thumb + track */
}

/* Animation keyframes */
@keyframes slide {
    0% {
        left: 100%;
    }
    50% {
        left: 0;
    }
    100% {
        left: -100%;
    }
}

/* Fullscreen background loader container */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000cc;  /* dark background */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Pulse ring loader styles */
.loader {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 6rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.loader::before,
.loader::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  animation: pulsOut 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 1rem #586eff75);
}

.loader::before {
  width: 100%;
  padding-bottom: 100%;  /* maintains aspect ratio */
  box-shadow: inset 0 0 0 1rem #586eff;
  animation-name: pulsIn;
}

.loader::after {
  width: calc(100% - 2rem);
  padding-bottom: calc(100% - 2rem);
  box-shadow: 0 0 0 0 #586eff;
}

@keyframes pulsIn {
  0% {
    box-shadow: inset 0 0 0 1rem #586eff;
    opacity: 1;
  }
  50%, 100% {
    box-shadow: inset 0 0 0 0 #586eff;
    opacity: 0;
  }
}

@keyframes pulsOut {
  0%, 50% {
    box-shadow: 0 0 0 0 #586eff;
    opacity: 0;
  }
  100% {
    box-shadow: 0 0 0 1rem #586eff;
    opacity: 1;
  }
}
