/* ─────────────────────────────────────────
   HARMONY AGENCY — Main Stylesheet
   ───────────────────────────────────────── */

/* ── FONTS ── */
@font-face {
  font-family: 'IRANSans';
  src: url('../fonts/IRANSansWeb_Regular.woff2') format('woff2'),
       url('../fonts/IRANSansWeb_Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSans';
  src: url('../fonts/IRANSansWeb_Bold.woff2') format('woff2'),
       url('../fonts/IRANSansWeb_Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── TOKENS ── */
:root {
  --bg:      #0A0A0A;
  --bg2:     #111111;
  --bg3:     #1a1a1a;
  --green:   #24C76A;
  --green2:  #2be07a;
  --gdim:    rgba(36,199,106,.10);
  --gglow:   rgba(36,199,106,.20);
  --purple:  #7A4FE0;
  --plite:   #9b79f0;
  --pdim:    rgba(122,79,224,.13);
  --white:   #f0f2ee;
  --muted:   rgba(240,242,238,.65);
  --gray:    #888888;
  --line:    #1E1E1E;
  --gborder: rgba(36,199,106,.20);
  --radius:  14px;
  --gap:     8px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'IRANSans', sans-serif;
  background: var(--bg);
  color: var(--white);
  overflow-x: clip;
  cursor: none;
  direction: rtl;
  line-height: 1.6;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 2px; }

/* ── NOISE OVERLAY ── */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 998; pointer-events: none; opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ── CURSOR ── */
#c-ring-2 {
  width: 64px; height: 64px;
  border: 1px solid rgba(62,205,94,.18);
  border-radius: 50%;
  position: fixed; pointer-events: none;
  transform: translate(-50%,-50%);
  z-index: 9997;
  will-change: left, top;
  transition: width .4s, height .4s, opacity .3s;
}
#c-ring {
  width: 34px; height: 34px;
  border: 1.5px solid var(--green); border-radius: 50%;
  position: fixed; pointer-events: none;
  transform: translate(-50%,-50%);
  z-index: 9999;
  will-change: left, top, transform;
  transition: width .18s cubic-bezier(.23,1,.32,1),
              height .18s cubic-bezier(.23,1,.32,1),
              border-color .25s, opacity .2s;
  opacity: .6;
}
/* text-hover state: thin vertical line */
#c-ring.on-text {
  width: 3px; height: 28px; border-radius: 2px;
  border-width: 0; background: var(--green);
  opacity: .7;
}
/* link/button hover */
#c-ring.on-link {
  width: 48px; height: 48px; opacity: .18;
  border-color: var(--green);
}
/* CTA hover: filled */
#c-ring.on-cta {
  width: 52px; height: 52px; opacity: .12;
  background: var(--green);
  border-color: transparent;
}
#c-dot {
  width: 6px; height: 6px;
  background: var(--green); border-radius: 50%;
  position: fixed; pointer-events: none;
  transform: translate(-50%,-50%); z-index: 10000;
  transition: width .18s, height .18s, opacity .18s;
}
#c-dot.on-cta { width: 3px; height: 3px; opacity: .6; }
#c-dot.on-text { width: 2px; height: 2px; opacity: 0; }

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(62,205,94,.4); }
  50%       { box-shadow: 0 0 0 6px rgba(62,205,94,.0); }
}
#c-dot { animation: dotPulse 2.5s ease-in-out infinite; }

/* ── DOT BACKGROUND ── */
.dotbg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(62,205,94,.12) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ═══════════════════════════════
   NAVIGATION
═══════════════════════════════ */
nav {
  position: fixed; top: 0; right: 0; left: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 56px;
  backdrop-filter: blur(16px) saturate(1.4);
  background: rgba(17,19,17,.82);
  border-bottom: 1px solid var(--line);
  transition: padding .3s, box-shadow .3s;
  animation: navEnter .9s cubic-bezier(.16,1,.3,1) both;
}
@keyframes navEnter {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
nav.scrolled {
  padding: 12px 56px;
  box-shadow: 0 8px 40px rgba(0,0,0,.35);
}

/* ── NAV LINKS entrance stagger ── */
.nav-links li {
  opacity: 0;
  animation: navLinkIn .6s cubic-bezier(.23,1,.32,1) forwards;
}
.nav-links li:nth-child(1) { animation-delay: .25s; }
.nav-links li:nth-child(2) { animation-delay: .32s; }
.nav-links li:nth-child(3) { animation-delay: .39s; }
.nav-links li:nth-child(4) { animation-delay: .46s; }
.nav-links li:nth-child(5) { animation-delay: .53s; }
@keyframes navLinkIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── LOGO ── */
.nav-logo {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  opacity: 0;
  animation: navLinkIn .7s cubic-bezier(.16,1,.3,1) .15s forwards;
}
.nav-logo-mark {
  width: 36px; height: 36px; flex-shrink: 0;
  transform-origin: center center;
  will-change: transform;
}

/* ── LOGO SPIN keyframes ── */
@keyframes logoSpin {
  0%   { transform: rotate(0deg)   scale(1);    }
  35%  { transform: rotate(420deg) scale(1.12); }
  65%  { transform: rotate(680deg) scale(0.94); }
  82%  { transform: rotate(715deg) scale(1.05); }
  92%  { transform: rotate(705deg) scale(0.98); }
  100% { transform: rotate(720deg) scale(1);    }
}
.nav-logo-mark.spinning {
  animation: logoSpin 1.2s cubic-bezier(.23,1,.32,1) forwards;
}
.nav-logo-name {
  font-family: 'Inter', 'IRANSans', sans-serif; font-size: 18px; font-weight: 800;
  color: var(--white); letter-spacing: 3px; text-transform: uppercase;
}

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--gray); text-decoration: none;
  font-size: 14px; transition: color .2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; right: 0;
  width: 0; height: 1px; background: var(--green); transition: width .3s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.btn-cta {
  font-family: 'IRANSans', sans-serif;
  padding: 9px 22px; background: transparent;
  border: 1px solid var(--green); color: var(--green);
  border-radius: 10px; font-size: 14px; font-weight: 700;
  cursor: pointer;
  transition: background .22s, color .22s, transform .5s cubic-bezier(.23,1,.32,1), box-shadow .22s;
  opacity: 0;
  animation: navLinkIn .7s cubic-bezier(.16,1,.3,1) .6s forwards;
}
.btn-cta:hover {
  background: var(--green); color: var(--bg);
  box-shadow: 0 0 24px rgba(62,205,94,.35);
}

.nav-ham {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-ham span {
  display: block; width: 24px; height: 1.5px;
  background: var(--white); border-radius: 2px; transition: all .3s;
}

/* Mobile Menu */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(10,12,10,.97); backdrop-filter: blur(24px);
  flex-direction: column; align-items: stretch; justify-content: flex-start;
  padding: 80px 28px 40px;
  gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'IRANSans', sans-serif;
  font-size: 18px; font-weight: 700; color: rgba(255,255,255,.85);
  text-decoration: none; transition: color .2s, background .2s;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-menu a::after {
  content: '←';
  font-size: 14px; color: var(--green); opacity: 0;
  transition: opacity .2s, transform .2s;
  transform: translateX(6px);
}
.mobile-menu a:hover { color: var(--green); }
.mobile-menu a:hover::after { opacity: 1; transform: translateX(0); }
.mobile-menu .btn-primary {
  margin-top: 28px; width: 100%; justify-content: center;
  border-radius: 12px; font-size: 16px; padding: 16px 28px;
  border-bottom: none;
}
.mobile-menu .btn-primary::after { display: none; }
.mobile-close {
  position: absolute; top: 20px; left: 20px;
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.6); font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.mobile-close:hover { background: rgba(255,255,255,.12); color: #fff; }
/* Mobile menu logo row */
.mobile-menu-logo {
  position: absolute; top: 22px; right: 24px;
  display: flex; align-items: center; gap: 8px;
}
.mobile-menu-logo img { width: 28px; height: 28px; }
.mobile-menu-logo span {
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 800;
  color: #fff; letter-spacing: 4px;
}

/* ═══════════════════════════════
   BUTTONS
═══════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'IRANSans', sans-serif;
  padding: 14px 28px; background: var(--green); color: #0A0A0A;
  border: none; border-radius: 10px; font-size: 15px; font-weight: 700;
  cursor: pointer; text-decoration: none; transition: opacity .15s, transform .15s;
}
.btn-primary:hover { opacity: .85; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'IRANSans', sans-serif;
  padding: 14px 28px; background: rgba(255,255,255,.03); color: var(--white);
  border: 1px solid rgba(255,255,255,.14); border-radius: 10px;
  font-size: 15px; font-weight: 400; cursor: pointer;
  text-decoration: none; position: relative; overflow: hidden;
  transition: border-color .35s cubic-bezier(.23,1,.32,1),
              background .35s cubic-bezier(.23,1,.32,1),
              box-shadow .35s cubic-bezier(.23,1,.32,1),
              color .2s;
  backdrop-filter: blur(0px);
}
/* shimmer sweep */
.btn-secondary::before {
  content: '';
  position: absolute; top: -50%; left: -120%;
  width: 55%; height: 200%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.13) 50%, transparent 70%);
  transform: skewX(-18deg);
  transition: left .55s cubic-bezier(.23,1,.32,1);
  pointer-events: none;
}
.btn-secondary:hover::before { left: 160%; }
.btn-secondary:hover {
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: 0 0 0 1px rgba(255,255,255,.07) inset,
              0 8px 32px rgba(0,0,0,.22);
  color: #fff;
}

/* ═══════════════════════════════
   HERO
═══════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 130px 56px 100px;
  position: relative; overflow: hidden;
}

.hero-glow {
  position: absolute; top: -10%; left: 50%;
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(36,199,106,.06) 0%, transparent 65%);
  pointer-events: none; transform: translateX(-50%);
}

.hero-inner {
  max-width: 1200px; width: 100%; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 380px;
  align-items: center; gap: 80px;
}

/* ── Left (text) ── */
.hero-left { max-width: 680px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gdim); border: 1px solid var(--gborder);
  border-radius: 100px; padding: 6px 20px; margin-bottom: 40px;
  font-family: 'Inter', 'IRANSans', sans-serif; font-size: 11px; color: var(--green);
  letter-spacing: 2px; text-transform: uppercase;
  opacity: 0; animation: fadeUp .7s .2s forwards;
}
.badge-dot {
  width: 6px; height: 6px; background: var(--green);
  border-radius: 50%; animation: pulse 2s infinite;
}

.hero-title {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 24px;
  opacity: 0; animation: fadeUp .8s .4s forwards;
}
.hero-title-line1 {
  font-size: clamp(28px, 3.5vw, 48px); font-weight: 600;
  line-height: 1.15; color: var(--muted);
}
.hero-title-line2 {
  font-size: clamp(48px, 7vw, 96px); font-weight: 800;
  line-height: .95; letter-spacing: -2px;
}
.hero-title .g { color: var(--green); }

.hero-en {
  font-family: 'Inter', 'IRANSans', sans-serif;
  font-size: 11px; color: var(--gray);
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 24px;
  opacity: 0; animation: fadeUp .8s .55s forwards;
}

.hero-desc {
  font-size: 15px; line-height: 2;
  color: var(--muted); margin-bottom: 40px;
  max-width: 520px;
  opacity: 0; animation: fadeUp .8s .7s forwards;
}

.hero-ctas {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px;
  opacity: 0; animation: fadeUp .8s .85s forwards;
}

/* ── Stats row (inline with text) ── */
.hero-stats-row {
  display: flex; align-items: center; gap: 0;
  opacity: 0; animation: fadeUp .8s 1s forwards;
}
.hero-stat-item {
  display: flex; flex-direction: column; gap: 4px; padding: 0 28px 0 0;
}
.hero-stat-item:first-child { padding-right: 0; }
.hero-stat-num {
  font-family: 'Inter', 'IRANSans', sans-serif; font-size: 36px; font-weight: 800;
  color: var(--white); line-height: 1;
}
.hero-stat-plus { font-size: 20px; color: var(--green); }
.hero-stat-lbl { font-size: 11px; color: var(--gray); letter-spacing: .5px; }
.hero-stat-sep {
  width: 1px; height: 40px; background: var(--line);
  margin: 0 28px 0 0; flex-shrink: 0;
}

/* ── Right (logo mark) ── */
.hero-right {
  display: flex; align-items: center; justify-content: center;
  opacity: 0; animation: fadeIn 1.2s .6s forwards;
  flex-shrink: 0;
}
.hero-logo-wrap {
  position: relative; width: 320px; height: 320px;
  display: flex; align-items: center; justify-content: center;
}
.hero-logo-glow {
  position: absolute; inset: -40px;
  background: radial-gradient(circle, rgba(36,199,106,.18) 0%, transparent 65%);
  pointer-events: none;
}
.hero-logo-mark {
  width: 200px; height: 200px;
  position: relative; z-index: 2;
  animation: logoFloat 7s ease-in-out infinite;
  filter: drop-shadow(0 0 32px rgba(36,199,106,.3));
}
@keyframes logoFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
.hero-logo-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(36,199,106,.1);
  animation: ringPulse 4s ease-in-out infinite;
}
.hero-logo-ring-1 { width: 280px; height: 280px; animation-delay: 0s; }
.hero-logo-ring-2 { width: 340px; height: 340px; animation-delay: .8s; border-color: rgba(36,199,106,.05); }
@keyframes ringPulse {
  0%,100% { opacity: .6; }
  50%      { opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  opacity: 0; animation: fadeUp 1s 1.4s forwards;
}
.scroll-hint span {
  font-family: 'Inter', 'IRANSans', sans-serif; font-size: 10px;
  letter-spacing: 3px; text-transform: uppercase; color: var(--gray);
}
.scroll-mouse {
  width: 22px; height: 34px;
  border: 1.5px solid var(--gray); border-radius: 100px;
  display: flex; justify-content: center; padding-top: 5px;
}
.scroll-wheel {
  width: 3px; height: 6px; background: var(--green);
  border-radius: 100px; animation: scrollDown 2s infinite;
}

/* ═══════════════════════════════
   MARQUEE
═══════════════════════════════ */
.marquee-wrap {
  overflow: hidden; padding: 18px 0;
  background: var(--gdim);
  border-top: 1px solid var(--gborder);
  border-bottom: 1px solid var(--gborder);
}
.marquee-track {
  display: flex; animation: marqueeScroll 28s linear infinite; white-space: nowrap;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
.mq-item {
  font-family: 'Inter', 'IRANSans', sans-serif; padding: 0 36px; font-size: 11px;
  letter-spacing: 3px; text-transform: uppercase; color: var(--green); flex-shrink: 0;
}
.mq-item.alt { color: var(--plite); }

/* ═══════════════════════════════
   SHARED SECTION ELEMENTS
═══════════════════════════════ */
.section-label {
  font-family: 'Inter', 'IRANSans', sans-serif; font-size: 10px;
  letter-spacing: 3px; text-transform: uppercase; color: var(--gray);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px,4vw,48px); font-weight: 700;
  line-height: 1.15; margin-bottom: 16px;
}
.section-desc {
  font-size: 15px; line-height: 2.1; color: var(--muted);
}

.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.eyebrow-bar { width: 3px; height: 38px; background: var(--green); border-radius: 2px; flex-shrink: 0; }
.ey-en { font-family: 'Inter', 'IRANSans', sans-serif; font-size: 11px; color: var(--gray); letter-spacing: 3px; text-transform: uppercase; }
.ey-fa { font-size: 24px; font-weight: 700; color: var(--plite); line-height: 1.1; }

/* ═══════════════════════════════
   SERVICES
═══════════════════════════════ */
#services { padding: 100px 0; background: var(--bg); }

.services-header {
  max-width: 1200px; margin: 0 auto; padding: 0 56px 64px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
}
.services-header-text { max-width: 520px; }
.services-header .section-title { margin-bottom: 0; }
.services-header-cta {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Inter', 'IRANSans', sans-serif; font-size: 12px; letter-spacing: 1px;
  color: var(--green); text-decoration: none;
  border: 1px solid var(--gborder); border-radius: 100px;
  padding: 10px 22px; transition: background .2s, transform .2s;
  white-space: nowrap;
}
.services-header-cta:hover { background: var(--gdim); transform: translateX(-2px); }

/* list */
.services-grid {
  max-width: 1200px; margin: 0 auto; padding: 0 56px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.svc-item {
  display: flex; align-items: center; gap: 20px;
  padding: 20px 32px;
  min-height: 110px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
  transition: background .25s;
  cursor: pointer;
}
.svc-item::before {
  content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 2px;
  background: var(--green); transform: scaleY(0); transition: transform .25s ease;
  transform-origin: bottom;
}
.svc-item:hover { background: var(--bg2); }
.svc-item:hover::before { transform: scaleY(1); }
.svc-item:hover .svc-item-arrow { opacity: 1; transform: translateX(0); color: var(--green); }
.svc-item:hover .svc-item-num { color: var(--green); }

.svc-item-num {
  font-family: 'Inter', 'IRANSans', sans-serif; font-size: 11px; font-weight: 600;
  color: rgba(240,242,238,.18); letter-spacing: 1px;
  flex-shrink: 0; padding-top: 3px;
  transition: color .25s;
  min-width: 28px;
}

.svc-item-body { flex: 1; min-width: 0; }
.svc-item-title {
  font-size: 15px; font-weight: 700; margin-bottom: 3px; line-height: 1.3;
}
.svc-item-en {
  font-family: 'Inter', 'IRANSans', sans-serif; font-size: 10px; color: var(--gray);
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px;
}
.svc-item-chips { display: flex; flex-wrap: wrap; gap: 5px; }

.svc-item-thumb {
  flex-shrink: 0; width: 90px;
  align-self: stretch;
  overflow: hidden; background: var(--bg3);
  transition: opacity .25s;
}
.svc-item-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: brightness(.65) saturate(.7); transition: filter .3s;
}
.svc-item:hover .svc-item-thumb img { filter: brightness(.9) saturate(1); }

.svc-item-arrow {
  flex-shrink: 0; font-size: 14px; color: var(--gray);
  opacity: 0; transform: translateX(4px);
  transition: opacity .25s, transform .25s, color .25s;
  padding-top: 2px; font-family: 'Inter', 'IRANSans', sans-serif;
}

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.chip { padding: 4px 12px; border-radius: 100px; font-size: 11px; }
.chip.g { background: var(--gdim); color: var(--green); border: 1px solid var(--gborder); }
.chip.p { background: var(--pdim); color: var(--plite); border: 1px solid rgba(131,86,240,.22); }
.chip.en { font-family: 'Inter', 'IRANSans', sans-serif; font-size: 10px; letter-spacing: .5px; }

/* ═══════════════════════════════
   CLIENTS
═══════════════════════════════ */
#clients { padding: 120px 0 100px; background: var(--bg2); position: relative; overflow: hidden; }
#clients::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 50% at 50% 60%, rgba(62,205,94,.04) 0%, transparent 70%);
}
.clients-head { text-align: center; margin-bottom: 64px; padding: 0 40px; }
.clients-head h2 { font-size: clamp(24px,3.5vw,42px); font-weight: 700; margin-top: 10px; line-height: 1.3; }
.clients-head h2 em { font-style: normal; color: var(--green); }
.clients-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  background: var(--gdim); border: 1px solid var(--gborder); border-radius: 50px;
  padding: 7px 20px; font-size: 13px; color: var(--gray);
}
.clients-badge strong { color: var(--green); font-size: 15px; font-weight: 700; }

.clients-grid {
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: repeat(8,1fr); gap: 12px;
}
.cli-card {
  aspect-ratio: 1/1; background: var(--bg3); border: 1px solid var(--line);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  padding: 18%; cursor: default; position: relative; overflow: hidden;
  transition: border-color .35s, background .35s, transform .35s, box-shadow .35s;
}
.cli-card:hover {
  border-color: rgba(62,205,94,.5); background: rgba(62,205,94,.05);
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 32px rgba(0,0,0,.4), 0 0 0 1px rgba(62,205,94,.2);
}
.cli-card img {
  width: 100%; height: 100%; object-fit: contain;
  filter: brightness(0) invert(1); opacity: .7;
  transition: opacity .35s, transform .35s;
}
.cli-card:hover img { opacity: 1; }

/* Client name tooltip on hover */
.cli-name {
  position: absolute; bottom: 0; right: 0; left: 0;
  background: linear-gradient(to top, rgba(17,19,17,.92) 0%, transparent 100%);
  color: var(--white); font-size: 10px; font-weight: 700;
  text-align: center; padding: 18px 6px 7px;
  border-radius: 0 0 var(--radius) var(--radius);
  opacity: 0; transform: translateY(4px);
  transition: opacity .25s, transform .25s;
  pointer-events: none; letter-spacing: .3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cli-card:hover .cli-name { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════
   WHY
═══════════════════════════════ */
#why { padding: 120px 0; background: var(--bg); }
.why-inner { max-width: 1200px; margin: 0 auto; padding: 0 56px; }
.why-center { text-align: center; margin-bottom: 72px; }

.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.why-card {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 8px;
  padding: 36px 28px; position: relative; overflow: hidden;
  transition: border-color .3s;
}
.why-card:hover { border-color: var(--gborder); }
.why-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--gdim), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.why-card:hover::before { opacity: 1; }
.why-icon {
  width: 48px; height: 48px; background: var(--gdim); border: 1px solid var(--gborder);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--green); transition: all .3s;
}
.why-card:hover .why-icon { background: var(--green); color: var(--bg); box-shadow: 0 0 20px var(--gglow); }
.why-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; line-height: 1.4; }
.why-txt { font-size: 13px; line-height: 1.9; color: var(--gray); }

/* ═══════════════════════════════
   CTA
═══════════════════════════════ */
#cta, #site-cta {
  padding: 120px 0; position: relative; background: var(--bg2);
  overflow: hidden;
}
#cta::before, #site-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(62,205,94,.08), transparent 70%);
  pointer-events: none;
}
/* animated grain lines */
#site-cta::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(62,205,94,.018) 2px,
    rgba(62,205,94,.018) 3px
  );
  background-size: 100% 6px;
}
.cta-inner {
  max-width: 720px; margin: 0 auto; padding: 0 40px;
  text-align: center; position: relative; z-index: 2;
}

/* ── CTA stagger reveal ── */
.cta-inner .cta-label,
.cta-inner .cta-title,
.cta-inner .cta-sub,
.cta-inner .cta-acts,
.cta-inner .cta-meta { opacity: 0; transform: translateY(26px); }

.cta-inner.in .cta-label { animation: fadeUp .55s .00s cubic-bezier(.23,1,.32,1) forwards; }
.cta-inner.in .cta-title { animation: fadeUp .65s .12s cubic-bezier(.23,1,.32,1) forwards; }
.cta-inner.in .cta-sub   { animation: fadeUp .65s .26s cubic-bezier(.23,1,.32,1) forwards; }
.cta-inner.in .cta-acts  { animation: fadeUp .65s .40s cubic-bezier(.23,1,.32,1) forwards; }
.cta-inner.in .cta-meta  { animation: fadeUp .65s .56s cubic-bezier(.23,1,.32,1) forwards; }

.cta-label { font-family: 'Inter', 'IRANSans', sans-serif; font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: var(--green); margin-bottom: 22px; }
.cta-title { font-size: clamp(28px,4vw,52px); font-weight: 700; line-height: 1.2; margin-bottom: 22px; }
.cta-title span { color: var(--green); }
.cta-sub { font-size: 15px; color: var(--gray); line-height: 2; margin-bottom: 44px; }
.cta-acts { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-acts .btn-primary,
.cta-acts .btn-secondary { min-width: 220px; justify-content: center; }
.cta-meta { margin-top: 36px; display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.cmeta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray); }
.cmeta svg { color: var(--green); flex-shrink: 0; }

/* ═══════════════════════════════
   FOOTER
═══════════════════════════════ */
/* ═══════════════════════════════
   FOOTER
═══════════════════════════════ */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--line);
  position: relative; overflow: hidden;
}
footer::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(62,205,94,.05), transparent);
}

.foot-gradient-line {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--green) 40%, var(--purple) 70%, transparent 100%);
  /* animate the gradient width on reveal */
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 1.2s cubic-bezier(.23,1,.32,1);
}
footer.foot-visible .foot-gradient-line { transform: scaleX(1); }

/* ── foot cols stagger ── */
.foot-col-rv {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.23,1,.32,1), transform .7s cubic-bezier(.23,1,.32,1);
}
footer.foot-visible .foot-col-rv:nth-child(1) { opacity:1; transform:none; transition-delay:.05s; }
footer.foot-visible .foot-col-rv:nth-child(2) { opacity:1; transform:none; transition-delay:.17s; }
footer.foot-visible .foot-col-rv:nth-child(3) { opacity:1; transform:none; transition-delay:.29s; }
footer.foot-visible .foot-col-rv:nth-child(4) { opacity:1; transform:none; transition-delay:.40s; }

/* bottom bar slide */
.foot-bottom {
  opacity: 0; transform: translateY(12px);
  transition: opacity .6s .55s cubic-bezier(.23,1,.32,1), transform .6s .55s cubic-bezier(.23,1,.32,1);
}
footer.foot-visible .foot-bottom { opacity: 1; transform: none; }

.foot-main {
  max-width: 1200px; margin: 0 auto; padding: 72px 56px 56px;
  display: grid;
  grid-template-columns: 1.8fr 1.2fr 1fr auto;
  gap: 48px;
  position: relative; z-index: 2;
}

/* Brand col */
.foot-brand {}
.foot-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.foot-logo-mark { width: 40px; height: 40px; animation: logoPulse 4s ease-in-out infinite; }
.foot-logo-name {
  font-family: 'Inter', 'IRANSans', sans-serif; font-size: 22px; font-weight: 800;
  color: #fff; letter-spacing: 5px;
}
.foot-tag {
  font-size: 13px; color: var(--gray); line-height: 2;
  margin-bottom: 28px; white-space: pre-line;
}
.foot-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.foot-soc {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray); text-decoration: none;
  transition: color .25s, border-color .25s, background .25s;
}
.foot-soc:hover { color: var(--green); border-color: var(--gborder); background: var(--gdim); }
.foot-soc svg { width: 17px; height: 17px; }

/* Contact col */
.foot-col-title {
  font-family: 'Inter', 'IRANSans', sans-serif; font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gray);
  margin-bottom: 20px;
}
.foot-contact-item {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 14px; color: var(--muted); font-size: 13px; line-height: 1.7;
  text-decoration: none;
}
.foot-contact-item:hover { color: var(--white); }
.foot-contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--green); opacity: .7; }
.foot-contact-item a {
    color: #26c76b;
}
/* Links col */
.foot-links { display: flex; flex-direction: column; gap: 12px; }
.foot-link {
  font-size: 13px; color: var(--muted); text-decoration: none;
  transition: color .2s; display: flex; align-items: center; gap: 6px;
}
.foot-link:hover { color: var(--green); }
.foot-link::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--green); opacity: 0; transition: opacity .2s; flex-shrink: 0;
}
.foot-link:hover::before { opacity: 1; }

/* Enamad col */
.foot-enamad { display: flex; flex-direction: column; gap: 14px; }
.foot-enamad-badge {
  width: 100px; min-height: 120px;
  border: 1px solid var(--line); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg3); overflow: hidden; text-decoration: none;
  transition: border-color .2s;
}
.foot-enamad-badge:hover { border-color: var(--gborder); }
.foot-enamad-badge img { width: 100%; height: 100%; object-fit: contain; display: block; }
.foot-enamad-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--gray); font-size: 10px; font-family: 'Inter', 'IRANSans', sans-serif;
  letter-spacing: 1px; text-align: center; padding: 12px;
}

/* Bottom bar */
.foot-bottom {
  border-top: 1px solid var(--line);
  max-width: 1200px; margin: 0 auto;
  padding: 20px 56px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 2;
}
.foot-copy {
  font-family: 'Inter', 'IRANSans', sans-serif; font-size: 11px;
  color: var(--gray); letter-spacing: 1.5px;
}
.foot-bottom-links { display: flex; gap: 24px; }
.foot-bottom-links a {
  font-size: 12px; color: var(--gray); text-decoration: none; transition: color .2s;
}
.foot-bottom-links a:hover { color: var(--green); }

/* ═══════════════════════════════
   MODAL
═══════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10,12,10,.88); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-overlay.open .modal-box { transform: translateY(0) scale(1); }

.modal-box {
  background: var(--bg2); border: 1px solid var(--gborder);
  border-radius: 24px; width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  position: relative; padding: 48px;
  transform: translateY(20px) scale(.97);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.modal-box::before {
  content: ''; position: absolute; top: 0; right: 0; left: 0;
  height: 2px; background: linear-gradient(90deg, var(--green), var(--purple)); border-radius: 24px 24px 0 0;
}

.modal-close {
  position: absolute; top: 20px; left: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--line);
  color: var(--gray); font-size: 18px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.modal-close:hover { border-color: var(--green); color: var(--green); }

.modal-header { margin-bottom: 36px; }
.modal-label { font-family: 'Inter', 'IRANSans', sans-serif; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.modal-title { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.modal-sub { font-size: 14px; color: var(--gray); line-height: 1.7; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-col-full { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 13px; font-weight: 700; color: var(--muted); }
.form-group label span { color: var(--green); margin-right: 2px; }

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'IRANSans', sans-serif;
  background: var(--bg3); border: 1px solid var(--line);
  color: var(--white); border-radius: 10px;
  padding: 12px 16px; font-size: 14px; direction: rtl;
  transition: border-color .2s, box-shadow .2s;
  outline: none; width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(62,205,94,.12);
}
.form-group select option { background: var(--bg3); }
.form-group textarea { resize: vertical; min-height: 100px; }

.form-submit {
  margin-top: 28px; width: 100%;
  font-family: 'IRANSans', sans-serif;
  padding: 16px; background: var(--green); color: var(--bg);
  border: none; border-radius: 100px; font-size: 16px; font-weight: 700;
  cursor: pointer; transition: all .22s; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.form-submit:hover { background: var(--green2); box-shadow: 0 8px 24px rgba(62,205,94,.3); }
.form-submit:disabled { opacity: .5; cursor: not-allowed; }

.form-success {
  display: none; text-align: center; padding: 40px 20px;
}
.form-success.show { display: block; }
.success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--gdim); border: 1px solid var(--gborder);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; color: var(--green);
}
.form-success h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.form-success p { font-size: 14px; color: var(--gray); line-height: 1.8; }

/* ═══════════════════════════════
   REVEAL ANIMATIONS
═══════════════════════════════ */
.rv { opacity: 0; transform: translateY(32px); transition: opacity .75s ease, transform .75s ease; }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .12s; }
.rv.d2 { transition-delay: .24s; }
.rv.d3 { transition-delay: .36s; }
.rv.from-right { transform: translateX(40px); }
.rv.from-right.in { transform: none; }

/* ═══════════════════════════════
   KEYFRAMES
═══════════════════════════════ */
@keyframes fadeUp   { from { opacity: 0; transform: translateY(28px) } to { opacity: 1; transform: none } }
@keyframes pulse    { 0%,100% { opacity: 1; transform: scale(1) } 50% { opacity: .4; transform: scale(.65) } }
@keyframes shimmer  { to { background-position: 200% center } }
@keyframes marqueeScroll { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes scrollDown {
  0%   { transform: translateY(0);   opacity: 1; }
  80%  { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0);   opacity: 0; }
}
@keyframes logoPulse {
  0%,100% { filter: drop-shadow(0 0 8px rgba(255,255,255,.15)); }
  50%     { filter: drop-shadow(0 0 20px rgba(62,205,94,.4)); }
}

/* ═══════════════════════════════
   RESPONSIVE
═══════════════════════════════ */
@media (max-width: 1100px) {
  .clients-grid { grid-template-columns: repeat(6,1fr); }
}
@media (max-width: 900px) {
  nav { padding: 14px 20px; }
  nav.scrolled { padding: 10px 20px; }
  .nav-links, .btn-cta { display: none; }
  .nav-ham { display: flex; }
  nav { direction: ltr; padding: 14px 20px; }
  nav.scrolled { padding: 10px 20px; }
  .services-grid { grid-template-columns: 1fr; padding: 0 20px; }
  .services-header { padding: 0 20px 48px; flex-direction: column; align-items: flex-start; gap: 20px; }
  .services-header-cta { align-self: flex-start; }
  .svc-item { padding: 22px 20px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .clients-grid { grid-template-columns: repeat(4,1fr); gap: 10px; padding: 0 20px; }
  .foot-main { grid-template-columns: 1fr; gap: 32px; padding: 48px 24px 40px; text-align: center; }
  .foot-brand { display: flex; flex-direction: column; align-items: center; }
  .foot-logo { justify-content: center; }
  .foot-socials { justify-content: center; }
  .foot-enamad { grid-column: 1/-1; flex-direction: row; align-items: center; justify-content: center; }
  .foot-col-title { text-align: center; }
  .foot-contact-item { justify-content: center; }
  .foot-links { align-items: center; }
  .foot-bottom { padding: 16px 24px; flex-direction: column; gap: 10px; text-align: center; }
  .foot-bottom-links { justify-content: center; }
  .cta-inner { padding: 0 20px; }
  #hero { padding: 110px 24px 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-right { display: none; }
  .hero-stats-row { gap: 0; }
  .hero-stat-item { padding-right: 20px; }
  .hero-stat-sep { margin-right: 20px; }
  .hero-stat-num { font-size: 28px; }
  .modal-box { padding: 32px 24px; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(3,1fr); gap: 8px; padding: 0 14px; }
  .foot-main { padding: 36px 20px 32px; }
  .foot-enamad { flex-direction: column; }
  .foot-enamad { flex-direction: column; }
  body { cursor: auto; }
  #c-ring, #c-ring-2, #c-dot { display: none; }
}

/* ── SKELETON LOADING ── */
@keyframes skeletonShimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,.04) 25%,
    rgba(255,255,255,.09) 50%,
    rgba(255,255,255,.04) 75%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.6s ease-in-out infinite;
  border-radius: 8px;
  color: transparent !important;
  pointer-events: none;
  user-select: none;
}
.skeleton * { visibility: hidden !important; }

/* Card skeleton */
.sk-card {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.sk-img  { width: 100%; aspect-ratio: 4/3; }
.sk-line { height: 12px; margin: 12px 16px 6px; border-radius: 6px; }
.sk-line.short { width: 55%; }

/* Client logo skeleton */
.sk-logo {
  width: 100%;
  aspect-ratio: 3/2;
  border-radius: 10px;
}

/* Service card skeleton */
.sk-svc {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sk-svc .sk-icon { width: 44px; height: 44px; border-radius: 10px; }
.sk-svc .sk-h    { height: 18px; width: 60%; border-radius: 6px; }
.sk-svc .sk-p    { height: 10px; border-radius: 5px; }
.sk-svc .sk-p.w80 { width: 80%; }
.sk-svc .sk-p.w65 { width: 65%; }
