/**
 * Nexus AI Studio — styles (no inline, no CDN)
 * Load with: nexus-header, nexus-footer, template-nexus-home
 */

/* ========== Fonts (local) ========== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/nexus/Inter-Variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/nexus/SpaceGrotesk-Variable.woff2') format('woff2');
}

/* ========== Design tokens: dark bg (original) + palette #547792 #FAB95B #E8E2DB ========== */
:root {
  --nexus-black: #050508;
  --nexus-dark: #0A0A0F;
  --nexus-card: #13131F;
  --nexus-border: #232333;
  --nexus-primary: #547792;
  --nexus-primary-hover: #3d5f7a;
  --nexus-accent: #FAB95B;
  --nexus-cyan: #547792;
  --nexus-purple: #3d5f7a;
  --nexus-text: #E8E2DB;
  --nexus-muted: rgba(232, 226, 219, 0.65);
  --nexus-logo-grad: linear-gradient(135deg, #547792 0%, #FAB95B 50%, #E8E2DB 100%);
}

/* ========== Base ========== */
.nexus-body {
  background: var(--nexus-black);
  color: var(--nexus-text);
  font-family: 'Vazirmatn', 'Vazir', Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.nexus-body ::selection {
  background: var(--nexus-primary);
  color: #fff;
}

/* Scrollbar */
.nexus-body ::-webkit-scrollbar { width: 8px; }
.nexus-body ::-webkit-scrollbar-track { background: var(--nexus-black); }
.nexus-body ::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
.nexus-body ::-webkit-scrollbar-thumb:hover { background: #555; }

/* Utility */
.glass-panel {
  background: rgba(19, 19, 31, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-rays {
  background: repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(212, 175, 55, 0.03) 50px);
}
@keyframes nexus-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.nexus-animate-float {
  animation: nexus-float 6s ease-in-out infinite;
}

/* ========== Header ========== */
.nexus-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.5);
}
.nexus-header__inner {
  max-width: 1440px;
  margin: 0 auto;
  height: 85px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.25s ease, height 0.25s ease;
  direction: rtl;
}
.nexus-header__nav,
.nexus-header__nav ul {
  direction: rtl;
  text-align: right;
}
.nexus-header.nexus-header--scrolled .nexus-header__inner {
  height: 70px;
}
.nexus-header.nexus-header--scrolled {
  background: rgba(0, 0, 0, 0.75);
  transition: background 0.2s ease;
}
.nexus-header { transition: background 0.2s ease; }
.nexus-header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.nexus-header__logo-svg {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
}
.nexus-header__logo-wordmark {
  height: 2rem;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.nexus-header__logo-text {
  font-family: 'Vazirmatn', 'Vazir', Tahoma, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--nexus-logo-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nexus-header__nav {
  display: none;
  height: 100%;
}
.nexus-header__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 2.5rem;
}
.nexus-header__nav > ul > li {
  margin: 0;
  display: flex;
  align-items: stretch;
  height: 100%;
}
.nexus-header__nav > ul > li > a,
.nexus-header__nav > ul > li > .nexus-mega-trigger {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 0.25rem;
}
@media (min-width: 1024px) {
  .nexus-header__nav {
    display: flex;
    align-items: stretch;
    align-self: stretch;
  }
}
.nexus-header__nav a {
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  color: var(--nexus-muted);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
  border-bottom: 2px solid transparent;
}
.nexus-header__nav a:hover {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.3);
}
.nexus-header__nav a.nexus-header__nav--active,
.nexus-header__nav .current-menu-item a {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.4);
}
.nexus-mega-trigger {
  position: relative;
}

/* Mega menu dropdown */
.nexus-header__nav-list {
  position: relative;
  height: 100%;
}
.nexus-header__nav > ul > li {
  position: relative;
  height: 100%;
}
.nexus-mega-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  margin-top: 0;
  min-width: 20rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  pointer-events: none;
  z-index: 60;
}
.nexus-header__nav > ul > li:hover .nexus-mega-dropdown,
.nexus-header__nav > ul > li:focus-within .nexus-mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.nexus-mega-panel {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}
.nexus-mega-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  min-width: 20rem;
}
.nexus-mega-panel__list li {
  margin: 0;
  padding: 0;
  display: block;
}
.nexus-mega-panel__link {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  color: var(--nexus-muted);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  border: none;
  border-radius: 8px;
  white-space: nowrap;
}
.nexus-mega-panel__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(-2px);
}
.nexus-mega-panel__link.nexus-header__nav--active,
.nexus-mega-panel__list .current-menu-item .nexus-mega-panel__link {
  color: var(--nexus-accent);
  background: rgba(250, 185, 91, 0.1);
}

.nexus-header__actions {
  display: none; /* موبایل و تبلت: مخفی */
  align-items: center;
  gap: 1rem;
}
@media (min-width: 1024px) {
  .nexus-header__actions {
    display: flex; /* فقط دسکتاپ: نمایش دکمه همکاری با من */
  }
}
.nexus-header__btn {
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border: 1px solid transparent;
}
.nexus-header__btn--outline {
  background: transparent;
  border: 1px solid rgba(163, 163, 163, 0.3);
  color: #d4d4d4;
}
.nexus-header__btn--outline:hover {
  border-color: #a3a3a3;
  color: #fff;
}
.nexus-header__btn--primary {
  background: linear-gradient(rgba(19, 19, 31, 0.95), rgba(10, 10, 15, 0.95)) padding-box,
              linear-gradient(135deg, #547792 0%, #6b8fa8 35%, #FAB95B 70%, #E8E2DB 100%) border-box;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border: 1px solid transparent;
  color: #E8E2DB;
}
.nexus-header__btn--primary:hover {
  color: #FAB95B;
  background: linear-gradient(rgba(30, 35, 45, 0.98), rgba(19, 19, 31, 0.98)) padding-box,
              linear-gradient(135deg, #547792 0%, #FAB95B 50%, #E8E2DB 100%) border-box;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 0 18px rgba(84, 119, 146, 0.25);
}
.nexus-header__mobile-btn {
  display: flex;
  padding: 0.5rem;
  font-size: 1.25rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}
@media (min-width: 1024px) {
  .nexus-header__mobile-btn {
    display: none;
  }
}

/* Mobile menu */
.nexus-mobile-menu {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.5s;
}
.nexus-mobile-menu.nexus-mobile-menu--open {
  transform: translateX(0);
}
.nexus-mobile-menu__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  z-index: 10;
}
.nexus-mobile-menu__close i {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  width: 1em;
  height: 1em;
}
.nexus-mobile-menu__close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}
@media (min-width: 1024px) {
  .nexus-mobile-menu {
    display: none;
  }
}
.nexus-mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.nexus-mobile-menu__list li { margin: 0; }
.nexus-mobile-menu a {
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: #fff;
  text-decoration: none;
}
.nexus-mobile-menu .nexus-header__btn--primary {
  margin-top: 1rem;
}

/* ========== Footer ========== */
.nexus-footer {
  background: var(--nexus-black);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 5rem;
  padding-bottom: 2.5rem;
}
.nexus-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.nexus-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .nexus-footer__grid {
    grid-template-columns: 1fr repeat(3, auto);
  }
}
.nexus-footer__brand {
  margin-bottom: 1.5rem;
}
.nexus-footer__brand-text {
  font-family: 'Vazirmatn', 'Vazir', Tahoma, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}
.nexus-footer__brand-text span {
  color: var(--nexus-muted);
  font-weight: 400;
}
.nexus-footer__tagline {
  font-size: 0.875rem;
  color: var(--nexus-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.nexus-footer__social {
  display: flex;
  gap: 1rem;
}
.nexus-footer__social a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
}
.nexus-footer__social a:hover {
  background: var(--nexus-primary);
}
.nexus-footer__col h4 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}
.nexus-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nexus-footer__col li {
  margin-bottom: 0.75rem;
}
.nexus-footer__col a {
  font-size: 0.875rem;
  color: var(--nexus-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nexus-footer__col a:hover {
  color: #fff;
}
.nexus-footer__newsletter p {
  font-size: 0.875rem;
  color: var(--nexus-muted);
  margin-bottom: 1rem;
}
.nexus-footer__newsletter-form {
  display: flex;
  direction: rtl;
}
.nexus-footer__newsletter-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: none;
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #fff;
  min-width: 0;
  text-align: right;
}
[dir="ltr"] .nexus-footer__newsletter-form input {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: none;
  border-radius: 0.5rem 0 0 0.5rem;
  text-align: left;
}
[dir="ltr"] .nexus-footer__newsletter-form button {
  border-radius: 0 0.5rem 0.5rem 0;
}
[dir="ltr"] .nexus-footer__newsletter-form { direction: ltr; }
.nexus-footer__newsletter-form input::placeholder {
  color: var(--nexus-muted);
}
.nexus-footer__newsletter-form input:focus {
  outline: none;
  border-color: var(--nexus-primary);
}
.nexus-footer__newsletter-form button {
  background: var(--nexus-primary);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem 0 0 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}
.nexus-footer__newsletter-form button:hover {
  background: var(--nexus-primary-hover);
}
.nexus-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .nexus-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.nexus-footer__copy {
  font-size: 0.875rem;
  color: var(--nexus-muted);
  margin: 0;
}
.nexus-footer__links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
}
.nexus-footer__links a {
  color: var(--nexus-muted);
  text-decoration: none;
}
.nexus-footer__links a:hover {
  color: #fff;
}

/* ========== Inner pages (RTL Farsi) ========== */
.nexus-page { padding: 4rem 0; }
.nexus-page__content p { margin-bottom: 1.25rem; line-height: 1.75; color: var(--nexus-text); }
.nexus-page__title {
  font-family: 'Vazirmatn', 'Vazir', Tahoma, sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}
.nexus-page__lead {
  font-size: 1.125rem;
  color: var(--nexus-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ========== Homepage: Hero ========== */
.nexus-hero {
  position: relative;
  min-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 4rem;
  padding-bottom: 5rem;
}
.nexus-hero__bg {
  position: absolute;
  inset: 0;
  background: var(--nexus-black);
}
.nexus-hero__rays {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  pointer-events: none;
}
.nexus-hero__glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 800px;
  background: linear-gradient(to bottom, rgba(212, 175, 55, 0.2), transparent);
  opacity: 0.4;
  filter: blur(100px);
  pointer-events: none;
}
.nexus-hero__fade {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 16rem;
  background: linear-gradient(to top, var(--nexus-black), transparent);
  z-index: 10;
}
.nexus-hero__inner {
  position: relative;
  z-index: 20;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.nexus-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 0.375rem 1rem 0.375rem 0.5rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(12px);
}
.nexus-hero__pill-avatars {
  display: flex;
}
.nexus-hero__pill-avatars img {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 1px solid var(--nexus-black);
  margin-left: -0.5rem;
}
.nexus-hero__pill-avatars img:first-child { margin-left: 0; }
.nexus-hero__pill-text {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--nexus-accent);
  letter-spacing: 0.05em;
}
.nexus-hero__title {
  font-family: 'Vazirmatn', 'Vazir', Tahoma, sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}
.nexus-hero__title span {
  background: linear-gradient(90deg, #fff, var(--nexus-muted), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nexus-hero__sub {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--nexus-muted);
  max-width: 42rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
}
@media (min-width: 768px) {
  .nexus-hero__sub { font-size: 1.25rem; }
}
.nexus-hero__ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  justify-content: center;
}
@media (min-width: 640px) {
  .nexus-hero__ctas { flex-direction: row; }
}
.nexus-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 500;
  border-radius: 0.75rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  width: 100%;
  text-decoration: none;
  color: inherit;
}
@media (min-width: 640px) {
  .nexus-hero__btn { width: auto; }
}
.nexus-hero__btn--primary {
  background: var(--nexus-primary);
  color: #fff;
  box-shadow: 0 0 30px -5px rgba(0, 102, 255, 0.4);
}
.nexus-hero__btn--primary:hover {
  background: var(--nexus-primary-hover);
  box-shadow: 0 0 50px -10px rgba(0, 102, 255, 0.6);
}
.nexus-hero__btn--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}
.nexus-hero__btn--outline:hover {
  background: rgba(255, 255, 255, 0.05);
}
.nexus-hero__preview {
  margin-top: 5rem;
  width: 100%;
  max-width: 56rem;
  position: relative;
}
.nexus-hero__preview-glow {
  position: absolute;
  inset: -0.25rem;
  background: linear-gradient(90deg, var(--nexus-primary), var(--nexus-purple), var(--nexus-accent));
  border-radius: 1rem;
  filter: blur(8px);
  opacity: 0.2;
  transition: opacity 1s;
}
.nexus-hero__preview:hover .nexus-hero__preview-glow { opacity: 0.4; }
.nexus-hero__preview-inner {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  background: rgba(19, 19, 31, 0.8);
  backdrop-filter: blur(24px);
  height: 400px;
}
@media (min-width: 768px) {
  .nexus-hero__preview-inner { height: 500px; }
}
.nexus-hero__preview-header {
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 0.5rem;
}
.nexus-hero__preview-dot { width: 0.75rem; height: 0.75rem; border-radius: 50%; }
.nexus-hero__preview-dot--r { background: rgba(239, 68, 68, 0.5); }
.nexus-hero__preview-dot--y { background: rgba(234, 179, 8, 0.5); }
.nexus-hero__preview-dot--g { background: rgba(34, 197, 94, 0.5); }
.nexus-hero__preview-bar {
  margin: 0 auto;
  width: 16rem;
  height: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--nexus-primary);
  font-family: 'Vazirmatn', 'Vazir', Tahoma, sans-serif;
  letter-spacing: 0.02em;
}
.nexus-hero__preview-body {
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  height: calc(100% - 2.5rem);
}
@media (min-width: 768px) {
  .nexus-hero__preview-body { grid-template-columns: 1fr 3fr; }
}
.nexus-hero__preview-side {
  display: none;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 768px) {
  .nexus-hero__preview-side { display: flex; }
}
.nexus-hero__preview-block {
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.1);
  height: 2rem;
  width: 75%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.75rem;
  font-size: 0.75rem;
  color: var(--nexus-muted);
  transition: background 0.3s, color 0.3s;
}
.nexus-hero__preview-block i { color: var(--nexus-primary); }
.nexus-hero__preview-block:hover { background: rgba(255,255,255,0.15); color: #fff; }
.nexus-hero__preview-block--sm { height: 1rem; width: 50%; padding: 0 0.5rem; }
.nexus-hero__preview-block--sm i { font-size: 0.6rem; }
.nexus-hero__preview-block--md { height: 1.25rem; width: 66%; font-size: 0.65rem; }
.nexus-hero__preview-block--icon {
  animation: nexus-preview-block-loop 2.8s ease-in-out infinite;
}
.nexus-hero__preview-side .nexus-hero__preview-block:nth-child(1) { animation-delay: 0s; }
.nexus-hero__preview-side .nexus-hero__preview-block:nth-child(2) { animation-delay: 0.35s; }
.nexus-hero__preview-side .nexus-hero__preview-block:nth-child(3) { animation-delay: 0.7s; }
.nexus-hero__preview-block--icon i {
  animation: nexus-preview-block-icon 2.2s ease-in-out infinite;
}
.nexus-hero__preview-side .nexus-hero__preview-block:nth-child(1) i { animation-delay: 0s; }
.nexus-hero__preview-side .nexus-hero__preview-block:nth-child(2) i { animation-delay: 0.25s; }
.nexus-hero__preview-side .nexus-hero__preview-block:nth-child(3) i { animation-delay: 0.5s; }
@keyframes nexus-preview-block-loop {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 rgba(84, 119, 146, 0); }
  50% { opacity: 0.92; transform: scale(1.02); box-shadow: 0 0 12px rgba(84, 119, 146, 0.15); }
}
@keyframes nexus-preview-block-icon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.12); }
}
.nexus-hero__preview-box {
  margin-top: 2rem;
  height: 8rem;
  background: rgba(84, 119, 146, 0.15);
  border-radius: 0.75rem;
  border: 1px solid rgba(84, 119, 146, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: nexus-preview-glow 4s ease-in-out infinite;
}
@keyframes nexus-preview-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(84, 119, 146, 0.2); }
  50% { box-shadow: 0 0 20px 2px rgba(84, 119, 146, 0.15); }
}
.nexus-hero__preview-trend {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.nexus-hero__preview-trend-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 2.5rem;
}
.nexus-hero__preview-bar-item {
  display: block;
  width: 0.5rem;
  min-height: 0.4rem;
  background: var(--nexus-primary);
  border-radius: 2px;
  animation: nexus-trend-bar 1.6s ease-in-out infinite;
}
.nexus-hero__preview-bar-item:nth-child(1) { animation-delay: 0s; }
.nexus-hero__preview-bar-item:nth-child(2) { animation-delay: 0.2s; }
.nexus-hero__preview-bar-item:nth-child(3) { animation-delay: 0.4s; }
.nexus-hero__preview-bar-item:nth-child(4) { animation-delay: 0.6s; }
@keyframes nexus-trend-bar {
  0%, 100% { height: 0.4rem; opacity: 0.6; }
  50% { height: 2.25rem; opacity: 1; }
}
.nexus-hero__preview-trend-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Vazirmatn', 'Vazir', Tahoma, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--nexus-accent);
}
.nexus-hero__preview-trend-label i {
  color: #22c55e;
  animation: nexus-trend-arrow 1.2s ease-in-out infinite;
}
@keyframes nexus-trend-arrow {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-3px); opacity: 0.85; }
}
.nexus-hero__preview-main { display: flex; flex-direction: column; gap: 1.5rem; }
.nexus-hero__preview-chart {
  height: 16rem;
  width: 100%;
  background: linear-gradient(to bottom, var(--nexus-dark), #000);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  animation: nexus-preview-chart-breathe 4s ease-in-out infinite;
}
@keyframes nexus-preview-chart-breathe {
  0%, 100% { opacity: 1; box-shadow: inset 0 0 0 0 rgba(84, 119, 146, 0); }
  50% { opacity: 0.95; box-shadow: inset 0 0 30px 0 rgba(84, 119, 146, 0.08); }
}
.nexus-hero__preview-chart .nexus-hero-chart-svg {
  opacity: 0;
  animation: nexus-preview-chart-svg-in 0.4s ease-out 0.2s forwards;
}
@keyframes nexus-preview-chart-svg-in {
  to { opacity: 1; }
}
.nexus-hero__preview-chart .nexus-hero-chart-svg.nexus-chart-ready {
  animation: nexus-preview-chart-svg-breathe 4s ease-in-out infinite;
}
@keyframes nexus-preview-chart-svg-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.9; }
}
/* Load: draw-in خط با ترنزیشن */
.nexus-hero__preview-chart .nexus-chart-line {
  transition: stroke-dashoffset 1.2s ease-out 0.15s;
}
.nexus-hero__preview-chart .nexus-chart-line--2 {
  transition-delay: 0.35s;
}
/* Loop: بعد از لود، خط هر چند ثانیه دوباره کشیده می‌شود */
.nexus-hero__preview-chart .nexus-chart-line.nexus-chart-line--loop {
  transition: none;
  animation: nexus-chart-draw-loop 2.5s ease-in-out infinite;
}
.nexus-hero__preview-chart .nexus-chart-line--2.nexus-chart-line--loop {
  animation-delay: 0.6s;
}
@keyframes nexus-chart-draw-loop {
  0% { stroke-dashoffset: var(--chart-path-len, 500); }
  100% { stroke-dashoffset: 0; }
}
.nexus-hero__preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.nexus-hero__preview-card {
  height: 6rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  transition: background 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  animation: nexus-preview-card-float 3.5s ease-in-out infinite;
}
.nexus-hero__preview-card:nth-child(1) { animation-delay: 0s; }
.nexus-hero__preview-card:nth-child(2) { animation-delay: 0.4s; }
.nexus-hero__preview-card:nth-child(3) { animation-delay: 0.8s; }
.nexus-hero__preview-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(84, 119, 146, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  animation: none;
}
@keyframes nexus-preview-card-float {
  0%, 100% { transform: translateY(0); border-color: rgba(255, 255, 255, 0.08); box-shadow: 0 0 0 rgba(84, 119, 146, 0); }
  50% { transform: translateY(-5px); border-color: rgba(84, 119, 146, 0.2); box-shadow: 0 4px 16px rgba(84, 119, 146, 0.12); }
}
.nexus-hero__preview-card i {
  font-size: 1.5rem;
  color: var(--nexus-primary);
  animation: nexus-preview-card-icon 2.8s ease-in-out infinite;
}
.nexus-hero__preview-card:nth-child(1) i { animation-delay: 0s; }
.nexus-hero__preview-card:nth-child(2) i { animation-delay: 0.25s; }
.nexus-hero__preview-card:nth-child(3) i { animation-delay: 0.5s; }
.nexus-hero__preview-card:hover i { animation: none; }
@keyframes nexus-preview-card-icon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.88; transform: scale(1.1); }
}
.nexus-hero__preview-card span {
  font-size: 0.7rem;
  color: var(--nexus-muted);
  font-family: 'Vazirmatn', 'Vazir', Tahoma, sans-serif;
  text-align: center;
  animation: nexus-preview-card-text 3.2s ease-in-out infinite;
}
.nexus-hero__preview-card:nth-child(1) span { animation-delay: 0.1s; }
.nexus-hero__preview-card:nth-child(2) span { animation-delay: 0.35s; }
.nexus-hero__preview-card:nth-child(3) span { animation-delay: 0.6s; }
.nexus-hero__preview-card:hover span { animation: none; }
@keyframes nexus-preview-card-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.82; }
}
.nexus-hero__preview-card span {
  font-size: 0.7rem;
  color: var(--nexus-muted);
  font-family: 'Vazirmatn', 'Vazir', Tahoma, sans-serif;
  text-align: center;
}

/* ========== Marquee ========== */
.nexus-marquee {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(5, 5, 8, 0.5);
  backdrop-filter: blur(4px);
}
.nexus-marquee__inner { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.nexus-marquee__label {
  text-align: center;
  color: var(--nexus-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.nexus-marquee__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}
.nexus-marquee__logos i {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.5);
  filter: grayscale(1);
  transition: transform 0.3s ease, color 0.3s ease, filter 0.3s ease;
  display: inline-block;
}
.nexus-marquee__logos i:hover {
  transform: translateY(-8px);
  color: #fff;
  filter: grayscale(0);
}
@media (min-width: 768px) {
  .nexus-marquee__logos { gap: 5rem; }
  .nexus-marquee__logos i { font-size: 2.25rem; }
}

/* ========== Services ========== */
.nexus-section { padding: 8rem 0; position: relative; }
.nexus-section--black { background: var(--nexus-black); }
.nexus-section--dark { background: var(--nexus-dark); }
.nexus-section__blur {
  position: absolute;
  right: 0;
  top: 25%;
  width: 500px;
  height: 500px;
  background: rgba(0, 102, 255, 0.05);
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.nexus-section__inner { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 10; }
.nexus-section__head {
  display: flex;
  flex-direction: column;
  margin-bottom: 5rem;
}
@media (min-width: 768px) {
  .nexus-section__head { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}
.nexus-section__title {
  font-family: 'Vazirmatn', 'Vazir', Tahoma, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}
.nexus-section__desc {
  color: var(--nexus-muted);
  max-width: 28rem;
  font-size: 1.125rem;
}
.nexus-section__link {
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: var(--nexus-primary);
  font-weight: 500;
  text-decoration: none;
  margin-top: 1.5rem;
}
.nexus-section__link:hover { color: #fff; }
@media (min-width: 768px) {
  .nexus-section__link { display: inline-flex; margin-top: 0; }
}
.nexus-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .nexus-services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .nexus-services-grid { grid-template-columns: repeat(3, 1fr); }
}
.nexus-card {
  position: relative;
  padding: 2rem;
  border-radius: 1.5rem;
  background: var(--nexus-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s;
}
.nexus-card:hover {
  border-color: rgba(0, 102, 255, 0.3);
  transform: translateY(-0.5rem);
}
.nexus-card:hover .nexus-card__icon-wrap { transform: scale(1.1); }
.nexus-card__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 1.5rem;
}
.nexus-card:hover .nexus-card__gradient { opacity: 1; }
.nexus-card__icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: var(--nexus-black);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: transform 0.3s;
}
.nexus-card__icon-wrap--cyan { border-color: rgba(0, 240, 255, 0.3); }
.nexus-card__icon-wrap--accent { border-color: rgba(212, 175, 55, 0.3); }
.nexus-card__icon { font-size: 1.5rem; }
.nexus-card__icon--primary { color: var(--nexus-primary); }
.nexus-card__icon--cyan { color: var(--nexus-cyan); }
.nexus-card__icon--accent { color: var(--nexus-accent); }
.nexus-card__title {
  font-family: 'Vazirmatn', 'Vazir', Tahoma, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}
.nexus-card__text { color: var(--nexus-muted); margin-bottom: 2rem; line-height: 1.6; }
.nexus-card__list { margin: 0 0 2rem; padding: 0; list-style: none; }
.nexus-card__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #9ca3af;
  margin-bottom: 0.75rem;
}
.nexus-card__list i { font-size: 0.75rem; }
.nexus-card__list i.nexus-card__list--primary { color: var(--nexus-primary); }
.nexus-card__list i.nexus-card__list--cyan { color: var(--nexus-cyan); }
.nexus-card__list i.nexus-card__list--accent { color: var(--nexus-accent); }
.nexus-card__link {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s;
}
.nexus-card__link:hover { transform: translateX(0.5rem); }
.nexus-card__link i { margin-left: 0.5rem; }

/* ========== Portfolio ========== */
.nexus-portfolio__head { text-align: center; margin-bottom: 5rem; }
.nexus-portfolio__label {
  display: block;
  color: var(--nexus-primary);
  font-weight: 500;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.nexus-portfolio__title {
  font-family: 'Vazirmatn', 'Vazir', Tahoma, sans-serif;
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
}
.nexus-portfolio__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.nexus-portfolio__btn {
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.nexus-portfolio__btn--active {
  background: #fff;
  color: var(--nexus-black);
}
.nexus-portfolio__btn--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--nexus-muted);
}
.nexus-portfolio__btn--outline:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.nexus-portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .nexus-portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
}
.nexus-portfolio-item { cursor: pointer; }
.nexus-portfolio-item--offset { margin-top: 0; }
@media (min-width: 768px) {
  .nexus-portfolio-item--offset { margin-top: 6rem; }
}
.nexus-portfolio-item__img-wrap {
  position: relative;
  height: 400px;
  margin-bottom: 1.5rem;
  border-radius: 1.5rem;
  overflow: hidden;
}
@media (min-width: 768px) {
  .nexus-portfolio-item__img-wrap { height: 500px; }
}
.nexus-portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.3s;
  z-index: 10;
}
.nexus-portfolio-item:hover .nexus-portfolio-item__overlay { background: transparent; }
.nexus-portfolio-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}
.nexus-portfolio-item:hover .nexus-portfolio-item__img { transform: scale(1.05); }
.nexus-portfolio-item__badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 20;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.3s, transform 0.3s;
}
.nexus-portfolio-item:hover .nexus-portfolio-item__badge { opacity: 1; transform: translateY(0); }
.nexus-portfolio-item__badge span {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border-radius: 9999px;
  color: #fff;
  font-size: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.nexus-portfolio-item__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.nexus-portfolio-item__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.nexus-portfolio-item:hover .nexus-portfolio-item__title { color: var(--nexus-primary); }
.nexus-portfolio-item__cat { color: var(--nexus-muted); font-size: 0.875rem; }
.nexus-portfolio-item__arrow {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.2s;
  text-decoration: none;
}
.nexus-portfolio-item:hover .nexus-portfolio-item__arrow {
  background: var(--nexus-primary);
  border-color: var(--nexus-primary);
}
.nexus-portfolio__more {
  margin-top: 5rem;
  text-align: center;
}
.nexus-portfolio__more a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}
.nexus-portfolio__more a:hover { background: rgba(255, 255, 255, 0.1); }

/* ========== Hosting ========== */
.nexus-hosting { display: grid; gap: 4rem; align-items: center; }
@media (min-width: 1024px) {
  .nexus-hosting { grid-template-columns: 1fr 1fr; }
}
.nexus-hosting__badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--nexus-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}
.nexus-hosting__title {
  font-family: 'Vazirmatn', 'Vazir', Tahoma, sans-serif;
  font-size: clamp(2rem, 4vw, 3.75rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.nexus-hosting__title span { color: var(--nexus-muted); letter-spacing: normal; }
.nexus-hosting__title { letter-spacing: normal; }
.nexus-hosting__p { color: var(--nexus-muted); font-size: 1.125rem; margin-bottom: 2rem; line-height: 1.6; }
.nexus-hosting__list { margin-bottom: 2.5rem; }
.nexus-hosting__row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.nexus-hosting__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--nexus-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nexus-accent);
}
.nexus-hosting__row h4 { color: #fff; font-weight: 700; margin-bottom: 0.25rem; }
.nexus-hosting__row p { font-size: 0.875rem; color: var(--nexus-muted); margin: 0; }
.nexus-hosting__btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.nexus-hosting__btns .nexus-btn--white {
  padding: 0.75rem 2rem;
  background: #fff;
  color: var(--nexus-black);
  border-radius: 0.5rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}
.nexus-hosting__btns .nexus-btn--white:hover { background: #e5e5e5; }
.nexus-hosting__btns .nexus-btn--outline {
  padding: 0.75rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 0.5rem;
  font-weight: 700;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
}
.nexus-hosting__btns .nexus-btn--outline:hover { background: rgba(255, 255, 255, 0.05); }
.nexus-hosting__panel-wrap { position: relative; }
.nexus-hosting__glow {
  position: absolute;
  inset: -1rem;
  background: rgba(212, 175, 55, 0.2);
  filter: blur(48px);
  border-radius: 50%;
  opacity: 0.3;
}
.nexus-hosting__panel {
  position: relative;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
}
.nexus-hosting__panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nexus-hosting__panel-title { font-size: 1.25rem; color: #fff; font-weight: 700; }
.nexus-hosting__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nexus-hosting__status-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: #22c55e;
  border-radius: 50%;
  animation: nexus-pulse 2s ease-in-out infinite;
}
@keyframes nexus-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.nexus-hosting__status-text { font-size: 0.875rem; color: #22c55e; font-family: 'Vazirmatn', 'Vazir', Tahoma, sans-serif; }
.nexus-hosting__chart { width: 100%; height: 250px; margin-bottom: 1.5rem; }
.nexus-hosting__chart .nexus-hosting-chart-line {
  transition: stroke-dashoffset 5s ease-out;
}
.nexus-hosting__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.nexus-hosting__stat {
  background: rgba(5, 5, 8, 0.5);
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}
.nexus-hosting__stat-label { font-size: 0.75rem; color: var(--nexus-muted); margin-bottom: 0.25rem; }
.nexus-hosting__stat-value { font-size: 1.25rem; color: #fff; font-family: 'Vazirmatn', 'Vazir', Tahoma, sans-serif; font-weight: 700; }

/* ========== Blog ========== */
.nexus-blog__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}
.nexus-blog__title { font-family: 'Vazirmatn', 'Vazir', Tahoma, sans-serif; font-size: 2.25rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.nexus-blog__desc { color: var(--nexus-muted); }
.nexus-blog__all {
  color: #fff;
  border-bottom: 1px solid var(--nexus-primary);
  padding-bottom: 0.25rem;
  text-decoration: none;
  transition: color 0.2s;
}
.nexus-blog__all:hover { color: var(--nexus-primary); }
.nexus-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .nexus-blog-grid { grid-template-columns: repeat(3, 1fr); }
}
.nexus-blog-card {
  background: var(--nexus-card);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s;
}
.nexus-blog-card:hover { border-color: rgba(255, 255, 255, 0.2); }
.nexus-blog-card__img-wrap {
  height: 12rem;
  overflow: hidden;
  position: relative;
}
.nexus-blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.nexus-blog-card:hover .nexus-blog-card__img { transform: scale(1.1); }
.nexus-blog-card__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}
.nexus-blog-card__tag--primary { background: var(--nexus-primary); color: #fff; }
.nexus-blog-card__tag--accent { background: var(--nexus-accent); color: var(--nexus-black); }
.nexus-blog-card__tag--cyan { background: var(--nexus-cyan); color: var(--nexus-black); }
.nexus-blog-card__body { padding: 1.5rem; }
.nexus-blog-card__date {
  font-size: 0.75rem;
  color: var(--nexus-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nexus-blog-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}
.nexus-blog-card:hover .nexus-blog-card__title { color: var(--nexus-primary); }
.nexus-blog-card__excerpt {
  color: var(--nexus-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nexus-blog-card__link {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s;
}
.nexus-blog-card__link:hover { gap: 0.75rem; }

/* ========== Contact ========== */
.nexus-contact {
  position: relative;
  overflow: hidden;
}
.nexus-contact__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 102, 255, 0.1), transparent);
  opacity: 0.2;
  pointer-events: none;
}
.nexus-contact__inner { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 10; }
.nexus-contact__box {
  background: var(--nexus-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: relative;
}
@media (min-width: 768px) {
  .nexus-contact__box { padding: 4rem; }
}
.nexus-contact__glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 16rem;
  height: 16rem;
  background: rgba(0, 102, 255, 0.2);
  filter: blur(80px);
  border-radius: 50%;
  pointer-events: none;
}
.nexus-contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  position: relative;
}
@media (min-width: 768px) {
  .nexus-contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.nexus-contact__title {
  font-family: 'Vazirmatn', 'Vazir', Tahoma, sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
}
.nexus-contact__p { color: var(--nexus-muted); font-size: 1.125rem; margin-bottom: 2rem; }
.nexus-contact__info { margin-bottom: 2rem; }
.nexus-contact__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.nexus-contact__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.nexus-contact__label { font-size: 0.75rem; color: var(--nexus-muted); text-transform: uppercase; }
.nexus-contact__value { color: #fff; font-weight: 500; }
.nexus-contact-form .nexus-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.nexus-contact-form label {
  display: block;
  font-size: 0.75rem;
  color: var(--nexus-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.nexus-contact-form input,
.nexus-contact-form select,
.nexus-contact-form textarea {
  width: 100%;
  background: var(--nexus-black);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.nexus-contact-form select {
  direction: rtl;
  text-align: right;
  padding-inline-end: 2.5rem;
  padding-inline-start: 1rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-color: var(--nexus-black);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23E8E2DB' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 1rem 1rem;
  background-position: right 1rem center;
}
[dir="ltr"] .nexus-contact-form select {
  background-position: left 1rem center;
}
.nexus-contact-form input:focus,
.nexus-contact-form select:focus,
.nexus-contact-form textarea:focus {
  outline: none;
  border-color: var(--nexus-primary);
}
.nexus-contact-form textarea { min-height: 8rem; resize: vertical; }
.nexus-contact-form .nexus-form-submit {
  width: 100%;
  background: #fff;
  color: var(--nexus-black);
  font-weight: 700;
  padding: 1rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 10px 15px -3px rgba(255, 255, 255, 0.1);
}
.nexus-contact-form .nexus-form-submit:hover { background: #e5e5e5; }

/* Section halos: very subtle (low opacity), distinguishable */
#nexus-home .nexus-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(ellipse 90% 55% at 50% 0%, rgba(84, 119, 146, 0.035), transparent 55%);
}
#nexus-home .nexus-hero__bg { z-index: 0; }

#nexus-home .codebymoh-ai-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 25% 75%, rgba(250, 185, 91, 0.025), transparent 45%);
}
#nexus-home .codebymoh-ai-section__inner { position: relative; }

#nexus-home .nexus-marquee::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(180deg, rgba(255,255,255,0.015) 0%, transparent 20%, transparent 80%, rgba(255,255,255,0.015) 100%);
}

#nexus-home #services.nexus-section--black::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(ellipse 65% 85% at 85% 25%, rgba(84, 119, 146, 0.03), transparent 50%);
}

#nexus-home #portfolio.nexus-section--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 75% 50%, rgba(84, 119, 146, 0.035), transparent 40%);
}

#nexus-home .nexus-hosting-section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(ellipse 55% 70% at 25% 65%, rgba(250, 185, 91, 0.03), transparent 50%);
}

#nexus-home #blog.nexus-section--black::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(ellipse 70% 50% at 50% 95%, rgba(84, 119, 146, 0.03), transparent 45%);
}

#nexus-home .codebymoh-testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(ellipse 80% 45% at 50% 5%, rgba(250, 185, 91, 0.025), transparent 48%);
}
#nexus-home .codebymoh-testimonials__inner { position: relative; }

#nexus-home #contact.nexus-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(ellipse 85% 55% at 15% 50%, rgba(84, 119, 146, 0.035), transparent 48%);
}

/* Hosting section gradient overlay */
.nexus-hosting-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 102, 255, 0.05), transparent);
  pointer-events: none;
}

/* ========== RTL (Persian / Farsi) ========== */
[dir="rtl"] .nexus-body {
  text-align: right;
}
[dir="rtl"] .nexus-hero__inner,
[dir="rtl"] .nexus-hero__sub,
[dir="rtl"] .nexus-section__head,
[dir="rtl"] .nexus-contact__box > div {
  text-align: right;
}
[dir="rtl"] .nexus-hero__pill-avatars img {
  margin-left: 0;
  margin-right: -0.5rem;
}
[dir="rtl"] .nexus-hero__pill-avatars img:first-child {
  margin-right: 0;
}
[dir="rtl"] .nexus-hero__pill {
  padding: 0.375rem 0.5rem 0.375rem 1rem;
}
[dir="rtl"] .nexus-mobile-menu__close {
  right: auto;
  left: 1.5rem;
}
[dir="rtl"] .nexus-mobile-menu {
  transform: translateX(-100%);
}
[dir="rtl"] .nexus-mobile-menu.nexus-mobile-menu--open {
  transform: translateX(0);
}
[dir="rtl"] .nexus-footer__newsletter-form {
  direction: rtl;
}
[dir="rtl"] .nexus-footer__bottom {
  text-align: right;
}
@media (min-width: 768px) {
  [dir="rtl"] .nexus-footer__bottom {
    text-align: right;
  }
}
[dir="rtl"] .nexus-card__link i {
  margin-left: 0;
  margin-right: 0.5rem;
}
[dir="rtl"] .nexus-card__link:hover {
  transform: translateX(-0.5rem);
}
[dir="rtl"] .nexus-section__link i,
[dir="rtl"] .nexus-portfolio__more a i,
[dir="rtl"] .nexus-blog-card__link i {
  transform: scaleX(-1);
}
[dir="rtl"] .nexus-portfolio-item__badge {
  left: auto;
  right: 1.5rem;
}
[dir="rtl"] .nexus-blog-card__tag {
  left: auto;
  right: 1rem;
}
[dir="rtl"] .nexus-section__blur {
  right: auto;
  left: 0;
}
[dir="rtl"] .nexus-contact__glow {
  right: auto;
  left: 0;
}
[dir="rtl"] .nexus-contact__row,
[dir="rtl"] .nexus-hosting__row {
  flex-direction: row;
}
[dir="rtl"] .nexus-contact-form input,
[dir="rtl"] .nexus-contact-form select,
[dir="rtl"] .nexus-contact-form textarea {
  text-align: right;
}

/* ========== CodeByMoh: AI Assistant section ========== */
@keyframes codebymoh-pulse-glow {
  0%, 100% { box-shadow: 0 0 30px rgba(84, 119, 146, 0.35), 0 0 60px rgba(250, 185, 91, 0.15); }
  50%  { box-shadow: 0 0 50px rgba(84, 119, 146, 0.5), 0 0 80px rgba(250, 185, 91, 0.25); }
}

.codebymoh-ai-section {
  position: relative;
  background: var(--nexus-dark);
  padding: 6rem 0;
  overflow: hidden;
}

.codebymoh-ai-section__bg {
  position: absolute;
  inset: 0;
  background: var(--nexus-dark);
}

.codebymoh-ai-section__glow {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.11;
  animation: codebymoh-pulse-glow 3s ease-in-out infinite;
}

.codebymoh-ai-section__glow--1 {
  top: 10rem;
  left: 10rem;
  background: var(--nexus-primary);
}

.codebymoh-ai-section__glow--2 {
  bottom: 10rem;
  right: 10rem;
  background: var(--nexus-accent);
  animation-delay: 1.5s;
}

.codebymoh-ai-section__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.codebymoh-ai-section__head {
  text-align: center;
  margin-bottom: 4rem;
}

.codebymoh-ai-section__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(84, 119, 146, 0.15);
  border: 1px solid rgba(84, 119, 146, 0.25);
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  backdrop-filter: blur(8px);
  margin-bottom: 1.5rem;
  color: var(--nexus-text);
  font-size: 0.875rem;
  font-weight: 500;
}

.codebymoh-ai-section__title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--nexus-text);
  margin: 0 0 1.5rem;
}

.codebymoh-ai-section__desc {
  font-size: 1.25rem;
  color: var(--nexus-muted);
  max-width: 42rem;
  margin: 0 auto;
}

/* AI Chat box */
.codebymoh-ai-chat {
  max-width: 64rem;
  margin: 0 auto;
  border-radius: 2rem;
  overflow: hidden;
  border: 1px solid rgba(84, 119, 146, 0.2);
  background: rgba(15, 15, 20, 0.7);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(84, 119, 146, 0.15), 0 4px 16px rgba(250, 185, 91, 0.08);
  transition: box-shadow 0.4s ease;
}

.codebymoh-ai-chat:hover {
  box-shadow: 0 12px 40px rgba(84, 119, 146, 0.2), 0 6px 20px rgba(250, 185, 91, 0.12);
}

.codebymoh-ai-chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: linear-gradient(to right, rgba(84, 119, 146, 0.25), rgba(61, 95, 122, 0.25));
  border-bottom: 1px solid rgba(84, 119, 146, 0.15);
}

.codebymoh-ai-chat__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.codebymoh-ai-chat__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--nexus-primary), var(--nexus-primary-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 4px 20px rgba(84, 119, 146, 0.4);
}

.codebymoh-ai-chat__name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--nexus-text);
  margin: 0 0 0.25rem;
}

.codebymoh-ai-chat__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--nexus-muted);
}

.codebymoh-ai-chat__dot {
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  background: #86efac;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.codebymoh-ai-chat__actions {
  display: flex;
  gap: 0.75rem;
}

.codebymoh-ai-chat__btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: rgba(84, 119, 146, 0.2);
  border: none;
  color: var(--nexus-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  transition: background 0.3s;
}

.codebymoh-ai-chat__btn:hover {
  background: rgba(84, 119, 146, 0.35);
}

.codebymoh-ai-chat__body {
  padding: 2rem;
  height: 28rem;
  overflow-y: auto;
  background: rgba(10, 10, 15, 0.6);
}

.codebymoh-ai-chat__messages {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.codebymoh-ai-chat__row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.codebymoh-ai-chat__row--user {
  flex-direction: row-reverse;
}

.codebymoh-ai-chat__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 1rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.codebymoh-ai-chat__avatar--bot {
  background: linear-gradient(135deg, var(--nexus-primary), var(--nexus-primary-hover));
  color: #fff;
  box-shadow: 0 4px 20px rgba(84, 119, 146, 0.4);
}

.codebymoh-ai-chat__avatar--user {
  background: rgba(100, 116, 139, 0.4);
  border: 1px solid rgba(100, 116, 139, 0.3);
  color: var(--nexus-text);
}

.codebymoh-ai-chat__bubble {
  max-width: 28rem;
  padding: 1rem 1.5rem;
  border-radius: 1.5rem;
  line-height: 1.6;
}

.codebymoh-ai-chat__bubble--bot {
  border-top-left-radius: 0;
  background: rgba(15, 15, 20, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(84, 119, 146, 0.15);
  color: var(--nexus-text);
}

[dir="rtl"] .codebymoh-ai-chat__bubble--bot {
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 0;
}

.codebymoh-ai-chat__bubble--user {
  border-top-right-radius: 0;
  background: linear-gradient(to right, var(--nexus-primary), var(--nexus-primary-hover));
  color: #fff;
  box-shadow: 0 8px 24px rgba(84, 119, 146, 0.25);
}

[dir="rtl"] .codebymoh-ai-chat__bubble--user {
  border-top-right-radius: 1.5rem;
  border-top-left-radius: 0;
}

.codebymoh-ai-chat__bubble-p {
  margin: 0 0 1rem;
}

.codebymoh-ai-chat__list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  color: var(--nexus-text);
}

.codebymoh-ai-chat__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.codebymoh-ai-chat__list li:last-child {
  margin-bottom: 0;
}

.codebymoh-ai-chat__list .fa-check {
  color: var(--nexus-primary);
}

.codebymoh-ai-chat__footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(84, 119, 146, 0.15);
  background: rgba(15, 15, 20, 0.7);
  backdrop-filter: blur(16px);
}

.codebymoh-ai-chat__input-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.codebymoh-ai-chat__input {
  flex: 1;
  background: rgba(51, 65, 85, 0.3);
  border: 1px solid rgba(84, 119, 146, 0.2);
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  color: var(--nexus-text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.codebymoh-ai-chat__input::placeholder {
  color: var(--nexus-muted);
}

.codebymoh-ai-chat__input:focus {
  outline: none;
  border-color: rgba(84, 119, 146, 0.45);
}

.codebymoh-ai-chat__send {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: linear-gradient(to right, var(--nexus-primary), var(--nexus-primary-hover));
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  box-shadow: 0 8px 24px rgba(84, 119, 146, 0.25);
  transition: transform 0.2s, filter 0.2s;
}

.codebymoh-ai-chat__send:hover {
  transform: scale(1.05);
}

.codebymoh-ai-chat__quick {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.codebymoh-ai-chat__quick-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  background: rgba(15, 15, 20, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(84, 119, 146, 0.2);
  color: var(--nexus-text);
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

.codebymoh-ai-chat__quick-btn:hover {
  background: rgba(84, 119, 146, 0.15);
  border-color: rgba(84, 119, 146, 0.35);
}

/* ========== CodeByMoh: Testimonials section ========== */
.codebymoh-testimonials {
  background: var(--nexus-black);
  padding: 6rem 0;
}

.codebymoh-testimonials__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.codebymoh-testimonials__head {
  text-align: center;
  margin-bottom: 5rem;
}

.codebymoh-testimonials__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(84, 119, 146, 0.15);
  border: 1px solid rgba(84, 119, 146, 0.25);
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  backdrop-filter: blur(8px);
  margin-bottom: 1.5rem;
  color: var(--nexus-text);
  font-size: 0.875rem;
  font-weight: 500;
}

.codebymoh-testimonials__title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--nexus-text);
  margin: 0 0 1.5rem;
}

.codebymoh-testimonials__desc {
  font-size: 1.25rem;
  color: var(--nexus-muted);
  max-width: 42rem;
  margin: 0 auto;
}

.codebymoh-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

@media (max-width: 1024px) {
  .codebymoh-testimonials__grid {
    grid-template-columns: 1fr;
  }
}

.codebymoh-testimonial-card {
  padding: 2.5rem;
  border-radius: 1.5rem;
  background: rgba(15, 15, 20, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(84, 119, 146, 0.2);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
}

.codebymoh-testimonial-card:hover {
  transform: translateY(-0.5rem);
  border-color: rgba(84, 119, 146, 0.4);
  box-shadow: 0 12px 32px rgba(84, 119, 146, 0.15);
}

.codebymoh-testimonial-card--alt {
  border-color: rgba(250, 185, 91, 0.2);
}

.codebymoh-testimonial-card--alt:hover {
  border-color: rgba(250, 185, 91, 0.4);
  box-shadow: 0 12px 32px rgba(250, 185, 91, 0.12);
}

.codebymoh-testimonial-card__stars {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: var(--nexus-primary);
  font-size: 1.125rem;
}

.codebymoh-testimonial-card--alt .codebymoh-testimonial-card__stars {
  color: var(--nexus-accent);
}

.codebymoh-testimonial-card__text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--nexus-muted);
  margin: 0 0 2rem;
}

.codebymoh-testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.codebymoh-testimonial-card__avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.codebymoh-testimonial-card__name {
  display: block;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--nexus-text);
}

.codebymoh-testimonial-card__role {
  display: block;
  font-size: 0.875rem;
  color: var(--nexus-muted);
}