:root {
  --neon: #00f0ff;
  --neon2: #ff00e5;
  --neon3: #b026ff;
  --bg: #050510;
  --bg2: #0a0a1f;
  --text: #e0e0ff;
  --muted: #8888aa;
  --glass: rgba(255,255,255,0.05);
  --glass-border: rgba(0,240,255,0.3);
}

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

html { scroll-behavior: smooth; }

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

#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
}

.app { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 1000;
  background: rgba(5,5,16,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--neon);
  text-shadow: 0 0 10px var(--neon), 0 0 20px var(--neon), 0 0 30px var(--neon);
  letter-spacing: 2px;
}

.nav-links { display: flex; gap: 30px; list-style: none; }

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--neon);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--neon); }
.nav-links a:hover::after { width: 100%; }

.admin-btn {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--neon);
  padding: 8px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  transition: all 0.3s;
}

.admin-btn:hover {
  background: var(--neon);
  color: var(--bg);
  box-shadow: 0 0 20px var(--neon);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-content { max-width: 800px; }

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 5rem;
  font-weight: 900;
  background: linear-gradient(90deg, var(--neon), var(--neon2), var(--neon3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
  from { filter: drop-shadow(0 0 10px var(--neon)); }
  to { filter: drop-shadow(0 0 30px var(--neon2)); }
}

.hero-sub {
  font-size: 1.3rem;
  color: var(--muted);
  margin-bottom: 40px;
  letter-spacing: 1px;
}

.hero-cta { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  padding: 15px 40px;
  background: linear-gradient(135deg, var(--neon), var(--neon3));
  color: var(--bg);
  border: none;
  border-radius: 50px;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(0,240,255,0.5);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px var(--neon);
}

.btn-secondary {
  padding: 15px 40px;
  background: transparent;
  color: var(--neon);
  border: 2px solid var(--neon);
  border-radius: 50px;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: var(--neon);
  color: var(--bg);
  box-shadow: 0 0 30px var(--neon);
}

/* Sections */
.section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 60px;
  color: var(--neon);
  text-shadow: 0 0 15px var(--neon);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  perspective: 1000px;
}

.gallery-item {
  position: relative;
  width: 100%;
  height: 350px;
  transform-style: preserve-3d;
  transition: transform 0.3s;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  transition: all 0.3s;
}

.gallery-item:hover img {
  box-shadow: 0 0 30px var(--neon);
  transform: scale(1.02);
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.video-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s;
}

.video-card:hover {
  box-shadow: 0 0 30px var(--neon);
  transform: translateY(-5px);
}

.video-card iframe {
  width: 100%;
  height: 200px;
  border: none;
}

.video-card .video-title {
  padding: 15px;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Music */
.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.music-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}

.music-card:hover {
  box-shadow: 0 0 25px var(--neon2);
  transform: scale(1.03);
}

.music-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.music-card .music-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

#audioPlayer {
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
  display: block;
  accent-color: var(--neon);
}

/* Blog */
.blog-list { max-width: 900px; margin: 0 auto; }

.blog-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  transition: all 0.3s;
}

.blog-card:hover {
  box-shadow: 0 0 25px var(--neon);
  transform: translateX(-5px);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.blog-card h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--neon); }
.blog-card .excerpt { color: var(--muted); margin-bottom: 15px; }
.blog-card .blog-date { font-size: 0.85rem; color: var(--muted); }

/* Reviews */
.reviews { max-width: 800px; margin: 0 auto; }

.review-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--neon);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.review-card .reviewer {
  font-weight: 700;
  color: var(--neon);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.review-card .message { color: var(--text); line-height: 1.8; }

.review-form {
  max-width: 600px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.review-form input,
.review-form textarea {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 15px;
  color: var(--text);
  font-family: 'Vazirmatn', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border 0.3s;
}

.review-form input:focus,
.review-form textarea:focus { border-color: var(--neon); }

.review-form textarea { min-height: 120px; resize: vertical; }

/* Footer */
.footer {
  text-align: center;
  padding: 50px 20px;
  border-top: 1px solid var(--glass-border);
  margin-top: 50px;
  color: var(--muted);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal.active { display: flex; }

.modal-content {
  background: var(--bg2);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 0 50px var(--neon);
}

.modal-close {
  position: absolute;
  top: 15px;
  left: 15px;
  background: none;
  border: none;
  color: var(--neon);
  font-size: 1.5rem;
  cursor: pointer;
}

.lightbox-content { max-width: 850px; text-align: center; }
.lightbox-content img { width: 100%; max-height: 65vh; object-fit: contain; border-radius: 12px; margin-bottom: 16px; }
.lightbox-content h2 { color: var(--neon); margin-bottom: 8px; }
.lightbox-content p { color: var(--muted); }

/* 3D cards, reveal animation and modal */
.gallery { transform-style: preserve-3d; }
.gallery-item { overflow: hidden; will-change: transform; }
.gallery-item img { display: block; }
.gallery-overlay { position: absolute; inset: auto 0 0; padding: 24px 18px 16px; background: linear-gradient(transparent, rgba(4,4,15,.95)); transform: translateZ(25px); opacity: 0; transition: opacity .3s; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h3 { color: var(--neon); margin-bottom: 6px; }
.gallery-overlay p { color: var(--text); font-size: .9rem; }
.music-artist { color: var(--muted); font-size: .85rem; }
.now-playing { text-align: center; color: var(--neon); min-height: 24px; margin: -30px auto 18px; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 45px 10px; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.revealed { opacity: 1; transform: none; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--mx,50%) var(--my,20%), rgba(0,240,255,.08), transparent 25%); z-index: -1; }

.blog-modal-body { line-height: 2; color: var(--text); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } .reveal { opacity: 1; transform: none; } }

/* Responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .nav-links { gap: 15px; }
  .section-title { font-size: 1.8rem; }
}