/* ==========================================================================
   ۱. متغیرهای تم، توکن‌ها و رنگ‌های برند (Champagne Gold Tokens)
   ========================================================================== */
:root {
  --bg: #F6F5F2;
  --bg-elevated: #FFFFFF;
  --text: #0E0E10;
  --text-muted: #5E5E66;
  
  --accent: #C9A96E;
  --accent-hover: #B89657;
  --accent-text-light: #8A6B30;

  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-shadow: 0 14px 40px -10px rgba(14, 14, 16, 0.12);
  --glass-top-highlight: inset 0 1px 0 0 rgba(255, 255, 255, 0.95);

  --orb-gold: rgba(201, 169, 110, 0.16);
  --orb-gray: rgba(180, 180, 195, 0.22);

  /* گرادینت لوکس طلایی شامپاینی برای حباب شناور در تم روشن */
  --bubble-bg: radial-gradient(circle at 38% 30%, #E2CA9B 0%, #A88647 100%);
  --bubble-border: rgba(255, 248, 230, 0.8);
  --bubble-shadow: 0 8px 24px -2px rgba(168, 134, 71, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.65);
  --bubble-icon-color: #0E0E10;
  --bubble-glow-color: rgba(201, 169, 110, 0.35);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 180ms ease;
  --transition-normal: 300ms cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1140px;
}

[data-theme="dark"] {
  --bg: #0B0B0D;
  --bg-elevated: #141418;
  --text: #F2F1EE;
  --text-muted: #9A9AA3;
  
  --accent: #D4B87E;
  --accent-hover: #E3CC99;
  --accent-text-light: #D4B87E;

  --glass-bg: rgba(20, 20, 24, 0.68);
  --glass-border: rgba(255, 255, 255, 0.16);
  --glass-shadow: 0 18px 45px -10px rgba(0, 0, 0, 0.85);
  --glass-top-highlight: inset 0 1px 0 0 rgba(255, 255, 255, 0.22);

  --orb-gold: rgba(212, 184, 126, 0.12);
  --orb-gray: rgba(75, 75, 90, 0.22);

  /* گرادینت درخشان طلایی شامپاینی برای حباب شناور در تم تیره */
  --bubble-bg: radial-gradient(circle at 38% 30%, #E8D3A7 0%, #9C7D41 100%);
  --bubble-border: rgba(255, 240, 210, 0.6);
  --bubble-shadow: 0 8px 26px -2px rgba(0, 0, 0, 0.75), 0 0 18px rgba(212, 184, 126, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.5);
  --bubble-icon-color: #0B0B0D;
  --bubble-glow-color: rgba(212, 184, 126, 0.4);
}

/* ==========================================================================
   ۲. ریست، فونت و ساختار پایه
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  padding-bottom: calc(6rem + env(safe-area-inset-bottom));
}

@media (min-width: 860px) {
  body {
    padding-bottom: 0;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* ==========================================================================
   ۳. گوی‌های نوری پس‌زمینه (Ambient Orbs)
   ========================================================================== */
.ambient-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(65px);
  will-change: transform;
  opacity: 0.85;
}

.orb-primary {
  width: min(320px, 80vw);
  height: min(320px, 80vw);
  background: radial-gradient(circle, var(--orb-gold) 0%, transparent 70%);
  top: -60px;
  right: -40px;
  animation: orbFloat 22s infinite alternate ease-in-out;
}

.orb-secondary {
  width: min(380px, 90vw);
  height: min(380px, 90vw);
  background: radial-gradient(circle, var(--orb-gray) 0%, transparent 70%);
  bottom: 8%;
  left: -80px;
  animation: orbFloat 26s infinite alternate-reverse ease-in-out;
}

.orb-tertiary {
  display: none;
}

@media (min-width: 768px) {
  .ambient-orb { filter: blur(85px); }
  .orb-primary { width: 450px; height: 450px; }
  .orb-secondary { width: 520px; height: 520px; }
  .orb-tertiary {
    display: block;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, var(--orb-gold) 0%, transparent 70%);
    top: 45%;
    left: 40%;
    animation: orbFloat 18s infinite alternate ease-in-out;
  }
}

@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(35px, 50px) scale(1.08); }
}

/* ==========================================================================
   ۴. پنل‌های شیشه‌ای پایه (Glassmorphism Core)
   ========================================================================== */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-top-highlight);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-panel { background: rgba(246, 245, 242, 0.96); }
  [data-theme="dark"] .glass-panel { background: rgba(18, 18, 22, 0.96); }
}

/* ==========================================================================
   ۵. نوار بالای صفحه (Sticky Header)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0.5rem;
  z-index: 100;
  width: 100%;
  padding-inline: clamp(0.5rem, 2.5vw, 1rem);
  padding-top: env(safe-area-inset-top);
}

@media (min-width: 768px) {
  .site-header {
    top: 1rem;
  }
}

.nav-container {
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-full);
}

.brand-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  user-select: none;
}

.logo-name {
  font-size: 1.35rem;
  letter-spacing: -0.5px;
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--accent);
}

.nav-links {
  display: none;
  list-style: none;
  gap: 1.5rem;
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.35rem 0.5rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 15%;
  width: 70%;
  height: 2px;
  background-color: var(--accent);
  border-radius: var(--radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-cta {
  display: none;
}

@media (min-width: 580px) {
  .nav-cta {
    display: inline-flex;
  }
}

.btn-icon {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  touch-action: manipulation;
}

.btn-icon svg {
  width: 20px;
  height: 20px;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
}

[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun  { display: block; }
:root:not([data-theme="dark"]) .icon-sun  { display: none; }
:root:not([data-theme="dark"]) .icon-moon { display: block; }

/* ==========================================================================
   ۶. نوار ناوبری منحنی پایینی موبایل با حباب طلایی شناور (Curved Dock)
   ========================================================================== */
.curved-bottom-nav {
  position: fixed;
  bottom: calc(0.6rem + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 1.5rem);
  max-width: 420px;
  height: 76px;
  z-index: 999;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  display: block;
}

@media (min-width: 860px) {
  .curved-bottom-nav {
    display: none;
  }
}

.curved-nav-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  clip-path: url(#dockClip);
  -webkit-clip-path: url(#dockClip);
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.45));
  pointer-events: none;
  transition: background var(--transition-normal);
}

.curved-nav-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

.curved-border-path {
  fill: none;
  stroke: var(--glass-border);
  stroke-width: 1.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* حباب دایره‌ای طلایی شناور */
.active-bubble {
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bubble-bg);
  border: 1.5px solid var(--bubble-border);
  box-shadow: var(--bubble-shadow);
  z-index: 10;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.bubble-glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--bubble-glow-color) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(4px);
}

.bubble-icon-slot {
  position: relative;
  z-index: 2;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bubble-icon-color);
  transition: transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bubble-icon-slot svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.curved-nav-items {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 5;
  padding: 0 0.5rem;
}

.curved-nav-item {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-muted);
  -webkit-tap-highlight-color: transparent;
  transition: opacity 220ms ease, transform 220ms ease;
}

.curved-nav-item .tab-icon {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  transition: stroke 200ms ease, transform 200ms ease, opacity 200ms ease;
}

.curved-nav-item.active {
  opacity: 0;
  pointer-events: none;
}

.dock-home-indicator {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 105px;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-full);
  z-index: 6;
  pointer-events: none;
}

[data-theme="dark"] .dock-home-indicator {
  background: rgba(255, 255, 255, 0.18);
}

/* ==========================================================================
   ۷. دکمه‌ها و المان‌های عمومی
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.75rem 1.4rem;
  min-height: 44px;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  white-space: nowrap;
  touch-action: manipulation;
}

.btn-primary {
  background-color: var(--accent);
  color: #0E0E10;
  box-shadow: 0 4px 14px rgba(201, 169, 110, 0.28);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 169, 110, 0.42);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text);
  border-color: var(--glass-border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.badge {
  display: inline-block;
  font-size: clamp(0.75rem, 2vw, 0.85rem);
  font-weight: 500;
  color: var(--accent-text-light);
  background: rgba(201, 169, 110, 0.12);
  border: 1px solid rgba(201, 169, 110, 0.3);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   ۸. بخش هیرو (Hero Section)
   ========================================================================== */
.hero-section {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
  position: relative;
}

.hero-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 920px) {
  .hero-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
  }
}

.hero-title {
  font-size: clamp(1.85rem, 5vw + 0.8rem, 3.1rem);
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: 1.2rem;
  letter-spacing: -0.5px;
}

.hero-title .highlight {
  color: var(--accent);
}

.hero-desc {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2vw + 0.2rem, 1.15rem);
  line-height: 1.85;
  max-width: 60ch;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0.85rem;
}

@media (min-width: 440px) {
  .hero-actions {
    flex-direction: row;
    width: auto;
    flex-wrap: wrap;
  }
}

.hero-visual {
  width: 100%;
  max-width: 480px;
}

.hero-glass-card {
  padding: clamp(1rem, 3vw, 1.5rem);
}

@media (min-width: 768px) {
  .hero-glass-card {
    animation: floatCard 6s ease-in-out infinite alternate;
  }
}

@keyframes floatCard {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.card-browser-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 1rem;
}

.card-browser-bar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.4;
}

.card-browser-bar .bar-address {
  font-size: 0.75rem;
  font-family: monospace;
  color: var(--text-muted);
  margin-right: auto;
  direction: ltr;
}

.mockup-header-line {
  height: 7px;
  width: 45%;
  background: var(--glass-border);
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.mockup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mockup-stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.5rem;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.mockup-chart-box {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 0.9rem;
}

.mockup-sparkline {
  width: 100%;
  height: auto;
  display: block;
}

.mockup-footer-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70%  { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================================================
   ۹. تیتر بخش‌ها
   ========================================================================== */
.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section-head {
  text-align: center;
  max-width: 660px;
  margin-inline: auto;
  margin-bottom: clamp(2.2rem, 5vw, 3.5rem);
}

.section-subtitle {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-text-light);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw + 0.5rem, 2.25rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.8rem;
  line-height: 1.35;
}

.section-desc {
  font-size: clamp(0.9rem, 1.5vw + 0.2rem, 1.05rem);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   ۱۰. کارت‌های خدمات (Services Grid)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.25rem, 2.5vw, 1.75rem);
}

@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(201, 169, 110, 0.5);
  }
}

.service-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(201, 169, 110, 0.12);
  border: 1px solid rgba(201, 169, 110, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.service-icon-box svg {
  width: 24px;
  height: 24px;
}

.service-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.service-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   ۱۱. روش کار (تایم‌لاین عمودی در موبایل / افقی در دسکتاپ)
   ========================================================================== */
.timeline-stepper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

.timeline-stepper::before {
  content: '';
  position: absolute;
  top: 25px;
  bottom: 25px;
  right: 23px;
  width: 2px;
  background: var(--glass-border);
  z-index: 0;
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.step-marker {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-num {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  font-family: monospace;
}

.step-content {
  padding: 1.25rem;
  flex: 1;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

@media (min-width: 900px) {
  .timeline-stepper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }

  .timeline-stepper::before {
    display: none;
  }

  .timeline-step {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .step-marker {
    width: auto;
    height: auto;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    justify-content: flex-start;
  }

  .step-num {
    font-size: 1.6rem;
    display: inline-block;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.2rem;
  }

  .step-content {
    height: 100%;
  }
}

/* ==========================================================================
   ۱۲. نمونه‌کارها (Portfolio Grid)
   ========================================================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 650px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portfolio-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (hover: hover) {
  .portfolio-card:hover {
    transform: translateY(-5px);
    border-color: rgba(201, 169, 110, 0.45);
  }
}

.portfolio-visual {
  height: clamp(150px, 20vw, 190px);
  width: 100%;
  display: flex;
  align-items: flex-end;
  padding: 0.9rem;
}

.visual-accent-1 {
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.28) 0%, rgba(14, 14, 16, 0.12) 100%);
}

.visual-accent-2 {
  background: linear-gradient(135deg, rgba(120, 130, 150, 0.28) 0%, rgba(201, 169, 110, 0.18) 100%);
}

.visual-accent-3 {
  background: linear-gradient(135deg, rgba(160, 140, 110, 0.28) 0%, rgba(60, 60, 75, 0.22) 100%);
}

.project-tag-pill {
  font-size: 0.72rem;
  font-family: monospace;
  background: rgba(0, 0, 0, 0.5);
  color: #FFFFFF;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(6px);
}

.portfolio-body {
  padding: clamp(1.2rem, 2.5vw, 1.5rem);
  flex: 1;
}

.portfolio-category {
  font-size: 0.78rem;
  color: var(--accent-text-light);
  font-weight: 500;
  display: block;
  margin-bottom: 0.35rem;
}

.portfolio-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.portfolio-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   ۱۳. چرا ایلیا؟ (Why Us Grid)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 520px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  padding: 1.5rem;
}

@media (hover: hover) {
  .feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 169, 110, 0.4);
  }
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(201, 169, 110, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   ۱۴. تیزر به‌زودی (Coming Soon Card)
   ========================================================================== */
.teaser-card {
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2.5rem);
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
  border: 1px solid rgba(201, 169, 110, 0.35);
}

.teaser-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(201, 169, 110, 0.14);
  border: 1px solid var(--accent);
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.teaser-title {
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 700;
  margin-bottom: 0.9rem;
  line-height: 1.4;
}

.teaser-desc {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--text-muted);
  max-width: 60ch;
  margin-inline: auto;
  margin-bottom: 1.75rem;
  line-height: 1.8;
}

.teaser-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 460px;
  margin-inline: auto;
}

@media (min-width: 540px) {
  .teaser-form {
    flex-direction: row;
  }
  .teaser-input-wrap {
    flex: 1;
  }
}

/* ==========================================================================
   ۱۵. فرم و اطلاعات تماس (Contact Section)
   ========================================================================== */
.contact-layout {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

@media (min-width: 920px) {
  .contact-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.25rem;
  }
}

.contact-form-card {
  padding: clamp(1.25rem, 4vw, 2.25rem);
}

.form-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}

.form-label .required {
  color: #E5484D;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.09);
}

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

.select-wrapper {
  position: relative;
}

.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%239A9AA3" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><polyline points="6 9 12 15 18 9"></polyline></svg>');
  background-repeat: no-repeat;
  background-position: left 1rem center;
  background-size: 1rem;
}

.field-error {
  font-size: 0.78rem;
  color: #E5484D;
  display: none;
}

.form-group.has-error .field-error {
  display: block;
}

.form-group.has-error .form-input {
  border-color: #E5484D;
}

.form-status-alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  text-align: center;
}

.form-status-alert.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10B981;
  color: #10B981;
}

.form-status-alert.error {
  background: rgba(229, 72, 77, 0.15);
  border: 1px solid #E5484D;
  color: #E5484D;
}

.form-feedback {
  margin-top: 0.9rem;
  font-size: 0.88rem;
}

.contact-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-card {
  padding: clamp(1.25rem, 3.5vw, 2rem);
}

.info-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.info-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.info-item {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.info-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(201, 169, 110, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon svg {
  width: 18px;
  height: 18px;
}

.info-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.info-text p, .info-text a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.6;
}

.info-text a:hover {
  color: var(--accent);
}

.quick-channels {
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.channels-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.channel-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.6rem;
}

.btn-channel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text);
  gap: 0.45rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.88rem;
}

.btn-channel svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.btn-channel:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
}

/* ==========================================================================
   ۱۶. پاورقی مینیمال (Footer)
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--glass-border);
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .site-footer {
  background: rgba(0, 0, 0, 0.25);
}

.footer-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 650px) {
  .footer-layout {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
  }
}

.footer-motto {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 40ch;
  margin-top: 0.75rem;
  line-height: 1.75;
}

.footer-nav-title {
  font-size: 0.92rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.85rem;
  color: var(--text);
}

.footer-nav ul, .social-icon-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a, .social-icon-links a {
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.2rem 0;
  display: inline-block;
  transition: color var(--transition-fast);
}

.footer-nav a:hover, .social-icon-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding: 1.25rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    text-align: right;
  }
}

/* ==========================================================================
   ۱۷. ترنزیشن‌های اسکرول و دسترسی‌پذیری
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 550ms cubic-bezier(0.16, 1, 0.3, 1), transform 550ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .ambient-orb, .hero-glass-card {
    animation: none !important;
  }
}
/* ==========================================================================
   ۱۸. استایل‌های صفحه‌ی نمونه‌کارها و جزئیات پروژه (Portfolio & Case Study)
   ========================================================================== */

/* دکمه مشاهده همه پروژه‌ها در لندینگ و لینک‌شدن کارت‌های لندینگ */
.portfolio-card {
  text-decoration: none;
  color: inherit;
}

.portfolio-more-wrap {
  margin-block-start: 2.25rem;
  display: flex;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Breadcrumb و Page Hero صفحات داخلی
   -------------------------------------------------------------------------- */
.page-hero {
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 3.5vw, 2.25rem);
}

.breadcrumb {
  margin-block-end: 1.25rem;
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb-list a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb-list a:hover {
  color: var(--accent-text-light);
}

[data-theme="dark"] .breadcrumb-list a:hover {
  color: var(--accent);
}

.breadcrumb-list [aria-current="page"] {
  color: var(--text);
  font-weight: 500;
  max-width: 24ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 600px) {
  .breadcrumb-list [aria-current="page"] {
    max-width: 48ch;
  }
}

.page-hero-title {
  font-size: clamp(1.85rem, 4.5vw + 0.5rem, 2.75rem);
  font-weight: 700;
  line-height: 1.3;
  margin-block-end: 0.75rem;
  letter-spacing: -0.4px;
}

.page-hero-desc {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  line-height: 1.8;
  max-width: 65ch;
  font-weight: 300;
}

/* --------------------------------------------------------------------------
   نوار فیلتر (Sticky زیر هدر در دسکتاپ + اسکرول افقی Chipها در موبایل)
   -------------------------------------------------------------------------- */
.portfolio-archive-section {
  padding-block-end: clamp(3rem, 6vw, 5rem);
}

.filter-bar {
  padding: clamp(0.9rem, 2.5vw, 1.25rem);
  margin-block-end: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  z-index: 40;
}

@media (min-width: 860px) {
  .filter-bar {
    position: sticky;
    top: 5.25rem;
  }
}

.filter-top-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.filter-search-box {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  inset-inline-start: 0.95rem;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.filter-search-input {
  padding-inline-start: 2.6rem;
  padding-inline-end: 2.4rem;
}

.clear-search-btn {
  position: absolute;
  inset-inline-end: 0.5rem;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.clear-search-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.clear-search-btn svg {
  width: 16px;
  height: 16px;
}

.filter-desktop-controls {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 860px) {
  .filter-desktop-controls {
    display: flex;
  }
  .mobile-filter-trigger {
    display: none;
  }
}

.filter-compact-select {
  min-width: 195px;
  padding-inline-start: 0.95rem;
  padding-inline-end: 2.2rem;
  font-size: 0.9rem;
}

.mobile-filter-trigger {
  gap: 0.45rem;
  padding-inline: 1rem;
  flex-shrink: 0;
  font-size: 0.88rem;
}

.mobile-filter-trigger svg {
  width: 17px;
  height: 17px;
  color: var(--accent-text-light);
}

[data-theme="dark"] .mobile-filter-trigger svg {
  color: var(--accent);
}

.mobile-filter-trigger.has-active-filters {
  border-color: var(--accent);
}

/* ردیف Chipهای چندانتخابی خدمت با اسکرول افقی در موبایل */
.filter-services-row {
  width: 100%;
  min-width: 0;
}

.filter-chips-scroll {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-block: 0.15rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-chips-scroll::-webkit-scrollbar {
  display: none;
}

@media (min-width: 860px) {
  .filter-chips-scroll {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  min-height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-chip:hover {
  color: var(--text);
  border-color: rgba(201, 169, 110, 0.5);
}

.filter-chip.active {
  background: var(--accent);
  color: #0E0E10;
  border-color: var(--accent);
  font-weight: 600;
}

.chip-count {
  font-size: 0.75rem;
  padding: 0.05rem 0.45rem;
  border-radius: var(--radius-full);
  background: rgba(14, 14, 16, 0.08);
  color: inherit;
}

[data-theme="dark"] .filter-chip:not(.active) .chip-count {
  background: rgba(255, 255, 255, 0.08);
}

.filter-chip.active .chip-count {
  background: rgba(14, 14, 16, 0.16);
}

/* ردیف وضعیت شمارنده و دکمه پاک کردن فیلترها */
.filter-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-block-start: 0.35rem;
  border-block-start: 1px solid var(--glass-border);
}

.results-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-reset-filters {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  color: var(--accent-text-light);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: opacity var(--transition-fast);
}

[data-theme="dark"] .btn-reset-filters {
  color: var(--accent);
}

.btn-reset-filters:hover {
  opacity: 0.8;
}

.btn-reset-filters svg {
  width: 15px;
  height: 15px;
}

/* --------------------------------------------------------------------------
   گرید کارت‌های آرشیو نمونه‌کارها (۱ ستون موبایل، ۲ تبلت، ۳ دسکتاپ + Featured ۲ ستونه)
   -------------------------------------------------------------------------- */
.projects-archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  transition: opacity 200ms ease, transform 200ms ease;
}

.projects-archive-grid.is-filtering {
  opacity: 0.45;
  transform: translateY(4px);
}

@media (min-width: 680px) {
  .projects-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: dense;
  }

  .archive-project-card.is-featured {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .projects-archive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.archive-project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

@media (hover: hover) {
  .archive-project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(201, 169, 110, 0.5);
  }
}

.card-media-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-block-end: 1px solid var(--glass-border);
}

@media (min-width: 1024px) {
  .archive-project-card.is-featured .card-media-box {
    aspect-ratio: 21 / 9;
  }
}

.card-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
  .archive-project-card:hover .card-media-img {
    transform: scale(1.03);
  }
}

.card-media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-icon-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.14);
  border: 1px solid rgba(201, 169, 110, 0.35);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-icon-ring svg {
  width: 28px;
  height: 28px;
}

.featured-corner-badge {
  position: absolute;
  top: 0.85rem;
  inset-inline-start: 0.85rem;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(14, 14, 16, 0.72);
  color: var(--accent);
  border: 1px solid rgba(212, 184, 126, 0.45);
  backdrop-filter: blur(8px);
}

.featured-corner-badge.inline-featured {
  position: static;
}

.card-body {
  padding: clamp(1.2rem, 2.5vw, 1.5rem);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.65rem;
}

.card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.card-industry {
  color: var(--accent-text-light);
  font-weight: 500;
}

[data-theme="dark"] .card-industry {
  color: var(--accent);
}

.card-year {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.card-title {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.card-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.68;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-result-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  padding-block-start: 0.25rem;
}

.card-result-line svg {
  width: 15px;
  height: 15px;
  color: var(--accent-text-light);
  flex-shrink: 0;
}

[data-theme="dark"] .card-result-line svg {
  color: var(--accent);
}

.card-result-line span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-block-start: auto;
  padding-block-start: 0.5rem;
}

.card-service-chip {
  font-size: 0.74rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(201, 169, 110, 0.11);
  border: 1px solid rgba(201, 169, 110, 0.25);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Empty State، Load More و CTA پایین صفحه
   -------------------------------------------------------------------------- */
.empty-state {
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  text-align: center;
  max-width: 540px;
  margin-inline: auto;
}

.empty-state-icon {
  width: 56px;
  height: 56px;
  margin-inline: auto;
  margin-block-end: 1.1rem;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state-icon svg {
  width: 26px;
  height: 26px;
}

.empty-state-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-block-end: 0.5rem;
}

.empty-state-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-block-end: 1.5rem;
}

.loading-spinner svg {
  animation: iliaSpin 0.9s linear infinite;
}

@keyframes iliaSpin {
  to { transform: rotate(360deg); }
}

.load-more-wrap {
  margin-block-start: 2.25rem;
  display: flex;
  justify-content: center;
}

.bottom-cta-card {
  margin-block-start: clamp(3rem, 6vw, 4.5rem);
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1.25rem, 4vw, 2.5rem);
  text-align: center;
  border-color: rgba(201, 169, 110, 0.35);
}

.bottom-cta-title {
  font-size: clamp(1.4rem, 3.5vw, 1.95rem);
  font-weight: 700;
  margin-block-end: 0.75rem;
}

.bottom-cta-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 58ch;
  margin-inline: auto;
  margin-block-end: 1.75rem;
  line-height: 1.8;
}

.cta-btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

/* --------------------------------------------------------------------------
   Bottom Sheet فیلترهای موبایل
   -------------------------------------------------------------------------- */
.bottom-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  transition: opacity 250ms ease;
}

.bottom-sheet-backdrop.is-open {
  opacity: 1;
}

.bottom-sheet {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1060;
  border-end-start-radius: 0;
  border-end-end-radius: 0;
  padding: 0.75rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--bg-elevated);
}

[data-theme="dark"] .bottom-sheet {
  background: #141418;
}

.bottom-sheet.is-open {
  transform: translateY(0);
}

.bottom-sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--glass-border);
  margin-inline: auto;
  margin-block-end: 0.75rem;
}

.bottom-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block-end: 0.75rem;
  border-block-end: 1px solid var(--glass-border);
}

.bottom-sheet-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.bottom-sheet-body {
  padding-block: 1.1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sheet-section {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sheet-industry-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bottom-sheet-footer {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 0.75rem;
  padding-block-start: 0.9rem;
  border-block-start: 1px solid var(--glass-border);
}

/* --------------------------------------------------------------------------
   صفحه‌ی جزئیات پروژه (project.html)
   -------------------------------------------------------------------------- */
.project-not-found-section {
  padding-block: clamp(4rem, 10vw, 7rem);
}

.project-hero-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 860px) {
  .project-hero-grid {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2.5rem;
  }
}

.project-meta-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-block-end: 1rem;
}

.project-industry-badge {
  margin-block-end: 0;
}

.project-year-pill {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
}

.project-detail-title {
  font-size: clamp(1.75rem, 4.2vw + 0.4rem, 2.75rem);
  font-weight: 700;
  line-height: 1.32;
  margin-block-end: 0.9rem;
}

.project-detail-summary {
  font-size: clamp(0.96rem, 1.8vw, 1.12rem);
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 65ch;
  margin-block-end: 1.35rem;
  font-weight: 300;
}

.project-services-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-live-btn {
  gap: 0.45rem;
}

.project-live-btn svg {
  width: 18px;
  height: 18px;
}

.project-section-compact {
  padding-block: clamp(1.25rem, 3vw, 2rem);
}

.detail-section-heading {
  font-size: 1.25rem;
  font-weight: 600;
  margin-block-end: 1.15rem;
}

/* گالری تصاویر */
.project-gallery-card {
  padding: clamp(0.75rem, 2vw, 1.15rem);
  overflow: hidden;
}

.gallery-stage {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumbs {
  display: flex;
  gap: 0.75rem;
  margin-block-start: 0.85rem;
  overflow-x: auto;
}

.gallery-thumb-btn {
  width: 112px;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  background: transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.65;
  flex-shrink: 0;
  transition: opacity var(--transition-fast), border-color var(--transition-fast);
}

.gallery-thumb-btn.active,
.gallery-thumb-btn:hover {
  opacity: 1;
  border-color: var(--accent);
}

.gallery-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-placeholder {
  width: 100%;
  aspect-ratio: 16 / 8;
  min-height: 200px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
}

.placeholder-icon-ring.is-large {
  width: 76px;
  height: 76px;
}

.placeholder-icon-ring.is-large svg {
  width: 34px;
  height: 34px;
}

.gallery-placeholder-caption {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* کارت‌های شاخص نتیجه */
.project-metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .project-metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.metric-glass-card {
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.metric-value {
  display: block;
  font-size: clamp(1.6rem, 3.5vw, 2.15rem);
  font-weight: 700;
  color: var(--accent-text-light);
  margin-block-end: 0.35rem;
}

[data-theme="dark"] .metric-value {
  color: var(--accent);
}

.metric-label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* مسئله و راه‌حل */
.case-study-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .case-study-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.case-study-card {
  padding: clamp(1.35rem, 3vw, 2rem);
}

.case-study-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(201, 169, 110, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block-end: 1rem;
}

.case-study-icon svg {
  width: 21px;
  height: 21px;
}

.case-study-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-block-end: 0.65rem;
}

.case-study-text {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.85;
}

/* فناوری‌های استفاده‌شده */
.tech-stack-panel {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

@media (min-width: 768px) {
  .tech-stack-panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.tech-stack-title {
  font-size: 1rem;
  font-weight: 600;
}

.tech-tags-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  font-family: monospace;
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
}

/* ناوبری پروژه قبلی / بعدی */
.prev-next-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .prev-next-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.prev-next-card {
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.prev-next-card.is-next {
  text-align: end;
}

@media (hover: hover) {
  .prev-next-card:hover {
    transform: translateY(-3px);
    border-color: rgba(201, 169, 110, 0.45);
  }
}

.prev-next-dir {
  font-size: 0.8rem;
  color: var(--accent-text-light);
  font-weight: 500;
}

[data-theme="dark"] .prev-next-dir {
  color: var(--accent);
}

.prev-next-title {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
}
