@font-face {
  font-family: 'Nastaliq';
  src: url('/fonts/IranNastaliq.ttf') format('truetype');
}

*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: #FFD700;
  background: #000;
}

body {
  cursor: default;
  position: relative;
  font-family: Vazirmatn, sans-serif;
  background-color: #000;
}

.code-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 400px;
  height: 90%;
  padding: 35px;
  border-radius: 18px;
  background: #040404;
  overflow: hidden;
  z-index: 5;
  isolation: isolate;

  box-shadow:
    0 0 12px rgba(255, 215, 0, 0.12),
    0 0 35px rgba(255, 215, 0, 0.06),
    0 0 70px rgba(0, 0, 0, 0.98);
}

.code-container::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 335deg,
    rgba(255, 215, 0, 0.25) 345deg,
    rgba(255, 245, 210, 0.9) 352deg,
    #ffffff 357deg,
    #ffd700 360deg
  );
  animation: rotateBeam 3.2s linear infinite;
  z-index: -2;
  filter:
    blur(0.3px)
    drop-shadow(0 0 5px #ffffff)
    drop-shadow(0 0 12px #ffd700)
    drop-shadow(0 0 22px #ffaa00);
  opacity: 1;
}

.code-container::after {
  content: "";
  position: absolute;
  inset: 2.5px;
  border-radius: 15.5px;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.99) 0%,
    rgba(4, 4, 4, 0.99) 100%
  );
  border: 1px solid rgba(255, 215, 0, 0.22);
  z-index: -1;
  box-shadow:
    inset 0 0 8px rgba(0, 0, 0, 0.9),
    inset 0 0 25px rgba(0, 0, 0, 0.95);
}

@keyframes rotateBeam {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.code-container h1 {
  margin-top: 2px;
  margin-bottom: 5px;
  text-align: center;
  font-family: 'Nastaliq';
  font-size: 30px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
  text-align: center;
}

.contact-item span {
  margin-bottom: 5px;
  font-size: 20px;
}

.contact-item .postal-code {
  cursor: pointer;
  font-size: 14px;
}

iframe {
  width: 100%;
  max-width: 400px;
  height: 200px;
  border: 0;
  border-radius: 10px;
  margin: 10px auto 0;
  display: block;
}

@media (max-width: 768px) {
  .code-container {
    width: 90%;
    max-width: 400px;
    height: 80%;
    padding: 18px;
    border-radius: 14px;
  }

  .code-container::after {
    inset: 3px;
    border-radius: 12px;
  }

  .code-container h1 {
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .contact-item {
    margin-bottom: 30px;
  }

  .contact-item span {
    margin-bottom: 10px;
  }

  iframe {
    max-width: 300px;
    height: 150px;
  }
}
