/* =============================================
   ⚜️ استایل شخصی - تم طلایی مشکی
   Personal Website - Gold & Black Theme
   All Rights Reserved © 2024
   ============================================= */

/* ===== متغیرهای تم سایت ===== */
:root {
  --gold-primary: #D4AF37;
  --gold-dark: #B8960F;
  --gold-light: #F5E6A3;
  --gold-glow: rgba(212, 175, 55, 0.3);
  --gold-gradient: linear-gradient(135deg, #D4AF37, #F5E6A3, #D4AF37);
  --gold-gradient-soft: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(245, 230, 163, 0.05));

  --black-deep: #0A0A0A;
  --black-dark: #111111;
  --black-mid: #1A1A1A;
  --black-light: #222222;
  --black-lighter: #2A2A2A;

  --text-primary: #F5F0E8;
  --text-secondary: #B8B0A0;
  --text-muted: #7A7A7A;
  --text-gold: #D4AF37;

  --bg-body: #0A0A0A;
  --bg-card: #111111;
  --bg-card-hover: #1A1A1A;
  --bg-section: #0D0D0D;
  --bg-section-alt: #111111;

  --border-color: rgba(212, 175, 55, 0.15);
  --border-gold: rgba(212, 175, 55, 0.3);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.15);
  --shadow-gold-lg: 0 8px 40px rgba(212, 175, 55, 0.2);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --font-primary: 'Vazir', 'Tahoma', 'Segoe UI', sans-serif;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* select dropdown در تم تیره */
select.form-control {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23D4AF37' d='M8 11L3 6h10l-5 5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left 12px center;
  background-size: 16px 12px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-left: 40px;
}

/* ===== استایل پایه ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-body);
  color: var(--text-primary);
  direction: rtl;
  text-align: right;
  line-height: 1.8;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection {
  background: var(--gold-primary);
  color: var(--black-deep);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--black-deep); }
::-webkit-scrollbar-thumb { background: var(--black-lighter); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: var(--transition-normal);
}
a:hover { color: var(--gold-light); }

/* ===== پس‌زمینه سایت (گرادینت مخفی) ===== */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(212, 175, 55, 0.02) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* ===== انیمیشن پس‌زمینه ذرات طلایی ===== */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.navbar,
.hero-section,
.section-padding,
.footer {
  position: relative;
  z-index: 1;
}

/* ===== نوار ناوبری ===== */
.navbar {
  background: rgba(10, 10, 10, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  transition: var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.98) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-primary) !important;
  letter-spacing: 1px;
}
.navbar-brand span { color: var(--text-primary); }
.navbar-brand .gold-icon { display: inline-block; margin-left: 8px; font-size: 1.3rem; }

.nav-link {
  color: var(--text-secondary) !important;
  font-size: 0.95rem;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: var(--transition-normal);
  border-radius: 2px;
}

.nav-link:hover {
  color: var(--gold-primary) !important;
  background: rgba(212, 175, 55, 0.05);
}
.nav-link:hover::after,
.nav-link.active::after { width: 60%; }
.nav-link.active { color: var(--gold-primary) !important; }

.navbar-toggler {
  border: 1px solid var(--border-color);
  padding: 8px 12px;
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--gold-glow); }

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(212, 175, 55, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== بخش قهرمان (Hero) ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--gold-primary);
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--gold-primary);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-title .gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .typewriter {
  display: inline-block;
  border-left: 3px solid var(--gold-primary);
  padding-left: 8px;
  animation: blink-cursor 0.8s infinite;
}

@keyframes blink-cursor {
  0%, 100% { border-color: var(--gold-primary); }
  50% { border-color: transparent; }
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper .profile-frame {
  width: 380px; height: 380px;
  border-radius: 50%;
  border: 3px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-gold-lg);
}

.hero-image-wrapper .profile-frame .profile-placeholder {
  font-size: 8rem;
  color: var(--gold-primary);
  opacity: 0.6;
}

.hero-image-wrapper .glow-ring {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.1);
  animation: spin-slow 20s linear infinite;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-image-wrapper .glow-ring-2 {
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, 0.08);
  animation: spin-slow 30s linear infinite reverse;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding: 24px 0;
  border-top: 1px solid var(--border-color);
}

.hero-stat-item h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 2px;
}

.hero-stat-item p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

/* ===== بخش‌های عمومی ===== */
.section-padding { padding: 100px 0; }

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-title .gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 50px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .divider {
  width: 60px;
  height: 3px;
  background: var(--gold-gradient);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ===== دکمه‌ها ===== */
.btn-gold {
  background: var(--gold-gradient);
  color: var(--black-deep);
  border: none;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-normal);
  cursor: pointer;
  font-family: var(--font-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.3);
  color: var(--black-deep);
}
.btn-gold:active { transform: translateY(0); }

.btn-outline-gold {
  background: transparent;
  color: var(--gold-primary);
  border: 2px solid var(--gold-primary);
  padding: 10px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-normal);
  cursor: pointer;
  font-family: var(--font-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline-gold:hover {
  background: var(--gold-primary);
  color: var(--black-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.2);
}

.btn-sm-gold {
  background: var(--gold-gradient);
  color: var(--black-deep);
  border: none;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition-normal);
  cursor: pointer;
  font-family: var(--font-primary);
}

.btn-sm-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  color: var(--black-deep);
}

.btn-sm-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--black-lighter);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.85rem;
  transition: var(--transition-normal);
  cursor: pointer;
  font-family: var(--font-primary);
}

.btn-sm-outline:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

/* ===== کارت‌های عمومی ===== */
.card-custom {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition-normal);
}

.card-custom:hover {
  border-color: var(--border-gold);
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
  background: var(--bg-card-hover);
}

.card-custom .card-icon {
  width: 60px; height: 60px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--gold-primary);
}

.card-custom h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.card-custom p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.8;
}

/* ===== کارت نمونه کار ===== */
.portfolio-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
  border-color: var(--border-gold);
}

.portfolio-card .portfolio-image {
  height: 220px;
  background: var(--black-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.portfolio-card .portfolio-image .img-placeholder {
  font-size: 3rem;
  color: var(--gold-primary);
  opacity: 0.4;
  z-index: 1;
}

.portfolio-card .portfolio-image::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), transparent);
}

.portfolio-card .portfolio-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(10, 10, 10, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-normal);
}

.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.portfolio-card .portfolio-body {
  padding: 20px;
}

.portfolio-card .portfolio-body h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.portfolio-card .portfolio-body p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.7;
}

.portfolio-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.portfolio-tags span,
.portfolio-tag-link {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-primary);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  border: 1px solid rgba(212, 175, 55, 0.15);
  display: inline-block;
  transition: var(--transition-normal);
}

.portfolio-tag-link:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

.portfolio-tags a { text-decoration: none; }

/* ===== کارت وبلاگ ===== */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-normal);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
  border-color: var(--border-gold);
}

.blog-card .blog-image {
  height: 160px;
  background: var(--black-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.blog-card .blog-image .img-placeholder {
  font-size: 2.5rem;
  color: var(--gold-primary);
  opacity: 0.3;
}

.blog-card .blog-body {
  padding: 20px;
}

.blog-card .blog-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.blog-card .blog-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-card .blog-body h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.6;
}

.blog-card .blog-body p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.blog-card .blog-body .read-more {
  color: var(--gold-primary);
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-card .blog-body .read-more:hover { gap: 10px; }

/* ===== بخش مهارت‌ها ===== */
.skill-item { margin-bottom: 24px; }

.skill-item .skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.skill-item .skill-header .skill-name { color: var(--text-primary); font-weight: 500; }
.skill-item .skill-header .skill-percent { color: var(--gold-primary); font-weight: 600; }

.progress {
  height: 8px;
  background: var(--black-lighter);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  background: var(--gold-gradient);
  border-radius: 10px;
  transition: width 1.5s ease;
  position: relative;
}

/* ===== تایم‌لاین ===== */
.timeline {
  position: relative;
  padding-right: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  right: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
  padding-right: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  right: -22px;
  top: 4px;
  width: 14px; height: 14px;
  background: var(--gold-primary);
  border-radius: 50%;
  border: 3px solid var(--bg-body);
  box-shadow: 0 0 0 2px var(--gold-primary);
  z-index: 1;
}

.timeline-item .timeline-date {
  font-size: 0.85rem;
  color: var(--gold-primary);
  font-weight: 500;
  margin-bottom: 4px;
}

.timeline-item h5 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-item .timeline-company {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.timeline-item p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.8;
  margin: 0;
}

/* ===== فرم تماس ===== */
.form-control {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  transition: var(--transition-normal);
}

.form-control:focus {
  background: var(--bg-card);
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px var(--gold-glow);
  color: var(--text-primary);
}

.form-control::placeholder { color: var(--text-muted); }

textarea.form-control { min-height: 140px; resize: vertical; }

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
}

.contact-info-item:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
}

.contact-info-item .contact-icon {
  width: 48px; height: 48px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--gold-primary);
  flex-shrink: 0;
}

.contact-info-item h6 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-info-item p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.7;
}

/* ===== فوتر ===== */
.footer {
  background: var(--black-dark);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 0;
}

.footer h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--gold-primary);
}

.footer p, .footer li {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 2;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li a {
  color: var(--text-secondary);
  transition: var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links li a:hover {
  color: var(--gold-primary);
  padding-right: 5px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: var(--transition-normal);
}

.footer-social a:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-3px);
}

.social-icon-link {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.3rem;
  transition: var(--transition-normal);
  text-decoration: none;
}

.social-icon-link:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  transform: translateY(-3px);
  background: rgba(212, 175, 55, 0.08);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  margin-top: 40px;
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.footer-bottom .gold-heart { color: var(--gold-primary); }

/* ===== دکمه بازگشت به بالا ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 48px; height: 48px;
  background: var(--gold-gradient);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black-deep);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-normal);
  z-index: 999;
  box-shadow: var(--shadow-gold);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
}

/* ===== صفحه داخلی (هدر صفحه) ===== */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.page-header h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-header .breadcrumb-custom {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.page-header .breadcrumb-custom a { color: var(--text-secondary); }
.page-header .breadcrumb-custom a:hover { color: var(--gold-primary); }
.page-header .breadcrumb-custom .separator { margin: 0 8px; color: var(--text-muted); }

/* ===== بخش نظرات / مشتریان ===== */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  transition: var(--transition-normal);
}

.testimonial-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
}

.testimonial-card .quote-icon {
  font-size: 2rem;
  color: var(--gold-primary);
  opacity: 0.3;
  margin-bottom: 16px;
  display: block;
}

.testimonial-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.9;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-card .testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.testimonial-card .testimonial-author .author-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--black-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-weight: 600;
  font-size: 1.1rem;
  border: 2px solid var(--border-gold);
}

.testimonial-card .testimonial-author .author-info h6 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.testimonial-card .testimonial-author .author-info span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ===== شمارنده / آمار ===== */
.counter-item {
  text-align: center;
  padding: 30px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}

.counter-item:hover {
  border-color: var(--border-gold);
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
}

.counter-item .counter-icon {
  font-size: 2.2rem;
  color: var(--gold-primary);
  margin-bottom: 16px;
  display: block;
}

.counter-item h3 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 4px;
}

.counter-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* ===== CTA بخش ===== */
.cta-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== انیمیشن‌ها ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-fade-up { animation: fadeInUp 0.8s ease forwards; }
.animate-fade-left { animation: fadeInLeft 0.8s ease forwards; }
.animate-fade-right { animation: fadeInRight 0.8s ease forwards; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ===== رسپانسیو ===== */
@media (max-width: 991.98px) {
  .hero-title { font-size: 2.5rem; }
  .hero-image-wrapper .profile-frame { width: 280px; height: 280px; margin-top: 40px; }
  .hero-image-wrapper .glow-ring { width: 320px; height: 320px; }
  .hero-image-wrapper .glow-ring-2 { width: 360px; height: 360px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .section-title { font-size: 2rem; }
  .page-header h1 { font-size: 2.2rem; }
  .cta-section { padding: 40px 24px; }
}

@media (max-width: 767.98px) {
  .hero-title { font-size: 2rem; }
  .hero-section { padding: 100px 0 60px; min-height: auto; }
  .hero-description { font-size: 1rem; }
  .hero-image-wrapper .profile-frame { width: 220px; height: 220px; }
  .hero-image-wrapper .glow-ring { width: 260px; height: 260px; }
  .hero-image-wrapper .glow-ring-2 { width: 300px; height: 300px; }
  .hero-stats { gap: 16px; }
  .hero-stat-item h3 { font-size: 1.5rem; }
  .section-padding { padding: 60px 0; }
  .section-title { font-size: 1.7rem; }
  .page-header { padding: 120px 0 40px; }
  .page-header h1 { font-size: 1.8rem; }
  .timeline { padding-right: 20px; }
  .card-custom { padding: 20px; }
}

@media (max-width: 575.98px) {
  .hero-title { font-size: 1.6rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .cta-section h2 { font-size: 1.4rem; }
  .footer { padding: 40px 0 0; }
}

/* ===== کلاس‌های کمکی ===== */
.text-gold { color: var(--gold-primary) !important; }
.bg-gold { background: var(--gold-gradient); }
.border-gold { border-color: var(--gold-primary) !important; }
.gold-shadow { box-shadow: var(--shadow-gold); }

.glass-effect {
  background: rgba(17, 17, 17, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* ===== کرسر سفارشی طلایی ===== */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--gold-primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: none;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(212, 175, 55, 0.6);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.15s ease, height 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

/* وقتی روی لینک‌ها و دکمه‌ها میریم */
.cursor-ring.hover {
  width: 56px;
  height: 56px;
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

/* مخفی کردن کرسر پیش‌فرض توی تمام صفحه */
body * {
  cursor: none;
}

/* ولی توی موبایل کرسر عادی برگرده */
@media (max-width: 991.98px) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
  body * {
    cursor: auto !important;
  }
}
.navbar-brand img{
  width: 70px;
  margin-top: 8px;
}
/* ===== تم روز (روشن) ===== */
[data-theme="light"] {
  --gold-primary: #B8860B;
  --gold-dark: #8B6914;
  --gold-light: #D4A843;
  --gold-glow: rgba(184, 134, 11, 0.2);
  --gold-gradient: linear-gradient(135deg, #B8860B, #D4A843, #B8860B);
  --gold-gradient-soft: linear-gradient(135deg, rgba(184, 134, 11, 0.08), rgba(212, 168, 67, 0.04));

  --black-deep: #FFFFFF;
  --black-dark: #F8F6F2;
  --black-mid: #F0ECE4;
  --black-light: #E8E2D6;
  --black-lighter: #DDD5C7;

  --text-primary: #2D2D2D;
  --text-secondary: #5A5A5A;
  --text-muted: #8A8A8A;
  --text-gold: #B8860B;

  --bg-body: #FDFCF9;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8F6F2;
  --bg-section: #FAF8F4;
  --bg-section-alt: #F5F2EC;

  --border-color: rgba(184, 134, 11, 0.15);
  --border-gold: rgba(184, 134, 11, 0.3);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
  --shadow-gold: 0 4px 20px rgba(184, 134, 11, 0.12);
  --shadow-gold-lg: 0 8px 40px rgba(184, 134, 11, 0.18);
}
[data-theme="light"] {
  /* ... متغیرهای قبلی که دادی ... */

  /* ---- اضافه کردن استایل نوار ناوبری برای تم روشن ---- */
  .navbar {
    background: rgba(248, 246, 242, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .navbar.scrolled {
    background: rgba(248, 246, 242, 0.98) !important;
  }

  .navbar-brand span {
    color: var(--text-primary);
  }

  .nav-link {
    color: var(--text-secondary) !important;
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--gold-primary) !important;
    background: rgba(184, 134, 11, 0.05);
  }

  .navbar-toggler {
    border-color: var(--border-color);
  }

  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(184, 134, 11, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }

  /* پس‌زمینه سکشن‌های تیره */
  .section-padding[style*="bg-section-alt"],
  #services {
    background: var(--bg-section-alt) !important;
  }

  .footer {
    background: var(--black-dark) !important;
  }

  /* فوتر */
  .footer h5 {
    color: var(--gold-primary);
  }

  .footer p, .footer li {
    color: var(--text-secondary);
  }
}


/* ===== دکمه تغییر تم ===== */
.theme-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 9999;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.theme-toggle:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
  border-color: var(--border-gold);
}

.theme-toggle:active {
  transform: translateY(0);
}

/* انتقال نرم بین تم‌ها */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* استثنا: برای ذرات و کرسر انتقال نذار */
#particles-canvas,
.cursor-dot,
.cursor-ring {
  transition: none !important;
}
/* ===== لودینگ صفحه (Preloader) ===== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-body); /* با تم روز/شب تغییر میکنه */
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: preloaderSpin 0.8s linear infinite;
}

.loader-text {
  color: var(--gold-primary);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
}

@keyframes preloaderSpin {
  to { transform: rotate(360deg); }
}
/* ===== نوار پیشرفت اسکرول ===== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gold-gradient);
  z-index: 99999;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--gold-glow);
}

/* یه خط تیره زیرش برای جدا شدن از ناوبری */
#scroll-progress::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
}
/* ===== لایت‌باکس (Lightbox) ===== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: all 0.4s ease;
}

.lightbox.active {
  visibility: visible;
  opacity: 1;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
}

.lightbox-close:hover {
  background: rgba(231, 76, 60, 0.2);
  border-color: #e74c3c;
  color: #e74c3c;
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
}

.lightbox-nav:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.lightbox-prev {
  right: 24px;
}

.lightbox-next {
  left: 24px;
}

.lightbox-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  width: 90%;
}

.lightbox-image-wrapper {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-image {
  width: 100%;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s;
}

.lightbox-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-info {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 20px;
  width: 100%;
  text-align: center;
  backdrop-filter: blur(10px);
}

.lightbox-info h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.lightbox-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 12px;
  line-height: 1.7;
}

.lightbox-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.lightbox-tags span {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-primary);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  border: 1px solid var(--border-gold);
}

.lightbox-counter {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
}

@media (max-width: 767.98px) {
  .lightbox-image {
    height: 280px;
  }
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .lightbox-prev {
    right: 12px;
  }
  .lightbox-next {
    left: 12px;
  }
  .lightbox-close {
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .lightbox-info {
    padding: 16px;
  }
}
/* ===== کلاس‌های کمکی (جایگزین استایل‌های درون‌خطی) ===== */

/* پس‌زمینه سکشن */
.bg-section-alt {
  background: var(--bg-section-alt) !important;
}

/* سکشن "چرا من" */
.why-me-wrapper {
  min-height: 300px;
}

.why-me-ring {
  width: 350px !important;
  height: 350px !important;
}

.why-me-frame {
  width: 300px !important;
  height: 300px !important;
}

.why-me-icon {
  font-size: 5rem !important;
}

.why-me-title {
  font-size: 2rem !important;
}

.why-me-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 24px;
}

/* چک باکس‌های طلایی */
.check-icon {
  color: var(--gold-primary);
  font-size: 1.2rem;
}

.check-text {
  color: var(--text-secondary);
}

/* فوتر */
.footer-icon {
  color: var(--gold-primary) !important;
}

.footer-heart {
  color: var(--gold-primary) !important;
}
/* ===== کلاس‌های کمکی about.html ===== */

/* بخش بیوگرافی */
.bio-section {
  padding-top: 0 !important;
}

.bio-wrapper {
  min-height: 300px;
}

.bio-ring {
  width: 350px !important;
  height: 350px !important;
}

.bio-frame {
  width: 300px !important;
  height: 300px !important;
}

.bio-title {
  font-size: 2rem !important;
  margin-bottom: 20px !important;
}

.bio-text {
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 16px;
}

.bio-text:last-of-type {
  margin-bottom: 24px;
}

/* ردیف اطلاعات */
.info-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.info-label {
  color: var(--gold-primary);
  font-weight: 600;
  min-width: 90px;
}

.info-value {
  color: var(--text-secondary);
}

/* سرتیتر کارت مهارت‌ها */
.skill-card-title {
  margin-bottom: 24px !important;
}

.skill-card-title i {
  color: var(--gold-primary);
  margin-left: 8px;
}

/* عرض نوار پیشرفت */
.w-95 { width: 95% !important; }
.w-92 { width: 92% !important; }
.w-90 { width: 90% !important; }
.w-88 { width: 88% !important; }
.w-85 { width: 85% !important; }
.w-82 { width: 82% !important; }
.w-80 { width: 80% !important; }
.w-78 { width: 78% !important; }
.w-75 { width: 75% !important; }
.w-70 { width: 70% !important; }

/* کارت تحصیلات */
.edu-date {
  color: var(--gold-primary);
  font-size: 0.85rem;
  margin-bottom: 8px;
}
/* ===== کلاس‌های کمکی blog.html ===== */

/* بخش وبلاگ */
.blog-section {
  padding-top: 0 !important;
}

/* آیکون‌های متای مقالات */
.meta-icon {
  color: var(--gold-primary) !important;
}

/* ===== سایدبار ===== */

/* عنوان کارت سایدبار */
.sidebar-title {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.sidebar-title i {
  color: var(--gold-primary);
  margin-left: 8px;
}

/* دکمه جستجو */
.search-btn {
  border-radius: var(--radius-sm);
  padding: 0 20px;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

/* لیست دسته‌بندی‌ها */
.cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cat-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cat-item:last-child {
  border-bottom: none;
}

.cat-link {
  color: var(--text-secondary) !important;
  transition: color 0.3s;
}

.cat-link:hover {
  color: var(--gold-primary) !important;
}

.cat-count {
  color: var(--gold-primary);
  font-size: 0.85rem;
}

/* مطالب محبوب */
.pop-item {
  display: flex;
  gap: 12px;
  color: var(--text-primary) !important;
  text-decoration: none;
  transition: all 0.3s;
}

.pop-item:hover {
  color: var(--gold-primary) !important;
}

.pop-item:hover .pop-title {
  color: var(--gold-primary);
}

.pop-num {
  min-width: 32px;
  height: 32px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-weight: 600;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.pop-title {
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.5;
  transition: color 0.3s;
}

.pop-date {
  color: var(--text-muted) !important;
  font-size: 0.8rem !important;
}
/* ===== کلاس‌های کمکی contact.html ===== */

/* بخش تماس */
.contact-section {
  padding-top: 0 !important;
}

/* عنوان فرم */
.contact-form-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-form-desc {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* لیبل فرم */
.form-label-custom {
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

/* عنوان اطلاعات تماس */
.contact-info-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 24px;
}

/* عنوان شبکه‌های اجتماعی */
.social-heading {
  margin-bottom: 16px;
}

/* کانتینر شبکه‌های اجتماعی (چپ‌چین) */
.social-ltr {
  direction: ltr;
}

/* کادر نقشه */
.map-wrapper {
  margin-top: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 200px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-content {
  text-align: center;
}

.map-icon {
  font-size: 2.5rem;
  color: var(--gold-primary);
  opacity: 0.5;
  margin-bottom: 8px;
  display: block;
}

.map-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}
/* ===== کلاس‌های کمکی portfolio.html ===== */

/* کانتینر placeholder نمونه کار */
.pf-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* گرادینت‌های اختصاصی هر پروژه */
.pf-gradient-1 { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.pf-gradient-2 { background: linear-gradient(135deg, #2d1b3d, #1a1a2e); }
.pf-gradient-3 { background: linear-gradient(135deg, #0f3460, #1a1a2e); }
.pf-gradient-4 { background: linear-gradient(135deg, #16213e, #0f3460); }
.pf-gradient-5 { background: linear-gradient(135deg, #1a1a2e, #2d1b3d); }
.pf-gradient-6 { background: linear-gradient(135deg, #0f3460, #16213e); }

/* آیکون پروژه */
.pf-icon {
  font-size: 4rem;
  color: var(--gold-primary);
  opacity: 0.4;
}

/* آیکون بزرگنمایی در overlay */
.pf-overlay-icon {
  font-size: 2rem;
  color: var(--gold-primary);
  margin-bottom: 12px;
}

/* متن بزرگنمایی */
.pf-overlay-text {
  color: var(--text-primary);
  font-weight: 500;
}

/* آیکون پیش‌فرض لایت‌باکس */
.lb-default-icon {
  font-size: 6rem !important;
  color: var(--gold-primary) !important;
  opacity: 0.6 !important;
}
/* ==================== Scroll Reveal Animations ==================== */

/* حالت اولیه: مخفی */
.reveal {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

/* حالت‌های مختلف انیمیشن */
.reveal.fade-up {
  transform: translateY(50px);
}

.reveal.fade-down {
  transform: translateY(-50px);
}

.reveal.fade-left {
  transform: translateX(50px);
}

.reveal.fade-right {
  transform: translateX(-50px);
}

.reveal.zoom-in {
  transform: scale(0.85);
}

.reveal.flip-up {
  transform: perspective(1000px) rotateX(20deg);
  transform-origin: center bottom;
}

/* وقتی المان وارد دید شد */
.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1) rotateX(0);
}

/* تاخیرهای مختلف */
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }
.reveal.delay-5 { transition-delay: 0.5s; }

/* کاهش تحرک برای کاربران حساس */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition-duration: 0.01ms !important;
    transform: none !important;
  }
  .reveal.is-visible {
    opacity: 1;
  }
}
/* ==================== رفع مشکل فاصله Hero Section ==================== */

/* کاهش فاصله بالای هیرو */
.hero-section {
  padding-top: 80px !important;   /* قبلاً احتمالاً ۱۲۰+ بوده */
  padding-bottom: 40px !important;
  min-height: auto !important;     /* ارتفاع اجباری رو بردار */
}

/* کاهش فاصله بین المان‌های هیرو */
.hero-title {
  margin-bottom: 12px !important;
}

.hero-description {
  margin-bottom: 16px !important;
}

.hero-actions {
  margin-bottom: 20px !important;
}

.hero-stats {
  margin-top: 10px !important;
}

.hero-stats .hero-stat-item h3 {
  font-size: 1.8rem !important;   /* کوچیک‌تر کردن اعداد */
  margin-bottom: 2px !important;
}

.hero-stats .hero-stat-item p {
  font-size: 0.8rem !important;
}

.hero-badge {
  margin-bottom: 12px !important;
}

/* عکس رو هم بیار بالا */
.hero-image-wrapper {
  margin-top: 0 !important;
}

/* کاهش فاصله بعد از هیرو و بخش خدمات */
#services {
  padding-top: 60px !important;
}
/* ==================== عکس پروفایل واقعی ==================== */
.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  position: relative;
  z-index: 2;
}

/* تنظیم سایز فریم با عکس */
.profile-frame {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

/* تنظیم سایز حلقه‌ها متناسب باشه */
.glow-ring {
  width: 380px;
  height: 380px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, transparent 70%);
  z-index: 1;
}

.glow-ring-2 {
  width: 440px;
  height: 440px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.1);
  z-index: 1;
}

/* برای موبایل */
@media (max-width: 768px) {
  .profile-frame {
    width: 220px;
    height: 220px;
  }
  .glow-ring {
    width: 270px;
    height: 270px;
  }
  .glow-ring-2 {
    width: 320px;
    height: 320px;
  }
}
/* ==================== تنظیمات بخش "چرا من" ==================== */

/* بزرگتر کردن عکس */
.why-me-frame {
  width: 360px !important;
  height: 360px !important;
}

.why-me-ring {
  width: 420px !important;
  height: 420px !important;
}

.why-me-ring-2 {
  width: 480px !important;
  height: 480px !important;
}

/* حذف فضای خالی */
.why-me-wrapper {
  min-height: auto !important;
  padding: 30px 0;
}

/* برای نمای موبایل */
@media (max-width: 768px) {
  .why-me-frame {
    width: 250px !important;
    height: 250px !important;
  }
  .why-me-ring {
    width: 300px !important;
    height: 300px !important;
  }
  .why-me-ring-2 {
    width: 350px !important;
    height: 350px !important;
  }
}
/* ==================== مودال پورتفولیو ==================== */

/* افزایش z-index مودال و کاروسل */
.modal {
  z-index: 99999 !important;
}

.modal-backdrop {
  z-index: 99998 !important;
}

.carousel {
  z-index: 1;
  position: relative;
}

.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid var(--card-border);
  padding: 16px 24px;
}

.modal-title {
  color: var(--text-primary);
  font-family: 'Vazir', sans-serif;
  font-weight: 700;
}

.modal-header .btn-close {
  filter: var(--btn-close-filter, none);
}

.modal-body {
  padding: 24px;
  max-height: 80vh;
  overflow-y: auto;
}

/* کاروسل */
.carousel-slide-bg {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.carousel-slide-icon {
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.carousel-slide-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.carousel-control-prev,
.carousel-control-next {
  width: 45px;
  height: 45px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
  opacity: 1;
}

.carousel-control-prev {
  right: 15px;
  left: auto;
}

.carousel-control-next {
  left: 15px;
  right: auto;
}

/* ایندیکاتورها */
.carousel-indicators {
  bottom: 15px;
  margin-bottom: 0;
}

.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  margin: 0 4px;
}

.carousel-indicators button.active {
  background: #fff;
  transform: scale(1.3);
}

/* اطلاعات پروژه */
.modal-project-info {
  padding: 0;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.pf-tag {
  background: rgba(var(--gold-primary-rgb, 212, 175, 55), 0.1);
  color: var(--gold-primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.modal-description {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.modal-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.detail-item i {
  color: var(--gold-primary);
  width: 20px;
  text-align: center;
}

.detail-item a {
  color: var(--gold-primary);
  text-decoration: none;
}

.detail-item a:hover {
  text-decoration: underline;
}

/* دکمه‌های ناوبری */
.modal-nav-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.modal-nav-buttons .btn-sm-outline {
  flex: 1;
  font-size: 0.85rem;
}

/* مودال در موبایل */
@media (max-width: 768px) {
  .modal-dialog {
    margin: 10px;
  }
  
  .carousel-slide-bg {
    height: 250px;
  }
  
  .carousel-slide-icon {
    font-size: 3rem;
  }
  
  .modal-body {
    max-height: 90vh;
  }
}
/* ==================== مودال سفارشی نمونه کارها ==================== */

/* پس‌زمینه تیره */
.custom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999 !important;
  align-items: center;
  justify-content: center;
}

.custom-modal.show {
  display: flex;
}

.custom-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

/* کانتینر اصلی */
.custom-modal-container {
  position: relative;
  width: 95%;
  max-width: 1100px;
  max-height: 85vh;
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* دکمه بستن */
.custom-modal-close {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.custom-modal-close:hover {
  background: rgba(255, 0, 0, 0.7);
}

/* گرید دو ستونه */
.custom-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-height: 85vh;
}

/* ===== کاروسل ===== */
.custom-modal-carousel {
  position: relative;
  background: #1a1a2e;
  min-height: 450px;
  overflow: hidden;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 450px;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* دکمه‌های قبلی/بعدی */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: var(--gold-primary);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  right: 15px;
}

.carousel-next {
  left: 15px;
}

/* نقطه‌های پایین */
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-dot.active {
  background: #fff;
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* ===== اطلاعات ===== */
.custom-modal-info {
  padding: 30px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 85vh;
}

.info-scroll {
  flex: 1;
}

.info-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.info-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.pf-tag {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-primary, #d4af37);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.info-desc {
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.info-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.info-row i {
  color: var(--gold-primary, #d4af37);
  width: 18px;
  text-align: center;
}

.info-row a {
  color: var(--gold-primary, #d4af37);
  text-decoration: none;
}

.info-row a:hover {
  text-decoration: underline;
}

.info-counter {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 16px;
  direction: ltr;
  text-align: right;
}

.info-nav-btns {
  display: flex;
  gap: 10px;
}

.info-nav-btns .btn-sm-outline {
  flex: 1;
  font-size: 0.85rem;
}

/* ===== موبایل ===== */
@media (max-width: 768px) {
  .custom-modal-grid {
    grid-template-columns: 1fr;
  }
  
  .custom-modal-carousel {
    min-height: 280px;
  }
  
  .carousel-slides {
    min-height: 280px;
  }
  
  .custom-modal-info {
    padding: 20px;
    max-height: 50vh;
  }
  
  .carousel-slide i {
    font-size: 3rem !important;
  }
}
/* ==================== مودال نمونه کارها ==================== */
.pf-modal {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 9999999; align-items: center; justify-content: center;
}
.pf-modal.show { display: flex !important; }
.pf-modal-overlay {
  position: absolute; top:0; left:0; width:100%; height:100%;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
}
.pf-modal-box {
  position: relative; width: 95%; max-width: 1100px; max-height: 85vh;
  background: var(--card-bg,#fff); border-radius: 20px; overflow: hidden;
  z-index: 2; box-shadow: 0 25px 60px rgba(0,0,0,0.5);
  animation: pfIn 0.3s ease;
}
@keyframes pfIn { from { opacity:0; transform:scale(0.9) translateY(20px); } to { opacity:1; transform:scale(1) translateY(0); } }
.pf-close-btn {
  position: absolute; top: 12px; left: 12px; z-index: 10;
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: rgba(0,0,0,0.4); color: #fff; font-size: 1.2rem; cursor: pointer;
}
.pf-close-btn:hover { background: rgba(255,0,0,0.7); }
.pf-modal-grid { display: grid; grid-template-columns: 1fr 1fr; max-height: 85vh; }

/* کاروسل */
.pf-carousel-area {
  position: relative; min-height: 400px; overflow: visible !important;
  background: #1a1a2e;
}
.pf-slides { position: relative; width: 100%; height: 100%; min-height: 400px; }
.pf-slides .pf-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.5s; pointer-events: none;
}
.pf-slides .pf-slide.active { opacity: 1; pointer-events: auto; }

.pf-slide-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: rgba(0,0,0,0.4); color: #fff; font-size: 1.1rem;
  cursor: pointer; z-index: 5; transition: all 0.3s;
  display: flex; align-items: center; justify-content: center;
}
.pf-slide-btn:hover { background: var(--gold-primary,#d4af37); transform: translateY(-50%) scale(1.1); }
.pf-prev { right: 15px; }
.pf-next { left: 15px; }

.pf-dots {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 5;
}
.pf-dot {
  width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4);
  cursor: pointer; transition: all 0.3s;
}
.pf-dot.active { background: #fff; transform: scale(1.3); box-shadow: 0 0 8px rgba(255,255,255,0.5); }

/* اطلاعات */
.pf-info-area { padding: 30px; overflow-y: auto; max-height: 85vh; }
.pf-info-area h3 { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pf-tag {
  background: rgba(212,175,55,0.12); color: var(--gold-primary,#d4af37);
  padding: 4px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 600;
}
.pf-info-area p { color: var(--text-secondary); line-height: 1.9; font-size: 0.95rem; margin-bottom: 20px; }
.pf-details { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.pf-details div { display: flex; align-items: center; gap: 10px; color: var(--text-secondary); font-size: 0.9rem; }
.pf-details a { color: var(--gold-primary,#d4af37); text-decoration: none; }
.pf-counter { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 16px; }
.pf-nav-btns { display: flex; gap: 10px; }
.pf-nav-btns .btn-sm-outline { flex: 1; font-size: 0.85rem; }

@media (max-width: 768px) {
  .pf-modal-grid { grid-template-columns: 1fr; }
  .pf-carousel-area { min-height: 260px; }
  .pf-slides { min-height: 260px; }
  .pf-info-area { max-height: 50vh; padding: 20px; }
}
