/*
Theme Name: WIS
Theme URI: https://wis.com
Author: WIS Team
Author URI: https://wis.com
Description: A custom theme for WIS website
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wis
*/

/* Base styles will be added here */
/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 35, 126, 0.92); /* Slightly transparent dark blue */
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: preloader-fadein 0.6s;
}

@keyframes preloader-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

#preloader.preloader-hidden {
  display: none;
}

#preloader .preloader-logo {
  animation: breathe 2.5s infinite ease-in-out;
}

#preloader .preloader-logo img {
  max-width: 120px;
  height: auto;
  display: block;
  margin-bottom: 2rem;
}

#preloader .preloader-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

#preloader .preloader-spinner svg {
  width: 48px;
  height: 48px;
  animation: spin 1.2s linear infinite;
}

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

#preloader .preloader-bar {
  position: relative;
  width: 150px;
  height: 4px;
  background: linear-gradient(90deg, #F7a825 0%, #ff7a00 100%);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

#preloader .preloader-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, #fff 0%, #F7a825 100%);
  border-radius: 4px;
  animation: indeterminate-progress 1.8s infinite ease-in-out;
}

#preloader .preloader-text {
  color: #fff;
  margin-top: 0.5rem;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

@keyframes breathe {
  0% {
    transform: scale(0.98);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(0.98);
  }
}

@keyframes indeterminate-progress {
  0% {
    left: -50%;
  }
  100% {
    left: 110%;
  }
}

/*--------------------------------------------------------------
# Custom Scrollbar
--------------------------------------------------------------*/

/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: auto;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #fb923c, #3b82f6);
  border-radius: 6px;
  border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ea580c, #2563eb);
}

::-webkit-scrollbar-corner {
  background: #f1f5f9;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #fb923c #f1f5f9;
}

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar for specific elements if needed */
.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #fb923c, #3b82f6);
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ea580c, #2563eb);
} 