@font-face {
  font-family: 'IRANSansFanum';
  src: url('assets/fonts/IRANSans(FANUM).ttf') format('truetype');
  font-display: swap;
}

:root {
    --bg: #000F11;
    --bg-2: #002124;
    --line: #03545B;
    --txt: #EAFBFB;
    --muted: #88C9C8;
    --brand-1: #009DAE;
    --brand-2: #006F73;
    --accent: #64D4D1;
    --gold: #C3E672;
    --shadow: 0 0 25px rgba(0, 157, 174, 0.25);
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%;
    margin: 0
}

body {
    color: var(--txt);
    font-family: 'IRANSansFanum', ui-sans-serif, -apple-system, Segoe UI, Roboto, Vazirmatn, Tahoma;
    background: radial-gradient(1200px 900px at 50% 40%, rgba(0, 157, 174, .10), transparent 60%), radial-gradient(900px 700px at 50% 60%, rgba(0, 111, 115, .08), transparent 55%), url('assets/noise.svg'), var(--bg);
    overflow: hidden
}

.hero {
    position: relative;
    height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden
}

#bg-graph,
#bg-chart {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 5vw
}

h1 {
    font-size: clamp(26px, 4.4vw, 56px);
    line-height: 1.25;
    margin: 0;
    opacity: 0;
    transform: translateY(0);
    text-shadow: 0 0 18px rgba(100, 212, 209, .35)
}

h1.glow {
    animation: breathe 2.8s ease-in-out infinite alternate
}

@keyframes breathe {
    from {
        text-shadow: 0 0 8px rgba(100, 212, 209, .25), 0 0 0 rgba(195, 230, 114, 0)
    }

    to {
        text-shadow: 0 0 22px rgba(100, 212, 209, .55), 0 0 34px rgba(195, 230, 114, .18)
    }
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    color: var(--muted);
    font-size: 13px
}

/* ==== دکمه درباره صندوق باز ==== */
.about-btn {
  font-family: 'IRANSansFanum', sans-serif;
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 157, 174, 0.15);
  border: 1px solid rgba(100, 212, 209, 0.4);
  color: var(--txt);
  padding: 10px 24px;
  font-size: 16px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
}
.about-btn:hover {
  background: rgba(0, 157, 174, 0.25);
  box-shadow: 0 0 20px rgba(100, 212, 209, 0.4);
}

/* ==== پاپ‌آپ ==== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 10;
}

.popup-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.popup-content {
  background: rgba(0, 30, 32, 0.9);
  border: 1px solid rgba(100, 212, 209, 0.3);
  border-radius: 16px;
  padding: 30px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;            /* 👈 ارتفاع ثابت برای باکس پاپ‌آپ */
  overflow-y: auto;            /* 👈 فعال‌سازی اسکرول عمودی در داخل */
  color: var(--txt);
  text-align: center;
  box-shadow: 0 0 40px rgba(195, 230, 114, 0.2);
  transform: scale(0.8);
  transition: transform 0.3s ease;
  scrollbar-width: thin;       /* (برای فایرفاکس) باریک‌تر کردن اسکرول */
  scrollbar-color: rgba(100,212,209,0.4) transparent;
}

/* 👇 برای مرورگرهای WebKit (کروم، اج، سافاری) */
.popup-content::-webkit-scrollbar {
  width: 6px;
}
.popup-content::-webkit-scrollbar-thumb {
  background: rgba(100,212,209,0.4);
  border-radius: 3px;
}
.popup-content::-webkit-scrollbar-thumb:hover {
  background: rgba(100,212,209,0.6);
}
.popup-overlay.active .popup-content {
  transform: scale(1);
}
.popup-content h2 {
  color: #64D4D1;
  margin-bottom: 10px;
}
.popup-content button {
  margin-top: 20px;
  background: rgba(100, 212, 209, 0.2);
  border: 1px solid rgba(100, 212, 209, 0.5);
  color: var(--txt);
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.popup-content button:hover {
  background: rgba(100, 212, 209, 0.3);
  box-shadow: 0 0 10px rgba(195, 230, 114, 0.3);
}

.popup-content,
.popup-content button {
  font-family: 'IRANSansFanum', sans-serif;
}