/* Mobile Portal Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: iqos, sans-serif;
}
@font-face {
  font-family: iqos;
  src: url('/fonts/iqosw-bold.otf') format('opentype');
  font-weight: 700;
}
@font-face {
  font-family: iqos;
  src: url('/fonts/iqosw-regular.ttf') format('truetype');
  font-weight: 400;
}

body {
  font-family: iqos, sans-serif;
  background: linear-gradient(135deg, #0099ff 0%, #0066cc 50%, #003d80 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}
.container::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/img/bg-racing.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.btn-race {
  background: linear-gradient(
    90deg,
    rgba(20, 34, 150, 0) 0%,
    rgba(20, 34, 150, 0.31) 9%,
    rgba(20, 34, 150, 0.56) 17%,
    rgba(20, 34, 150, 0.75) 26%,
    rgba(20, 34, 150, 0.89) 34%,
    rgba(20, 34, 150, 0.97) 42%,
    #142296 50%,
    rgba(20, 34, 150, 0.97) 58%,
    rgba(20, 34, 150, 0.89) 66%,
    rgba(20, 34, 150, 0.75) 74%,
    rgba(20, 34, 150, 0.56) 83%,
    rgba(51, 0, 145, 0.31) 91%,
    rgba(51, 0, 145, 0) 100%
  );
  padding: 8px 0px 10px 0px;
  color: white;
  font-weight: bold;
  width: 80%;
}
.container-veev.veev {
  width: 100%;
  max-width: 414px; /* iPhone Pro Max width */
  min-height: 100vh;
  background: linear-gradient(
    270deg,
    rgba(43, 11, 103, 0.5) 0%,
    rgba(24, 8, 55, 0.5) 50%,
    rgba(43, 11, 103, 0.5) 100%
  );

  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: #330a80 !important;
  background-image: url('/img/bg-veev.webp') !important;
}

/* Circular patterns background */
.bg-patterns {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.1;
}

.circle {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
}

.circle-1 {
  width: 300px;
  height: 300px;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
}
.video-result {
  max-width: 80%;
  width: auto;
  height: auto;
  background-color: rgba(196, 207, 207, 0);
  border-radius: 8px;
  border: 2px solid rgba(196, 255, 255, 0);
}
.image-result {
  background-color: rgba(196, 255, 255, 1);
  border-radius: 8px;
  border: 2px solid rgba(196, 255, 255, 1);
  max-width: 85%;
  width: auto;
}
.circle-2 {
  width: 400px;
  height: 400px;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
}
.bg-video-wrap {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  opacity: 0.3;
}

.bg-video-wrap video {
  position: absolute;
  width: 100%;
  max-width: 414px;
  height: auto;
  object-fit: contain;
  /* transform: translate(50%, 50%); */
  top: -50px;
}
/* Fallback: gunakan poster sebagai background jika video tidak didukung */
.bg-fallback {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}

/* layer gelap agar konten terbaca */
/* .overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45));
  z-index: 0;
  pointer-events: none;
} */
.circle-3 {
  width: 500px;
  height: 500px;
  top: -250px;
  left: 50%;
  transform: translateX(-50%);
}

.circle-4 {
  width: 200px;
  height: 200px;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
}

.circle-5 {
  width: 300px;
  height: 300px;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
}

/* Main content */
.content {
  text-align: center;
  z-index: 10;
  position: relative;
  display: flex;
  flex-direction: column;
  align-content: center;
  align-items: center;
}
.content-veev {
  text-align: center;
  z-index: 10;
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.main-circle {
  width: 200px;
  height: 200px;
  border: 4px solid #00ffff;
  border-radius: 50%;
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 255, 0.1);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.5),
    inset 0 0 30px rgba(0, 255, 255, 0.2);
  animation: glow 2s ease-in-out infinite alternate;
}

.inner-circle {
  width: 120px;
  height: 120px;
  background: linear-gradient(45deg, #00ffff, #0099ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
}

.main-title {
  color: white;
  font-size: 24px;
  font-weight: bold;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
}

.subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 40px;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 280px;
}

.btn {
  background-color: transparent;
  margin-top: 24px;
}
.loading {
  display: none;
  color: white;
}
.error {
  display: none;
  color: white;
}
.btn-primary {
  background: linear-gradient(45deg, #00ffff, #0099ff);
  color: #003d80;
  box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 255, 255, 0.6);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* Animations */
@keyframes pulse {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.05);
  }
}

@keyframes glow {
  0% {
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5),
      inset 0 0 30px rgba(0, 255, 255, 0.2);
  }
  100% {
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.8),
      inset 0 0 50px rgba(0, 255, 255, 0.4);
  }
}

/* Desktop specific styles */
@media (min-width: 768px) {
  body {
    background: #1a1a1a;
  }

  .container {
    min-height: auto;
    height: 100vh;
    max-height: 900px;
    border-radius: 20px;
    margin: 20px;
  }
}

/* Large desktop */
@media (min-width: 1200px) {
  .container {
    max-width: 450px;
  }
}

/* Small mobile adjustments */
@media (max-width: 375px) {
  .main-circle {
    width: 160px;
    height: 160px;
  }

  .inner-circle {
    width: 100px;
    height: 100px;
  }

  .main-title {
    font-size: 20px;
  }

  .subtitle {
    font-size: 14px;
  }
}

/* Loading animation */
.loading {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(0, 255, 255, 0.3);
  border-top: 3px solid #00ffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.background-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-image: url('/img/bg-all.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Video Layer with Blend */
.video-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: hidden;
  mix-blend-mode: screen;
}
.container-effect-video {
  position: relative;
  width: 100%;
  max-width: 450px;
  height: 230px;
  overflow: hidden;
}
.video-layer video {
  width: 100%;
  height: 100%;
  max-width: 450px;
  object-fit: cover;
  mix-blend-mode: screen; /* Blend mode untuk menggabungkan dengan background */
}
.video-container {
  position: relative;
  width: 100%;
}

.video-container-veev {
  position: relative;
  mix-blend-mode: screen;
  height: 210px;
  width: 100%;
  top: 1px;
}
.video-sound-1 {
  position: absolute;
  z-index: 1;
  height: 99%;
  width: auto;
  left: 0;
  mix-blend-mode: screen;
}
.video-sound-2 {
  position: absolute;
  z-index: 2;
  left: 0;
  height: 99%;
  width: auto;
  mix-blend-mode: screen;
}

.video-background {
  position: absolute;
  z-index: 0;
  left: 0;
  width: 100%;
  height: 210px;

  background: linear-gradient(
    270deg,
    #32126d 0%,
    rgba(50, 18, 109, 0.75) 50%,
    #32126d 100%
  );
}
