/* ==========================================================
   Project 05 — Coming Soon
   رنگ: سبز زمردی
   ========================================================== */

@import url('/_core/fonts.css');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #050a08;
  color: #ffffff;
  font-family: 'Vazirmatn', 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

html[dir="ltr"] body { font-family: 'Inter', system-ui, sans-serif; }

:root {
  --bg: #050a08;
  --text: #ffffff;
  --text-dim: #9ab0a0;
  --text-muted: #5a7060;
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --emerald-glow: rgba(16, 185, 129, 0.5);
  --line: rgba(16, 185, 129, 0.15);
}

/* Layout */
.project {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: enter 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes enter {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* پس‌زمینه */
.project-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(rgba(16, 185, 129, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 70%);
}

.bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 60%);
  filter: blur(50px);
  animation: glowFloat 14s ease-in-out infinite;
}

@keyframes glowFloat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -53%) scale(1.1); }
}

/* شماره پروژه */
.project-num {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: var(--emerald);
  opacity: 0.75;
  margin-bottom: 32px;
}

/* نشان در حال ساخت */
.cs-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--emerald-bright);
  margin-bottom: 36px;
}

.cs-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 12px var(--emerald);
  animation: dotPulse 1.8s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.6; }
}

/* عنوان */
.cs-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(3rem, 10vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin-bottom: 28px;
  color: var(--text);
  display: flex;
  flex-direction: column;
}

html[dir="rtl"] .cs-title {
  font-family: 'Vazirmatn', sans-serif;
  line-height: 1.15;
}

.cs-title-line {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 40px var(--emerald-glow));
}

/* توضیح */
.cs-desc {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 44px;
  max-width: 440px;
}

/* نوار پیشرفت */
.cs-progress {
  width: 100%;
  max-width: 320px;
  margin-bottom: 48px;
}

.cs-progress-bar {
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 12px;
}

.cs-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--emerald), var(--emerald-bright));
  border-radius: 2px;
  box-shadow: 0 0 12px var(--emerald);
  animation: progressFill 6s cubic-bezier(0.16, 1, 0.3, 1) 1s infinite;
}

@keyframes progressFill {
  0%   { width: 0; }
  20%  { width: 30%; }
  50%  { width: 55%; }
  80%  { width: 78%; }
  100% { width: 92%; }
}

.cs-progress-meta {
  display: flex;
  justify-content: space-between;
  font-family: 'Inter', 'Vazirmatn', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cs-pct {
  color: var(--emerald-bright);
}

/* دکمه بازگشت */
.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-dim);
  font-family: 'Inter', 'Vazirmatn', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cs-back:hover {
  border-color: var(--emerald);
  color: var(--emerald-bright);
  background: rgba(16, 185, 129, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.15);
}

.cs-back .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

html[dir="rtl"] .cs-back .arrow {
  transform: rotate(180deg);
}

.cs-back:hover .arrow {
  transform: translateX(-4px);
}

html[dir="rtl"] .cs-back:hover .arrow {
  transform: translateX(4px) rotate(180deg);
}

/* ریسپانسیو */
@media (max-width: 480px) {
  .project-inner { padding: 0 20px; }
  .project-num { margin-bottom: 24px; font-size: 0.75rem; }
  .cs-badge { margin-bottom: 28px; padding: 6px 14px; font-size: 0.65rem; }
  .cs-title { margin-bottom: 22px; }
  .cs-desc { margin-bottom: 36px; font-size: 0.88rem; }
  .cs-progress { margin-bottom: 36px; }
  .cs-back { padding: 10px 22px; font-size: 0.82rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .cs-progress-fill { width: 65%; }
}