
:root {
  --bg: #0b1020;
  --surface: rgba(255,255,255,0.06);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --primary: #8b5cf6;
  --outline: rgba(139,92,246,0.25);
  --glass: rgba(15,23,42,0.6);
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,.25);
}

* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body {
  font-family: "Vazirmatn", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background: radial-gradient(1200px 600px at 90% -10%, rgba(139,92,246,0.15), transparent 50%) no-repeat,
              radial-gradient(900px 900px at -10% 110%, rgba(56,189,248,0.12), transparent 40%) no-repeat,
              var(--bg);
  color: var(--text);
  line-height: 1.8;
}

.container { width: min(1100px, 92%); margin-inline: auto; }
.row { display:flex; gap:12px; }
.row.center { align-items: center; }
.row.between { justify-content: space-between; }
.row.gap { gap: 12px; }
.grid { display:grid; gap:24px; }

.section { padding: 80px 0; }
.section.alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.04)); }
.section-head { margin-bottom: 24px; }

h1,h2,h3 { line-height:1.3; margin:0 0 10px; }
h1 { font-size: clamp(28px, 4vw, 46px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: clamp(18px, 2vw, 22px); }
.lead { font-size: 1.05rem; }
.muted { color: var(--muted); }

/* Header */
.header {
  position: sticky; top:0; z-index: 50;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header .container { padding: 14px 0; }
.brand { gap:10px; color: var(--text); text-decoration: none; font-weight: 700; }
.header-avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--outline); object-fit: cover; }
.logo { width:32px; height:32px; color: var(--text); }

.nav .menu { list-style:none; margin:0; padding:0; }
.nav .menu a { color: var(--text); text-decoration: none; padding: 10px 12px; border-radius: 10px; }
.nav .menu a:hover { background: var(--surface); }
.nav-toggle { display:none; }

/* Buttons */
.btn {
  --b: var(--primary);
  background: var(--surface);
  border: 1px solid var(--outline);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display:inline-flex; align-items:center; justify-content:center;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); background: rgba(139,92,246,0.15); border-color: var(--primary); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #0b1020; }
.btn.primary:hover { filter: brightness(1.05); }
.btn.outline { background: transparent; border-color: var(--outline); }
.btn.ghost { background: transparent; border: 1px dashed var(--outline); }

/* Hero */
.hero-grid { grid-template-columns: 1.2fr .8fr; align-items: center; }
.hero-art { justify-self: center; }
.hero-img { width: min(520px, 95%); height: auto; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }

/* About */
.about-grid { grid-template-columns: .9fr 1.1fr; align-items: center; }
.avatar { width: 280px; height: auto; border-radius: 20px; border: 1px solid var(--outline); box-shadow: var(--shadow); }
.ticks { list-style: none; padding:0; margin: 16px 0; }
.ticks li { margin: 6px 0; padding-inline-start: 28px; position: relative; }
.ticks li::before {
  content:"✓"; position:absolute; right:0; color: #10b981; font-weight: 900;
}

/* Cards (Series) */
.cards { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--outline);
  padding: 18px; border-radius: 16px; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.chip {
  display:inline-block; margin-top:8px; font-size:.85rem; color:#cbd5e1;
  background: rgba(148,163,184,.15); border:1px solid rgba(148,163,184,.25); padding:4px 8px; border-radius: 10px;
}

/* Audio */
.audio-grid { grid-template-columns: repeat(3, 1fr); }
.audio-card { background: var(--surface); border: 1px solid var(--outline); padding: 16px; border-radius: 14px; }
audio { width: 100%; margin-top: 8px; border-radius: 8px; background: #0b1020; }

/* Masonry */
.masonry { columns: 3 280px; column-gap: 14px; }
.masonry .m-item { width: 100%; margin: 0 0 14px; break-inside: avoid; border-radius: 14px; border:1px solid var(--outline); box-shadow: var(--shadow); cursor: zoom-in; }

/* Contact */
.contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
.contact-form { background: var(--surface); border:1px solid var(--outline); padding: 16px; border-radius: 16px; }
label { display:block; margin:10px 0; }
input, textarea {
  width: 100%; background: rgba(255,255,255,0.04); border:1px solid var(--outline); color: var(--text);
  padding:10px 12px; border-radius: 10px; outline:none;
}
input:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139,92,246,0.25); }

/* Footer */
.footer { padding: 28px 0; border-top:1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02); }

/* Header glass */
.glass { background: var(--glass); }

/* Reveal animations */
.reveal, .reveal-delay, .reveal-delay-2, .reveal-delay-3 {
  opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease;
}
.reveal.show, .reveal-delay.show, .reveal-delay-2.show, .reveal-delay-3.show { opacity:1; transform:none; }
.reveal-delay { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* Modal */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  display:none; place-items: center; padding: 20px; z-index: 100;
}
.modal-content {
  width: min(640px, 94%); background: #0f172a; border:1px solid var(--outline); border-radius: 16px;
  box-shadow: var(--shadow); padding: 20px;
}
.modal.show { display:grid; }
.modal-close { background: transparent; border: none; color: #e5e7eb; font-size: 24px; float: left; cursor: pointer; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .audio-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-toggle { display:inline-flex; }
  .nav .menu { display:none; position: absolute; top: 56px; right: 10px; background: #0b1020; border:1px solid var(--outline); border-radius: 14px; padding: 8px; box-shadow: var(--shadow); }
  .nav .menu.show { display:flex; flex-direction: column; }
}

/* Light theme */
body.theme-light {
  --bg: #f8fafc;
  --surface: rgba(2,6,23,0.04);
  --text: #0b1020;
  --muted: #334155;
  --primary: #6d28d9;
  --outline: rgba(2,6,23,0.12);
  --glass: rgba(255,255,255,0.6);
}
