/* ========== GLOBAL STYLES ======== */
body {
  margin: 0;
  padding: 0;
  font-family: "Courier New", monospace;
  color: white;
  text-align: center;
  overflow-x: hidden;
  /* allow scrolling if content exceeds viewport */
}

/* ========== HERO SECTION ======== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* ========== BACKGROUND IMAGE WITH ZOOM ======== */
.bg-img {
  position: absolute; /* relative to hero */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  animation: zoom 25s ease-in-out infinite alternate;
}

/* ========== STARFIELD ======== */
#stars {
  position: absolute; /* relative to hero */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ========== LOGO WRAPPER + ICON ======== */
.logo-wrapper {
  position: absolute; /* relative to hero */
  top: 45%;
  left: 48%;
  transform: translate(-50%, -50%);
  width: 600px;
  max-width: 80%;
}

.logo-wrapper .logo {
  width: 100%;
  display: block;
  position: relative;
}

/* ========== CENTER TEXT ======== */
.center-wrapper {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3vw;
  letter-spacing: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

#typing {
  display: inline-block;
  border-right: 3px solid white;
  padding-right: 5px;
  animation: blink 0.7s infinite;
}

/* ========== PROGRESS BAR ======== */
.progress-container {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 600px;
  height: 10px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 5px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, cyan, magenta);
  border-radius: 5px;
  transition: width 0.3s;
}

/* ========== FOOTER ======== */
.site-footer {
  position: fixed; /* stick at bottom */
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;

  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Courier New", monospace;
  font-size: 14px;
  z-index: 100;
  color: black;
  background-color: transparent;
  font-weight: bolder;
}

.site-footer a {
  color: #270627;
  text-decoration: none;
  transition: color 0.3s;
}

/* ========== BACKGROUND ZOOM ======== */
@keyframes zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.3);
  }
}

/* ========== BLINK ======== */
@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* ========== RESPONSIVE DESIGN ======== */
@media (max-width: 1024px) {
  .center-wrapper {
    font-size: 4vw;
  }
}

@media (max-width: 768px) {
  .logo-wrapper {
    width: 70%;
    top: 28%;
  }
  .center-wrapper {
    top: 65%;
    font-size: 5vw;
    letter-spacing: 3px;
  }
  .progress-container {
    width: 80%;
    bottom: 15%;
  }
  .site-footer {
    font-size: 12px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .logo-wrapper {
    width: 80%;
    top: 45%;
  }
  .center-wrapper {
    top: 68%;
    font-size: 6vw;
    letter-spacing: 2px;
  }
  .progress-container {
    width: 80%;
    bottom: 25%;
  }
  .site-footer {
    height: 45px;
  }
}
@media (max-width: 768px) {
  .hero {
    height: 100vh;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 100vh;
  }
}

/* ========== FOOTER ========== */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  color: white;
  font-family: "Courier New", monospace;
  z-index: 100;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  height: 70px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Text & Links */
.footer-content p {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.footer-content a {
  color: #00ffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-content a:hover {
  color: #ff66ff;
}

/* Social Icons */
.social-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-icon {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
  color: #6820bf00;
  filter: drop-shadow(0 0 6px hwb(280 51% 15% / 0.801)) brightness(1.2);
}

.footer-icon:hover {
  transform: translateY(-3px) scale(1.1);
  opacity: 1;
  filter: drop-shadow(0 0 6px cyan) brightness(1.2);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    height: auto;
    padding: 10px 20px;
    gap: 8px;
  }

  .footer-content p {
    font-size: 12px;
    text-align: center;
  }

  .social-links {
    gap: 10px;
  }

  .footer-icon {
    width: 22px;
    height: 22px;
  }
}
/* ========== PAGE LOADER ========== */
#loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #000010 60%, #000000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 1s ease, transform 1s ease, visibility 1s ease;
}

.loader-logo {
  width: 130px;
  height: auto;
  opacity: 0.9;
  animation: glowPulse 2s infinite ease-in-out;
  filter: drop-shadow(0 0 12px cyan);
}

#loader.hidden {
  opacity: 0;
  transform: scale(1.2);
  visibility: hidden;
}

@keyframes glowPulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px cyan);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px magenta);
    opacity: 1;
  }
}
#loader {
  animation: bgShift 6s infinite alternate ease-in-out;
}

@keyframes bgShift {
  0% {
    background: radial-gradient(circle at center, #000010, #001020);
  }
  100% {
    background: radial-gradient(circle at center, #001020, #000010);
  }
}
/* ========== LOADER ========== */
#loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #000010 60%, #000000 100%);
  z-index: 9999;
}

.loader-logo {
  width: 130px;
  transition: all 1s ease;
  filter: drop-shadow(0 0 15px cyan);
  animation: glowPulse 2s infinite ease-in-out;
}

@keyframes glowPulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px cyan);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px magenta);
    opacity: 1;
  }
}

/* TRANSITION TO FINAL LOGO POSITION */
#loader.hidden .loader-logo {
  transform: translate(var(--dx), var(--dy)) scale(0.6);
  opacity: 0;
}

/* HIDE LOADER COMPLETELY AFTER TRANSITION */
#loader.hidden {
  pointer-events: none;
  transition: opacity 1s ease;
  opacity: 0;
}
