/* ===== Reset & متغیرها ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --white: #ffffff;
  --white-blue: #f0f6ff;
  --blue: #2563eb;
  --blue-dark: #1e3a8a;
  --blue-light: #bfdbfe;
  --text: #64748b;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
  --shadow-hover: 0 12px 28px rgba(37, 99, 235, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Vazirmatn", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.9;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== هدر ===== */
.hero {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: var(--white);
  padding: 100px 0;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.3;
}

.hero-role {
  font-size: 1.2rem;
  opacity: 0.85;
  margin-top: 10px;
}

.hero-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 3px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ===== سکشن‌ها ===== */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--white-blue);
}

.section-title {
  color: var(--blue-dark);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 36px;
  position: relative;
  padding-right: 18px;
}

.section-title::before {
  content: "";
  position: absolute;
  right: 0;
  top: 8px;
  width: 6px;
  height: 34px;
  background: var(--blue);
  border-radius: 3px;
}

/* ===== درباره من ===== */
.about-card {
  background: var(--white);
  border: 1px solid var(--blue-light);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  max-width: 800px;
}

.about-card p + p {
  margin-top: 14px;
}

/* ===== عنوان‌ها ===== */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.tag {
  background: var(--white);
  border: 1px solid var(--blue-light);
  color: var(--blue-dark);
  font-weight: 500;
  padding: 8px 24px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.tag:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* ===== فعالیت‌ها ===== */
.timeline {
  position: relative;
  padding-right: 28px;
  max-width: 700px;
}

.timeline::before {
  content: "";
  position: absolute;
  right: 7px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--blue-light);
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  right: -28px;
  top: 22px;
  width: 17px;
  height: 17px;
  background: var(--blue);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.timeline-card {
  background: var(--white);
  border: 1px solid var(--blue-light);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.timeline-card h3 {
  color: var(--blue-dark);
  font-size: 1.15rem;
  font-weight: 700;
}

/* ===== نمونه‌کارها ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  background: var(--white);
  border: 1px solid var(--blue-light);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.work-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* ===== تماس ===== */
.contact-inner {
  text-align: center;
}

.contact-info {
  background: var(--white-blue);
  border: 1px solid var(--blue-light);
  border-radius: var(--radius);
  display: inline-block;
  padding: 28px 48px;
  box-shadow: var(--shadow);
}

.contact-info p {
  font-size: 1.05rem;
}

.contact-info .label {
  color: var(--blue-dark);
  font-weight: 700;
}

.contact-info a {
  color: var(--blue);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* ===== فوتر ===== */
.footer {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  padding: 24px 0;
  font-size: 0.9rem;
}
