/*
Theme Name: ZhirAI
Theme URI: https://zhirai.ir
Author: ZhirAI
Description: قالب فارسی مدرن برای خدمات برنامه‌نویسی و هوش مصنوعی
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: zhirai
*/

:root {
  --bg: #07100e;
  --bg-soft: #0b1714;
  --surface: rgba(18, 35, 30, .72);
  --surface-solid: #11231e;
  --text: #f4f7f5;
  --muted: #aab8b3;
  --line: rgba(255, 255, 255, .1);
  --lime: #c6ff4a;
  --lime-dark: #8fcb13;
  --mint: #64f0bd;
  --orange: #ff9f5a;
  --radius: 26px;
  --shadow: 0 24px 80px rgba(0, 0, 0, .28);
  --font: "Vazirmatn", Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  direction: rtl;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(100, 240, 189, .09), transparent 26rem),
    radial-gradient(circle at 90% 35%, rgba(198, 255, 74, .06), transparent 24rem),
    var(--bg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  content: "";
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 110px 0; }
.skip-link { position: fixed; top: -100px; right: 20px; z-index: 999; padding: 10px 16px; color: #07100e; background: var(--lime); }
.skip-link:focus { top: 20px; }

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid transparent;
  transition: .3s ease;
}
.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(7, 16, 14, .86);
  box-shadow: 0 10px 40px rgba(0,0,0,.18);
  backdrop-filter: blur(18px);
}
.nav-wrap { display: flex; min-height: 86px; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 900; letter-spacing: -.7px; }
.brand-mark {
  position: relative;
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(198,255,74,.5);
  border-radius: 13px;
  color: var(--bg);
  background: var(--lime);
  font-size: 19px;
}
.brand-mark::after { position: absolute; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.5); content: ""; filter: blur(9px); transform: translate(-12px,-12px); }
.brand em { color: var(--lime); font-style: normal; }
.brand-logo { display: block; width: auto; max-width: 220px; height: 52px; object-fit: contain; }
.main-menu, .main-menu ul { display: flex; margin: 0; padding: 0; align-items: center; gap: 32px; list-style: none; }
.main-menu a { color: #d4ddd9; font-size: 14px; transition: .2s; }
.main-menu a:hover { color: var(--lime); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn {
  display: inline-flex;
  min-height: 52px;
  padding: 0 23px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 800;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #0a120f; background: var(--lime); box-shadow: 0 10px 35px rgba(198,255,74,.13); }
.btn-primary:hover { box-shadow: 0 13px 38px rgba(198,255,74,.25); }
.btn-outline { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.025); }
.btn-outline:hover { border-color: rgba(198,255,74,.4); background: rgba(198,255,74,.05); }
.menu-toggle { display: none; width: 45px; height: 45px; padding: 0; border: 1px solid var(--line); border-radius: 13px; color: white; background: transparent; }

.hero { position: relative; min-height: 820px; padding: 170px 0 90px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 70px; }
.eyebrow {
  display: inline-flex;
  padding: 6px 13px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(198,255,74,.2);
  border-radius: 99px;
  color: #dfffa0;
  background: rgba(198,255,74,.07);
  font-size: 12px;
  font-weight: 800;
}
.eyebrow::before { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 14px var(--lime); content: ""; }
.hero h1 { max-width: 680px; margin: 24px 0; font-size: clamp(46px, 6vw, 82px); line-height: 1.22; letter-spacing: -3.8px; }
.hero h1 span { color: var(--lime); }
.hero-copy { max-width: 630px; margin: 0 0 34px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-row { display: flex; margin-top: 42px; align-items: center; gap: 16px; color: var(--muted); font-size: 13px; }
.avatars { display: flex; direction: ltr; }
.avatar { display: grid; width: 36px; height: 36px; margin-left: -8px; place-items: center; border: 2px solid var(--bg); border-radius: 50%; color: var(--bg); background: var(--mint); font-size: 11px; font-weight: 900; }
.avatar:nth-child(2) { background: var(--orange); }
.avatar:nth-child(3) { background: var(--lime); }
.stars { color: var(--lime); letter-spacing: 1px; }

.ai-orbit { position: relative; display: grid; min-height: 520px; place-items: center; }
.orbit-ring { position: absolute; width: 440px; height: 440px; border: 1px solid rgba(198,255,74,.14); border-radius: 50%; animation: spin 24s linear infinite; }
.orbit-ring::before, .orbit-ring::after { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 18px var(--lime); content: ""; }
.orbit-ring::before { top: 46px; left: 62px; }
.orbit-ring::after { right: -5px; top: 50%; background: var(--mint); }
.orbit-ring.small { width: 330px; height: 330px; border-style: dashed; animation-direction: reverse; animation-duration: 18s; }
.ai-card {
  position: relative;
  z-index: 3;
  width: min(360px, 90%);
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(24,49,41,.92), rgba(10,24,20,.92));
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}
.ai-card::before { position: absolute; inset: 0; background: linear-gradient(120deg, transparent 20%, rgba(198,255,74,.08), transparent 70%); content: ""; }
.ai-top { display: flex; align-items: center; justify-content: space-between; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #53615c; }
.ai-badge { padding: 4px 9px; border-radius: 8px; color: var(--lime); background: rgba(198,255,74,.08); font-size: 10px; }
.brain {
  display: grid;
  width: 135px;
  height: 135px;
  margin: 45px auto 35px;
  place-items: center;
  border: 1px solid rgba(198,255,74,.24);
  border-radius: 43% 57% 52% 48%;
  color: var(--lime);
  background: radial-gradient(circle, rgba(198,255,74,.18), transparent 68%);
  box-shadow: inset 0 0 35px rgba(198,255,74,.1), 0 0 50px rgba(198,255,74,.09);
  font-size: 48px;
  animation: morph 5s ease-in-out infinite;
}
.code-lines { display: grid; gap: 10px; }
.code-lines i { height: 8px; border-radius: 10px; background: #233b33; }
.code-lines i:nth-child(1) { width: 75%; background: linear-gradient(90deg, var(--mint), #233b33 62%); }
.code-lines i:nth-child(2) { width: 92%; background: linear-gradient(90deg, var(--orange), #233b33 45%); }
.code-lines i:nth-child(3) { width: 61%; background: linear-gradient(90deg, var(--lime), #233b33 53%); }
.float-chip { position: absolute; z-index: 5; display: flex; padding: 11px 14px; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 13px; color: #dbe7e2; background: rgba(12,27,22,.86); box-shadow: var(--shadow); backdrop-filter: blur(10px); font-size: 11px; font-weight: 700; }
.float-chip b { color: var(--lime); font-size: 15px; }
.chip-one { top: 22%; right: 0; animation: float 5s ease-in-out infinite; }
.chip-two { bottom: 20%; left: -10px; animation: float 6s 1s ease-in-out infinite; }

.logos { padding: 22px 0 46px; border-bottom: 1px solid var(--line); }
.logos p { margin: 0 0 22px; color: #70817b; text-align: center; font-size: 12px; }
.logo-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; color: #71847d; }
.logo-list span { text-align: center; font-size: 17px; font-weight: 900; filter: grayscale(1); transition: .2s; }
.logo-list span:hover { color: var(--lime); }

.section-head { display: flex; margin-bottom: 50px; align-items: end; justify-content: space-between; gap: 30px; }
.section-head h2 { max-width: 650px; margin: 16px 0 0; font-size: clamp(34px, 4vw, 54px); line-height: 1.35; letter-spacing: -2px; }
.section-head p { max-width: 410px; margin: 0; color: var(--muted); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  position: relative;
  min-height: 320px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
  transition: .3s ease;
}
.service-card:hover { border-color: rgba(198,255,74,.3); transform: translateY(-6px); }
.service-card::after { position: absolute; width: 160px; height: 160px; right: -80px; bottom: -90px; border-radius: 50%; background: var(--glow, var(--lime)); content: ""; filter: blur(75px); opacity: .1; }
.service-card.featured { grid-column: span 2; background: linear-gradient(130deg, #182d27, #0d1c18); }
.icon-box { display: grid; width: 53px; height: 53px; margin-bottom: 55px; place-items: center; border: 1px solid rgba(198,255,74,.18); border-radius: 16px; color: var(--lime); background: rgba(198,255,74,.06); font-size: 23px; }
.service-card h3 { margin: 0 0 10px; font-size: 21px; }
.service-card p { margin: 0; color: var(--muted); font-size: 14px; }
.service-link { display: inline-flex; margin-top: 24px; align-items: center; gap: 7px; color: var(--lime); font-size: 13px; font-weight: 800; }

.process { overflow: hidden; background: #0a1512; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.steps::before { position: absolute; top: 29px; right: 12%; left: 12%; height: 1px; background: linear-gradient(90deg, transparent, rgba(198,255,74,.45), transparent); content: ""; }
.step { position: relative; z-index: 2; text-align: center; }
.step-num { display: grid; width: 60px; height: 60px; margin: 0 auto 23px; place-items: center; border: 1px solid rgba(198,255,74,.25); border-radius: 50%; color: var(--lime); background: #0a1512; font-weight: 900; }
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 13px; }

.projects-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.project-card { position: relative; min-height: 500px; overflow: hidden; border: 1px solid var(--line); border-radius: 30px; background: #10211c; }
.project-card.small { min-height: 500px; }
.project-visual { position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(198,255,74,.18), transparent 35%), linear-gradient(145deg,#17382e,#0a1613); }
.project-card.small .project-visual { background: radial-gradient(circle at 70% 20%, rgba(255,159,90,.21), transparent 32%), linear-gradient(145deg,#2b1c18,#0e1613); }
.mock-window { position: absolute; top: 70px; right: 9%; width: 82%; padding: 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; background: rgba(5,12,10,.63); box-shadow: 0 30px 70px rgba(0,0,0,.35); transform: perspective(900px) rotateY(-7deg) rotateX(3deg); backdrop-filter: blur(7px); }
.mock-bar { width: 28%; height: 7px; margin-bottom: 12px; border-radius: 10px; background: rgba(255,255,255,.17); }
.mock-content { display: grid; grid-template-columns: 1fr .7fr; gap: 10px; }
.mock-content i { display: block; height: 220px; border-radius: 12px; background: linear-gradient(150deg, rgba(198,255,74,.18), rgba(255,255,255,.03)); }
.mock-content i:last-child { background: linear-gradient(150deg, rgba(100,240,189,.16), rgba(255,255,255,.02)); }
.project-info { position: absolute; z-index: 3; right: 28px; bottom: 28px; left: 28px; display: flex; padding: 22px; align-items: end; justify-content: space-between; gap: 15px; border: 1px solid var(--line); border-radius: 19px; background: rgba(7,16,14,.78); backdrop-filter: blur(16px); }
.project-info h3 { margin: 0 0 5px; font-size: 20px; }
.project-info p { margin: 0; color: var(--muted); font-size: 12px; }
.circle-link { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #07100e; background: var(--lime); font-size: 20px; }

.stats { display: grid; padding: 40px; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 30px; background: rgba(255,255,255,.025); }
.stat { padding: 10px 25px; border-left: 1px solid var(--line); }
.stat:last-child { border: 0; }
.stat b { display: block; color: var(--lime); font-size: 42px; line-height: 1.4; }
.stat span { color: var(--muted); font-size: 13px; }

.cta-box { position: relative; padding: 75px 60px; overflow: hidden; border-radius: 34px; color: #07100e; background: var(--lime); }
.cta-box::before { position: absolute; width: 420px; height: 420px; top: -240px; left: -50px; border: 1px solid rgba(7,16,14,.12); border-radius: 50%; box-shadow: 0 0 0 50px rgba(7,16,14,.04), 0 0 0 100px rgba(7,16,14,.025); content: ""; }
.cta-box h2 { position: relative; max-width: 720px; margin: 0 0 15px; font-size: clamp(34px,4vw,56px); line-height: 1.3; letter-spacing: -2px; }
.cta-box p { position: relative; max-width: 600px; margin: 0 0 30px; color: rgba(7,16,14,.7); }
.cta-box .btn { position: relative; color: white; background: #07100e; }

.site-footer { padding: 75px 0 25px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 45px; }
.footer-grid.has-enamad { grid-template-columns: 1.35fr repeat(3, 1fr) auto; }
.footer-brand p { max-width: 370px; color: var(--muted); font-size: 14px; }
.footer-col h4 { margin: 0 0 20px; font-size: 14px; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin-bottom: 9px; color: var(--muted); font-size: 13px; }
.footer-col a:hover { color: var(--lime); }
.footer-bottom { display: flex; margin-top: 60px; padding-top: 22px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: #71817b; font-size: 12px; }
.socials { display: flex; gap: 8px; direction: ltr; }
.socials a { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.socials a:hover { border-color: var(--lime); color: var(--lime); }
.footer-trust h4 { margin: 0 0 20px; font-size: 14px; }
.enamad-badge {
  display: grid;
  width: 116px;
  min-height: 132px;
  padding: 9px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  transition: border-color .2s, transform .2s, background .2s;
}
.enamad-badge:hover { border-color: rgba(198,255,74,.42); background: rgba(198,255,74,.05); transform: translateY(-3px); }
.enamad-badge img { display: block; max-width: 100%; max-height: 118px; object-fit: contain; }
.enamad-code a { display: grid; width: 100%; min-height: 112px; place-items: center; }
.enamad-code img { width: auto; height: auto; }
.enamad-placeholder { display: grid; min-height: 112px; place-items: center; color: var(--text); text-align: center; }
.enamad-placeholder strong { display: grid; width: 46px; height: 46px; place-items: center; border: 2px solid var(--lime); border-radius: 50% 50% 46% 54%; color: var(--lime); font-family: Arial, sans-serif; font-size: 27px; line-height: 1; }
.enamad-placeholder small { color: var(--muted); font-size: 10px; line-height: 1.65; }

.page-main { min-height: 70vh; padding: 150px 0 90px; }
.entry-card { padding: 35px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.entry-card + .entry-card { margin-top: 20px; }
.entry-card h2, .entry-title { margin-top: 0; }
.entry-meta { color: var(--muted); font-size: 12px; }
.entry-content { color: #d5dfdb; }
.pagination { margin-top: 35px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes morph { 50% { border-radius: 58% 42% 40% 60%; transform: scale(1.04) rotate(4deg); } }
@keyframes float { 50% { transform: translateY(-12px); } }

@media (max-width: 980px) {
  .main-menu { position: fixed; top: 75px; right: 20px; left: 20px; display: none; padding: 25px; border: 1px solid var(--line); border-radius: 20px; background: rgba(7,16,14,.97); box-shadow: var(--shadow); }
  .main-menu.is-open, .main-menu ul { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .menu-toggle { display: grid; place-items: center; }
  .header-actions .btn { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 140px; }
  .hero-copy-area { text-align: center; }
  .hero h1, .hero-copy { margin-right: auto; margin-left: auto; }
  .hero-actions, .trust-row { justify-content: center; }
  .ai-orbit { min-height: 500px; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .service-card.featured { grid-column: auto; }
  .projects-grid { grid-template-columns: 1fr; }
  .footer-grid, .footer-grid.has-enamad { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .footer-trust { grid-column: auto; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 78px 0; }
  .nav-wrap { min-height: 74px; }
  .hero { min-height: auto; padding-top: 120px; }
  .hero h1 { font-size: 43px; letter-spacing: -2.3px; }
  .hero-copy { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  .trust-row { flex-wrap: wrap; }
  .ai-orbit { min-height: 410px; transform: scale(.86); }
  .orbit-ring { width: 390px; height: 390px; }
  .logo-list { grid-template-columns: repeat(3,1fr); row-gap: 28px; }
  .section-head { display: block; }
  .section-head h2 { margin-bottom: 17px; font-size: 36px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 285px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 45px; }
  .steps::before { display: none; }
  .project-card, .project-card.small { min-height: 430px; }
  .mock-content i { height: 175px; }
  .project-info { right: 15px; bottom: 15px; left: 15px; padding: 16px; }
  .stats { padding: 20px; grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: 0; }
  .stat b { font-size: 34px; }
  .cta-box { padding: 50px 25px; }
  .footer-grid, .footer-grid.has-enamad { grid-template-columns: 1fr 1fr; gap: 35px 20px; }
  .footer-brand { grid-column: 1/-1; }
  .footer-trust { grid-column: 1/-1; }
  .footer-bottom { align-items: start; flex-direction: column; gap: 17px; }
}
