/* === Base Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  width: 100%;
  height: 100%;
  font-family: "Courier New", monospace;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  /* Hide the mouse cursor */
}

/* === Background Videos === */
/* === Background Media === */
#bgVideo,
#bgVideoMobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}

.bg-desktop {
  display: block;
}

.bg-mobile {
  display: none;
}

/* Show mobile image only on phones */
@media screen and (max-width: 480px) {
  .bg-desktop {
    display: none;
  }
  .bg-mobile {
    display: block;
  }
}

/* === Container === */
.container {
  width: 100%;
  max-width: 800px;
  padding: 20px;
  position: relative;
  z-index: 10;
}

/* === Omega PNG Rotation === */
.omega-image {
  width: 140px;
  height: auto;
  margin-bottom: 20px;
  animation: rotateYLoop 8s linear infinite;
  transform-origin: center;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
}

/* === Title === */
h1 {
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: 5px;
  color: #fff;
  margin-bottom: 5px;
  text-transform: uppercase;
  font-family: "Permanent Marker", cursive;
  animation: fadeIn 3s ease-in-out, moveUp 2s ease-in-out infinite alternate;
}

/* === Subtitle === */
.subtitle {
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 2px;
  color: #fff;
  font-family: "Permanent Marker", cursive;
  margin-bottom: 25px;
}

/* === Buttons === */
.links {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
  animation: buttonPulse 4.2s infinite;
  flex-wrap: wrap;
}

.links a {
  display: inline-block;
  padding: 10px 18px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 10px;
  border: 1.5px solid #fff;
  font-family: "Courier New", monospace;
  transition: transform 0.2s ease, background-color 0.3s ease, color 0.3s ease,
    box-shadow 0.3s ease, filter 0.3s ease;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.05);
  text-shadow: none;
}

.links a i {
  margin-right: 6px;
  font-size: 1.1rem;
}

.links a:hover {
  transform: scale(1.05);
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
  filter: brightness(1.2);
}

/* === Footer === */
footer {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  font-family: "Courier New", monospace;
}

/* === Animations === */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes moveUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-10px);
  }
}

@keyframes buttonPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes rotateYLoop {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

/* === Responsive === */
@media screen and (max-width: 768px) {
  h1 {
    font-size: 3rem;
    margin-bottom: 10px;
  }
  .subtitle {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }
  .links {
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
  }
  .links a {
    font-size: 1rem;
    padding: 10px 14px;
    width: 70%;
    margin: 0 auto;
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 2.3rem; /* slightly smaller */
    margin-bottom: 10px;
  }

  .subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .omega-image {
    width: 100px; /* reduced from 120px */
    margin-bottom: 15px;
  }

  .links {
    margin-top: 20px; /* move buttons closer to content */
    margin-bottom: 20px; /* optional: create buffer above footer */
  }

  .links a {
    position: relative; /* for absolute icon positioning */
    display: block; /* full-width button */
    width: 75%;
    margin: 0 auto;
    padding: 10px 12px;
    font-size: 0.85rem;
    text-align: center; /* center the text */
    border-radius: 10px;
    border: 1.5px solid #fff;
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    text-decoration: none;
    font-family: "Courier New", monospace;
    overflow: hidden; /* ensure icon stays inside button */
  }

  .links a i {
    position: absolute;
    left: 12px; /* padding from left edge */
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    margin-right: 0; /* no extra spacing needed */
  }
}
