/* ========== FONT DECLARATIONS ========== */
@font-face {
  font-family: "LatoItalic";
  src: url("fonts/Lato/Lato-Italic.ttf") format("truetype");
}
@font-face {
  font-family: "LatoLightItalic";
  src: url("fonts/Lato/Lato-LightItalic.ttf") format("truetype");
}

/* ========== CSS VARIABLES ========== */
:root {
  /* Typography scale - REM-based for consistent scaling */
  --h1-size: 2.5rem;
  --h3-size: 1.25rem;
  --body-size: 1rem;
}

/* ========== GLOBAL RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* ========== BACKGROUND ========== */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #020931;
  z-index: -1;
}

/* ========== MAIN CONTENT ========== */
.slide1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
}

.slide1 h1 {
  font-size: var(--h1-size);
  font-family: "LatoItalic", italic, sans-serif;
  color: white;
  white-space: nowrap; /* Prevent text wrapping */
}

.slide1 h3 {
  font-size: var(--h3-size);
  font-family: "LatoLightItalic", light, italic, sans-serif;
  color: white;
  white-space: nowrap; /* Prevent text wrapping */
}

.cnt,
.spd {
  color: white;
  font-size: var(--body-size);
}

/* ========== DECORATIVE ELEMENTS ========== */
/* Star SVG */
#svgstar {
  overflow: visible;
  position: absolute;
  left: 50%;
  top: 91.4%;
  transform: translate(-50%, -50%);
  width: 7%;
  height: 7%;
  min-width: 40px;
  min-height: 40px;
  max-width: 80px;
  max-height: 80px;
}

/* Star glow animation */
@keyframes glow {
  0% {
    fill-opacity: 1;
    filter: drop-shadow(0 0 0.8em #faf394) drop-shadow(0 0 1.5em #faf394) drop-shadow(0 0 4em #ffffff);
  }
  50% {
    fill-opacity: 0.35;
    filter: drop-shadow(0 0 1em #faf394) drop-shadow(0 0 3em #faf394) drop-shadow(0 0 5em #ffffff);
  }
  100% {
    fill-opacity: 1;
    filter: drop-shadow(0 0 0.8em #faf394) drop-shadow(0 0 1.5em #faf394) drop-shadow(0 0 4em #ffffff);
  }
}

.cls1 {
  animation-name: glow;
  animation-duration: 3s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  will-change: filter, fill-opacity;
  backface-visibility: hidden;
}

/* Decorative lines */
.line1 {
  position: absolute;
  top: 91.4%;
  left: 35%;
  width: 23%;
  transform: translate(-50%, -50%);
  color: rgb(182, 216, 255);
}
.line1_1 {
  position: absolute;
  top: 91.4%;
  left: 65%;
  width: 23%;
  transform: translate(-50%, -50%);
  color: rgb(182, 216, 255);
}

/* ========== RESPONSIVE BREAKPOINTS ========== */
/* Tablet and mobile */
@media (max-width: 768px) {
  #svgstar {
    top: 91.5%;
    width: 8%;
    height: 8%;
  }

  .line1 {
    left: 30%;
    width: 23%;
  }

  .line1_1 {
    left: 70%;
    width: 23%;
  }
}

/* Mobile */
@media (max-width: 480px) {
  #svgstar {
    width: 10%;
    height: 10%;
  }

  .line1 {
    left: 30%;
    width: 23%;
  }

  .line1_1 {
    left: 70%;
    width: 23%;
  }
}
