@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a14;
  --bg2: #12121f;
  --card: rgba(255,255,255,0.05);
  --card-border: rgba(255,255,255,0.1);
  --accent1: #a855f7;
  --accent2: #ec4899;
  --accent3: #6366f1;
  --text: #f1f1f6;
  --text-dim: #9a9ab0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Vazirmatn', sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  overflow-x: hidden;
  position: relative;
}

/* ===== پس‌زمینه متحرک ===== */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  animation: float 18s ease-in-out infinite;
}
.blob1 { width: 500px; height: 500px; background: var(--accent1); top: -100px; right: -100px; animation-duration: 20s; }
.blob2 { width: 400px; height: 400px; background: var(--accent2); bottom: -80px; left: -80px; animation-duration: 24s; animation-delay: -5s; }
.blob3 { width: 350px; height: 350px; background: var(--accent3); top: 40%; left: 30%; animation-duration: 16s; animation-delay: -10s; }

@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(60px,-40px) scale(1.1); }
  66% { transform: translate(-40px,50px) scale(0.9); }
}

.stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(2px 2px at 20px 30px, #ffffff55, transparent),
                     radial-gradient(2px 2px at 140px 90px, #ffffff33, transparent),
                     radial-gradient(1.5px 1.5px at 90px 160px, #ffffff44, transparent),
                     radial-gradient(1.5px 1.5px at 200px 40px, #ffffff33, transparent),
                     radial-gradient(2px 2px at 260px 120px, #ffffff44, transparent);
  background-size: 300px 300px;
  animation: twinkle 6s linear infinite;
}
@keyframes twinkle { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } }

/* ===== ناوبری ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 16px 10px;
  backdrop-filter: blur(14px);
  background: rgba(10,10,20,0.5);
  border-bottom: 1px solid var(--card-border);
  flex-wrap: wrap;
}
nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 30px;
  transition: all .3s ease;
}
nav a:hover, nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  box-shadow: 0 0 20px rgba(168,85,247,0.5);
}

/* ===== هرو / سربرگ ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 60px;
  position: relative;
}
.avatar-wrap {
  position: relative;
  width: 170px; height: 170px;
  margin-bottom: 28px;
}
.avatar-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent1), var(--accent2), var(--accent3), var(--accent1));
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.avatar {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg2);
  border: 3px solid var(--bg);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.hero h1 {
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--accent1) 60%, var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
  animation: fadeUp 1s ease both;
}
.hero p.tagline {
  color: var(--text-dim);
  font-size: 18px;
  max-width: 560px;
  animation: fadeUp 1s ease .15s both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 42px;
  animation: fadeUp 1s ease .3s both;
}
.stat-box {
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 18px 26px;
  min-width: 110px;
  transition: transform .3s ease;
}
.stat-box:hover { transform: translateY(-6px); }
.stat-box .num {
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-box .lbl { font-size: 13px; color: var(--text-dim); margin-top: 4px; }

.scroll-hint {
  position: absolute;
  bottom: 30px;
  font-size: 26px;
  color: var(--text-dim);
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{transform:translateY(0);} 50%{transform:translateY(10px);} }

/* ===== سکشن‌های عمومی ===== */
section.block { max-width: 1100px; margin: 0 auto; padding: 90px 24px; }
.section-head { text-align: center; margin-bottom: 50px; }
.section-head h2 {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  display: inline-block;
  position: relative;
}
.section-head h2::after {
  content: '';
  display: block;
  width: 60px; height: 4px;
  margin: 14px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
}

.reveal { opacity: 0; transform: translateY(40px); transition: all .8s cubic-bezier(.2,.8,.2,1); }
.reveal.show { opacity: 1; transform: translateY(0); }

/* درباره من */
.about-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 40px;
  line-height: 2.1;
  font-size: 17px;
  color: #d8d8e6;
}

/* گالری */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.gallery-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1/1;
  cursor: pointer;
  border: 1px solid var(--card-border);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.12); }
.gallery-caption {
  position: absolute; inset: auto 0 0 0;
  padding: 14px;
  font-size: 13px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  transform: translateY(100%);
  transition: transform .35s ease;
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* ویدیوها */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.video-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: transform .35s ease, box-shadow .35s ease;
  cursor: pointer;
}
.video-card:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(168,85,247,0.25); }
.video-thumb { position: relative; aspect-ratio: 16/9; background: #000; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.play-btn span {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 30px rgba(168,85,247,0.6);
  transition: transform .3s ease;
}
.video-card:hover .play-btn span { transform: scale(1.15); }
.video-info { padding: 16px 18px; font-weight: 600; }

/* موزیک پلیر */
.player-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 28px;
}
.now-playing { text-align: center; margin-bottom: 22px; }
.disc {
  width: 130px; height: 130px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: conic-gradient(from 90deg, var(--accent3), var(--accent1), var(--accent2), var(--accent3));
  position: relative;
  animation: spin 5s linear infinite;
  animation-play-state: paused;
}
.disc.playing { animation-play-state: running; }
.disc::after {
  content: '';
  position: absolute; inset: 42%;
  background: var(--bg2);
  border-radius: 50%;
}
#trackTitle { font-weight: 700; font-size: 17px; }
#trackArtist { color: var(--text-dim); font-size: 13px; margin-top: 4px; }

.progress-wrap {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--text-dim);
  margin-bottom: 20px;
}
.progress-bar {
  flex: 1; height: 6px; border-radius: 6px;
  background: rgba(255,255,255,0.1);
  cursor: pointer; overflow: hidden;
}
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  border-radius: 6px;
}

.controls { display: flex; justify-content: center; gap: 18px; margin-bottom: 26px; }
.ctrl-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s ease;
}
.ctrl-btn:hover { background: linear-gradient(135deg, var(--accent1), var(--accent2)); transform: scale(1.08); }
.ctrl-btn.big { width: 60px; height: 60px; font-size: 20px; }

.playlist { display: flex; flex-direction: column; gap: 8px; }
.playlist-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: background .25s ease;
}
.playlist-item:hover { background: rgba(255,255,255,0.08); }
.playlist-item.active {
  background: linear-gradient(90deg, rgba(168,85,247,0.25), rgba(236,72,153,0.2));
  border: 1px solid rgba(168,85,247,0.4);
}
.playlist-item .pi-title { font-size: 14px; font-weight: 600; }
.playlist-item .pi-artist { font-size: 12px; color: var(--text-dim); }

/* شبکه‌های اجتماعی */
.socials { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.social-btn {
  padding: 14px 28px;
  border-radius: 30px;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all .3s ease;
}
.social-btn:hover {
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(168,85,247,0.35);
}

footer { text-align: center; padding: 40px; color: var(--text-dim); font-size: 13px; }

/* لایت‌باکس عکس */
.lightbox, .video-modal {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(5,5,10,0.92);
  display: none;
  align-items: center; justify-content: center;
  padding: 30px;
  backdrop-filter: blur(6px);
}
.lightbox.open, .video-modal.open { display: flex; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.video-modal video { max-width: 90vw; max-height: 85vh; border-radius: 16px; }
.close-btn {
  position: absolute; top: 24px; left: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--card-border);
  color: #fff; font-size: 20px;
  cursor: pointer;
}

@media (max-width: 600px) {
  section.block { padding: 60px 16px; }
  .about-card { padding: 24px; font-size: 15px; }
}
