/* ============================================================
   O C I S  –  RECESSED GLASS WITH MOVING ORBS
   ============================================================ */
@import url('../fonts/iransans/400-pn.css');

:root {
  --bg-offwhite: #f2f5f9;          /* پس‌زمینهٔ سفید تیره */
  --surface: #ffffff;              /* فقط برای لایه‌های خیلی روشن */
  --glass-bg: rgba(250, 251, 253, 0.82);
  --glass-border: rgba(0, 105, 192, 0.2);
  --accent-blue: #0072c6;
  --accent-indigo: #2e3b8c;
  --glow-blue: rgba(0, 114, 198, 0.4);
  --glow-indigo: rgba(46, 59, 140, 0.3);
  --text-primary: #1a2a3a;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
}

body {
  background-color: var(--bg-offwhite);
  color: var(--text-primary);
  font-family: 'IranSans', Tahoma, Arial, sans-serif;
  direction: rtl;
  min-height: 100vh;
  margin: 0;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Moving Orbs in Background (Blue Tones) ── */
.orb-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb-bg div {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  animation: orbDrift 28s ease-in-out infinite alternate;
}
.orb-1 {
  width: 500px; height: 500px;
  background:  #024095;
  top: -12%; right: -8%;
}
.orb-2 {
  width: 420px; height: 420px;
  background:  #024095;
  bottom: -15%; left: -8%;
  animation-delay: -7s;
}
.orb-3 {
  width: 350px; height: 350px;
  background:  #024095;
  top: 45%; left: 40%;
  animation-delay: -14s;
}
.orb-4 {
  width: 280px; height: 280px;
  background: #024095;
  bottom: 20%; right: 20%;
  animation-delay: -20s;
}
@keyframes orbDrift {
  0% { transform: translate(0,0) scale(1); opacity: 0.08; }
  50% { transform: translate(45px, -35px) scale(1.12); opacity: 0.15; }
  100% { transform: translate(-30px, 25px) scale(0.94); opacity: 0.07; }
}

/* ── Glass Cards with Recessed Effect ── */
.glass, .glass-strong {
  position: relative;
  overflow: hidden;
  border-radius: 0.85rem;
  background: transparent;
}
.glass::before, .glass-strong::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--glass-border);
  background: linear-gradient(135deg,
    rgba(255,255,255,0.7),
    rgba(240,245,250,0.75),
    rgba(225,235,245,0.7));
  background-size: 300% 300%;
  animation: glassFlow 12s ease infinite;
  /* بافت تورفته با سایهٔ داخلی */
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.04),
              inset 0 -1px 2px rgba(255,255,255,0.5);
}
.glass-strong::before {
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(0,105,192,0.25);
  background: linear-gradient(160deg,
    rgba(255,255,255,0.8),
    rgba(240,245,250,0.85),
    rgba(220,230,245,0.8));
  box-shadow: inset 0 3px 10px rgba(0,0,0,0.05),
              inset 0 -2px 4px rgba(255,255,255,0.6),
              0 0 15px rgba(0,114,198,0.2);  /* لبهٔ درخشان بیرونی */
}
@keyframes glassFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Glowing Edges (on hover or permanent) ── */
.glow-border {
  border: 1px solid rgba(0,114,198,0.3);
  box-shadow: 0 0 18px rgba(0,114,198,0.25), inset 0 1px 6px rgba(0,114,198,0.08);
  transition: box-shadow 0.3s ease;
}
.glow-border:hover {
  box-shadow: 0 0 30px rgba(0,114,198,0.4), inset 0 2px 10px rgba(0,114,198,0.12);
}

/* ── Gradient Text ── */
.gradient-text {
  background: linear-gradient(135deg, #0072c6, #2e3b8c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

/* ── Divider Glow ── */
.divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,114,198,0.5), rgba(46,59,140,0.3), transparent);
  margin: 2rem 0;
}

/* ── Stat Bar ── */
.stat-bar {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-indigo));
  width: 0%;
  transition: width 1.6s ease;
  box-shadow: 0 0 14px var(--glow-blue);
}

/* ── Call to Action Button Glow ── */
.cta-button {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cta-button:hover {
    box-shadow: 0 0 30px rgba(0,114,198,0.4), 0 0 50px rgba(0,161,161,0.3);
}

/* ── Infographic Circles ── */
.infographic-circle {
  width: 90px; height: 90px; border-radius: 50%;
  background: conic-gradient(var(--accent-blue) 0% 78%, #e2e8f0 78% 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; margin: 0 auto;
  box-shadow: 0 0 20px rgba(0,114,198,0.2), inset 0 2px 8px rgba(0,0,0,0.04);
}
.infographic-circle::after {
  content: attr(data-percent) "%";
  position: absolute;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--accent-blue);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ── Animations ── */
@keyframes pulse-waiting {
  0%,100% { transform: scale(1); opacity:1; }
  50% { transform: scale(1.05); opacity:0.8; }
}
.pulse-waiting { animation: pulse-waiting 2.2s ease-in-out infinite; }

@keyframes fadeInUp {
  from { opacity:0; transform: translateY(25px); }
  to { opacity:1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fadeInUp 0.6s ease both; }

@keyframes fadeInScale {
  from { opacity:0; transform: scale(0.92); }
  to { opacity:1; transform: scale(1); }
}
.animate-fade-in-scale { animation: fadeInScale 0.4s ease both; }

/* ── Hover Lift ── */
.hover-lift {
  transition: transform 0.35s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08), 0 0 25px rgba(0,114,198,0.15), 0 0 40px rgba(0,114,198,0.25);
}

/* ── Timeline ── */
.timeline { position: relative; padding-right: 2.5rem; }
.timeline::before {
  content:''; position:absolute; right:12px; top:0; bottom:0; width:2px;
  background: linear-gradient(to bottom, var(--accent-blue), var(--accent-indigo), transparent);
}
.timeline-item { position: relative; margin-bottom: 2.5rem; padding-right: 2rem; }
.timeline-item::before {
  content:''; position:absolute; right:-13px; top:8px; width:16px; height:16px; border-radius:50%;
  background: var(--accent-blue); box-shadow: 0 0 15px var(--glow-blue), 0 0 30px rgba(0,114,198,0.3);
  border:2px solid white; animation: timelinePulse 3s ease-in-out infinite;
}
@keyframes timelinePulse {
  0%,100% { box-shadow:0 0 15px var(--glow-blue), 0 0 30px rgba(0,114,198,0.3); }
  50% { box-shadow:0 0 25px var(--glow-blue), 0 0 45px rgba(0,114,198,0.45); }
}

/* ── Royal Card (off‑white version) ── */
.royal-card {
    position: relative;
    background-color: rgb(228, 235, 241);
    backdrop-filter: blur(20px) contrast(0.92) brightness(1.08);
    --webkit-backdrop-filter: blur(20px) contrast(0.92) brightness(1.08);
    border: 1px solid rgb(0 105 192 / 56%);
    border-radius: 1rem;
    padding: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: -4px 2px 20px 1px #3280e578;
}

/* بافت دانه‌دار (شبیه شیشه سندبلاست) */
.royal-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
  background-repeat: repeat;
  mix-blend-mode: overlay;
  border-radius: inherit;
  opacity: 0.7;
}

.royal-card::before {
  content:''; position:absolute; top:-30%; right:-30%; width:160px; height:160px;
  background: radial-gradient(circle, rgba(0,114,198,0.08), transparent 70%);
  border-radius:50%; filter:blur(50px); opacity:0; transition:opacity 0.4s;
}
.royal-card:hover::before { opacity:1; }

/* ── Reading Progress ── */
.reading-progress {
  position:fixed; top:0; right:0; height:3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-indigo));
  z-index:9999; transition:width 0.15s ease; border-radius:0 0 3px 0;
}

/* ── Responsive ── */
@media (max-width:768px) {
  .timeline { padding-right:1.5rem; }
  .timeline-item { padding-right:1rem; }
}