/* ===================================================
   هوران — صفحه پروژه‌ها | projects.css
   دقیقاً هم‌استایل صفحه درباره ما (about.css)
   =================================================== */

/* حذف padding-top که hooran-header به body می‌دهد */
body.page-template-page-projects {
  padding-top: 0 !important;
}
body.admin-bar.page-template-page-projects {
  padding-top: 0 !important;
}

#hp, #hp * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#hp {
  --gold:      #e6c487;
  --gold2:     #c9a96e;
  --gold-lt:   #ffdea4;
  --bg:        #0d0e12;
  --text:      #e3e2e7;
  --text-dim:  #d0c5b5;
  --border:    rgba(255,255,255,.10);
  --border-t:  rgba(255,255,255,.16);
  --glass:     rgba(41,42,46,.42);
  --glass-hi:  rgba(52,53,57,.52);
  --ease:      cubic-bezier(.5,0,0,1);
  --spring:    cubic-bezier(.34,1.3,.64,1);

  font-family: 'Vazirmatn', Tahoma, sans-serif;
  direction: rtl;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ── Utilities ──────────────────────────────────── */
#hp .gold-text {
  background: linear-gradient(135deg, #ffdea4 0%, #e6c487 50%, #c9a96e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#hp .hp-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Glass card ─────────────────────────────────── */
#hp .hp-glass {
  background: var(--glass);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: .5px solid var(--border);
  box-shadow: inset 0 1px 0 var(--border-t), 0 8px 32px rgba(0,0,0,.32);
  border-radius: 2rem;
  position: relative;
}

#hp .hp-glass-hi {
  background: var(--glass-hi);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  border: .5px solid var(--border-t);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 8px 40px rgba(0,0,0,.4);
  border-radius: 2.5rem;
  position: relative;
  overflow: hidden;
}

/* ── Particles canvas ───────────────────────────── */
#hp-particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: .55;
}

/* ── Scroll reveal ──────────────────────────────── */
#hp .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
#hp .reveal.active { opacity: 1; transform: none; }

/* ── Buttons ────────────────────────────────────── */
#hp .hp-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all .4s ease;
  border: none;
  line-height: 1;
}

#hp .hp-btn--gold {
  background: linear-gradient(135deg, rgba(230,196,135,.15) 0%, rgba(201,169,110,.25) 100%);
  border: 1px solid rgba(230,196,135,.35);
  backdrop-filter: blur(20px);
  box-shadow: 0 0 20px rgba(201,169,110,.15);
  color: #ffdea4;
}
#hp .hp-btn--gold:hover {
  box-shadow: 0 0 32px rgba(201,169,110,.35);
  border-color: rgba(230,196,135,.6);
  transform: translateY(-2px);
}

#hp .hp-btn--outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
  color: var(--text-dim);
}
#hp .hp-btn--outline:hover {
  border-color: rgba(230,196,135,.4);
  color: var(--gold);
}

#hp .hp-btn--lg {
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
}

/* =====================================================
   HERO
   ===================================================== */
/* Lightfall WebGL container */
#hp-lightfall {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
#hp-lightfall canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#hp .hp-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #06040a;
}

#hp .hp-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(6,4,10,.35) 0%, rgba(6,4,10,.5) 60%, #0d0e12 100%),
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(0,0,0,.18) 0%, transparent 70%);
  z-index: 1;
}

#hp .hp-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

#hp .hp-hero__title {
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 40px rgba(230,196,135,.18);
}

#hp .hp-hero__desc {
  font-size: clamp(.95rem, 2vw, 1.25rem);
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 2;
  font-weight: 300;
}

#hp .hp-hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

#hp .hp-hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(211,197,181,.45);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  animation: hp-bounce 2s ease-in-out infinite;
}
#hp .hp-hero__scroll-label { margin-bottom: .4rem; }

@keyframes hp-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* =====================================================
   SECTION HEAD (مشترک)
   ===================================================== */
#hp .hp-sec-head {
  text-align: center;
  margin-bottom: 3.5rem;
}

#hp .hp-sec-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

#hp .hp-sec-desc {
  font-size: 1.08rem;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* =====================================================
   FILTERS
   ===================================================== */
#hp .hp-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem;
  margin-bottom: 3.5rem;
}

#hp .hp-filter {
  padding: .75rem 1.8rem;
  border-radius: 9999px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: .92rem;
  font-weight: 500;
  line-height: 1;
  color: var(--text-dim);
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .35s ease;
}

#hp .hp-filter:hover {
  border-color: rgba(230,196,135,.4);
  color: var(--gold);
}

#hp .hp-filter.is-on {
  background: linear-gradient(135deg, rgba(230,196,135,.18) 0%, rgba(201,169,110,.28) 100%);
  border-color: rgba(230,196,135,.45);
  color: #ffdea4;
  box-shadow: 0 0 20px rgba(201,169,110,.18);
}

/* =====================================================
   PROJECTS GRID
   ===================================================== */
#hp .hp-projects {
  padding: 8rem 0 5rem;
  background: var(--bg);
  position: relative;
  z-index: 2;
}

#hp .hp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
}
@media (min-width: 700px) {
  #hp .hp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  #hp .hp-grid { grid-template-columns: repeat(3, 1fr); }
}

#hp .hp-card {
  overflow: hidden;
  transition:
    opacity .8s var(--ease), transform .8s var(--ease),
    border-color .4s ease, box-shadow .4s ease;
}

#hp .hp-card:hover {
  border-color: rgba(230,196,135,.35);
  box-shadow: inset 0 1px 0 var(--border-t), 0 14px 44px rgba(0,0,0,.5), 0 0 28px rgba(201,169,110,.10);
  transform: translateY(-6px);
}

/* فیلتر: کارت مخفی */
#hp .hp-card.is-hidden {
  display: none;
}

#hp .hp-card__visual {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(ellipse at 30% 25%, rgba(230,196,135,.14) 0%, transparent 60%),
    linear-gradient(150deg, rgba(230,196,135,.07) 0%, rgba(13,14,18,.4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

#hp .hp-card__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
#hp .hp-card:hover .hp-card__visual img {
  transform: scale(1.05);
}

#hp .hp-card__ph {
  font-size: 3.4rem;
  color: rgba(230,196,135,.4);
  font-variation-settings: 'FILL' 0, 'wght' 200;
}

#hp .hp-card__tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: .4rem 1rem;
  border-radius: 9999px;
  font-size: .75rem;
  color: var(--gold);
  background: rgba(20,16,10,.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(230,196,135,.25);
}

#hp .hp-card__body {
  padding: 1.6rem 1.7rem 1.9rem;
}

#hp .hp-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .65rem;
}

#hp .hp-card__meta {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  color: rgba(208,197,181,.65);
  margin-bottom: 1rem;
}

#hp .hp-card__meta .material-symbols-outlined {
  font-size: 1rem;
  color: var(--gold2);
}

#hp .hp-card__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(230,196,135,.45);
}

#hp .hp-card__desc {
  font-size: .92rem;
  color: var(--text-dim);
  line-height: 1.9;
}

/* =====================================================
   STATS
   ===================================================== */
#hp .hp-stats {
  padding: 5rem 0;
  background: var(--bg);
  position: relative;
  z-index: 2;
}

#hp .hp-stats__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
@media (min-width: 1024px) {
  #hp .hp-stats__grid { grid-template-columns: repeat(4, 1fr); }
}

#hp .hp-stat-card {
  padding: 2rem 1.5rem;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; gap: .5rem;
}

#hp .hp-stat-num {
  font-size: clamp(2rem, 5vw, 3.3rem);
  font-weight: 700;
  line-height: 1;
}

#hp .hp-stat-label {
  font-size: .84rem;
  color: var(--text-dim);
  line-height: 1.55;
}

/* =====================================================
   CTA
   ===================================================== */
#hp .hp-cta {
  padding: 8rem 0 10rem;
  background: var(--bg);
  position: relative;
  z-index: 2;
}

#hp .hp-cta__card {
  padding: clamp(3rem, 6vw, 5rem);
  text-align: center;
}

#hp .hp-cta__glow {
  position: absolute;
  inset: 0;
  background: rgba(230,196,135,.04);
  pointer-events: none;
}

#hp .hp-cta__inner {
  position: relative;
  z-index: 1;
  display: flex; flex-direction: column; align-items: center;
}

#hp .hp-cta__title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.4rem;
}

#hp .hp-cta__desc {
  font-size: 1.08rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  max-width: 580px;
  line-height: 1.85;
}

#hp .hp-cta__btns {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
}

/* =====================================================
   Material Symbols override (scoped)
   ===================================================== */
#hp .material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}
