/* Loading Screen Styles */

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-logo {
  position: absolute;
  width: 100px;
  height: auto;
  animation: fadeInDown 0.8s ease-out;
}

.spinner {
  width: 150px;
  height: 150px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top: 4px solid var(--color-primary);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
  margin-bottom: 25px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* Logo styling in navbar */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 50px;
  width: auto;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Footer logo */
.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 1rem;
  display: block;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-logo:hover {
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .loading-logo {
    width: 100px;
  }

  .spinner {
    width: 50px;
    height: 50px;
    border-width: 3px;
  }

  .logo-img {
    height: 40px;
  }

  .footer-logo {
    height: 50px;
  }
}
