@font-face {
  font-family: 'Allura';
  src: url('/fonts/Allura.woff2') format('woff2'),
       url('/fonts/Allura.woff')  format('woff'),
       url('/fonts/Allura.ttf')   format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  font-synthesis: none;
  font-display: fallback;
  font-size-adjust: 0.5;
}


/* Base reset */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
}


/* Background video container */
.video-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
}

.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Center container */
.center {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
}


/* Subtle dark overlay */
.scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    100% 100% at 50% 50%,
    rgba(0,0,0,0.25),
    rgba(0,0,0,0.55)
  );
}


/* Welcome text styling */
.welcome-text {
  font-family: 'Allura', cursive !important;
  font-size: clamp(48px, 10vw, 128px);  /* larger min & max */
  font-weight: 400;
  letter-spacing: 1px;                   /* slightly wider for dramatic script feel */
  line-height: 1.15;
  text-align: center;
  color: #95f1d6;

  /* Enhanced layered shadow for depth & glow */
  text-shadow:
    0 4px 8px rgba(0,0,0,0.5),       /* base depth */
    0 8px 20px rgba(0,0,0,0.4),      /* extended depth */
    0 0 30px rgba(255,255,255,0.25); /* subtle outer glow */

  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.welcome-text:hover {
  transform: scale(1.05); /* gentle pop */
  text-shadow:
    0 6px 12px rgba(0,0,0,0.6),
    0 12px 28px rgba(0,0,0,0.5),
    0 0 40px rgba(255,255,255,0.35);
}


/* Fade/scale animation */
@keyframes welcomeFade {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
    filter: blur(4px);
  }
  50% {
    opacity: 1;
    transform: scale(1.05) translateY(0);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}


/* Accessibility: no video motion */
@media (prefers-reduced-motion: reduce) {
  .video-bg {
    display: none;
  }
  body {
    background: url("/images/deep-nebula-poster.jpg") center/cover no-repeat #000;
  }
  .welcome-text {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
