:root {
  --bg: #0b0f14;
  --text: #ffffff;

  --mta: #005aff;
  --mta-glow: rgba(0, 90, 255, 0.35);

  --vmp: #005aff;
  --vmp-glow: rgba(0, 90, 255, 0.35);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Rajdhani', sans-serif;
  background: var(--bg);
  overflow: hidden;
  cursor: default;
}

/* Fade Screen */
.page-fade {
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.45s ease;
}

.page-fade.active {
  opacity: 1;
  pointer-events: all;
}

/* Flashlight */
.flashlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  background:
    radial-gradient(
      circle 180px at var(--x, 50%) var(--y, 50%),
      rgba(255,255,255,0.12) 0%,
      rgba(255,255,255,0.07) 22%,
      rgba(255,255,255,0.03) 38%,
      rgba(0,0,0,0) 60%
    );
  mix-blend-mode: screen;
  transition: background-position 0.03s linear;
}

.landing {
  display: flex;
  width: 100%;
  height: 100vh;
  position: relative;
}



.panel {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  overflow: hidden;
  transition:
    flex 0.45s ease,
    filter 0.45s ease,
    transform 0.45s ease;
  background-size: cover;
  background-position: center;
}

.panel-left {
  background-image: url('images/mta-bg.jpg');
}

.panel-right {
  background-image: url('images/fivem-bg.jpg');
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.82), rgba(0,0,0,0.28)),
    radial-gradient(circle at center, rgba(255,255,255,0.04), transparent 60%);
  z-index: 1;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.28);
  z-index: 2;
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease;
}

.content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 24px;
  max-width: 520px;
  transform: translateY(24px);
  opacity: 0;
  animation: contentReveal 1s cubic-bezier(.2,.8,.2,1) forwards;
}

.panel-left .content {
  animation-delay: 0.15s;
}

.panel-right .content {
  animation-delay: 0.35s;
}

.content h1 {
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: 6px;
  margin-bottom: 14px;
  text-shadow: 0 0 30px rgba(255,255,255,0.08);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  animation: titleReveal 0.9s ease forwards;
}

.panel-left .content h1 {
  animation-delay: 0.28s;
}

.panel-right .content h1 {
  animation-delay: 0.48s;
}

.content p {
  font-size: 18px;
  color: rgba(255,255,255,0.82);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(16px);
  animation: textReveal 0.85s ease forwards;
}

.panel-left .content p {
  animation-delay: 0.42s;
}

.panel-right .content p {
  animation-delay: 0.62s;
}

/* رنگ تیترها */
.panel-mta h1 {
  color: var(--mta);
  text-shadow:
    0 0 18px rgba(0, 90, 255, 0.18),
    0 0 36px rgba(0, 90, 255, 0.10);
}

.panel-vmp h1 {
  color: var(--vmp);
  text-shadow:
    0 0 18px rgba(0, 90, 255, 0.18),
    0 0 36px rgba(0, 90, 255, 0.10);
}

/* Button Redesign */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 14px 30px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 10px 30px rgba(0,0,0,0.22);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
  opacity: 0;
  transform: translateY(16px);
  animation: btnReveal 0.85s ease forwards;
}

.panel-left .btn {
  animation-delay: 0.56s;
}

.panel-right .btn {
  animation-delay: 0.76s;
}

.panel-mta .btn {
  color: #e8f0ff;
}

.panel-vmp .btn {
  color: #e8f0ff;
}

.panel:hover {
  flex: 1.15;
  filter: brightness(1.08);
}

.panel:hover .overlay {
  background: rgba(0,0,0,0.14);
}

.panel:hover .content {
  transform: translateY(0);
}

.panel-mta:hover .overlay {
  box-shadow: inset 0 0 120px var(--mta-glow);
}

.panel-vmp:hover .overlay {
  box-shadow: inset 0 0 120px var(--vmp-glow);
}

.panel-mta:hover .btn {
  border-color: rgba(0, 90, 255, 0.45);
  background:
    linear-gradient(to bottom, rgba(0, 90, 255, 0.18), rgba(0, 90, 255, 0.07));
  box-shadow:
    0 0 26px rgba(0, 90, 255, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.10);
  transform: translateY(-2px) scale(1.02);
}

.panel-vmp:hover .btn {
  border-color: rgba(0, 90, 255, 0.45);
  background:
    linear-gradient(to bottom, rgba(0, 90, 255, 0.18), rgba(0, 90, 255, 0.07));
  box-shadow:
    0 0 26px rgba(0, 90, 255, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.10);
  transform: translateY(-2px) scale(1.02);
}

.landing:hover .panel:not(:hover) {
  filter: brightness(0.62) saturate(0.8);
}

/* Animations */
@keyframes contentReveal {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes titleReveal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    letter-spacing: 2px;
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    letter-spacing: 6px;
    filter: blur(0);
  }
}

@keyframes textReveal {
  from {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes btnReveal {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@media (max-width: 900px) {
  .landing {
    flex-direction: column;
  }

  .landing::after {
    display: none;
  }

  .panel {
    min-height: 50vh;
  }

  .content h1 {
    font-size: 64px;
  }

  .content p {
    font-size: 16px;
  }

  .flashlight {
    background:
      radial-gradient(
        circle 140px at var(--x, 50%) var(--y, 50%),
        rgba(255,255,255,0.10) 0%,
        rgba(255,255,255,0.05) 24%,
        rgba(0,0,0,0) 62%
      );
  }
}
