*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Vazirmatn, sans-serif;
  background: #060b18;
  color: #e2e8f0;
  line-height: 1.9;
  direction: rtl;
  overflow-x: hidden;
}

/* ── BG Canvas ── */
#bg-canvas {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.2rem; position: relative; z-index: 1; }

/* ── Header ── */
header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(6,11,24,0.6);
  backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(56,189,248,0.15);
}
header .container { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo {
  font-size: 1.4rem; font-weight: 800; text-decoration: none;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}
nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
nav a { color: #94a3b8; text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
nav a:hover { color: #38bdf8; }

/* ── Hero ── */
.hero {
  min-height: 92vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 5rem 1rem;
  position: relative; z-index: 1;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 4rem); font-weight: 900;
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 60%, #f472b6 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 1rem; animation: heroIn 1s ease both;
}
.hero p { font-size: 1.15rem; color: #94a3b8; margin-bottom: 2rem; animation: heroIn 1.2s ease both; }
@keyframes heroIn { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }

/* ── 3D Floating Orb behind hero ── */
.hero::before {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(56,189,248,0.12) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation: pulse 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulse { 0%,100%{transform:translate(-50%,-50%) scale(1);} 50%{transform:translate(-50%,-50%) scale(1.25);} }

/* ── Button ── */
.btn {
  display: inline-block; padding: 0.8rem 2.2rem;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  color: #0f172a; border-radius: 10px;
  text-decoration: none; font-weight: 800; font-size: 1rem;
  box-shadow: 0 0 20px rgba(56,189,248,0.35);
  transition: box-shadow 0.3s, transform 0.2s;
  position: relative; z-index: 1;
}
.btn:hover { box-shadow: 0 0 40px rgba(56,189,248,0.6); transform: translateY(-2px); }

/* ── Section ── */
.section { padding: 4rem 0; position: relative; z-index: 1; }
.section h2 {
  font-size: 2rem; text-align: center; margin-bottom: 2.5rem;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* ── Grid & 3D Cards ── */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.8rem; }
.card {
  background: rgba(30,41,59,0.6);
  border: 1px solid rgba(56,189,248,0.15);
  border-radius: 16px; padding: 2rem;
  backdrop-filter: blur(10px);
  transition: transform 0.15s ease, box-shadow 0.3s;
  transform-style: preserve-3d;
  cursor: default;
  position: relative;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(56,189,248,0.08), rgba(129,140,248,0.05));
  opacity: 0; transition: opacity 0.3s;
}
.card:hover::before { opacity: 1; }
.card h3 { color: #38bdf8; margin-bottom: 0.5rem; font-size: 1.15rem; }
.card p { color: #94a3b8; }

/* ── Scroll Reveal ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Footer ── */
footer {
  text-align: center; padding: 2rem 1rem;
  color: #475569; border-top: 1px solid rgba(56,189,248,0.1);
  position: relative; z-index: 1;
}

/* ── Sticker ── */
.sticker {
  position: fixed; bottom: 1.5rem; left: 1.5rem;
  font-size: 2.2rem; cursor: pointer; z-index: 999;
  filter: drop-shadow(0 0 10px rgba(56,189,248,0.5));
  animation: float 3s ease-in-out infinite;
  transition: transform 0.3s;
}
.sticker:hover { transform: scale(1.3) rotate(20deg); animation: none; }
@keyframes float { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-12px);} }
