/* ============================================
   متغیرها
   ============================================ */
:root {
  /* --primary: #00d9a5; */
  --primary: #d9b400;
  --primary-dark: #00b386;
  --secondary: #00b4d8;
  --primary-glow: rgba(0, 217, 165, 0.4);
  --bg-dark: #0a0f0d;
  --surface: rgba(15, 25, 22, 0.6);
  --glass: rgba(20, 35, 30, 0.45);
  --fg: #e8f5f0;
  --muted-fg: #8aa89a;
  --copy-soft: #6b8a7a;
  --copy-dim: #5a7a6a;
  --copy-bright: #c8e6d9;
  --border: rgba(0, 217, 165, 0.12);
  --success: #00d9a5;
  --sidebar-width: 320px;
  --side-nav-width: 70px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

/* ============================================
   Reset
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* Fonts */
@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: 200;
  src: url("./fonts/IRANSansWeb_UltraLight_FaNum.eot");
  src:
    url("./fonts/IRANSansWeb_UltraLight_FaNum.eot?#iefix") format("embedded-opentype"),
    url("./fonts/IRANSansWeb_UltraLight_FaNum.woff2") format("woff2"),
    url("./fonts/IRANSansWeb_UltraLight_FaNum.woff") format("woff"),
    url("./fonts/IRANSansWeb_UltraLight_FaNum.ttf") format("truetype");
}

@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: 300;
  src: url("./fonts/IRANSansWeb_Light_FaNum.eot");
  src:
    url("./fonts/IRANSansWeb_Light_FaNum.eot?#iefix") format("embedded-opentype"),
    url("./fonts/IRANSansWeb_Light_FaNum.woff2") format("woff2"),
    url("./fonts/IRANSansWeb_Light_FaNum.woff") format("woff"),
    url("./fonts/IRANSansWeb_Light_FaNum.ttf") format("truetype");
}

@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: 400;
  src: url("./fonts/IRANSansWeb_FaNum.eot");
  src:
    url("./fonts/IRANSansWeb_FaNum.eot?#iefix") format("embedded-opentype"),
    url("./fonts/IRANSansWeb_FaNum.woff2") format("woff2"),
    url("./fonts/IRANSansWeb_FaNum.woff") format("woff"),
    url("./fonts/IRANSansWeb_FaNum.ttf") format("truetype");
}

@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: 500;
  src: url("./fonts/IRANSansWeb_Medium_FaNum.eot");
  src:
    url("./fonts/IRANSansWeb_Medium_FaNum.eot?#iefix") format("embedded-opentype"),
    url("./fonts/IRANSansWeb_Medium_FaNum.woff2") format("woff2"),
    url("./fonts/IRANSansWeb_Medium_FaNum.woff") format("woff"),
    url("./fonts/IRANSansWeb_Medium_FaNum.ttf") format("truetype");
}

@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: 700;
  src: url("./fonts/IRANSansWeb_Bold_FaNum.eot");
  src:
    url("./fonts/IRANSansWeb_Bold_FaNum.eot?#iefix") format("embedded-opentype"),
    url("./fonts/IRANSansWeb_Bold_FaNum.woff2") format("woff2"),
    url("./fonts/IRANSansWeb_Bold_FaNum.woff") format("woff"),
    url("./fonts/IRANSansWeb_Bold_FaNum.ttf") format("truetype");
}

@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: 900;
  src: url("./fonts/IRANSansWeb_Black_FaNum.eot");
  src:
    url("./fonts/IRANSansWeb_Black_FaNum.eot?#iefix") format("embedded-opentype"),
    url("./fonts/IRANSansWeb_Black_FaNum.woff2") format("woff2"),
    url("./fonts/IRANSansWeb_Black_FaNum.woff") format("woff"),
    url("./fonts/IRANSansWeb_Black_FaNum.ttf") format("truetype");
}

@font-face {
  font-family: IRANSansEN;
  font-style: normal;
  font-weight: 200;
  src: url('./fonts/IRANSansWeb_UltraLight.eot');
  src: url('./fonts/IRANSansWeb_UltraLight.eot?#iefix') format('embedded-opentype'),
    url('./fonts/IRANSansWeb_UltraLight.woff2') format('woff2'),
    url('./fonts/IRANSansWeb_UltraLight.woff') format('woff'),
    url('./fonts/IRANSansWeb_UltraLight.ttf') format('truetype');
}

@font-face {
  font-family: IRANSansEN;
  font-style: normal;
  font-weight: 300;
  src: url('./fonts/IRANSansWeb_Light.eot');
  src: url('./fonts/IRANSansWeb_Light.eot?#iefix') format('embedded-opentype'),
    url('./fonts/IRANSansWeb_Light.woff2') format('woff2'),
    url('./fonts/IRANSansWeb_Light.woff') format('woff'),
    url('./fonts/IRANSansWeb_Light.ttf') format('truetype');
}

@font-face {
  font-family: IRANSansEN;
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/IRANSansWeb.eot');
  src: url('./fonts/IRANSansWeb.eot?#iefix') format('embedded-opentype'),
    url('./fonts/IRANSansWeb.woff2') format('woff2'),
    url('./fonts/IRANSansWeb.woff') format('woff'),
    url('./fonts/IRANSansWeb.ttf') format('truetype');
}

@font-face {
  font-family: IRANSansEN;
  font-style: normal;
  font-weight: 500;
  src: url('./fonts/IRANSansWeb_Medium.eot');
  src: url('./fonts/IRANSansWeb_Medium.eot?#iefix') format('embedded-opentype'),
    url('./fonts/IRANSansWeb_Medium.woff2') format('woff2'),
    url('./fonts/IRANSansWeb_Medium.woff') format('woff'),
    url('./fonts/IRANSansWeb_Medium.ttf') format('truetype');
}

@font-face {
  font-family: IRANSansEN;
  font-style: normal;
  font-weight: 700;
  src: url('./fonts/IRANSansWeb_Bold.eot');
  src: url('./fonts/IRANSansWeb_Bold.eot?#iefix') format('embedded-opentype'),
    url('./fonts/IRANSansWeb_Bold.woff2') format('woff2'),
    url('./fonts/IRANSansWeb_Bold.woff') format('woff'),
    url('./fonts/IRANSansWeb_Bold.ttf') format('truetype');
}

@font-face {
  font-family: IRANSansEN;
  font-style: normal;
  font-weight: 900;
  src: url('./fonts/IRANSansWeb_Black.eot');
  src: url('./fonts/IRANSansWeb_Black.eot?#iefix') format('embedded-opentype'),
    url('./fonts/IRANSansWeb_Black.woff2') format('woff2'),
    url('./fonts/IRANSansWeb_Black.woff') format('woff'),
    url('./fonts/IRANSansWeb_Black.ttf') format('truetype');
}

.t-en {
  font-family: IRANSansEN;
}

.en {
  font-family: sans-serif, Arial, Helvetica;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: IRANSans !important;
  background: var(--bg-dark);
  color: var(--fg);
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

/* ============================================
   پس‌زمینه و افکت‌ها
   ============================================ */
.aurora-orb {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(120px);
  mix-blend-mode: screen;
  opacity: 0.4;
}

.aurora-orb-1 {
  left: -4%;
  top: -6%;
  background: var(--primary);
  animation: orbit 20s linear infinite;
}

.aurora-orb-2 {
  right: -4%;
  bottom: -6%;
  background: var(--secondary);
  animation: orbit-reverse 20s linear infinite;
}

.aurora-orb-3 {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.15) 0%, transparent 70%);
  filter: blur(80px);
  animation: pulse-glow 8s ease-in-out infinite;
}

@keyframes orbit {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -20px) scale(1.1);
  }
  50% {
    transform: translate(-10px, 30px) scale(0.95);
  }
  75% {
    transform: translate(20px, 10px) scale(1.05);
  }
}

@keyframes orbit-reverse {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(-20px, 30px) scale(0.95);
  }
  50% {
    transform: translate(30px, -10px) scale(1.1);
  }
  75% {
    transform: translate(-10px, -20px) scale(1.05);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 0%, hsla(160, 22%, 2%, 0.78) 100%);
}

.gradient-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(0, 217, 165, 0.08) 0%, transparent 45%, rgba(0, 180, 216, 0.1) 100%);
}

.cursor-glow {
  position: fixed;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 217, 165, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: all 0.15s ease-out;
}

.particle {
  position: fixed;
  width: 3px;
  height: 3px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.2;
  pointer-events: none;
  z-index: 1;
}

@keyframes float {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.2;
  }
  50% {
    opacity: 0.6;
    transform: translateY(-80px) scale(1.5);
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.2;
  }
}

/* ============================================
   Glass Effect
   ============================================ */
.glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
}

.glass-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(0, 217, 165, 0.3);
  box-shadow: 0 8px 32px rgba(0, 217, 165, 0.1);
}

/* ============================================
   Layout اصلی
   ============================================ */
.app-wrapper {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.app-layout {
  display: flex;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* ============================================
   سایدبار دسکتاپ
   ============================================ */
.desktop-sidebar {
  position: sticky;
  top: 2rem;
  width: var(--sidebar-width);
  height: calc(100dvh - 4rem);
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
  scrollbar-width: none;
}

.desktop-sidebar::-webkit-scrollbar {
  display: none;
}

.profile-img-wrap {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.profile-img-wrap img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  opacity: 0.85;
  filter: grayscale(100%);
  transition: all 0.7s ease;
}

.profile-img-wrap:hover img {
  opacity: 1;
  filter: grayscale(0%);
}

.sidebar-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.sidebar-role {
  font-size: 0.85rem;
  color: var(--primary);
  opacity: 0.85;
  font-weight: 500;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  padding: 0 0.5rem;
  flex-wrap: wrap;
}

.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--muted-fg);
  background: rgba(0, 217, 165, 0.05);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.social-link:hover {
  color: var(--primary);
  background: rgba(0, 217, 165, 0.15);
  transform: translateY(-2px);
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.sidebar-info {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 0.5rem;
}

.sidebar-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}

.sidebar-info-row:last-child {
  border-bottom: none;
}

.sidebar-info-label {
  color: var(--copy-dim);
  font-weight: 600;
}

.sidebar-info-value {
  color: var(--copy-bright);
  font-size: 0.85rem;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  margin-left: 6px;
  margin-right: 6px;
}

.resume-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.resume-buttons .cv-btn {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  padding: 0.7rem 0.5rem;
  border-radius: 14px;
  font-weight: 700;
  transition: all 0.3s;
  display: block;
  border: none;
  cursor: pointer;
}

.cv-btn {
  display: block;
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: 14px;
  color: var(--bg-dark);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.cv-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--primary-glow);
}

.cv-btn--en {
  background: linear-gradient(135deg, #00b4d8, #0077b6);
  color: #fff;
}

.cv-btn--en:hover {
  box-shadow: 0 10px 30px rgba(0, 180, 216, 0.4);
}

/* ============================================
   Language Switcher
   ============================================ */
.lang-switcher {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted-fg);
  padding: 6px 15px 5px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.lang-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg-dark);
}

.lang-btn:hover:not(.active) {
  border-color: var(--primary);
  color: var(--fg);
}

/* ============================================
   محتوای اصلی
   ============================================ */
.main-content {
  flex: 1;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  min-height: calc(100dvh - 4rem);
  min-width: 0;
}

.section {
  margin-bottom: 4rem;
}
.section:last-child {
  margin-bottom: 0;
}

.section__heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.section__heading--sub {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.section__icon {
  color: var(--primary);
  opacity: 0.7;
  font-size: 1.3rem;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding-top: 2rem;
}

.hero__label {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__label::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--primary);
  display: inline-block;
}

.hero__heading {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  color: var(--muted-fg);
  font-size: 1rem;
  line-height: 2;
  max-width: 520px;
}

/* ============================================
   درباره من
   ============================================ */
.about__text {
  color: var(--muted-fg);
  line-height: 2;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.about__info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.about__info-item {
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.3s;
}

.about__info-item:hover {
  border-color: rgba(0, 217, 165, 0.3);
  transform: translateY(-3px);
}

.about__info-label {
  color: var(--copy-dim);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.about__info-value {
  color: var(--fg);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ============================================
   خدمات (Service Grid)
   ============================================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.service-card-inner {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-card-inner--wide {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.service-icon-wrap {
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 217, 165, 0.1);
  color: var(--primary);
}

.service-icon-wrap svg {
  width: 20px;
  height: 20px;
}

.service-title {
  font-weight: 700;
  font-size: 1rem;
}

.service-desc {
  color: var(--copy-soft);
  font-size: 0.8rem;
  line-height: 1.8;
}

/* ============================================
   رزومه / Timeline
   ============================================ */
.resume__sub-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 2rem 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.resume__sub-heading::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--primary);
  display: inline-block;
}

.timeline {
  position: relative;
  padding-right: 1.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), transparent);
}

.timeline-item {
  position: relative;
  padding-right: 2rem;
  padding-bottom: 2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  right: -5px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.timeline-dot--active {
  background: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.timeline-dot--inactive {
  background: rgba(0, 217, 165, 0.3);
  border: 2px solid var(--primary);
}

.timeline-item__period {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  display: block;
}

.timeline-item__period--active {
  color: var(--primary);
}
.timeline-item__period--inactive {
  color: var(--copy-dim);
}

.timeline-item__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.timeline-item__company {
  color: var(--muted-fg);
  font-size: 0.85rem;
  font-weight: 500;
}

.timeline-item__desc {
  color: var(--copy-soft);
  font-size: 0.85rem;
  line-height: 1.8;
  margin-top: 0.6rem;
}

/* ============================================
   مهارت‌ها
   ============================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.skill__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.skill__name {
  font-weight: 600;
  font-size: 0.85rem;
}

.skill__pct {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
}

.skill__bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.skill__fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.skill__fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-20px);
  }
  100% {
    transform: translateX(20px);
  }
}

/* ============================================
   نمونه‌کارها
   ============================================ */
.portfolio-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.portfolio-filter {
  padding: 0.5rem 1.2rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted-fg);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s;
}

.portfolio-filter:hover,
.portfolio-filter.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg-dark);
  font-weight: 700;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.portfolio-card {
  overflow: hidden;
  transition: transform 0.4s, border-color 0.4s;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 217, 165, 0.3);
}

.portfolio-card__img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.portfolio-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s;
  filter: grayscale(30%);
}

.portfolio-card:hover .portfolio-card__img {
  transform: scale(1.08);
  filter: grayscale(0%);
}

.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 15, 13, 0.6);
  opacity: 0;
  transition: opacity 0.4s;
}

.portfolio-card:hover .portfolio-card__overlay {
  opacity: 1;
}

.portfolio-card__link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--bg-dark);
  transform: scale(0.8);
  transition: transform 0.3s;
}

.portfolio-card:hover .portfolio-card__link {
  transform: scale(1);
}

.portfolio-card__body {
  padding: 1.25rem;
}

.portfolio-card__cat {
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.portfolio-card__title {
  font-weight: 700;
  font-size: 1rem;
}

/* ============================================
   تماس
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--fg);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 217, 165, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--copy-dim);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 14px;
  color: var(--bg-dark);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  align-self: flex-start;
}

.contact-form__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--primary-glow);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
}

.contact-info-card__icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 217, 165, 0.1);
  color: var(--primary);
}

.contact-info-card__label {
  color: var(--copy-dim);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.contact-info-card__value {
  color: var(--fg);
  font-size: 0.85rem;
  font-weight: 500;
}

.site-footer {
  text-align: center;
  padding: 3rem 0 1rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

.site-footer p {
  color: var(--copy-dim);
  font-size: 0.8rem;
}

/* ============================================
   ناوبری کناری دسکتاپ
   ============================================ */
.side-nav {
  position: sticky;
  top: 2rem;
  width: var(--side-nav-width);
  height: calc(100dvh - 4rem);
  border-radius: 20px;
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  justify-content: center;
}

.side-nav__btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--muted-fg);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.side-nav__btn:hover,
.side-nav__btn.active {
  background: rgba(0, 217, 165, 0.1);
  color: var(--primary);
}

.side-nav__btn.active::before {
  content: '';
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: var(--primary);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--primary);
}

.side-nav__btn svg {
  width: 20px;
  height: 20px;
}

.side-nav__tooltip {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  color: var(--fg);
}

.side-nav__btn:hover .side-nav__tooltip {
  opacity: 1;
}

/* ============================================
   موبایل هدر و سایدبار
   ============================================ */
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.mobile-header-name {
  font-size: 0.9rem;
  font-weight: 700;
}

.menu-btn,
.close-sidebar {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: transparent;
  border: none;
  color: var(--muted-fg);
  cursor: pointer;
}

.menu-btn:hover,
.close-sidebar:hover {
  color: var(--fg);
}

.close-sidebar {
  position: absolute;
  left: 1rem;
  top: 1rem;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.sidebar-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.sidebar-mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: 350px;
  height: 100dvh;
  z-index: 50;
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  scrollbar-width: none;
}

.sidebar-mobile::-webkit-scrollbar {
  display: none;
}
.sidebar-mobile.open {
  transform: translateX(0);
}

.sidebar-mobile__content {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-mobile .social-links {
  padding: 0;
}

.sidebar-mobile .sidebar-info {
  margin-top: 0.5rem;
  padding: 0;
}

.sidebar-mobile .resume-buttons {
  flex-direction: column;
}

/* ============================================
   ناوبری پایین موبایل
   ============================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: none;
  border-top: 1px solid var(--border);
  padding: 0.5rem 1rem;
}

.bottom-nav__inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.bottom-nav__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.4rem 0.6rem;
  background: transparent;
  border: none;
  color: var(--muted-fg);
  font-size: 0.65rem;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 12px;
}

.bottom-nav__btn.active {
  color: var(--primary);
  background: rgba(0, 217, 165, 0.1);
}

.bottom-nav__btn svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   Reveal
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1199px) {
  .desktop-sidebar,
  .side-nav {
    display: none !important;
  }

  .mobile-header {
    display: flex;
  }
  .bottom-nav {
    display: block;
  }

  .app-wrapper {
    padding: 5rem 1rem 6rem;
  }

  .main-content {
    padding: 1.5rem;
    min-height: auto;
  }

  .hero__heading {
    font-size: 2.2rem;
  }

  .portfolio-grid,
  .skills-grid,
  .service-grid,
  .about__info-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .service-card-inner--wide {
    flex-direction: column;
  }
}

@media (max-width: 575px) {
  .hero__heading {
    font-size: 1.8rem;
  }
  .section__heading {
    font-size: 1.3rem;
  }
  .resume-buttons {
    flex-direction: column;
  }
  .portfolio-filters {
    gap: 0.3rem;
  }
}

@media (min-width: 1200px) {
  .mobile-header,
  .bottom-nav,
  .sidebar-mobile,
  .sidebar-overlay {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
