*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat";
}

button {
  cursor: pointer;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #00040f;
}

.Front-page{
  min-height: 100vh;
  display: grid;
  grid-template-rows: 85px 0.97fr 90px;
}

@media (max-width: 700px) {
  .Front-page{
    grid-template-rows: 140px 1fr 60px;
  }
}

.back-to-top {
  z-index: 10;
  position: fixed;
  right: 434px;
  top: 17px;
}

.back-to-top-button {
  background-color: rgb(2, 2, 33);
  opacity: 0.5;
  width: 50px;
  height: 50px;
  border-radius: 100%;
  border: 1px none white;
  cursor: pointer;
  transition: all 0.15s ease;
}

.back-to-top-button:hover {
  transform: scale(1.03) translateY(-5px);
}

.back-to-top-button:active {
  background-color: #0f131d;
}

.header-logo {
  width: 190px;
  border-radius: 10px;
  margin-top: -5px;
  margin-left: 20px;
}

#loader {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: #121212; /* Match your app background */
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

#loader {
  position: fixed;
  top: 0; left: 0; 
  width: 100%; height: 100%;
  background-color: #0b0e14; /* Dark professional background */
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-text {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  animation: pulse 2s ease-in-out infinite;
}

/* Dots animation */
.dots {
  display: inline-block;
  width: 1em;
}

/* Professional Spinner */
.spinner {
  width: 50px;
  height: 50px;
  border: 6px solid rgba(255, 255, 255, 0.1);
  border-top: 6px solid #00ff88; /* Match your app's accent color */
  border-radius: 50%;
  animation: spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.98); }
}

/* Fade out class */
.loader-hidden {
  opacity: 0;
  transition: opacity 0.5s visibility 0.5s;
  visibility: hidden;
}
