body,
body.light-theme {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.menu-toggle,
body {
  color: var(--text);
}
.brand-logo,
.services-hero {
  isolation: isolate;
  overflow: hidden;
}
.brand-logo,
.cta-box,
.hero-bg-image,
.hero-panel,
.service-card,
.services-hero,
body.menu-open {
  overflow: hidden;
}
.brand-logo,
.scroll-top,
.service-gif {
  place-items: center;
}
.btn,
.menu-toggle,
.scroll-top {
  cursor: pointer;
}
@font-face {
  font-family: MyFont;
  src: url("../fonts/Vazir.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0600-06FF;
}
:root {
  --bg: #07111f;
  --bg-2: #0b1320;
  --bg-3: #111c2e;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.1);
  --text: #f8fafc;
  --muted: #aeb8c5;
  --border: rgba(255, 255, 255, 0.12);
  --primary: #f6b800;
  --primary-2: #ff7a1a;
  --danger-stripe: repeating-linear-gradient(
    135deg,
    rgba(246, 184, 0, 0.95) 0 12px,
    rgba(7, 17, 31, 0.95) 12px 24px
  );
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: 1180px;
  --header-height: 84px;
  --transition: 250ms ease;
}
.btn,
.main-nav a,
.main-nav a::after,
.site-header,
.stat-card {
  transition: var(--transition);
}
body.light-theme {
  --bg: #f5f7fb;
  --bg-2: #ffffff;
  --bg-3: #edf2f7;
  --surface: rgba(7, 17, 31, 0.055);
  --surface-2: rgba(7, 17, 31, 0.08);
  --text: #07111f;
  --muted: #526071;
  --border: rgba(7, 17, 31, 0.13);
  --shadow: 0 24px 70px rgba(7, 17, 31, 0.13);
  background-image:
    linear-gradient(
      to bottom,
      rgba(245, 247, 251, 0.91),
      rgba(245, 247, 251, 0.95)
    ),
    url("../img/backgriund.webp");
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}
body {
  min-height: 100vh;
  font-family: MyFont, system-ui, sans-serif;
  line-height: 1.9;
  overflow-x: hidden;
  position: relative;
  background-image:
    linear-gradient(to bottom, rgba(7, 17, 31, 0.92), rgba(7, 17, 31, 0.96)),
    url("../img/backgriund.webp");
}
.page-cta,
.section,
.section.alt,
.services-hero {
  background-color: transparent !important;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}
.site-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  z-index: 1000;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(7, 17, 31, 0.78);
  border-bottom: 1px solid var(--border);
}
body.light-theme .site-header {
  background: rgba(255, 255, 255, 0.78);
}
.gradient-text,
.main-nav a::after {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}
.site-header.scrolled {
  height: 74px;
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.18);
}
.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}
.brand-title {
  display: grid;
  gap: 0;
}
.main-nav,
.nav-actions {
  display: flex;
  align-items: center;
}
.brand-title strong {
  font-size: 1rem;
  font-weight: 900;
  color: var(--text);
}
.brand-title span {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: -4px;
}
.main-nav {
  gap: 28px;
}
.main-nav a {
  position: relative;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  transform: scaleX(0);
}
.main-nav a.active,
.main-nav a:hover {
  color: var(--primary);
}
.main-nav a.active::after,
.main-nav a:hover::after,
.service-card:hover::after {
  transform: scaleX(1);
}
.nav-actions {
  gap: 14px;
}
.menu-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
}
.services-hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: grid;
  align-items: center;
  padding: 92px 0 70px;
  background:
    radial-gradient(circle at 20% 20%, rgba(246, 184, 0, 0.1), transparent 35%),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 122, 26, 0.08),
      transparent 35%
    );
}
.hero-bg-image,
.hero-bg-image::after {
  display: none !important;
}
.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: -4;
}
.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.08);
}
.hero-bg-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(7, 17, 31, 0.97),
    rgba(7, 17, 31, 0.74),
    rgba(7, 17, 31, 0.94)
  );
}
.services-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.32;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 88%);
}
.hero-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 24px rgba(246, 184, 0, 0.75);
}
.btn:hover,
.hero-panel {
  box-shadow: var(--shadow);
}
h1 {
  max-width: 760px;
  font-size: clamp(2.5rem, 5vw, 5.3rem);
  line-height: 1.25;
  font-weight: 950;
  margin-bottom: 22px;
}
.gradient-text {
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-copy {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 600;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 900;
}
.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: #07111f;
  border-color: transparent;
}
.btn-soft {
  background: var(--surface);
  color: var(--text);
}
.btn:hover {
  transform: translateY(-2px);
}
.hero-panel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(
    145deg,
    var(--surface-2),
    rgba(255, 255, 255, 0.025)
  );
  min-height: 460px;
  padding: 28px;
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(246, 184, 0, 0.18), transparent 35%),
    var(--danger-stripe);
  opacity: 0.08;
  pointer-events: none;
}
.hero-panel-gif {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 118px;
  height: 118px;
  opacity: 0.9;
  filter: drop-shadow(0 18px 34px rgba(246, 184, 0, 0.25));
  animation: 4.5s ease-in-out infinite float;
}
.connected-services,
.service-card,
.service-card h3,
.service-card p,
.service-gif,
.specialty li,
.stats-grid {
  position: relative;
}
.hero-panel-gif img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  height: 100%;
  align-content: end;
  z-index: 1;
}
.stat-card {
  min-height: 132px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(7, 17, 31, 0.58);
  backdrop-filter: blur(12px);
  padding: 20px;
}
.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(246, 184, 0, 0.35);
}
.stat-card strong {
  display: block;
  color: var(--primary);
  font-size: 2rem;
  font-weight: 950;
  line-height: 1.2;
}
.stat-card span {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}
.section {
  padding: 86px 0;
  background: var(--bg);
}
.section.alt {
  background: var(--bg-2);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 1.35;
  font-weight: 950;
}
.section-head p {
  max-width: 560px;
  color: var(--muted);
  font-weight: 600;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.service-card {
  z-index: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.075),
      rgba(255, 255, 255, 0.025)
    ),
    var(--surface);
  padding: 22px;
  min-height: 250px;
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}
.service-card::after,
.service-card::before,
.service-gif {
  transition: var(--transition);
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0, rgba(246, 184, 0, 0.22), transparent 38%),
    linear-gradient(180deg, rgba(246, 184, 0, 0.12), transparent 42%);
  opacity: 0;
  pointer-events: none;
}
.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 22px;
  left: 22px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transform: scaleX(0);
  transform-origin: center;
}
.project-row:hover,
.service-card:hover,
.specialty:hover {
  background: var(--surface-2);
}
.service-card:hover {
  transform: translateY(-9px);
  border-color: rgba(246, 184, 0, 0.44);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(246, 184, 0, 0.08);
}
.service-gif {
  z-index: 1;
  width: 64px;
  height: 64px;
  display: grid;
  margin-bottom: 16px;
  border-radius: 18px;
  background: rgba(246, 184, 0, 0.1);
  border: 1px solid rgba(246, 184, 0, 0.18);
}
.project-row,
.specialty {
  border: 1px solid var(--border);
}
.service-gif img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.service-card:hover .service-gif {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 18px 38px rgba(246, 184, 0, 0.2);
}
.service-card h3 {
  z-index: 1;
  font-size: 1.12rem;
  font-weight: 950;
  margin-bottom: 8px;
}
.service-card p {
  z-index: 1;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}
.specialties {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.specialty {
  border-radius: var(--radius-lg);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.02)
    ),
    var(--surface);
  padding: 26px;
  transition: var(--transition);
}
.cert-item,
.project-row {
  background: var(--surface);
  transition: var(--transition);
}
.specialty:hover {
  transform: translateY(-6px);
  border-color: rgba(246, 184, 0, 0.35);
}
.specialty-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.specialty-top img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(246, 184, 0, 0.15));
}
.specialty h3 {
  font-size: 1.24rem;
  font-weight: 950;
}
.specialty ul {
  list-style: none;
  display: grid;
  gap: 10px;
}
.specialty li {
  padding-right: 20px;
  color: var(--muted);
  font-weight: 700;
}
.specialty li::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
}
.projects-timeline {
  display: grid;
  gap: 16px;
}
.project-row {
  display: grid;
  grid-template-columns: 220px 1fr 180px;
  gap: 18px;
  align-items: center;
  border-radius: var(--radius-md);
  padding: 18px;
}
.project-row:hover {
  transform: translateY(-4px);
  border-color: rgba(246, 184, 0, 0.32);
}
.project-row strong {
  color: var(--primary);
  font-size: 1.05rem;
}
.advantage-highlight p,
.project-row p,
.project-row span {
  color: var(--muted);
  font-weight: 700;
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.cert-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-weight: 850;
}
.advantage-item:hover,
.cert-item:hover {
  transform: translateY(-4px);
  border-color: rgba(246, 184, 0, 0.35);
  background: var(--surface-2);
}
.cert-item i {
  color: var(--primary);
  flex: 0 0 auto;
}
.advantages {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  align-items: stretch;
}
.advantage-highlight {
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(246, 184, 0, 0.16), rgba(255, 122, 26, 0.08)),
    var(--bg-3);
  border: 1px solid rgba(246, 184, 0, 0.25);
  padding: 34px;
}
.advantage-highlight h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.35;
  margin-bottom: 14px;
}
.advantage-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.advantage-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 18px;
  font-weight: 850;
  transition: var(--transition);
}
.page-cta {
  padding: 70px 0 88px;
  background: var(--bg-2);
}
.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background:
    linear-gradient(90deg, rgba(246, 184, 0, 0.16), transparent), var(--surface);
  padding: 32px;
}
.cta-box h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 950;
}
.cta-box p {
  color: var(--muted);
  font-weight: 700;
  margin-top: 6px;
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 650ms,
    transform 650ms;
  will-change: opacity, transform;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 {
  transition-delay: 80ms;
}
.delay-2 {
  transition-delay: 160ms;
}
.delay-3 {
  transition-delay: 240ms;
}
.delay-4 {
  transition-delay: 320ms;
}
.delay-5 {
  transition-delay: 0.4s;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
@media (max-width: 1080px) {
  .main-nav,
  .main-nav a::after {
    display: none;
  }
  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: 20px;
    left: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-2);
    box-shadow: var(--shadow);
  }
  .main-nav.is-open {
    display: flex;
  }
  .main-nav a {
    padding: 12px 14px;
    border-radius: 12px;
  }
  .main-nav a:hover {
    background: var(--surface);
  }
  .menu-toggle {
    display: grid;
    place-items: center;
  }
  .advantages,
  .cert-grid,
  .hero-layout,
  .specialties {
    grid-template-columns: 1fr;
  }
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  :root {
    --header-height: 76px;
  }
  .container {
    width: min(100% - 28px, var(--container));
  }
  .brand-title span {
    display: none;
  }
  .brand-logo {
    width: 48px;
    height: 48px;
  }
  .services-hero {
    padding: 58px 0 48px;
  }
  .hero-layout {
    gap: 30px;
  }
  h1 {
    font-size: clamp(2.15rem, 12vw, 3.25rem);
  }
  .hero-panel {
    min-height: auto;
    padding: 18px;
  }
  .hero-panel-gif {
    position: relative;
    top: auto;
    left: auto;
    width: 86px;
    height: 86px;
    margin-bottom: 16px;
  }
  .advantage-list,
  .project-row,
  .service-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 64px 0;
  }
  .cta-box,
  .section-head {
    display: grid;
  }
  .service-card:hover {
    transform: translateY(-5px);
  }
  .reveal {
    transform: translateY(20px);
  }
}
:is(
  .stat-card,
  .service-card,
  .specialty,
  .project-row,
  .cert-item,
  .advantage-item
) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 320ms,
    background-color 320ms,
    filter 320ms;
  will-change: transform, box-shadow;
}
:is(
  .stat-card,
  .service-card,
  .specialty,
  .project-row,
  .cert-item,
  .advantage-item
)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 320ms,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
:is(
  .stat-card,
  .service-card,
  .specialty,
  .project-row,
  .cert-item,
  .advantage-item
)::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 320ms;
  box-shadow: inset 0 0 0 1px rgba(246, 184, 0, 0.18);
}
:is(
    .stat-card,
    .service-card,
    .specialty,
    .project-row,
    .cert-item,
    .advantage-item
  )
  > * {
  position: relative;
  z-index: 1;
}
:is(
  .stat-card,
  .service-card,
  .specialty,
  .project-row,
  .cert-item,
  .advantage-item
):hover {
  border-color: rgba(246, 184, 0, 0.34);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(246, 184, 0, 0.06);
}
:is(
    .stat-card,
    .service-card,
    .specialty,
    .project-row,
    .cert-item,
    .advantage-item
  ):hover::after {
  opacity: 1;
}
.service-card:hover {
  transform: translateY(-10px) scale(1.015);
}
.service-card::before {
  background:
    linear-gradient(135deg, rgba(246, 184, 0, 0.14), transparent 42%),
    radial-gradient(
      circle at 85% 15%,
      rgba(255, 122, 26, 0.18),
      transparent 28%
    );
  transform: translateY(14px) scale(0.96);
}
.service-card:hover::before {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.service-card:hover .service-gif {
  transform: translateY(-6px) scale(1.08) rotate(-4deg);
  box-shadow: 0 18px 38px rgba(246, 184, 0, 0.24);
}
.specialty:hover {
  transform: translateY(-8px) translateX(-4px);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.085),
      rgba(255, 255, 255, 0.03)
    ),
    var(--surface-2);
}
.specialty::before {
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(246, 184, 0, 0.14),
      transparent 30%
    ),
    linear-gradient(90deg, rgba(255, 122, 26, 0.08), transparent 50%);
  transform: translateX(18px);
}
.project-row:hover::before,
.specialty:hover::before {
  opacity: 1;
  transform: translateX(0);
}
.specialty:hover .specialty-top img {
  transform: scale(1.08) rotate(5deg);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.project-row:hover {
  transform: translateY(-5px) scale(1.01);
  background:
    linear-gradient(
      90deg,
      rgba(246, 184, 0, 0.06),
      rgba(255, 122, 26, 0.03) 35%,
      transparent 70%
    ),
    var(--surface-2);
}
.project-row::before {
  background: linear-gradient(
    90deg,
    transparent 0,
    rgba(246, 184, 0, 0.14) 25%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 122, 26, 0.12) 75%,
    transparent 100%
  );
  transform: translateX(30%);
}
.cert-item:hover {
  transform: translateY(-4px) scale(1.02);
  background:
    linear-gradient(135deg, rgba(246, 184, 0, 0.08), transparent 55%),
    var(--surface-2);
}
.cert-item::before {
  background: radial-gradient(
    circle at 12% 50%,
    rgba(246, 184, 0, 0.18),
    transparent 26%
  );
  transform: scale(0.85);
}
.cert-item:hover::before,
.stat-card:hover::before {
  opacity: 1;
  transform: scale(1);
}
.cert-item:hover i {
  transform: scale(1.14) rotate(-6deg);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}
.advantage-item:hover {
  transform: translateY(-6px) translateX(-6px);
  background:
    linear-gradient(135deg, rgba(255, 122, 26, 0.08), rgba(246, 184, 0, 0.05)),
    var(--surface-2);
}
.advantage-item::before {
  background: linear-gradient(135deg, rgba(246, 184, 0, 0.16), transparent 48%);
  transform: translateX(16px) translateY(16px);
}
.advantage-item:hover::before {
  opacity: 1;
  transform: translateX(0) translateY(0);
}
.stat-card:hover {
  transform: translateY(-7px) scale(1.02);
  background: rgba(17, 28, 46, 0.86);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(246, 184, 0, 0.08);
}
.stat-card::before {
  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(246, 184, 0, 0.18),
      transparent 24%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 55%);
  transform: scale(0.94);
}
:is(
    .service-card,
    .specialty,
    .project-row,
    .cert-item,
    .advantage-item,
    .stat-card
  ):hover
  :is(h3, strong) {
  color: var(--text);
}
@media (hover: none), (prefers-reduced-motion: reduce) {
  :is(
    .stat-card,
    .service-card,
    .specialty,
    .project-row,
    .cert-item,
    .advantage-item
  ),
  :is(
    .stat-card,
    .service-card,
    .specialty,
    .project-row,
    .cert-item,
    .advantage-item
  )::after,
  :is(
    .stat-card,
    .service-card,
    .specialty,
    .project-row,
    .cert-item,
    .advantage-item
  )::before {
    transition: none !important;
  }
  :is(
    .stat-card,
    .service-card,
    .specialty,
    .project-row,
    .cert-item,
    .advantage-item
  ):hover {
    transform: none;
  }
}
.service-visual-panel {
  min-height: 520px;
  padding: 14px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.025)
    ),
    rgba(7, 17, 31, 0.48);
  border-color: rgba(246, 184, 0, 0.22);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(246, 184, 0, 0.06);
}
.service-visual-panel::before {
  background: var(--danger-stripe);
  opacity: 0.95;
  inset: 0;
  z-index: 0;
}
.service-visual-panel::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 1;
  border-radius: calc(var(--radius-xl) - 8px);
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.04), rgba(7, 17, 31, 0.7)),
    radial-gradient(circle at 80% 15%, rgba(246, 184, 0, 0.24), transparent 30%);
  pointer-events: none;
}
.service-hero-photo {
  position: absolute;
  inset: 14px;
  z-index: 1;
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 10px);
  background: var(--bg-3);
}
.service-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.04) contrast(1.08) brightness(0.82);
  transform: scale(1.01);
}
.service-photo-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.service-energy-gif {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 3;
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(246, 184, 0, 0.18),
      transparent 58%
    ),
    rgba(7, 17, 31, 0.34);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: 4.2s ease-in-out infinite serviceEnergyFloat;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.26),
    0 0 34px rgba(246, 184, 0, 0.2);
}
.service-energy-gif img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(246, 184, 0, 0.55))
    drop-shadow(0 0 28px rgba(20, 184, 166, 0.28));
}
.service-photo-badge {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 4;
  width: min(220px, calc(100% - 44px));
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(7, 17, 31, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.34);
}
.service-photo-badge strong {
  display: block;
  color: var(--primary);
  font-size: 1.8rem;
  line-height: 1.1;
  font-weight: 950;
}
.service-photo-badge span {
  display: block;
  color: var(--text);
  margin-top: 8px;
  font-size: 0.92rem;
  font-weight: 850;
}
.service-photo-stats {
  position: absolute;
  right: 24px;
  left: 24px;
  bottom: 24px;
  z-index: 5;
  height: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: end;
  gap: 14px;
}
.service-photo-stats .stat-card {
  min-height: 118px;
  padding: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.service-photo-stats .stat-card strong {
  font-size: 1.65rem;
  color: var(--primary);
}
.service-photo-stats .stat-card:first-child {
  transform: translateY(-8px);
}
.service-photo-stats .stat-card:nth-child(2) {
  transform: translateY(10px);
}
.service-photo-stats .stat-card:nth-child(3) {
  transform: translateY(-2px);
}
.service-photo-stats .stat-card:nth-child(4) {
  transform: translateY(16px);
}
.service-photo-stats .stat-card:hover {
  transform: translateY(-8px) scale(1.025);
}
@keyframes serviceEnergyFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-10px) rotate(-3deg);
  }
}
@media (max-width: 1080px) {
  .service-visual-panel {
    min-height: 560px;
  }
  .site-header {
    z-index: 9999;
  }
  .main-nav {
    position: fixed;
    top: calc(var(--header-height) + 10px);
    right: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: rgba(7, 17, 31, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
      0 20px 50px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.97);
    transition:
      opacity 0.3s,
      transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0.3s;
    pointer-events: none;
  }
  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
  .main-nav a {
    padding: 14px 12px;
    color: #aeb8c5;
    font-size: 0.95rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.2s;
    border-radius: 8px;
  }
  .main-nav a:last-child {
    border-bottom: none;
  }
  .main-nav a.active,
  .main-nav a:hover {
    color: #f6b800;
    background: rgba(246, 184, 0, 0.06);
    padding-right: 18px;
  }
  .main-nav a::after {
    display: none !important;
  }
  .menu-toggle {
    display: grid;
    place-items: center;
    z-index: 10000;
    transition: transform 0.2s;
  }
  .menu-toggle.active {
    border-color: #f6b800;
    color: #f6b800;
  }
}
@media (max-width: 720px) {
  .service-visual-panel {
    min-height: 680px;
    padding: 10px;
  }
  .service-hero-photo {
    inset: 10px;
  }
  .service-energy-gif {
    top: 18px;
    left: 18px;
    width: 92px;
    height: 92px;
    border-radius: 20px;
  }
  .service-energy-gif img {
    width: 66px;
    height: 66px;
  }
  .service-photo-badge {
    top: 18px;
    right: 18px;
    bottom: auto;
    width: calc(100% - 128px);
    padding: 14px 16px;
  }
  .service-photo-badge strong {
    font-size: 1.45rem;
  }
  .service-photo-badge span {
    font-size: 0.82rem;
  }
  .service-photo-stats {
    right: 18px;
    left: 18px;
    bottom: 18px;
    grid-template-columns: 1fr;
  }
  .service-photo-stats .stat-card,
  .service-photo-stats .stat-card:first-child,
  .service-photo-stats .stat-card:nth-child(2),
  .service-photo-stats .stat-card:nth-child(3),
  .service-photo-stats .stat-card:nth-child(4) {
    min-height: 96px;
    transform: none;
  }
  .service-photo-stats .stat-card:hover {
    transform: translateY(-4px);
  }
}
.service-hero-photo img {
  filter: saturate(1.12) contrast(1.03) brightness(1) !important;
}
.service-photo-shade {
  background:
    linear-gradient(
      180deg,
      rgba(7, 17, 31, 0.02) 0,
      rgba(7, 17, 31, 0.08) 48%,
      rgba(7, 17, 31, 0.28) 100%
    ),
    linear-gradient(
      90deg,
      rgba(7, 17, 31, 0.18),
      transparent 52%,
      rgba(7, 17, 31, 0.1)
    ) !important;
}
.service-energy-gif,
.service-photo-badge,
.service-photo-stats .stat-card {
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.07),
      rgba(255, 255, 255, 0.012)
    ),
    rgba(7, 17, 31, 0.055) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(4px) saturate(1.18);
  -webkit-backdrop-filter: blur(4px) saturate(1.18);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(255, 255, 255, 0.025) !important;
}
.service-photo-stats .stat-card::before {
  background:
    radial-gradient(
      circle at 85% 18%,
      rgba(246, 184, 0, 0.08),
      transparent 32%
    ),
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 46%) !important;
  opacity: 0.28 !important;
}
.service-energy-gif::after,
.service-photo-badge::after,
.service-photo-stats .stat-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0,
    rgba(255, 255, 255, 0.035) 18%,
    transparent 48%
  ) !important;
  opacity: 0.34 !important;
  box-shadow: none !important;
}
.service-energy-gif > *,
.service-photo-badge > *,
.service-photo-stats .stat-card > * {
  position: relative;
  z-index: 1;
}
.service-photo-badge strong,
.service-photo-stats .stat-card strong {
  color: var(--primary) !important;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.7),
    0 0 12px rgba(246, 184, 0, 0.2);
}
.service-photo-badge span,
.service-photo-stats .stat-card span {
  color: rgba(248, 250, 252, 0.92) !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.78);
}
.service-energy-gif {
  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(246, 184, 0, 0.07),
      transparent 64%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.065),
      rgba(255, 255, 255, 0.012)
    ),
    rgba(7, 17, 31, 0.045) !important;
  border-color: rgba(246, 184, 0, 0.18) !important;
}
.service-energy-gif img {
  opacity: 0.98;
  filter: drop-shadow(0 0 10px rgba(246, 184, 0, 0.58))
    drop-shadow(0 0 20px rgba(20, 184, 166, 0.22)) !important;
}
.service-photo-stats .stat-card:hover {
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.095),
      rgba(255, 255, 255, 0.018)
    ),
    rgba(7, 17, 31, 0.075) !important;
  border-color: rgba(246, 184, 0, 0.3) !important;
  box-shadow:
    0 20px 42px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 20px rgba(246, 184, 0, 0.08) !important;
}
.brand-logo {
  object-fit: cover;
  border-radius: 16px;
  object-fit: contain;
  background: 0 0;
  box-shadow: 0 12px 34px rgba(246, 184, 0, 0.22);
  width: 52px;
  height: 52px;
  display: grid;
  flex: 0 0 auto;
  padding: 6px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow:
    0 14px 34px rgba(246, 184, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: contrast(1.08) saturate(1.08);
}
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: var(--transition);
}
.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: var(--transition);
}
.menu-toggle.active {
  border-color: rgba(246, 184, 0, 0.55);
  background: rgba(246, 184, 0, 0.12);
}
.menu-toggle.active span:first-child {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (max-width: 1080px) {
  .menu-toggle {
    display: flex;
    z-index: 10000;
  }
  .main-nav {
    position: fixed;
    top: calc(var(--header-height) + 10px);
    right: 16px;
    left: 16px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 12px 14px;
    border-radius: 22px;
    background: rgba(7, 17, 31, 0.93);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
      0 20px 50px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px) scale(0.98);
    pointer-events: none;
    transition:
      opacity 0.3s,
      transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0.3s;
  }
  body.light-theme .main-nav {
    background: rgba(255, 255, 255, 0.95);
  }
  .main-nav.is-open,
  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
  .main-nav a {
    position: relative;
    padding: 14px 12px !important;
    border-radius: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: 0 0 !important;
    color: var(--muted);
    font-weight: 800;
    font-size: 0.95rem;
  }
  .main-nav a:last-child {
    border-bottom: 0;
  }
  .main-nav a::after {
    display: block !important;
    content: "";
    position: absolute;
    right: 12px;
    left: 12px;
    bottom: 6px;
    height: 2.5px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    transform: scaleX(0);
    transition: transform 250ms;
  }
  .main-nav a.active,
  .main-nav a:hover {
    color: var(--primary);
  }
  .main-nav a.active::after,
  .main-nav a:hover::after {
    transform: scaleX(1);
  }
}
.menu-btn.active span,
.menu-toggle.active span {
  background: var(--primary);
}
.menu-btn.active span:first-child,
.menu-btn.active span:nth-child(3),
.menu-toggle.active span:first-child,
.menu-toggle.active span:nth-child(3) {
  width: 24px;
}
.scroll-top {
  position: fixed;
  left: 28px;
  bottom: 28px;
  z-index: 999;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #07111f;
  display: grid;
  box-shadow: 0 16px 40px rgba(246, 184, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.85);
  pointer-events: none;
  transition:
    opacity 0.3s,
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.3s;
}
.scroll-top svg {
  width: 24px;
  height: 24px;
}
.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.scroll-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 20px 48px rgba(246, 184, 0, 0.45);
}
.scroll-top:active {
  transform: translateY(-1px) scale(0.98);
}
@media (max-width: 720px) {
  .scroll-top {
    left: 18px;
    bottom: 18px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
  .scroll-top svg {
    width: 21px;
    height: 21px;
  }
}
html {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg);
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
  border-left: 1px solid var(--border);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
  border-radius: 999px;
  border: 2px solid var(--bg);
  transition: background var(--transition);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
  box-shadow: 0 0 12px rgba(246, 184, 0, 0.5);
}
::-webkit-scrollbar-corner {
  background: var(--bg);
}



.specialty-top i[data-lucide="sun"] {
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  display: block;
  color: var(--primary);
  filter: drop-shadow(0 12px 20px rgba(246, 184, 0, 0.15));
}

.specialty-top i[data-lucide="sun"] svg {
  width: 100%;
  height: 100%;
}
/* کارت ششم: وسط ردیف دوم، دقیقاً زیر کارت سوم */
.connected-services .service-card:nth-child(6) {
  grid-column: 3;
}
@media (max-width: 1080px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* خنثی‌سازی ستون اجباری در تبلت و موبایل */
  .connected-services .service-card:nth-child(6) {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .connected-services .service-card:nth-child(6) {
    grid-column: auto;
  }
}