/* =========================================
   HAMRAH VISION — Main CSS
   Light Theme | Orange + Cyan
   ========================================= */

:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface2: #f1f5f9;
  --cyan: #00C8CC;
  --cyan-dim: rgba(0,200,204,0.10);
  --cyan-glow: rgba(0,200,204,0.22);
  --orange: #E8A020;
  --orange-dim: rgba(232,160,32,0.12);
  --orange-glow: rgba(232,160,32,0.28);
  --text: #0D1117;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border: #E2E8F0;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.10), 0 4px 16px rgba(0,0,0,0.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
[dir='rtl'] body { font-family: 'IRANYekanXFaNum', 'IRANYekanX', sans-serif; }

/* Force Persian font on all interactive elements in RTL */
[dir='rtl'] button,
[dir='rtl'] a,
[dir='rtl'] input,
[dir='rtl'] textarea,
[dir='rtl'] select,
[dir='rtl'] label {
  font-family: 'IRANYekanXFaNum', 'IRANYekanX', sans-serif;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }

/* ── NAVBAR ── */
.navbar {
  background: #000000; color: #ffffff;
  position: sticky; top: 0; z-index: 1001;
  border-bottom: 2px solid var(--cyan);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex; align-items: center;
  padding: 1.8rem 2rem;
  min-height: 120px;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
  text-decoration: none !important;
}
.nav-logo:hover, .nav-logo:focus, .nav-logo:active {
  text-decoration: none !important;
}
.logo-img { height: 76px; width: auto; mix-blend-mode: screen; }
.footer-logo { height: 200px !important; }


.nav-links a {
  color: #ffffff; text-decoration: none;
  font-weight: 600; font-size: 1.08rem;
  transition: color .2s;
  position: relative; padding-bottom: 3px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 2px; background: var(--cyan);
  transform: scaleX(0); transition: transform .25s ease;
  border-radius: 2px;
}
.nav-links a:hover { color: var(--cyan); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

.lang-btn {
  background: transparent; color: #ffffff;
  border: 1.5px solid rgba(255,255,255,0.2); border-radius: 8px;
  padding: .28rem .75rem; font-size: .85rem; font-weight: 600;
  text-decoration: none; transition: all .2s;
}
.lang-btn:hover { border-color: var(--cyan); color: var(--cyan); }

.language-menu {
  position: relative;
  z-index: 20;
}

.language-menu-trigger {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 6.5rem;
  border: 1.5px solid rgba(0,0,0,0.18);
  border-radius: 999px;
  background: #ffffff;
  color: #1a1a1a;
  cursor: pointer;
  font-size: .86rem;
  font-weight: 800;
  padding: .44rem .78rem;
  user-select: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.07);
}

.language-menu-trigger::-webkit-details-marker { display: none; }

.language-menu-trigger::after {
  content: "⌄";
  color: var(--cyan);
  font-size: .9rem;
  line-height: 1;
}

.language-menu-trigger strong {
  color: var(--orange);
  font-size: .8rem;
}

.language-menu-panel {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + .65rem);
  width: min(280px, 86vw);
  max-height: 420px;
  overflow: auto;
  padding: .55rem;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 1rem;
  background: rgba(255,255,255,.97);
  box-shadow: 0 20px 50px rgba(0,0,0,.16);
  backdrop-filter: blur(12px);
}

.language-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  border-radius: .75rem;
  color: #1a1a1a;
  padding: .68rem .75rem;
  text-decoration: none;
  font-weight: 800;
}

.language-option small {
  color: var(--cyan);
  font-weight: 900;
}

.language-option:hover,
.language-option.active {
  background: var(--surface2);
  color: var(--cyan);
}

/* -- Nav links container: flex row on desktop -- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 3.2rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* -- Hamburger button: hidden on desktop -- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: background .2s;
  flex-shrink: 0;
}
.menu-toggle:hover { background: rgba(0,0,0,0.07); }
.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── BUTTONS ── */
.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, #c98a10 100%);
  color: #ffffff; font-weight: 700;
  padding: .6rem 1.6rem; border-radius: 50px;
  text-decoration: none; display: inline-block;
  transition: transform .2s, box-shadow .2s;
  border: none; cursor: pointer; font-size: 0.95rem;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 12px rgba(232,160,32,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--orange-glow);
}
.btn-primary.btn-lg { padding: .85rem 2.2rem; font-size: 1rem; }

.btn-outline {
  border: 2px solid var(--border); color: var(--text-muted);
  padding: .6rem 1.6rem; border-radius: 50px;
  text-decoration: none; display: inline-block;
  transition: all .2s; font-weight: 600; font-size: 0.95rem;
  background: transparent;
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-dim); }
.btn-outline.btn-lg { padding: .85rem 2.2rem; font-size: 1rem; }

/* ── HERO ── */
.hero {
  position: relative; overflow: hidden;
  padding: 7rem 0 6rem; text-align: center;
  min-height: 88vh; display: flex; align-items: center;
  background: var(--bg);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, #CBD5E1 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.55;
  pointer-events: none;
}
.hero-glow { display: none; }
.hero-circuit { display: none; }
.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--cyan-dim); border: 1.5px solid rgba(0,200,204,0.35);
  color: var(--cyan); padding: .42rem 1.2rem; border-radius: 50px;
  font-size: .85rem; font-weight: 600; margin-bottom: 1.8rem;
  letter-spacing: 0.02em;
}
.hero-title {
  background: linear-gradient(90deg, var(--orange) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800;
  line-height: 1.15; margin-bottom: 1.2rem;
  max-width: 820px; margin-left: auto; margin-right: auto;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 520px; margin: 0 auto 2.8rem;
  line-height: 1.8;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── HERO LOGO ── */
.hero-logo-3d-container {
  width: 260px;
  height: 260px;
  margin: 0 auto 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  filter: drop-shadow(0 0 24px rgba(0, 200, 204, 0.40))
          drop-shadow(0 0 55px rgba(232, 160, 32, 0.18));
}
.hero-logo-3d-container canvas {
  max-width: 100%;
  max-height: 100%;
  display: block;
}
.hero-logo {
  height: 300px; width: auto;
  display: block; margin: 0 auto 2rem;
  mix-blend-mode: multiply;
}

/* ── TEXT COLORS ── */
.text-cyan { color: var(--cyan); }
.text-orange { color: var(--orange); }

/* ── SECTION TITLE ── */
.section-title {
  font-size: 2rem; font-weight: 800; text-align: center;
  margin-bottom: 3.5rem; letter-spacing: -0.02em;
}
.section-title::after {
  content: ''; display: block; width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--cyan));
  margin: .7rem auto 0; border-radius: 2px;
}

/* ── SERVICES SECTION (alternating bg) ── */
.services { background: var(--surface); }
.services .card {
  background: linear-gradient(135deg, var(--orange) 0%, #c98a10 100%);
  border: none;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(232,160,32,0.25);
}
.services .card:hover {
  border-color: transparent;
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(232,160,32,0.40);
}
.services .card h3 { color: #ffffff; }
.services .card p { color: rgba(255,255,255,0.88); }
.services .card .card-icon {
  background: rgba(255,255,255,0.20);
  color: #ffffff;
}

/* ── CARDS ── */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  box-shadow: var(--shadow-sm);
}
.card:hover {
  border-color: var(--cyan); transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 0 4px var(--cyan-dim);
}
.card-icon {
  font-size: 1.6rem; margin-bottom: 1.2rem;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface2); border-radius: 14px;
}
.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .6rem; letter-spacing: -0.01em; }
.card p { color: var(--text-muted); font-size: .95rem; line-height: 1.7; }

.card-project img {
  width: 100%; height: 190px; object-fit: cover;
  border-radius: 10px; margin-bottom: 1.2rem;
}
.card-badge {
  display: inline-block; font-size: .75rem; font-weight: 700;
  padding: .22rem .8rem; border-radius: 50px; margin-bottom: .8rem;
  letter-spacing: 0.02em;
}
.card-badge-web { background: var(--cyan-dim); color: var(--cyan); border: 1px solid rgba(0,200,204,0.25); }
.card-badge-ai { background: var(--orange-dim); color: var(--orange); border: 1px solid rgba(232,160,32,0.25); }
.card-badge-other { background: rgba(99,102,241,0.10); color: #6366f1; border: 1px solid rgba(99,102,241,0.20); }
.card-badge-bot { background: rgba(34,197,94,0.10); color: #16a34a; border: 1px solid rgba(34,197,94,0.20); }
.card-link {
  color: var(--orange); text-decoration: none; font-weight: 600; font-size: .9rem;
  display: inline-flex; align-items: center; gap: 0.3rem;
  transition: gap .2s;
}
.card-link:hover { gap: 0.6rem; }
.tech-stack { font-size: .8rem; color: var(--text-light); margin-top: .6rem; font-style: italic; }

/* ── PAGE HEADER ── */
.page-header {
  background: var(--surface); color: var(--text);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0; text-align: center;
}
.page-header h1 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; }
.page-header p { color: var(--text-muted); margin-top: .5rem; }

/* ── FILTER BAR ── */
.filter-bar { display: flex; justify-content: center; gap: 1.2rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.filter-btn {
  padding: .4rem 1.1rem; border-radius: 50px;
  border: 1.5px solid var(--border); background: var(--bg);
  color: var(--text-muted); text-decoration: none; font-weight: 600;
  font-size: .85rem; transition: all .2s;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--cyan); color: var(--cyan); background: var(--cyan-dim);
}

/* ── CTA BOX ── */
.cta-box {
  background: linear-gradient(135deg, #00C8CC 0%, #009ea1 100%);
  border: none;
  border-radius: var(--radius-lg); padding: 4rem 3.5rem; text-align: center;
  box-shadow: 0 12px 50px rgba(0,200,204,0.28);
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.cta-box h2 { color: #ffffff; font-size: 2rem; margin-bottom: .75rem; letter-spacing: -0.02em; position: relative; }
.cta-box p { color: rgba(255,255,255,0.88); margin-bottom: 2rem; position: relative; }
.cta-box .btn-primary {
  background: #ffffff; color: var(--cyan);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.cta-box .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.20);
}

/* ── FORM ── */
.form-container { max-width: 680px; margin: 0 auto; }
.job-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-weight: 600; font-size: .9rem; color: var(--text-muted); }
.job-form input, .job-form textarea, .job-form select {
  background: var(--bg); border: 1.5px solid var(--border);
  color: var(--text); border-radius: var(--radius); padding: .8rem 1rem;
  font-size: 1rem; font-family: inherit; outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-shadow: var(--shadow-sm);
}
.job-form input:focus, .job-form textarea:focus, .job-form select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px var(--cyan-dim);
}
.job-form select option { background: var(--bg); }
.form-error { color: #ef4444; font-size: .85rem; }

/* ── ABOUT ── */
.about-content { max-width: 700px; margin: 0 auto; }
.about-text h2 { font-size: 1.8rem; margin-bottom: 1.2rem; color: var(--orange); letter-spacing: -0.02em; }
.about-text p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.8; }
.about-stats { display: flex; gap: 3rem; margin-top: 2.5rem; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 2.5rem; font-weight: 800; color: var(--cyan); }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 5rem; color: var(--text-muted); }

/* ── FOOTER ── */
.footer {
  background: #000000; color: #ffffff;
  border-top: 1px solid #222;
  box-shadow: 0 -2px 20px rgba(0,0,0,0.04);
  padding: 3.5rem 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { padding: 5rem 0 4rem; min-height: auto; }
  .about-stats { gap: 1.5rem; }
  .cta-box { padding: 2.5rem 1.5rem; }
}

/* ── RTL SUPPORT ── */

/* ── IRAN YEKAN FONT ── */
@font-face { font-family: 'IRANYekanX'; src: url('/static/fonts/IRANYekanX-Light.ttf'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'IRANYekanX'; src: url('/static/fonts/IRANYekanX-Regular.ttf'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IRANYekanX'; src: url('/static/fonts/IRANYekanX-Bold.ttf'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'IRANYekanX'; src: url('/static/fonts/IRANYekanX-Black.ttf'); font-weight: 800; font-display: swap; }

/* ── IRAN YEKAN FANUM (Persian Numerals) ── */
/* ── CONTACT PAGE ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.contact-info-title {
  font-size: 1.6rem; font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: .6rem;
}
.contact-info-sub {
  color: var(--text-muted); margin-bottom: 2rem; line-height: 1.8;
}
.contact-cards { display: flex; flex-direction: column; gap: 1rem; }
.contact-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.contact-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow);
}
.contact-card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.contact-card-icon.orange { background: var(--orange-dim); }
.contact-card-icon.cyan   { background: var(--cyan-dim); }
.contact-card-label { font-size: .8rem; color: var(--text-muted); font-weight: 600; margin-bottom: .15rem; }
.contact-card-value { font-size: .95rem; font-weight: 700; color: var(--text); }
.contact-form-wrap {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.contact-success {
  text-align: center; padding: 3rem 1rem;
}
.contact-success-icon { font-size: 3rem; margin-bottom: 1rem; }
.contact-success h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: .5rem; }
.contact-success p { color: var(--text-muted); }
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ── ABOUT PAGE ── */
.about-intro {
  display: flex; align-items: center; gap: 3rem;
  margin-bottom: 4rem;
  background: #ffffff; border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.about-logo {
  height: 200px; width: auto;
  /* mix-blend-mode: multiply; */ flex-shrink: 0;
}
.about-intro-text h2 {
  font-size: 1.6rem; font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: .8rem;
  background: linear-gradient(90deg, var(--orange) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.about-intro-text p { color: var(--text-muted); line-height: 1.9; }

.about-stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem; margin-bottom: 1rem;
}
.about-stat-card {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  text-align: center; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: .3rem;
}
.about-stat-card .stat-num { font-size: 2.2rem; font-weight: 800; }
.about-stat-card .stat-label { font-size: .85rem; color: var(--text-muted); font-weight: 500; }

.activity-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.2rem;
}
.activity-card {
  display: flex; align-items: flex-start; gap: 1.1rem;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.activity-card:hover {
  border-color: var(--cyan); transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.activity-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.activity-icon.orange { background: var(--orange-dim); }
.activity-icon.cyan   { background: var(--cyan-dim); }
.activity-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; }
.activity-body p { font-size: .9rem; color: var(--text-muted); line-height: 1.7; }

@media (max-width: 768px) {
  .about-intro { flex-direction: column; text-align: center; }
  .about-stats-row { grid-template-columns: repeat(2, 1fr); }
}


/* ── JOB SUBMIT PAGE ── */
.submit-layout {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 2.5rem;
  align-items: start;
}
.submit-sidebar { display: flex; flex-direction: column; }
.submit-info-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.submit-info-card h4 { font-size: .95rem; font-weight: 700; margin-bottom: .5rem; }
.submit-step {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.2rem;
}
.submit-step:last-child { margin-bottom: 0; }
.step-num {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .95rem; flex-shrink: 0;
}
.step-num.orange { background: var(--orange-dim); color: var(--orange); }
.step-num.cyan   { background: var(--cyan-dim);   color: var(--cyan); }
.submit-step strong { display: block; font-size: .95rem; font-weight: 700; margin-bottom: .2rem; }
.submit-step p { font-size: .85rem; color: var(--text-muted); margin: 0; }

.submit-form-wrap {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.form-section { margin-bottom: 2rem; }
.form-section-title {
  font-size: 1rem; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: .05em; margin-bottom: 1.2rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--border);
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.req { color: var(--orange); }

/* Category Cards */
.category-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem;
}
.cat-card {
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  padding: 1rem .75rem; border-radius: var(--radius);
  border: 2px solid var(--border); background: var(--bg);
  cursor: pointer; transition: all .2s; text-align: center;
  font-size: .85rem; font-weight: 600; color: var(--text-muted);
}
.cat-card:hover { border-color: var(--cyan); color: var(--cyan); }
.cat-card.active {
  border-color: var(--orange); background: var(--orange-dim);
  color: var(--orange);
}
.cat-icon { font-size: 1.6rem; }

@media (max-width: 900px) {
  .submit-layout { grid-template-columns: 1fr; }
  .submit-sidebar { display: none; }
}
@media (max-width: 600px) {
  .category-cards { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .submit-form-wrap { padding: 1.5rem; }
}

/* ── FORM INPUT CLASS (used by widget attrs) ── */
.form-input {
  background: var(--bg); border: 1.5px solid var(--border);
  color: var(--text); border-radius: var(--radius); padding: .8rem 1rem;
  font-size: 1rem; font-family: inherit; outline: none; width: 100%;
  transition: border-color .2s, box-shadow .2s;
  box-shadow: var(--shadow-sm);
}
.form-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px var(--cyan-dim);
}

/* ── BRAND NAME DISPLAY (About page — logo font style) ── */
.brand-name-display {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}
.brand-name-main {
  font-family: 'IRANYekanX', 'Vazirmatn', sans-serif;
  font-weight: 900;
  font-size: 3.2rem;
  letter-spacing: -.5px;
  background: linear-gradient(120deg, var(--orange) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.brand-name-sub {
  font-family: 'IRANYekanX', 'Vazirmatn', sans-serif;
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--text-muted);
  display: block;
  letter-spacing: .2px;
}
[dir='rtl'] .brand-name-main,
[dir='rtl'] .brand-name-sub {
  font-family: 'IRANYekanXFaNum', 'Vazirmatn', sans-serif;
}
@media (max-width: 600px) {
  .brand-name-main { font-size: 2.2rem; }
  .brand-name-sub  { font-size: 1rem; }
}

/* ── PORTFOLIO CARD IMPROVEMENTS ── */
.card-project {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.card-project::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--cyan));
  opacity: 0;
  transition: opacity .25s;
}
.card-project:hover::before { opacity: 1; }
.card-project h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }
.card-project > p { flex: 1; }

.tech-stack-bar {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: .8rem;
  padding: .35rem .7rem;
  background: var(--surface2);
  border-radius: 8px;
  font-family: 'Inter', monospace;
  letter-spacing: .02em;
}

.card-view-btn {
  margin-top: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1.2rem;
  border-radius: 50px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
  transition: background .2s, gap .2s, transform .15s;
  align-self: flex-start;
}
.card-view-btn:hover {
  background: var(--cyan);
  gap: .7rem;
  transform: translateY(-1px);
}
.btn-arrow { font-size: 1rem; line-height: 1; }
[dir='rtl'] .card-view-btn { align-self: flex-end; }

/* ── VIDEO EMBED (Portfolio) ── */
.video-embed-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.2rem;
  background: #000;
}
.video-embed-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.card-badge-video {
  background: rgba(168, 85, 247, 0.12);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.25);
}


/* ================================================================
   RESPONSIVE BREAKPOINTS — Added 2026-06-06
   ================================================================ */

/* ── TABLET (1024px) ── */
@media (max-width: 1024px) {
  .nav-inner { min-height: 85px !important; padding: 0.8rem 1.2rem !important; }
  .logo-img { height: 50px !important; }
  .hero-logo { height: 220px; }
  .about-stats-row { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

/* ── MOBILE EXPANDED (768px) ── */
@media (max-width: 768px) {
  .logo-img { height: 44px !important; }
  .hero-logo { height: 170px; }
  .footer-logo { height: 100px !important; }
  .about-logo { height: 140px; }
  .section { padding: 4rem 0; }
  .section-title { font-size: 1.6rem; margin-bottom: 2.5rem; }
  .cta-box h2 { font-size: 1.5rem; }
  .hero-badge { font-size: .78rem; }
  .hero-sub { font-size: 1rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .about-stat-card .stat-num { font-size: 1.8rem; }
  .activity-grid { grid-template-columns: 1fr; }
}

/* ── SMALL MOBILE (480px) ── */
@media (max-width: 480px) {
  .logo-img { height: 38px; }
  .hero-logo { height: 130px; }
  .footer-logo { height: 80px !important; }
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3rem 0; }
  .section-title { font-size: 1.35rem; }
  .cta-box { padding: 2rem 1.2rem; }
  .cta-box h2 { font-size: 1.3rem; }
  .about-stats-row { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .about-stat-card { padding: 1rem; }
  .about-stat-card .stat-num { font-size: 1.6rem; }
  .card { padding: 1.4rem; }
  .btn-primary.btn-lg, .btn-outline.btn-lg { padding: .75rem 1.6rem; font-size: .95rem; }
  .page-header { padding: 2.5rem 0; }
  .page-header h1 { font-size: 1.7rem; }
  .about-intro { padding: 1.5rem; }
}


/* ================================================================
   DEVICE-SPECIFIC OPTIMIZATIONS — Iranian Market (2026-06-06)

   Data source: StatCounter Iran Mobile Screen Stats
   Top viewports in Iran:
     393px (18.48%) → iPhone 15 / 16 base
     384px  (7.77%) → Android mid-range
     412px  (6.72%) → Samsung Galaxy A/S series
     390px  (5.09%) → iPhone 14
     360px  (4.98%) → Redmi Note 16 / budget Android
   ================================================================ */

/* ── REDMI NOTE 16 & BUDGET ANDROID (≤360px) ──
   Physical: 1080×2480 / DPR 3 → CSS viewport ~360px
   Also covers: Samsung A02, Poco C55, Redmi A series           */
@media (max-width: 360px) {
  .container { padding: 0 .85rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero-logo { height: 100px; }
  .hero-badge { font-size: .68rem; padding: .28rem .75rem; }
  .hero-sub { font-size: .85rem; }
  .hero-btns { gap: .6rem; }
  .section { padding: 2.5rem 0; }
  .section-title { font-size: 1.15rem; }
  .cta-box { padding: 1.4rem .9rem; }
  .cta-box h2 { font-size: 1.1rem; }
  .cta-box p { font-size: .88rem; }
  .card { padding: 1rem; }
  .card h3 { font-size: 1rem; }
  .card p { font-size: .88rem; }
  .card-icon { width: 44px; height: 44px; font-size: 1.35rem; }
  .btn-primary.btn-lg, .btn-outline.btn-lg { padding: .65rem 1.1rem; font-size: .88rem; }
  .about-stat-card { padding: .75rem; }
  .about-stat-card .stat-num { font-size: 1.35rem; }
  .about-stat-card .stat-label { font-size: .78rem; }
  .page-header { padding: 2rem 0; }
  .page-header h1 { font-size: 1.45rem; }
  .about-intro { padding: 1.2rem; gap: 1.5rem; }
  .footer-logo { height: 70px !important; }
  .footer { padding: 2.5rem 0; }
  .nav-inner { padding: .5rem .85rem; }
  .logo-img { height: 44px; }
}

/* ── iPHONE 14/15/16 + SAMSUNG GALAXY A/S (361px–430px) ──
   393px: iPhone 15/16 (DPR 3) — #1 in Iran (18.48%)
   412px: Samsung Galaxy A34/A54 (DPR 2.625)
   390px: iPhone 14                                             */
@media (min-width: 361px) and (max-width: 430px) {
  .hero-logo { height: 125px; }
  .about-stat-card .stat-num { font-size: 1.6rem; }
  .section-title { font-size: 1.3rem; }
  .cta-box h2 { font-size: 1.25rem; }
}

/* ── iPHONE PRO MAX / SAMSUNG ULTRA (431px–480px) ──
   430px: iPhone 15/16 Pro Max
   480px: Some Samsung Ultra foldables in cover mode            */
@media (min-width: 431px) and (max-width: 480px) {
  .hero-logo { height: 145px; }
  .cards-grid { grid-template-columns: 1fr; }
}


/* ================================================================
   AURORA WAVE ART — 2026-06-06
   Dark hero + 5-layer animated SVG waves (cyan + orange)
   ================================================================ */

/* ── Dark hero base ── */
.hero {
  background: linear-gradient(rgba(5,15,25,0.55), rgba(5,15,25,0.65)), url(/static/img/hero_bg.png) center center / cover no-repeat !important;
  overflow: hidden;
  position: relative;
}

/* ── WebGL Canvas container ── */
#hero-webgl {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.8;
}

/* ── Wave container — absolute, fills entire hero ── */
.hero-waves {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-waves svg {
  width: 100%;
  height: 100%;
}

/* ── Lift all hero content above waves ── */
.hero .hero-glow,
.hero .hero-content,
.hero .hero-circuit {
  position: relative;
  z-index: 2;
}

/* ── Text: white on dark background ── */
.hero .hero-title {
  color: #ffffff;
}
.hero .hero-title .text-orange {
  color: var(--orange);
}
.hero .hero-sub {
  color: rgba(255, 255, 255, 0.72);
}
.hero .hero-badge {
  background: rgba(0, 200, 204, 0.14);
  color: rgba(255, 255, 255, 0.90);
  border-color: rgba(0, 200, 204, 0.40);
  backdrop-filter: blur(6px);
}

/* ── Logo: screen blend + cyan+orange glow on dark ── */
.hero .hero-logo {
  mix-blend-mode: normal;
  filter: drop-shadow(0 0 24px rgba(0, 200, 204, 0.45))
          drop-shadow(0 0 55px rgba(232, 160, 32, 0.22));
}

/* ── Outline button: white on dark ── */
.hero .btn-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.40);
}
.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.70);
  color: #ffffff;
}

/* ================================================================
   WAVE ANIMATIONS
   Each wave gets a unique speed + direction for organic movement
   ================================================================ */

/* hw1 — orange base: drifts left, 9s */
@keyframes hw1-anim {
  0%,100% { transform: translateX(0px)   scaleY(1.00); }
  50%      { transform: translateX(-58px) scaleY(1.04); }
}
/* hw2 — amber mid: drifts right, 7s */
@keyframes hw2-anim {
  0%,100% { transform: translateX(0px)  scaleY(1.00); }
  50%      { transform: translateX(70px) scaleY(0.96); }
}
/* hw3 — cyan main: breathes left-right-left, 11s */
@keyframes hw3-anim {
  0%   { transform: translateX(0px)   scaleY(1.00); }
  33%  { transform: translateX(-45px) scaleY(1.05); }
  66%  { transform: translateX(35px)  scaleY(0.95); }
  100% { transform: translateX(0px)   scaleY(1.00); }
}
/* hw4 — electric cyan glow: drifts right fast, 8s */
@keyframes hw4-anim {
  0%,100% { transform: translateX(0px)  scaleY(1.00); }
  50%      { transform: translateX(62px) scaleY(1.06); }
}
/* hw5 — orange accent: slow wide drift, 14s */
@keyframes hw5-anim {
  0%,100% { transform: translateX(0px)   scaleY(1.00); }
  50%      { transform: translateX(-80px) scaleY(1.08); }
}

/* Apply animations */
.hw {
  will-change: transform;
  transform-box: fill-box;
  transform-origin: center bottom;
}
.hw1 { animation: hw1-anim  9s ease-in-out infinite; }
.hw2 { animation: hw2-anim  7s ease-in-out infinite; }
.hw3 { animation: hw3-anim 11s ease-in-out infinite; }
.hw4 { animation: hw4-anim  8s ease-in-out infinite; }
.hw5 { animation: hw5-anim 14s ease-in-out infinite; }

/* ── Mobile: drop heavy glow + reduce motion ── */
@keyframes hw-sm-l { 0%,100%{transform:translateX(0)} 50%{transform:translateX(-22px)} }
@keyframes hw-sm-r { 0%,100%{transform:translateX(0)} 50%{transform:translateX(+22px)} }
@keyframes hw-sm-b { 0%,100%{transform:translateX(0)} 33%{transform:translateX(-18px)} 66%{transform:translateX(+15px)} }

@media (max-width: 768px) {
  .hw5 { display: none; }
  .hw4 { filter: none; }
  .hw1 { animation-name: hw-sm-l; animation-duration: 9s; }
  .hw2 { animation-name: hw-sm-r; animation-duration: 7s; }
  .hw3 { animation-name: hw-sm-b; animation-duration: 11s; }
  .hw4 { animation-name: hw-sm-l; animation-duration: 8s; }
}
@media (max-width: 480px) {
  .hw2, .hw5 { display: none; }
  .hero-waves { height: 55%; top: auto; bottom: 0; }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hw { animation: none; }
}


/* ================================================================
   HOUDINI RING PARTICLES — 2026-06-06
   Mouse-following ring effect (Chrome/Edge), progressive enhancement
   Adapted from antigravity.google / bramus CodePen rebuild
   ================================================================ */

/* Animatable custom properties */
@property --ring-x         { syntax: '<number>'; inherits: true;  initial-value: 50; }
@property --ring-y         { syntax: '<number>'; inherits: true;  initial-value: 50; }
@property --ring-radius    { syntax: '<number>'; inherits: false; initial-value: 130; }
@property --ring-radius-2  { syntax: '<number>'; inherits: false; initial-value: 70; }
@property --animation-tick { syntax: '<number>'; inherits: false; initial-value: 0; }

/* ── Cyan ring (outer, main) ── */
#hero-ring {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  --ring-x: 50;
  --ring-y: 50;
  --ring-interactive: 0;
  --ring-radius: 130;
  --ring-thickness: 480;
  --particle-count: 72;
  --particle-rows: 22;
  --particle-size: 2.2;
  --particle-color: #00C8CC;
  --particle-min-alpha: 0.04;
  --particle-max-alpha: 0.88;
  --seed: 42;

  background-image: paint(ring-particles);

  /* Ring slowly breathes in size */
  animation: ring-breathe-cyan 6s ease-in-out infinite alternate,
             ring-tick         8s linear         infinite;
}

/* ── Orange ring (inner, accent) via pseudo-element ── */
#hero-ring::after {
  content: '';
  position: absolute;
  inset: 0;

  --ring-radius: 70;
  --ring-thickness: 300;
  --particle-count: 48;
  --particle-rows: 14;
  --particle-size: 1.8;
  --particle-color: #E8A020;
  --particle-min-alpha: 0.03;
  --particle-max-alpha: 0.72;
  --seed: 99;

  background-image: paint(ring-particles);
  animation: ring-breathe-orange 8s ease-in-out infinite alternate,
             ring-tick           10s linear        infinite reverse;
}

/* Breathing animations for the two rings */
@keyframes ring-breathe-cyan   { 0% { --ring-radius:  90; } 100% { --ring-radius: 170; } }
@keyframes ring-breathe-orange { 0% { --ring-radius:  50; } 100% { --ring-radius: 100; } }
@keyframes ring-tick           { 0% { --animation-tick: 0; } 100% { --animation-tick: 1; } }

/* ── Mobile: disable (too GPU heavy, waves are enough) ── */
@media (max-width: 1024px) {
  #hero-ring { display: none; }
}

/* ════════════════════════════════════════════════
   HERO BACKGROUND IMAGE OVERRIDE  (2026-06-06)
   Replaces gradient + SVG waves with photo bg
   ════════════════════════════════════════════════ */
.hero {
  background: url(/static/img/hero_bg.png) center/cover no-repeat !important;
}
/* Swap dot-grid for a subtle dark overlay so text stays readable */
.hero::before {
  background: rgba(0, 0, 0, 0.32) !important;
  background-image: none !important;
  opacity: 1 !important;
  z-index: 1 !important;
}
/* Waves HTML was removed — hide rule kept as safety net */
.hero-waves { display: none !important; }
/* Content sits above the overlay */
.hero .hero-content { z-index: 2 !important; }
/* Canvas ring stays on top */
#hero-ring-canvas { z-index: 3 !important; }
/* Logo is transparent PNG — no blend mode needed (2026-06-06) */
.hero .hero-logo {
  mix-blend-mode: normal !important;
  filter: drop-shadow(0 0 28px rgba(0, 200, 204, 0.55))
          drop-shadow(0 0 60px rgba(232, 160, 32, 0.28));
}

/* ── Hero BG position fix: shift image so diagonals fill top (2026-06-06) ── */
.hero {
  background-position: center top !important;
}

/* ════════════════════════════════════
   NAVBAR WHITE THEME  (2026-06-06)
   White bg, dark text, cyan accent
   ════════════════════════════════════ */
.navbar {
  background: #ffffff !important;
  color: #1a1a1a !important;
  border-bottom: 2px solid var(--cyan) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.10) !important;
}
.nav-links a {
  color: #1a1a1a !important;
}
.nav-links a:hover {
  color: var(--cyan) !important;
}
.lang-btn {
  color: #1a1a1a !important;
  border-color: rgba(0,0,0,0.20) !important;
}
/* Logo in navbar: screen blend destroys the logo on white bg — use normal */
.navbar .logo-img {
  mix-blend-mode: normal !important;
}
/* Mobile nav menu stays readable */
@media (max-width: 768px) {
  .nav-links a {
    color: #1a1a1a !important;
  }
}

/* -- Mobile navbar layout + overlay -- */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav-inner { justify-content: space-between; gap: 0; padding: 0.5rem 1rem; min-height: 72px !important; }
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 999;
    padding-top: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .nav-links.active { display: flex; }
  .nav-links a {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    padding: 0.4rem 1.5rem !important;
    border-radius: 12px !important;
    transition: background .2s !important;
  }
  .nav-links a:hover { background: var(--surface2) !important; }
  .nav-actions .btn-primary { display: none; }
}

/* ── Logo text beside icon ── */
.nav-logo-text {
  font-weight: 700;
  font-size: 1.05rem;
  color: #1a1a1a;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.footer-brand-logo { display: flex; align-items: center; gap: 0.6rem; }
.footer-logo-text {
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
  white-space: nowrap;
}

/* ── Logo two-line text style ── */
.nav-logo-text,
.footer-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 0;
}
.logo-name-main {
  font-weight: 800;
  font-size: 1.45rem;
  color: #00C8CC !important;
  letter-spacing: -0.02em;
}
.logo-name-sub {
  font-size: 0.72rem;
  color: #9ca3af;
  font-weight: 400;
  white-space: nowrap;
}
.footer-brand-logo .logo-name-sub {
  color: rgba(255,255,255,0.5);
}

/* ── Global font size bump ── */
html { font-size: 17.5px !important; }

/* ── Footer Redesign (Airocup style) ── */
.footer { background: #0d1117; padding: 3rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.footer-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(0,200,204,0.3); border-radius: 14px; padding: 1.8rem; }
.footer-card-center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-card-title { color: #00C8CC; font-size: 1rem; font-weight: 700; margin-bottom: 1.2rem; text-align: inherit; }
.footer-contact p { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin-bottom: 0.6rem; }
.footer-contact a { color: rgba(255,255,255,0.75); text-decoration: none; }
.footer-contact a:hover { color: #00C8CC; }
.footer-desc { color: rgba(255,255,255,0.55); font-size: 0.88rem; margin-top: 0.8rem; }
.footer-links-list { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links-list a { color: rgba(255,255,255,0.75); font-size: 0.92rem; text-decoration: none; transition: color 0.2s; }
.footer-links-list a:hover { color: #00C8CC; }
.footer-copy { border-top: 1px solid rgba(255,255,255,0.08); padding: 1.2rem 0; text-align: center; color: rgba(255,255,255,0.4); font-size: 0.82rem; display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
.footer-copy a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-copy-divider { opacity: 0.4; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Service cards — alternating orange / cyan ── */
.services .card:nth-child(odd) {
  background: linear-gradient(135deg, #E8A020 0%, #c98a10 100%);
  box-shadow: 0 4px 20px rgba(232,160,32,0.28);
}
.services .card:nth-child(odd):hover {
  box-shadow: 0 12px 40px rgba(232,160,32,0.45);
}
.services .card:nth-child(even) {
  background: linear-gradient(135deg, #00C8CC 0%, #008f92 100%);
  box-shadow: 0 4px 20px rgba(0,200,204,0.28);
}
.services .card:nth-child(even):hover {
  box-shadow: 0 12px 40px rgba(0,200,204,0.45);
}

/* ── Service cards — dark bg, orange/cyan accent inside ── */
.services .card {
  background: #111827 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25) !important;
}
.services .card:nth-child(odd) {
  border-color: rgba(232,160,32,0.35) !important;
  box-shadow: 0 4px 24px rgba(232,160,32,0.10) !important;
}
.services .card:nth-child(odd) .card-icon {
  background: rgba(232,160,32,0.15) !important;
  color: #E8A020 !important;
}
.services .card:nth-child(odd) h3 { color: #E8A020 !important; }
.services .card:nth-child(odd):hover {
  border-color: rgba(232,160,32,0.7) !important;
  box-shadow: 0 12px 40px rgba(232,160,32,0.22) !important;
}
.services .card:nth-child(even) {
  border-color: rgba(0,200,204,0.35) !important;
  box-shadow: 0 4px 24px rgba(0,200,204,0.10) !important;
}
.services .card:nth-child(even) .card-icon {
  background: rgba(0,200,204,0.15) !important;
  color: #00C8CC !important;
}
.services .card:nth-child(even) h3 { color: #00C8CC !important; }
.services .card:nth-child(even):hover {
  border-color: rgba(0,200,204,0.7) !important;
  box-shadow: 0 12px 40px rgba(0,200,204,0.22) !important;
}
.services .card p { color: rgba(255,255,255,0.72) !important; }

/* ── Services clean grid (موضوعات فعالیت) ── */
.services-clean { background: #f9fafb; }
.services-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 3rem;
  margin-top: 1.5rem;
}
.service-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.service-icon-wrap {
  font-size: 1.6rem;
  min-width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}
.service-item:nth-child(odd) .service-icon-wrap { background: rgba(232,160,32,0.12); }
.service-item:nth-child(even) .service-icon-wrap { background: rgba(0,200,204,0.12); }
.service-item-body h3 {
  font-size: 0.97rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.35rem;
  line-height: 1.4;
}
.service-item-body p {
  font-size: 0.83rem;
  color: #6b7280;
  line-height: 1.65;
  margin: 0;
}
@media (max-width: 1024px) { .services-list-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-list-grid { grid-template-columns: 1fr; } }

/* ── Service rich cards: bullet list + CTA link ── */
.svc-subtitle { font-size: 0.82rem; color: #6b7280; line-height: 1.5; margin: 0.15rem 0 0.4rem; }
.svc-list { list-style: none; padding: 0; margin: 0 0 0.75rem; }
.svc-list li { font-size: 0.81rem; color: #6b7280; padding: 0.18rem 0; line-height: 1.5; }
.svc-list li::before { content: '✦ '; color: var(--orange); font-size: 0.65rem; }
.service-item:nth-child(even) .svc-list li::before { color: var(--cyan); }
.svc-cta { display: inline-block; font-size: 0.82rem; font-weight: 700; color: var(--orange); text-decoration: none; margin-top: 0.1rem; transition: color 0.2s; }
.svc-cta:hover { color: var(--cyan); }
.service-item:nth-child(even) .svc-cta { color: var(--cyan); }
.service-item:nth-child(even) .svc-cta:hover { color: var(--orange); }
[dir=rtl] .svc-list li::before { content: '✦ '; }

/* ══════════════════════════════════════════════
   SUBMIT PAGE — v2 improvements
══════════════════════════════════════════════ */

/* Page header flow indicator */
.submit-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.submit-flow { display: flex; align-items: center; gap: 0.5rem; }
.flow-step { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }
.flow-num { width: 2rem; height: 2rem; border-radius: 50%; background: var(--surface2); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; }
.flow-active .flow-num { background: var(--orange); color: #fff; }
.flow-active { color: var(--orange); }
.flow-arrow { font-size: 1.2rem; color: var(--border); font-weight: 300; }

/* Form section numbered header */
.fsec-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.2rem; }
.fsec-num { width: 2rem; height: 2rem; border-radius: 50%; background: linear-gradient(135deg, var(--orange), #c98a10); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 800; flex-shrink: 0; }
.form-section:nth-child(even) .fsec-num { background: linear-gradient(135deg, var(--cyan), #008f92); }

/* Category grid — 3x3 */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.cat-card { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 0.85rem 0.4rem 0.75rem; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; transition: all 0.18s; text-align: center; background: var(--bg); }
.cat-card .cat-icon { font-size: 1.5rem; line-height: 1; }
.cat-card .cat-title { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); line-height: 1.3; }
.cat-card:hover { border-color: var(--cyan); background: rgba(0,200,204,0.04); }
.cat-card:hover .cat-title { color: var(--cyan); }
.cat-card.active { border-color: var(--orange); background: rgba(232,160,32,0.06); box-shadow: 0 0 0 3px rgba(232,160,32,0.12); }
.cat-card.active .cat-title { color: var(--orange); font-weight: 700; }

/* Label with character counter */
.label-flex { display: flex; justify-content: space-between; align-items: center; }
.char-counter { font-size: 0.78rem; font-weight: 500; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* Form hint text */
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.3rem; }

/* Telegram label */
.telegram-label-inner { display: inline-flex; align-items: center; gap: 0.35rem; }

/* Submit button */
.btn-submit-main { width: 100%; padding: 0.95rem 1.5rem; background: linear-gradient(135deg, var(--orange) 0%, #c98a10 100%); color: #fff; border: none; border-radius: 50px; font-size: 1.05rem; font-weight: 700; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 0.5rem; }
.btn-submit-main:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,160,32,0.35); }
.btn-submit-main:disabled { opacity: 0.7; transform: none; cursor: not-allowed; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin-icon { animation: spin 0.8s linear infinite; }

/* Sidebar improvements */
.submit-steps-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 0.75rem; }
.submit-step { display: flex; gap: 0.85rem; align-items: flex-start; }
.submit-step strong { display: block; font-size: 0.92rem; font-weight: 700; margin-bottom: 0.15rem; }
.submit-step p { font-size: 0.82rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* Trust list */
.trust-list { list-style: none; padding: 0; margin: 0.75rem 0 0; display: flex; flex-direction: column; gap: 0.6rem; }
.trust-list li { font-size: 0.88rem; color: var(--text); display: flex; align-items: flex-start; gap: 0.5rem; line-height: 1.5; }
.trust-check { color: var(--cyan); font-weight: 800; font-size: 1rem; flex-shrink: 0; }

/* Form row fix */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Responsive */
@media (max-width: 600px) {
  .submit-header-inner { flex-direction: column; align-items: flex-start; }
  .submit-flow { display: none; }
  .category-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .cat-card { padding: 0.7rem 0.3rem; }
  .cat-card .cat-icon { font-size: 1.3rem; }
  .form-row { grid-template-columns: 1fr; }
}


/* ── Submit Page v3: Full-width category grid ── */
.cat-full-section {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
}
.category-grid-full {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: .75rem;
  margin-top: 1.25rem;
}
@media (max-width: 1200px) {
  .category-grid-full { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 768px) {
  .category-grid-full { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .category-grid-full { grid-template-columns: repeat(2, 1fr); }
}

/* ════════════════════════════════════════════════════
   SUBMIT PAGE v4 — Full Fix (overrides all previous)
   ════════════════════════════════════════════════════ */

/* Fix RTL column order: form wide on right, sidebar narrow on left */
.submit-layout {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 960px) {
  .submit-layout { grid-template-columns: 1fr; }
  .submit-sidebar { display: none; }
}

/* Horizontal Project Details layout */
.details-h-grid {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 1rem;
  align-items: start;
}
.details-h-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.details-h-grid textarea {
  min-height: 155px;
  resize: vertical;
}
@media (max-width: 700px) {
  .details-h-grid { grid-template-columns: 1fr; }
}

/* ── Jalali Datepicker – Dark Theme Override ── */
jdp-container {
  background: var(--surface) !important;
  border: 1.5px solid var(--border) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.4) !important;
}
jdp-container .jdp-month,
jdp-container .jdp-month input,
jdp-container .jdp-month select,
jdp-container .jdp-year,
jdp-container .jdp-year input,
jdp-container .jdp-year select {
  background: var(--surface) !important;
  color: var(--text) !important;
}
jdp-container .jdp-months,
jdp-container .jdp-years { color: var(--text) !important; fill: var(--text) !important; }
jdp-container .jdp-day,
jdp-container .jdp-day-name { color: var(--text) !important; }
jdp-container .jdp-day-name { background-color: rgba(255,255,255,.07) !important; }
jdp-container .jdp-day.today { border-color: var(--cyan) !important; }
jdp-container .jdp-day.selected {
  background-color: var(--orange) !important;
  color: #fff !important;
}
jdp-container .jdp-day:not(.disabled-day):hover {
  background: rgba(0,200,204,.15) !important;
}
jdp-container .jdp-btn-close,
jdp-container .jdp-btn-empty,
jdp-container .jdp-btn-today {
  background: var(--cyan) !important;
  color: #fff !important;
}
jdp-container .jdp-icon-minus,
jdp-container .jdp-icon-plus {
  border-color: var(--border) !important;
  background: var(--surface) !important;
}
jdp-container .jdp-icon-minus svg,
jdp-container .jdp-icon-plus svg { fill: var(--text) !important; }
jdp-container .jdp-day.holly-day,
jdp-container .jdp-day.last-week { color: #ef4444 !important; }

/* ── Service Info Panel ── */
.service-info-panel {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: .9rem 1.25rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease;
}
.service-info-panel.svc-info-in {
  opacity: 1;
  transform: translateY(0);
}
.svc-info-icon {
  font-size: 2rem;
  flex-shrink: 0;
}
.svc-info-body strong {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: .2rem;
}
.svc-info-body p {
  font-size: .85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}
