/* FONT FACE */
@font-face {
  font-family: "OnStageSerial-Bold";
  src: url("OnStageSerial-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'OnStage Serial';
  src: url('OnStageSerial-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'OnStageSerial Bold';
  src: url('OnStageSerial-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* PRELOADER STYLES */
:root {
  --move-distance: 210px;
}

.preloader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #FFF;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-family: "Aptos Display", "Segoe UI", system-ui, sans-serif;
  overflow: hidden;
}

.preloader-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.main-content {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.main-content.visible {
  opacity: 1;
}

/* WARNING POPUP STYLES */
.warning-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.warning-popup-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.warning-popup-container {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: popupSlideIn 0.4s ease;
}

@keyframes popupSlideIn {
  from {
    transform: scale(0.8) translateY(-20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.warning-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  padding: 0;
}

.warning-close-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.warning-close-btn:active {
  transform: scale(0.95);
}

.warning-image {
  width: 100%;
  height: auto;
  display: block;
  max-height: 90vh;
  object-fit: contain;
}

.preloader-logo-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
}

.preloader-logo {
  font-family: 'OnStageSerial Bold', "OnStageSerial-Bold", "Aptos Display", "Segoe UI", system-ui, sans-serif;
  font-size: 6rem;
  font-weight: 700;
  color: #b40606;
  text-align: center;
  position: relative;
  display: inline-block;
}

.preloader-logo-text {
  position: relative;
  display: inline-block;
}

.preloader-letter {
  display: inline-block;
  opacity: 1;
  transform: translateX(0) scale(1);
}

.preloader-dot {
  display: inline-block;
  opacity: 1;
  transform: translateX(0) scale(1);
}

@keyframes fadeOutLetter {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  70% {
    opacity: 0;
    transform: translateX(0px) scale(0.7);
  }
  100% {
    opacity: 0;
    transform: translateX(0px) scale(0);
  }
}

@keyframes moveDot {
  0% {
    transform: translateX(0) scale(1);
  }
  100% {
    transform: translateX(calc(var(--move-distance) * -1)) scale(2);
  }
}

@keyframes moveb {
  0% {
    transform: translateX(0) scale(1);
  }
  100% {
    transform: translateX(var(--move-distance)) scale(2);
  }
}

@media (max-width: 600px) {
  :root {
    --move-distance: 100px;
  }
  .preloader-logo {
    font-size: clamp(2rem, 12vw, 5rem);
  }
}

@media (max-width: 380px) {
  :root {
    --move-distance: 70px;
  }
  .preloader-logo {
    font-size: clamp(1.5rem, 10vw, 3rem);
  }
}

/* GLOBAL */
body {
  font-family: "Aptos Display", "Segoe UI", system-ui, sans-serif;
  background: #ffffff url('https://media.istockphoto.com/id/959093634/vector/vector-abstract-blurry-pastel-colored-soft-gradient-background.jpg?s=612x612&w=0&k=20&c=rlvPTGBOD7GmijgwxcP3b7ChMmzUYoDf7IEIl53oN88=') center center / cover no-repeat fixed;
  min-height: 100vh;
  position: relative; /* so the logo can be placed in the top-left corner */
  overflow-x: hidden;
}

/* FULL SCREEN WRAPPER */
.page-wrapper {
  width: 100%;
  min-height: 100vh;
  padding: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* MAIN CONTENT */
.content {
  width: 100%;
  max-width: 1400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

/* LEFT */
.left {
  max-width: 520px;
  padding-top: 0;
}

.logo-container {
  position: absolute;
  top: 40px;
  left: 80px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  height: 64px;
}

.logo-text {
  font-size: 40px;
  font-weight: bold;
  color: #d32f2f;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "OnStageSerial-Bold", "Aptos Display", "Segoe UI", system-ui, sans-serif;
}

.left h1 {
  font-size: 56px;
  font-weight: 700;
  color: #0a2c3d;
  line-height: 1.1;
}

.left h1 span {
  display: block;
}

.left p {
  margin: 28px 0 36px;
  font-size: 17px;
  line-height: 1.7;
  color: #5f6b73;
}

/* BUTTON */
.cta {
  background: linear-gradient(135deg, #ff8a00, #ff5c00);
  color: #fff;
  border: none;
  padding: 14px 34px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255, 122, 0, 0.25);
}

/* RIGHT */
.right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-image {
  width: 100%;
  max-width: 620px;
}

/* RESPONSIVE */
/* Tablet */
@media (max-width: 1024px) {
  .page-wrapper {
    padding: 40px;
    min-height: 100vh;
    height: auto;
  }

  .content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .left {
    max-width: 100%;
    width: 100%;
  }

  .right {
    justify-content: center;
    width: 100%;
  }

  .logo-container {
    top: 24px;
    left: 24px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .logo {
    height: 48px;
  }

  .logo-text {
    font-size: 24px;
  }

  .left {
    padding-top: 60px;
  }

  .left h1 {
    font-size: 42px;
    margin-top: 0;
  }

  .left p {
    font-size: 16px;
  }

  .hero-image {
    max-width: 500px;
  }
}

/* Mobile Landscape and Small Tablets */
@media (max-width: 768px) {
  .page-wrapper {
    padding: 20px;
    min-height: 100vh;
    height: auto;
  }

  .content {
    gap: 30px;
  }

  .logo-container {
    top: 16px;
    left: 16px;
    gap: 10px;
  }

  .logo {
    height: 40px;
  }

  .logo-text {
    font-size: 18px;
    letter-spacing: 0.5px;
  }

  .left {
    padding-top: 70px;
  }

  .left h1 {
    font-size: 36px;
    margin-top: 0;
  }

  .left p {
    font-size: 15px;
    margin: 20px 0 24px;
  }

  .hero-image {
    max-width: 100%;
  }

  .warning-popup-container {
    max-width: 95%;
    border-radius: 8px;
  }

  .warning-close-btn {
    width: 32px;
    height: 32px;
    font-size: 24px;
    top: 10px;
    right: 10px;
  }
}

/* Mobile Portrait */
@media (max-width: 480px) {
  .page-wrapper {
    padding: 16px;
    min-height: 100vh;
    height: auto;
  }

  .content {
    gap: 24px;
  }

  .logo-container {
    top: 12px;
    left: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .logo {
    height: 36px;
  }

  .logo-text {
    font-size: 14px;
    letter-spacing: 0.3px;
    line-height: 1.2;
  }

  .left {
    padding-top: 80px;
  }

  .left h1 {
    font-size: 28px;
    margin-top: 0;
    line-height: 1.2;
  }

  .left h1 span {
    display: inline;
  }

  .left p {
    font-size: 14px;
    margin: 16px 0 20px;
    line-height: 1.6;
  }

  .hero-image {
    max-width: 100%;
    height: auto;
  }

  .warning-popup-container {
    max-width: 98%;
    border-radius: 6px;
  }

  .warning-close-btn {
    width: 28px;
    height: 28px;
    font-size: 20px;
    top: 8px;
    right: 8px;
  }

  .warning-image {
    max-height: 85vh;
  }
}

/* Very Small Mobile */
@media (max-width: 360px) {
  .page-wrapper {
    padding: 12px;
  }

  .logo-container {
    top: 10px;
    left: 10px;
    gap: 6px;
  }

  .logo {
    height: 32px;
  }

  .logo-text {
    font-size: 12px;
  }

  .left {
    padding-top: 70px;
  }

  .left h1 {
    font-size: 24px;
    margin-top: 0;
  }

  .left p {
    font-size: 13px;
  }

  .warning-popup-container {
    max-width: 98%;
    border-radius: 4px;
  }

  .warning-close-btn {
    width: 24px;
    height: 24px;
    font-size: 18px;
    top: 6px;
    right: 6px;
  }

  .warning-image {
    max-height: 80vh;
  }
}
