/* پایه تایپوگرافی */
:root {
  --bg-page: #e7ecf5;           /* از #f5f7fb به #e7ecf5 (کمی تیره‌تر و نرم‌تر) */
  --bg-section: #f9fafb;        /* به جای سفید خالص */
  --border-soft: #d0d7e6;
  --text-main: #111827;
  --text-muted: #6b7280;
  --accent-blue: #2563eb;
  --accent-blue-soft: #3b82f6;
  --accent-pink: #f97373;
  --neon-line: #3b82f6;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.16);
  --radius-card: 12px;
  --radius-image: 14px;
  --transition: 0.25s ease;
}


*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  /* گرادیانت ملایم‌تر و عمیق‌تر */
  background: radial-gradient(circle at top right, #cbd5f5 0%, transparent 55%),
              radial-gradient(circle at bottom left, #dbeafe 0%, transparent 55%),
              linear-gradient(135deg, #e5edf7 0%, #dde5f5 55%, #e7ecf5 100%);
  color: var(--text-main);
  font-family: "Vazirmatn", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.8;
  direction: rtl;
}


/* کمک برای خوانایی */
p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

h1, h2, h3 {
  margin-top: 0;
  color: var(--text-main);
  font-weight: 700;
}

/* کانتینر */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* هدر و ناوبری */
#site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 247, 251, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(209, 213, 219, 0.6);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.5);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 700;
}

.brand-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* منوی ناوبری */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 0.2rem;
  transition: color var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-pink));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.nav-links a:hover {
  color: var(--accent-blue);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* دکمه منوی موبایل (در این نسخه ساده، هنوز JS برای باز/بسته نداریم) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
}

/* HERO با عکس در ستون جداگانه */
#hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 2.5rem;
}

/* ستون متن */
.hero-content h1 {
  font-size: 2.15rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
}

.hero-value {
  border-right: 3px solid rgba(37, 99, 235, 0.5);
  padding-right: 1rem;
  margin-bottom: 1.8rem;
}

/* دکمه‌ها */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--transition), color var(--transition), box-shadow var(--transition), border-color var(--transition), transform 0.15s ease-out;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue-soft), var(--accent-pink));
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 14px 35px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--accent-blue);
  border-color: rgba(148, 163, 184, 0.7);
}

.btn-outline:hover {
  border-color: var(--accent-blue);
  background: rgba(37, 99, 235, 0.08);
}

/* ستون عکس */
.hero-photo {
  justify-self: center;
}

.hero-photo-inner {
  position: relative;
  width: 260px;
  max-width: 100%;
}

.hero-photo-inner::before {
  content: "";
  position: absolute;
  inset: 10px -10px -10px 10px;
  border-radius: var(--radius-image);
  background: linear-gradient(135deg, rgba(37,99,235,0.35), rgba(249,115,115,0.2));
  opacity: 0.65;
  filter: blur(10px);
  z-index: -1;
}

.hero-photo img {
  width: 100%;
  display: block;
  border-radius: var(--radius-image);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

/* سکشن‌ها – ساختار کلی */
section {
  padding: 3.5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2.75rem;
}

.section-title h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.section-title p {
  max-width: 540px;
  margin: 0.25rem auto 0;
}

/* زمینه سفید برای بلاک‌های اصلی زیر Hero */
#dual-identity,
#methodology,
#why-me,
#services,
#portfolio,
#about,
#contact {
  background-color: var(--bg-section);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

/* دو جهان، یک کارگردان */
.identity-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.identity-block {
  padding: 1.6rem 1.6rem 1.4rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.identity-block h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.identity-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.identity-block li {
  position: relative;
  padding-right: 1rem;
  font-size: 0.94rem;
  margin-bottom: 0.4rem;
}

.identity-block li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
}

.identity-block:hover {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  transform: translateY(-4px);
}

.identity-note {
  margin-top: 1.8rem;
  text-align: center;
  font-size: 0.96rem;
  color: var(--text-main);
}

/* متدولوژی (گام‌ها) */
.methodology-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}

.step {
  position: relative;
  padding: 1.6rem 1.5rem 1.4rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.03);
  overflow: hidden;
}

.step-number {
  position: absolute;
  left: 1rem;
  top: 0.4rem;
  font-size: 2.4rem;
  font-weight: 800;
  color: rgba(148, 163, 184, 0.2);
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

/* چرا من؟ */
.why-me-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.why-point {
  padding: 1.6rem 1.5rem 1.4rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  background: #ffffff;
}

/* خدمات */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}

/* نمونه‌کارها */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}

.portfolio-item {
  padding: 1.5rem 1.5rem 1.3rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  background: #ffffff;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.portfolio-item h3 {
  font-size: 1.02rem;
  margin-bottom: 0.5rem;
}

.portfolio-item a {
  font-size: 0.9rem;
  color: var(--accent-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(37, 99, 235, 0.2);
  padding-bottom: 2px;
}

.portfolio-item a:hover {
  border-color: var(--accent-blue);
}

.portfolio-item.highlight {
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.12);
  background: linear-gradient(135deg, #ffffff 0%, #eef2ff 60%, #fef2f2 100%);
}

/* درباره من */
.about-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 0.98rem;
}

/* تماس */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.contact-info a {
  color: var(--accent-blue);
  text-decoration: none;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
}

.form-group {
  margin-bottom: 1.2rem;
}

label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  color: var(--text-main);
}

input,
textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
  background-color: #f9fafb;
}

input:focus,
textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
  background-color: #ffffff;
}

textarea {
  resize: vertical;
  min-height: 140px;
}

/* فوتر */
#site-footer {
  padding: 1.5rem 0;
  background: #f3f4f6;
  border-top: 1px solid #e5e7eb;
}

.footer-inner {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* انیمیشن‌های خیلی ملایم برای ورود سکشن‌ها */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ریسپانسیو */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    order: -1;
    margin-bottom: 1.5rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none; /* برای نسخه فعلی؛ اگر خواستی منوی موبایل هم اضافه می‌کنم */
  }

  .nav-toggle {
    display: block;
  }
}

@media (max-width: 600px) {
  #hero {
    padding-top: 3.5rem;
  }

  .hero-content h1 {
    font-size: 1.7rem;
  }

  .section-title h2 {
    font-size: 1.35rem;
  }
}

/* ===== Reveal Animation پایه (ارتقایافته) ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(3px);
  transition:
    opacity 0.7s ease-out,
    transform 0.7s cubic-bezier(0.19, 1, 0.22, 1),
    filter 0.7s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* برای کارت‌هایی که پارالاکس دارند */
.parallax-card {
  will-change: transform;
  transition: transform 0.2s ease-out, box-shadow 0.25s ease-out, border-color 0.25s ease-out;
}
