/* FA */
@font-face {
  font-family: 'Doran';
  src: url('font/Doran-Medium.woff2') format('woff2'),
    url('font/Doran-Medium.woff') format('woff'),
    url('font/Doran-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}


[lang="fa"] body,
[lang="fa"] .nav,
[lang="fa"] button,
[lang="fa"] input,
[lang="fa"] textarea,
[lang="fa"] .hero-status,
[lang="fa"] .stat-label,
[lang="fa"] .section-label,
[lang="fa"] .about-card-tags span,
[lang="fa"] .ti-skills span,
[lang="fa"] .svc-deliverables span,
[lang="fa"] .pc-tags span,
[lang="fa"] .pc-stack span,
[lang="fa"] .form-field label,
[lang="fa"] .contact-item,
[lang="fa"] .footer-motto,
[lang="fa"] .card-meta {
  font-family: 'Doran', 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}


[lang="fa"] {
  letter-spacing: 0;
}

[lang="fa"] p,
[lang="fa"] .hero-tagline,
[lang="fa"] .about-body p,
[lang="fa"] .pc-desc,
[lang="fa"] .ti-desc,
[lang="fa"] .service-card p,
[lang="fa"] .contact-sub,
[lang="fa"] .modal-desc {
  line-height: 1.8;
  font-weight: 400;
}


[lang="fa"] .nav-item {
  font-size: 14px;
}


[lang="fa"] .logo-name {
  font-family: 'Doran', 'Geist', sans-serif;
}

/* EN */

@font-face {
  font-family: 'Cinzel-Regular';
  src: url('font/Cinzel/Family/Cinzel-Regular.otf') format('otf'),
    url('font/Cinzel/Family/Cinzel-Regular.woff2') format('woff2'),
    url('font/Cinzel/Family/Cinzel-Regular.woff') format('woff'),
    url('font/Cinzel/Family/Cinzel-Regular.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}


[lang="en"] body,
[lang="en"] .nav,
[lang="en"] button,
[lang="en"] input,
[lang="en"] textarea,
[lang="en"] .hero-status,
[lang="en"] .stat-label,
[lang="en"] .section-label,
[lang="en"] .about-card-tags span,
[lang="en"] .ti-skills span,
[lang="en"] .svc-deliverables span,
[lang="en"] .pc-tags span,
[lang="en"] .pc-stack span,
[lang="en"] .form-field label,
[lang="en"] .contact-item,
[lang="en"] .footer-motto,
[lang="en"] .card-meta {
  font-family: 'Cinzel-Regular', 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}


[lang="en"] {
  letter-spacing: 0;
}

[lang="en"] p,
[lang="en"] .hero-tagline,
[lang="en"] .about-body p,
[lang="en"] .pc-desc,
[lang="en"] .ti-desc,
[lang="en"] .service-card p,
[lang="en"] .contact-sub,
[lang="en"] .modal-desc {
  line-height: 1.8;
  font-weight: 400;
}


[lang="en"] .nav-item {
  font-size: 14px;
}


[lang="en"] .logo-name {
  font-family: 'Cinzel-Regular', 'Geist', sans-serif;
}


















/* --------------------------------- */
:root {
  --bg: #000000;
  --bg-1: #171717;
  --bg-2: #0f0f0f;
  --bg-3: #151515;
  --bg-4: #1a1a1a;
  --border: rgba(255, 255, 255, 0.07);
  --border-md: rgba(255, 255, 255, 0.11);
  --border-hi: rgba(255, 255, 255, 0.18);
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.58);
  --text-3: rgba(255, 255, 255, 0.32);
  --text-4: rgba(255, 255, 255, 0.18);
  --accent: #ffffff;
  --blue: #0070f3;
  --blue-dim: rgba(0, 112, 243, 0.12);
  --blue-glow: rgba(0, 112, 243, 0.25);
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", "SF Mono", "Cascadia Code", monospace;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --section-pad: clamp(80px, 10vw, 140px);
  --theme-transition:
    background-color 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}


[data-theme="light"] {
  --bg: #c8cfdb;
  --bg-1: #ffffff;
  --bg-2: #f8fafc;
  --bg-3: #eef2f7;
  --bg-4: #e2e8f0;
  --border: rgba(15, 23, 42, 0.08);
  --border-md: rgba(15, 23, 42, 0.12);
  --border-hi: rgba(15, 23, 42, 0.18);
  --text: #0f172a;
  --text-2: rgba(15, 23, 42, 0.72);
  --text-3: rgba(15, 23, 42, 0.52);
  --text-4: rgba(15, 23, 42, 0.28);
  --accent: #0f172a;
  --blue: #2563eb;
  --blue-dim: rgba(37, 99, 235, 0.08);
  --blue-glow: rgba(37, 99, 235, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: 90px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  transition: var(--theme-transition);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

[data-theme="light"] body {
  background:
    radial-gradient(circle at top left,
      rgba(37, 99, 235, 0.05),
      transparent 28%),
    radial-gradient(circle at bottom right,
      rgba(99, 102, 241, 0.05),
      transparent 32%),
    var(--bg);
}

input,
textarea,
[contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

button,
a {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
  color: inherit;
}

input,
textarea,
select {
  font-family: var(--font);
}

svg {
  display: block;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.7) 0%,
      rgba(255, 255, 255, 0.2) 100%);
  z-index: 9000;
  pointer-events: none;
  transition: width 0.1s linear;
}

[data-theme="light"] .scroll-progress {
  background: linear-gradient(90deg,
      rgba(15, 23, 42, 0.7) 0%,
      rgba(15, 23, 42, 0.2) 100%);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8000;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

[data-theme="light"] .noise {
  opacity: 0.012;
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 7999;
  background: radial-gradient(ellipse at center,
      transparent 50%,
      rgba(0, 0, 0, 0.6) 100%);
}

[data-theme="light"] .vignette {
  background: radial-gradient(ellipse at center,
      transparent 55%,
      rgba(15, 23, 42, 0.06) 100%);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition:
    background 0.5s,
    border-color 0.5s,
    backdrop-filter 0.5s;
}

.nav.is-scrolled {
  background: rgba(0, 0, 0, 0.75);
  border-bottom-color: var(--border);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}

[data-theme="light"] .nav.is-scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(180%);
}

.nav-container {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.logo-mark {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--r-sm);
  transition: background 0.2s;
}

.nav-logo:hover .logo-mark {
  border-color: var(--border-hi);
  background: rgba(255, 255, 255, 0.04);
}

.logo-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
}

.nav-item {
  position: relative;
  padding: 5px 11px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 450;
  color: var(--text-3);
  transition:
    color 0.2s,
    background 0.2s;
  overflow: hidden;
}

.nav-item::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 11px;
  right: 11px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.nav-item:hover,
.nav-item.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-item.is-active::after {
  transform: scaleX(1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.nav-left-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 32px;
  border: 1px solid var(--border-md);
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.03);
  transition:
    border-color 0.3s,
    background 0.3s,
    color 0.3s,
    transform 0.25s var(--ease-out);
}

.lang-toggle:hover {
  border-color: var(--border-hi);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  transform: translateY(-1px);
}

.theme-toggle {
  position: relative;
  width: 52px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border-md);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition:
    border-color 0.3s,
    background 0.3s,
    transform 0.25s var(--ease-out);
}

.theme-toggle:hover {
  border-color: var(--border-hi);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.theme-toggle-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}

.theme-icon {
  position: relative;
  z-index: 3;
  color: var(--text-3);
  transition:
    color 0.3s,
    transform 0.45s var(--ease-out),
    opacity 0.3s;
}

.theme-thumb {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.65));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.3s;
}

[data-theme="light"] .theme-thumb {
  transform: translateX(20px);
  background: linear-gradient(180deg, #0f172a, #1e293b);
}

[data-theme="light"] .sun-icon {
  color: var(--text);
}

[data-theme="light"] .moon-icon {
  color: var(--text-4);
}

body:not([data-theme="light"]) .moon-icon {
  color: white;
}

body:not([data-theme="light"]) .sun-icon {
  color: var(--text-4);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border: 1px solid var(--border-md);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s,
    transform 0.2s;
}

.nav-cta:hover {
  color: var(--text);
  border-color: var(--border-hi);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  align-items: center;
}

.hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text-2);
  border-radius: 2px;
  transition:
    transform 0.3s var(--ease-out),
    opacity 0.3s,
    background 0.2s;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(3.25px) rotate(45deg);
  background: var(--text);
}

.hamburger.is-open span:nth-child(2) {
  transform: translateY(-3.25px) rotate(-45deg);
  background: var(--text);
}

.nav-mobile-overlay {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  backdrop-filter: blur(20px);
  z-index: 490;
  padding: 24px 32px;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
  overflow-y: auto;
}

.nav.mobile-open .nav-mobile-overlay {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.nav.mobile-open .nav-links {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  backdrop-filter: blur(20px);
  z-index: 490;
  padding: 24px 32px;
  gap: 12px;
  margin: 0;
  overflow-y: auto;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 32px 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.grid-canvas {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px,
      transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 50%,
      black 20%,
      transparent 100%);
  animation: gridPan 30s linear infinite;
}

[data-theme="light"] .grid-canvas {
  background-image: radial-gradient(rgba(15, 23, 42, 0.06) 1px,
      transparent 1px);
}

@keyframes gridPan {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 0 32px;
  }
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  animation: orbFloat 12s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.035) 0%,
      transparent 70%);
  animation-delay: 0s;
}

[data-theme="light"] .orb-1 {
  background: radial-gradient(circle,
      rgba(37, 99, 235, 0.08) 0%,
      transparent 72%);
}

.orb-2 {
  width: 300px;
  height: 300px;
  top: 35%;
  left: 60%;
  background: radial-gradient(circle,
      rgba(0, 112, 243, 0.06) 0%,
      transparent 70%);
  animation-delay: -5s;
  filter: blur(80px);
}

[data-theme="light"] .orb-2 {
  background: radial-gradient(circle,
      rgba(99, 102, 241, 0.08) 0%,
      transparent 72%);
}

.orb-3 {
  width: 250px;
  height: 250px;
  top: 60%;
  left: 30%;
  background: radial-gradient(circle,
      rgba(121, 40, 202, 0.05) 0%,
      transparent 70%);
  animation-delay: -8s;
  filter: blur(70px);
}

[data-theme="light"] .orb-3 {
  background: radial-gradient(circle,
      rgba(14, 165, 233, 0.08) 0%,
      transparent 72%);
}

@keyframes orbFloat {

  0%,
  100% {
    opacity: 0.7;
  }

  33% {
    opacity: 1;
  }

  66% {
    opacity: 0.85;
  }
}

.hero-rings {
  position: absolute;
  top: 50%;
  left: 50%;
}

.h-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.r1 {
  width: 380px;
  height: 380px;
  animation: spinRing 25s linear infinite;
}

.r2 {
  width: 600px;
  height: 600px;
  animation: spinRing 40s linear infinite reverse;
  border-color: var(--text-4);
}

.r3 {
  width: 860px;
  height: 860px;
  animation: spinRing 60s linear infinite;
  border-color: rgba(255, 255, 255, 0.03);
}

@keyframes spinRing {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  text-align: center;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid var(--border-md);
  border-radius: 100px;
  font-size: 12.5px;
  color: var(--text-3);
  font-weight: 450;
  margin-bottom: 36px;
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(12px);
  letter-spacing: 0.01em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow:
    0 0 6px #22c55e,
    0 0 12px rgba(34, 197, 94, 0.4);
  animation: statusPulse 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes statusPulse {

  0%,
  100% {
    box-shadow:
      0 0 6px #22c55e,
      0 0 12px rgba(34, 197, 94, 0.3);
  }

  50% {
    box-shadow:
      0 0 4px #22c55e,
      0 0 6px rgba(34, 197, 94, 0.15);
  }
}

.status-divider {
  opacity: 0.3;
}

.hero-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
  line-height: 1.2;
}

.name-line {
  font-size: clamp(60px, 12vw, 148px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.1;
  display: block;
}

.name-line:first-child {
  color: var(--text-4);
  font-weight: 200;
  font-size: clamp(36px, 7vw, 88px);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

[dir="rtl"] .hero-name {
  gap: 0;
}

[dir="rtl"] .name-line {
  line-height: 1.3;
  letter-spacing: 0;
}

/* [dir="rtl"] .name-line:first-child {
  margin-bottom: 4px;
} */
.name-em {
  background: linear-gradient(175deg, var(--text) 0%, var(--text-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(14px, 1.8vw, 17px);
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 40px;
  font-weight: 400;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.br-d {
  display: none;
}

@media (min-width: 640px) {
  .br-d {
    display: block;
  }
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  height: 44px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  font-weight: 600;
  color: #000;
  background: white;
  overflow: hidden;
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s;
}

[data-theme="light"] .btn-primary {
  background: #0f172a;
  color: white;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
}

[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

.btn-primary span {
  padding: 0 18px;
}

.btn-arrow {
  height: 100%;
  width: 44px;
  background: rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  transition: background 0.2s;
}

[data-theme="light"] .btn-arrow {
  background: rgba(255, 255, 255, 0.08);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.18);
}

.btn-primary:hover .btn-arrow {
  background: rgba(0, 0, 0, 0.14);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--border-md);
  border-radius: var(--r-md);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.02);
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s,
    transform 0.25s var(--ease-out);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-hi);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.015);
  backdrop-filter: blur(12px);
  overflow: hidden;
  width: fit-content;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 40px;
  gap: 2px;
  position: relative;
}

.stat-item+.stat-sep+.stat-item {
  border-left: 1px solid var(--border);
}

.stat-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

.stat-n {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.stat-suffix {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-3);
  margin-left: 1px;
}

.stat-label {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 500;
  margin-top: 4px;
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-4);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
}

.scroll-track {
  width: 1px;
  height: 48px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}

.scroll-thumb {
  width: 100%;
  height: 50%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 1px;
  animation: scrollSlide 2s ease-in-out infinite;
}

@keyframes scrollSlide {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    transform: translateY(200%);
    opacity: 0;
  }
}

.section {
  padding: var(--section-pad) 32px;
  position: relative;
}

.section-container {
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-4);
  margin-bottom: 14px;
  font-family: var(--mono);
}

.section-heading {
  font-size: clamp(30px, 4.5vw, 54px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--text);
}

.section-header {
  margin-bottom: 64px;
}

.section-header.centered {
  text-align: center;
}

[data-reveal] {
  opacity: 0;
  transition:
    opacity 0.75s var(--ease-out),
    transform 0.75s var(--ease-out);
}

[data-reveal="fade-up"] {
  transform: translateY(28px);
}

[data-reveal="fade-down"] {
  transform: translateY(-16px);
}

[data-reveal="fade-left"] {
  transform: translateX(28px);
}

[data-reveal="fade-right"] {
  transform: translateX(-28px);
}

[data-reveal="scale"] {
  transform: scale(0.94);
}

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

.about {
  border-top: 1px solid var(--border);
  background: var(--bg-1);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: start;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 28px;
}

.about-body p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.75;
}

.about-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition:
    color 0.2s,
    border-color 0.2s,
    gap 0.2s;
}

.text-link:hover {
  color: var(--text);
  border-color: var(--border-hi);
  gap: 9px;
}

.about-card {
  position: relative;
  border: 1px solid var(--border-md);
  border-radius: var(--r-xl);
  background: var(--bg-2);
  padding: 32px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.about-card:hover {
  border-color: var(--border-hi);
}

[data-theme="light"] .about-card {
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.92),
      rgba(255, 255, 255, 0.72));
  backdrop-filter: blur(18px);
  box-shadow:
    0 10px 40px rgba(15, 23, 42, 0.04),
    0 2px 10px rgba(15, 23, 42, 0.03);
}

.card-shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%,
      rgba(255, 255, 255, 0.04),
      transparent 60%);
  pointer-events: none;
}

.about-avatar {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--border-md);
  animation: avatarSpin 8s linear infinite;
}

@keyframes avatarSpin {
  to {
    transform: rotate(360deg);
  }
}

.avatar-ring::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
}

.avatar-inner {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-4);
  border: 1px solid var(--border-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-2);
}

.about-card-info {
  margin-bottom: 20px;
}

.card-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
}

.card-role {
  font-size: 13px;
  color: var(--text-3);
}

.about-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.about-card-tags span {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.02);
  letter-spacing: 0.02em;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.about-card-tags span:hover {
  color: var(--text);
  border-color: var(--border-md);
}

.about-card-footer {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.availability {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}

.avail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
  flex-shrink: 0;
}

.skills {
  border-top: 1px solid var(--border);
}

.proficiency {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  background: var(--bg-1);
}

[data-theme="light"] .proficiency {
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.92),
      rgba(255, 255, 255, 0.72));
  backdrop-filter: blur(18px);
  box-shadow:
    0 10px 40px rgba(15, 23, 42, 0.04),
    0 2px 10px rgba(15, 23, 42, 0.03);
}

.prof-row {
  display: grid;
  grid-template-columns: 160px 1fr 36px;
  align-items: center;
  gap: 16px;
}

.prof-row,
[dir="ltr"] .prof-row,
[dir="rtl"] .prof-row {
  direction: ltr !important;
  display: grid;
  grid-template-columns: 160px 1fr 36px;
  gap: 16px;
}

.prof-row>span:first-child {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
}

[dir="rtl"] .prof-row>span:first-child {
  text-align: left;
}

.prof-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  overflow: hidden;
  width: 100%;
}

.prof-fill {
  height: 100%;
  background: linear-gradient(90deg,
      rgba(168, 162, 162, 0.26) 0%,
      rgb(133, 132, 132) 100%);
  border-radius: 100px;
  width: 0%;
  transition: width 1.2s var(--ease-out);
}

[data-theme="light"] .prof-fill {
  background: linear-gradient(90deg,
      rgba(168, 162, 162, 0.521) 0%,
      rgba(0, 0, 0, 0.555) 100%);
  box-shadow: 0 0 6px rgba(15, 23, 42, 0.2);
}

.prof-pct {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-4);
  text-align: right;
}

.projects {
  border-top: 1px solid var(--border);
  background: var(--bg-1);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 40px;
}

.project-card {
  background: var(--bg-1);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
      rgba(255, 255, 255, 0.04) 0%,
      transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.project-card:hover {
  background: var(--bg-2);
}

.project-card:hover::after {
  opacity: 1;
}

[data-theme="light"] .project-card {
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.92),
      rgba(255, 255, 255, 0.72));
  backdrop-filter: blur(18px);
  box-shadow:
    0 10px 40px rgba(15, 23, 42, 0.04),
    0 2px 10px rgba(15, 23, 42, 0.03);
}

.pc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.pc-visual {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-3);
}

.pv-glow {
  position: absolute;
  inset: -4px;
  background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover .pv-glow {
  opacity: 1;
}

.pc-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.pc-index {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-4);
}

.pc-tags {
  display: flex;
  gap: 4px;
}

.pc-tags span {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-4);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 2px 7px;
}

.pc-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.pc-desc {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}

.pc-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 20px;
}

.pc-stack span {
  font-size: 10.5px;
  font-family: var(--mono);
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 8px;
}

.pc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.pc-link {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-3);
  transition: color 0.2s;
}

.pc-link:hover {
  color: var(--text);
}

.pc-stat {
  font-size: 11px;
  color: var(--text-4);
  font-family: var(--mono);
}

.journey {
  border-top: 1px solid var(--border);
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-line {
  position: absolute;
  left: 148px;
  top: 24px;
  bottom: 0;
  width: 1px;
  background: var(--border);
  transform-origin: top;
}

.timeline-item {
  display: grid;
  grid-template-columns: 148px auto 1fr;
  gap: 0 32px;
  padding-bottom: 32px;
  position: relative;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.ti-dot {
  grid-column: 2;
  grid-row: 1;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border-md);
  margin-top: 22px;
  transition: border-color 0.3s;
  flex-shrink: 0;
  align-self: start;
}

.timeline-item:hover .ti-dot {
  border-color: var(--text);
}

.ti-date {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--text-4);
  text-align: right;
  padding-top: 18px;
  white-space: nowrap;
}

.ti-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.3s,
    background 0.25s;
}

.ti-card:hover {
  border-color: var(--border-md);
  background: var(--bg-2);
}

[data-theme="light"] .ti-card {
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.92),
      rgba(255, 255, 255, 0.72));
  backdrop-filter: blur(18px);
  box-shadow:
    0 10px 40px rgba(15, 23, 42, 0.04),
    0 2px 10px rgba(15, 23, 42, 0.03);
}

.ti-card-shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%,
      rgba(255, 255, 255, 0.03),
      transparent 60%);
  pointer-events: none;
}

.ti-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ti-role {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
}

.ti-company {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
}

.ti-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 100px;
  padding: 3px 9px;
  white-space: nowrap;
  background: rgba(34, 197, 94, 0.06);
  flex-shrink: 0;
}

.ti-desc {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 16px;
}

.ti-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ti-skills span {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-3);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 9px;
  background: rgba(255, 255, 255, 0.02);
}

.services {
  border-top: 1px solid var(--border);
  background: var(--bg-1);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.service-card {
  background: var(--bg-2);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.service-card:hover {
  background: var(--bg-3);
}

[data-theme="light"] .service-card {
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.92),
      rgba(255, 255, 255, 0.72));
  backdrop-filter: blur(18px);
  box-shadow:
    0 10px 40px rgba(15, 23, 42, 0.04),
    0 2px 10px rgba(15, 23, 42, 0.03);
}

/* [data-theme="light"] .service-card:hover {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 1),
    rgba(255, 255, 255, 0.85)
  );
} */

.svc-num {
  font-size: 10px;
  font-family: var(--mono);
  color: var(--text-4);
  margin-bottom: 16px;
  transition: color 0.3s ease;
}

/* .service-card:hover .svc-num {
  color: var(--text-2);
} */

.svc-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-md);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}



.service-card h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: var(--accent);
}

.service-card p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
  transition: color 0.3s ease;
}

.svc-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 16px;
  transition: background 0.3s ease;
}

.service-card:hover .svc-divider {
  background: var(--border-md);
}

.svc-deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.svc-deliverables span {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 2px 9px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.25s ease;
}

.service-card:hover .svc-deliverables span {
  color: var(--text-2);
  border-color: var(--border-md);
}

.contact {
  border-top: 1px solid var(--border);
  background: var(--bg-1);
  position: relative;
  overflow: hidden;
}

.contact-bg-glow {
  position: absolute;
  width: 700px;
  height: 500px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.025) 0%,
      transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-sub {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 32px;
  margin-top: 16px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.2s;
}

.contact-item:hover {
  color: var(--text);
}

.ci-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  flex-shrink: 0;
  background: var(--bg-2);
  transition:
    border-color 0.2s,
    color 0.2s;
}

.contact-item:hover .ci-icon {
  border-color: var(--border-md);
  color: var(--text-2);
}

.social-links {
  display: flex;
  gap: 8px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  background: var(--bg-2);
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s,
    transform 0.2s var(--ease-out);
}

.social-btn:hover {
  color: var(--text);
  border-color: var(--border-md);
  background: var(--bg-3);
  transform: translateY(-2px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-family: var(--mono);
}

.form-field input,
.form-field textarea,
.form-field select {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition:
    border-color 0.25s,
    background 0.25s;
  -webkit-appearance: none;
  resize: vertical;
}

.form-field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4L6 8L10 4' stroke='rgba(255,255,255,0.3)' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.form-field select option {
  background: #111;
  color: white;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-4);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--border-hi);
  background: var(--bg-3);
}

.form-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  background: var(--bg);
  color: black;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  overflow: hidden;
  transition:
    opacity 0.2s,
    transform 0.2s var(--ease-out),
    background 0.3s;
  margin-top: 4px;
}

.form-submit:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-2px);
}

.form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.submit-text {
  position: relative;
  z-index: 1;
}

.submit-icon {
  position: relative;
  z-index: 1;
}

.submit-loader {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: white;
}

.submit-loader.active {
  display: flex;
}

.loader-ring {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-top-color: black;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.footer {
  padding: 6px 12px;
  border-top: 1px solid var(--border);
}

.footer-container {
  max-width: 1160px;
  margin: 0 auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-left {
  display: flex;
  align-items: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.footer-logo img {
  width: 32px;
  height: 32px;
}

.footer-motto {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.4;
  margin: 0;
  text-align: right;
}



.footer-nav a {
  padding: 4px 10px;
  border-radius: var(--r-sm);
  font-size: 15px;
  color: var(--text-3);
  transition:
    color 0.2s,
    background 0.2s;
}

.footer-nav a:hover {
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.04);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
  position: relative;
}

.footer-bottom p {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.back-top {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition:
    color 0.2s,
    border-color 0.2s,
    transform 0.2s var(--ease-out);
}

.back-top:hover {
  color: var(--text);
  border-color: var(--border-md);
  transform: translateY(-2px);
}

.news-carousel-section {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: var(--section-pad) 32px;
  overflow: hidden;
}

.news-header {
  margin-bottom: 40px;
  text-align: center;
}

.news-header .badge {
  background: var(--bg-3);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
  font-family: var(--mono);
  letter-spacing: 0.08em;
}

.news-header .headline {
  font-size: clamp(30px, 4.5vw, 54px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--text);
}

.carousel-viewport {
  width: 100%;
  height: 65vh;
  min-height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  perspective-origin: 50% 50%;
  cursor: grab;
  position: relative;
  overflow: visible;
}

.carousel-viewport:active {
  cursor: grabbing;
}

.carousel-container {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--card-w);
  transform-style: preserve-3d;
  will-change: transform;
}

:root {
  --card-w: 304px;
}

.news-card {
  position: absolute;
  width: var(--card-w);
  background: var(--bg-1);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  left: 50%;
  top: 50%;
  margin-left: -152px;
  margin-top: -215px;
  transition: border-color 0.3s;
}

[data-theme="light"] .news-card {
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.92),
      rgba(255, 255, 255, 0.72)) !important;
  backdrop-filter: blur(18px) !important;
  box-shadow:
    0 10px 40px rgba(15, 23, 42, 0.04),
    0 2px 10px rgba(15, 23, 42, 0.03) !important;
  border: 1px solid var(--border-md) !important;
}

.news-card:hover {
  border-color: var(--border-md);
}

.card-img {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 20px;
  margin-bottom: 20px;
  object-fit: cover;
  background: var(--bg-3);
}

.card-meta {
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  color: var(--text-4);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  font-family: var(--mono);
}

.card-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 6px;
}

.news-card h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card p {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-2);
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 80px;
  position: relative;
  z-index: 10;
}

.carousel-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.carousel-nav-btn img {
  display: block;
  filter: brightness(0) invert(1);
  transition: transform 0.2s ease;
}

[data-theme="light"] .carousel-nav-btn img {
  filter: brightness(0);
}

.carousel-nav-btn:hover {
  opacity: 0.7;
}

.carousel-nav-btn:hover img {
  transform: scale(1.1);
}

.carousel-nav-btn:active img {
  transform: scale(0.95);
}

.news-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  transition:
    background 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1),
    backdrop-filter 0.4s ease;
}

.news-modal.show {
  display: flex;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.news-modal-content {
  position: relative;
  width: 90%;
  max-width: 500px;
  background: var(--bg-1);
  border: 1px solid var(--border-md);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 24px;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1) rotate(90deg);
}

.modal-body {
  display: flex;
  flex-direction: column;
}

.modal-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--bg-3);
  display: block;
}

.modal-info {
  padding: 28px;
}

.modal-meta {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--text-3);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.3;
}

.modal-desc {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
}

[data-theme="light"] .news-modal {
  background: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .news-modal-content {
  background: white;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .news-carousel-section {
  background: var(--bg) !important;
}

[data-theme="light"] .news-carousel-section .news-card {
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.92),
      rgba(255, 255, 255, 0.72)) !important;
  backdrop-filter: blur(18px) !important;
  box-shadow:
    0 10px 40px rgba(15, 23, 42, 0.04),
    0 2px 10px rgba(15, 23, 42, 0.03) !important;
}

/* ==================== SKILLS SPHERE CARD ==================== */
.skills-sphere-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.skills-sphere-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
}

.sphere-container {
  background: var(--bg-2);
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
  min-height: 380px;
}

#skill-sphere-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tagcloud {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.tagcloud--item {
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--accent);
  text-shadow: 0 0 3px var(--blue-glow);
  font-weight: bold;
  white-space: nowrap;
  position: absolute;
  background: transparent;
  font-size: 13px !important;
}

/* .tagcloud--item:hover {
  color: #10b981;
  text-shadow:
    0 0 8px #10b981,
    0 0 15px #10b981;
  transform: scale(1.1);
  z-index: 10;
} */

.sphere-content {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-1);
}

.sphere-text-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 8px;
  margin: -8px;
  border-radius: var(--r-sm);
}

.sphere-text-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.sphere-text-item.active {
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid #777777 !important;
  padding-left: 6px;
}

[data-theme="light"] .sphere-text-item.active {
  background: rgba(15, 23, 42, 0.05);
  border-left: 4px solid #777777 !important;
}

.sphere-text-item.active .sphere-icon svg {
  stroke: 4px solid #777777 !important;
}

/* .sphere-text-item.active h4 {
  color: #171717;
} */

.sphere-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  border: 1px solid var(--border-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sphere-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.5;
  fill: none;
  stroke: #ffffff;
}

[data-theme="light"] .sphere-icon svg {
  stroke: #000000 !important;
}

.sphere-text {
  flex: 1;
}

.sphere-text h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
}

.sphere-text p {
  font-size: 11px;
  color: var(--text-2);
  line-height: 1.5;
}

/* ==================== END SKILLS SPHERE CARD ==================== */

[data-theme="light"] .pc-visual .pv-icon svg {
  stroke: #000000 !important;
}

[data-theme="light"] .pc-visual .pv-icon svg circle,
[data-theme="light"] .pc-visual .pv-icon svg path,
[data-theme="light"] .pc-visual .pv-icon svg rect {
  stroke: #000000 !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  background: transparent;
}

html,
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

* {
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .nav-left-buttons {
    margin-right: 8px;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-right {
    order: -1;
  }

  .about-card {
    max-width: 400px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .timeline-item {
    grid-template-columns: 100px auto 1fr;
    gap: 0 20px;
  }

  .timeline-line {
    left: 118px;
  }

  .skills-sphere-layout {
    grid-template-columns: 1fr;
  }

  .sphere-container {
    border-right: none;
    border-bottom: 1px solid var(--border);
    min-height: 320px;
    padding: 24px;
  }

  #skill-sphere-container {
    height: auto;
  }
}

@media (max-width: 768px) {
  .news-carousel-section {
    padding: 64px 20px;
  }

  .carousel-viewport {
    height: 60vh;
    min-height: 420px;
  }

  .news-card {
    width: 280px;
    margin-left: -140px;
    margin-top: -200px;
    padding: 18px;
  }

  .news-card h3 {
    font-size: 18px;
    line-height: 24px;
  }

  .carousel-buttons {
    gap: 24px;
    margin-top: 60px;
  }

  .carousel-nav-btn {
    padding: 8px 20px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 20px;
  }

  .nav {
    padding: 0 20px;
  }

  .hero {
    padding: 80px 20px 60px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 0;
    border: none;
    background: none;
    backdrop-filter: none;
  }

  .stat-item {
    padding: 12px 0;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    width: 100%;
  }

  .stat-sep {
    display: none;
  }

  .prof-row {
    grid-template-columns: 120px 1fr 36px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 80px auto 1fr;
    gap: 0 12px;
  }

  .timeline-line {
    left: 98px;
  }

  .ti-date {
    font-size: 10px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
  }

  .footer-nav {
    gap: 0;
  }

  .h-ring {
    display: none;
  }

  .r3 {
    display: none;
  }

  .theme-toggle {
    width: 48px;
    height: 30px;
  }

  .theme-thumb {
    width: 22px;
    height: 22px;
  }

  [data-theme="light"] .theme-thumb {
    transform: translateX(18px);
  }

  .lang-toggle {
    width: 34px;
    height: 28px;
    font-size: 11px;
  }

  .news-modal-content {
    width: 92%;
  }

  .modal-info {
    padding: 20px;
  }

  .modal-title {
    font-size: 18px;
  }

  .modal-desc {
    font-size: 14px;
  }

  .sphere-container {
    min-height: 280px;
    padding: 16px;
  }

  #skill-sphere-container {
    height: auto;
  }

  .sphere-content {
    padding: 16px;
    gap: 12px;
  }

  .sphere-text-item {
    gap: 10px;
    padding: 6px;
  }

  .sphere-icon {
    width: 28px;
    height: 28px;
  }

  .sphere-icon svg {
    width: 14px;
    height: 14px;
  }

  .sphere-text h4 {
    font-size: 12px;
  }

  .sphere-text p {
    font-size: 10px;
  }
}

[dir="rtl"] .nav-links {
  margin-left: 0;
  margin-right: 12px;
}

[dir="rtl"] .nav-right {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .nav-left-buttons {
  margin-right: 0;
  margin-left: 12px;
}

[dir="rtl"] .footer-nav {
  flex-direction: row-reverse;
}

[dir="rtl"] .hero-tagline {
  direction: rtl;
}

[dir="rtl"] .about-body p {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .about-links {
  direction: rtl;
}

[dir="rtl"] .pc-desc {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .ti-desc {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .service-card p {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .contact-sub {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .footer-motto {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .form-field {
  text-align: right;
}

[dir="rtl"] .form-field label {
  text-align: right;
}

[dir="rtl"] .form-field input,
[dir="rtl"] .form-field textarea,
[dir="rtl"] .form-field select {
  text-align: right;
  direction: rtl;
}

[dir="rtl"] .timeline-item {
  grid-template-columns: 148px auto 1fr;
  direction: rtl;
}

[dir="rtl"] .ti-date {
  text-align: left;
}

[dir="rtl"] .timeline-line {
  left: auto;
  right: 148px;
}

[dir="rtl"] .ti-dot {
  grid-column: 2;
}

[dir="rtl"] .contact-item {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

[dir="rtl"] .social-links {
  justify-content: flex-end;
}

[dir="rtl"] .sphere-text-item {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .sphere-text h4,
[dir="rtl"] .sphere-text p {
  text-align: right;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}



/* ========== ثابت نگه داشتن layout بخش Skills در حالت فارسی ========== */
[dir="rtl"] .skills-sphere-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  direction: ltr !important;
}

[dir="rtl"] .skills-sphere-layout .sphere-container {
  border-right: 1px solid var(--border);
  border-left: none;
  direction: ltr !important;
}

[dir="rtl"] .skills-sphere-layout .sphere-content {
  direction: rtl !important;
}

[dir="rtl"] .sphere-text-item {
  display: flex;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 12px;
  text-align: right !important;
  direction: rtl !important;
}

[dir="rtl"] .sphere-text-item.active {
  border-left: none !important;
  border-right: 4px solid #777777 !important;
  padding-left: 8px !important;
  padding-right: 6px !important;
}

[dir="rtl"] .sphere-text h4,
[dir="rtl"] .sphere-text p {
  text-align: right !important;
}

[dir="rtl"] .sphere-icon {
  margin-left: 12px;
  margin-right: 0;
}

[dir="rtl"] .proficiency {
  direction: ltr !important;
}

[dir="rtl"] .prof-row {
  direction: ltr !important;
  display: grid;
  grid-template-columns: 160px 1fr 36px;
}

[dir="rtl"] .prof-row span:first-child {
  text-align: left;
}

[dir="rtl"] .prof-pct {
  text-align: left;
}


/* ========== فقط صفحه اصلی (Hero) - ثابت ماندن layout در حالت فارسی ========== */
[dir="rtl"] .hero {
  direction: ltr !important;
}

[dir="rtl"] .hero-content {
  direction: ltr !important;
  text-align: center !important;
}

[dir="rtl"] .hero-name {
  direction: ltr !important;
}

[dir="rtl"] .hero-name .name-line {
  direction: ltr !important;
  display: inline-block !important;
}

[dir="rtl"] .hero-status {
  direction: ltr !important;
}

[dir="rtl"] .hero-tagline {
  direction: ltr !important;
  text-align: center !important;
}

[dir="rtl"] .hero-actions {
  direction: ltr !important;
}

[dir="rtl"] .hero-stats {
  direction: ltr !important;
}

[dir="rtl"] .hero-scroll {
  direction: ltr !important;
}


/* ========== Skills section layout در حالت دسکتاپ ========== */
.skills-sphere-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
}


@media (max-width: 900px) {
  .skills-sphere-layout {
    grid-template-columns: 1fr !important;
  }

  .sphere-container {
    border-right: none !important;
    border-left: none !important;
    border-bottom: 1px solid var(--border);
  }
}

[dir="rtl"] .skills-sphere-layout {}

@media (min-width: 901px) {
  [dir="rtl"] .skills-sphere-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.nav img,
.footer img {
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

[data-theme="light"] .nav img,
[data-theme="light"] .footer img {
  filter: brightness(1) invert(0);
}