/* ── فونت ─────────────────────────────────── */
@font-face {
  font-family: 'IRANSans';
  src: url('/portal/font/iransans/IRANSans.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── ریست و پایه ──────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  background: linear-gradient(135deg, #112b44 0%, #0f5348 100%);
  min-height: 100vh;
  color: #e2eaf5;
  direction: rtl;
  font-family: 'IRANSans', Tahoma, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}

/* ── پس‌زمینه انیمیشنی ────────────────────── */
.bg-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

/* ذرات شناور */
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  animation: float-up linear infinite;
}

.particle:nth-child(1)  { width: 8px;  height: 8px;  left: 8%;   animation-duration: 12s; animation-delay: 0s;   bottom: -20px; }
.particle:nth-child(2)  { width: 14px; height: 14px; left: 18%;  animation-duration: 15s; animation-delay: 2s;   bottom: -20px; }
.particle:nth-child(3)  { width: 6px;  height: 6px;  left: 30%;  animation-duration: 10s; animation-delay: 1s;   bottom: -20px; }
.particle:nth-child(4)  { width: 20px; height: 20px; left: 42%;  animation-duration: 18s; animation-delay: 3s;   bottom: -20px; }
.particle:nth-child(5)  { width: 10px; height: 10px; left: 55%;  animation-duration: 13s; animation-delay: 0.5s; bottom: -20px; }
.particle:nth-child(6)  { width: 5px;  height: 5px;  left: 65%;  animation-duration: 9s;  animation-delay: 4s;   bottom: -20px; }
.particle:nth-child(7)  { width: 16px; height: 16px; left: 75%;  animation-duration: 16s; animation-delay: 1.5s; bottom: -20px; }
.particle:nth-child(8)  { width: 7px;  height: 7px;  left: 85%;  animation-duration: 11s; animation-delay: 2.5s; bottom: -20px; }
.particle:nth-child(9)  { width: 12px; height: 12px; left: 92%;  animation-duration: 14s; animation-delay: 0s;   bottom: -20px; }
.particle:nth-child(10) { width: 9px;  height: 9px;  left: 22%;  animation-duration: 17s; animation-delay: 3.5s; bottom: -20px; }
.particle:nth-child(11) { width: 18px; height: 18px; left: 48%;  animation-duration: 20s; animation-delay: 1s;   bottom: -20px; }
.particle:nth-child(12) { width: 6px;  height: 6px;  left: 72%;  animation-duration: 8s;  animation-delay: 5s;   bottom: -20px; }

@keyframes float-up {
  0%   { transform: translateY(0) rotate(0deg);   opacity: 0;    }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-110vh) rotate(720deg); opacity: 0; }
}

/* خطوط متحرک */
.lines {
  position: absolute;
  inset: 0;
}

.lines span {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.05), transparent);
  animation: line-fade 6s ease-in-out infinite;
}

.lines span:nth-child(1) { left: 15%; animation-delay: 0s;   }
.lines span:nth-child(2) { left: 30%; animation-delay: 1.2s; }
.lines span:nth-child(3) { left: 50%; animation-delay: 2.4s; }
.lines span:nth-child(4) { left: 68%; animation-delay: 0.6s; }
.lines span:nth-child(5) { left: 85%; animation-delay: 1.8s; }

@keyframes line-fade {
  0%, 100% { opacity: 0; }
  50%       { opacity: 1; }
}

/* ── کانتینر اصلی ─────────────────────────── */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  padding: 24px 16px;
}

/* ── کارت ─────────────────────────────────── */
.card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 48px 40px 44px;
  text-align: center;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: card-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ── لوگو ─────────────────────────────────── */
.logo-wrap {
  width: 110px;
  height: 110px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  animation: logo-pulse 4s ease-in-out infinite;
}

@keyframes logo-pulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(0,0,0,0.2), 0 0 0 0 rgba(255,255,255,0.04); }
  50%       { box-shadow: 0 4px 24px rgba(0,0,0,0.2), 0 0 0 10px rgba(255,255,255,0); }
}

.logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── نام شرکت ─────────────────────────────── */
.company-name {
  font-size: 1.75rem;
  font-weight: bold;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  margin-bottom: 8px;
}

.company-sub {
  font-size: 0.95rem;
  color: rgba(226, 234, 245, 0.65);
  letter-spacing: 0.08em;
  margin-bottom: 0;
}

/* ── خط جداکننده ──────────────────────────── */
.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  margin: 24px auto;
  border-radius: 2px;
}

/* ── توضیحات ──────────────────────────────── */
.description {
  font-size: 0.92rem;
  line-height: 2;
  color: rgba(226, 234, 245, 0.75);
  text-align: justify;
  margin-bottom: 36px;
}

/* ── دکمه ورود ────────────────────────────── */
.btn-portal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  background: linear-gradient(135deg, #1a7a6e 0%, #1d5f9e 100%);
  color: #ffffff;
  font-family: 'IRANSans', Tahoma, sans-serif;
  font-size: 1rem;
  font-weight: bold;
  padding: 14px 36px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
  cursor: pointer;
  width: 100%;
  max-width: 280px;
}

.btn-portal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  background: linear-gradient(135deg, #1e8f82 0%, #2270b8 100%);
}

.btn-portal:active {
  transform: translateY(0);
}

.btn-icon {
  font-size: 0.5rem;
  opacity: 0.8;
  animation: blink 2s ease-in-out infinite;
}

.btn-arrow {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.btn-portal:hover .btn-arrow {
  transform: translateX(-4px);
}

@keyframes blink {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1;   }
}

/* ── ریسپانسیو ────────────────────────────── */
@media (max-width: 480px) {
  .card {
    padding: 36px 24px 36px;
    border-radius: 20px;
  }

  .logo-wrap {
    width: 90px;
    height: 90px;
  }

  .company-name {
    font-size: 1.45rem;
  }

  .description {
    font-size: 0.88rem;
  }

  .btn-portal {
    font-size: 0.95rem;
    padding: 13px 28px;
    max-width: 100%;
  }
}

@media (max-width: 360px) {
  .company-name {
    font-size: 1.25rem;
  }

  .card {
    padding: 28px 18px;
  }
}
