@font-face {
  font-family: 'Chandstate';
  src: url('/assets/fonts/chandstate-webfont.woff2') format('woff2'),
       url('/assets/fonts/chandstate-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gearus';
  src: url('/assets/fonts/GearusBold.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  padding: 0;
}

.splash-screen {
  position: absolute;
  z-index: 1000;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: 'Poppins', Helvetica, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
  color: #5E6278;
  line-height: 1;
  font-size: 14px;
  font-weight: 400;
}

.splash-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

/* Logo Container with Pulse Rings */
.logo-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 120px;
}

/* Text Logo */
.splash-text-logo {
  display: inline-grid;
  grid-template-rows: auto auto;
  gap: 0;
  line-height: 1;
  z-index: 10;
  animation: logoFloat 2s ease-in-out infinite;
}

.splash-logo-title {
  font-family: 'Chandstate', Georgia, serif;
  font-weight: bold;
  font-size: 38px;
  color: #E7512F;
  line-height: 0.85;
  white-space: nowrap;
  display: block;
  text-align: justify;
  text-align-last: justify;
  width: calc(100% + 1px);
}

.splash-logo-title::after {
  content: '';
  display: inline-block;
  width: 100%;
}

.splash-logo-desc {
  font-family: 'Gearus', Arial, sans-serif;
  font-weight: 800;
  font-size: 11px;
  color: #64748b;
  text-transform: lowercase;
  white-space: nowrap;
  display: block;
  line-height: 1;
  width: max-content;
  padding-top: 2px;
}

/* Floating animation for logo */
@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.05);
  }
}

/* Pulse Rings */
.pulse-ring {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 3px solid #3b82f6;
  border-radius: 50%;
  opacity: 0;
  animation: pulseRing 2s ease-out infinite;
}

.pulse-ring.delay-1 {
  animation-delay: 0.5s;
}

.pulse-ring.delay-2 {
  animation-delay: 1s;
}

@keyframes pulseRing {
  0% {
    transform: scale(0.5);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* Loading Text */
.loading-text {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  color: #64748b;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.dots {
  display: flex;
  margin-left: 2px;
}

.dot {
  animation: dotBounce 1.4s ease-in-out infinite;
  opacity: 0;
}

.dot:nth-child(1) {
  animation-delay: 0s;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotBounce {
  0%, 60%, 100% {
    opacity: 0;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-5px);
  }
}

/* Progress Bar */
.progress-bar {
  width: 200px;
  height: 4px;
  background: rgba(148, 163, 184, 0.3);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #3b82f6);
  background-size: 200% 100%;
  border-radius: 10px;
  animation: progressSlide 1.5s ease-in-out infinite;
}

@keyframes progressSlide {
  0% {
    transform: translateX(-100%);
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 0%;
  }
  100% {
    transform: translateX(400%);
    background-position: 0% 0%;
  }
}

/* Dark Mode Support */
[data-bs-theme="dark"] .splash-screen {
  background: linear-gradient(135deg, #1e1e2d 0%, #151521 100%);
  color: #92929F;
}

[data-bs-theme="dark"] .loading-text {
  color: #a1a5b7;
}

[data-bs-theme="dark"] .pulse-ring {
  border-color: #6366f1;
}

[data-bs-theme="dark"] .splash-logo-title {
  color: #FF6B4A;
}

[data-bs-theme="dark"] .splash-logo-desc {
  color: #a1a5b7;
}

[data-bs-theme="dark"] .progress-bar {
  background: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .progress-fill {
  background: linear-gradient(90deg, #6366f1, #a855f7, #6366f1);
  background-size: 200% 100%;
}

#root {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}
