@font-face {
  font-family: 'Vazirmatn';
  src: url('../webfonts/Vazirmatn.woff2') format('woff2 supports variations'),
       url('../webfonts/Vazirmatn.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-light: #fafbfc;
  --surface-light: #ffffff;
  --surface-2-light: #f1f3f4;
  --surface-3-light: #e8eaed;
  --text-light: #534f4f;
  --text-secondary-light: #5f6368;
  --muted-light: #80868b;
  --accent-light: #4361ee;
  --accent-light-hover: #3a56d4;
  --accent-secondary-light: #ea4335;
  --border-light: #dadce0;
  --success-light: #34a853;
  --error-light: #ea4335;
  --shadow-light: rgba(60, 64, 67, 0.15);
  --shadow-hover-light: rgba(60, 64, 67, 0.3);
  --bg-dark: #0d1117;
  --surface-dark: #161b22;
  --surface-2-dark: #21262d;
  --surface-3-dark: #30363d;
  --text-dark: #f0f6fc;
  --text-secondary-dark: #f2f2f2;
  --muted-dark: #6e7681;
  --accent-dark: #58a6ff;
  --accent-dark-hover: #79c0ff;
  --accent-secondary-dark: #f85149;
  --border-dark: #30363d;
  --success-dark: #3fb950;
  --error-dark: #f85149;
  --shadow-dark: rgba(1, 4, 9, 0.8);
  --shadow-hover-dark: rgba(1, 4, 9, 0.9);
  --bg: var(--bg-light);
  --surface: var(--surface-light);
  --surface-2: var(--surface-2-light);
  --surface-3: var(--surface-3-light);
  --text: var(--text-light);
  --text-secondary: var(--text-secondary-light);
  --muted: var(--muted-light);
  --accent: var(--accent-light);
  --accent-hover: var(--accent-light-hover);
  --accent-secondary: var(--accent-secondary-light);
  --border: var(--border-light);
  --success: var(--success-light);
  --error: var(--error-light);
  --shadow: var(--shadow-light);
  --shadow-hover: var(--shadow-hover-light);
  --accent-glass: color-mix(in srgb, var(--accent) 10%, transparent);
  --accent-glow: color-mix(in srgb, var(--accent) 30%, transparent);
  --header-height: 72px;
  --header-height-mobile: 64px;
  --border-radius: 16px;
  --border-radius-small: 12px;
  --border-radius-large: 24px;
  --container-max-width: 1300px;
  --section-padding: 6rem 1.5rem;
  --section-padding-mobile: 4rem 1rem;
  --transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  font-family: Vazirmatn, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

[data-theme="dark"] {
  --bg: var(--bg-dark);
  --surface: var(--surface-dark);
  --surface-2: var(--surface-2-dark);
  --surface-3: var(--surface-3-dark);
  --text: var(--text-dark);
  --text-secondary: var(--text-secondary-dark);
  --muted: var(--muted-dark);
  --accent: var(--accent-dark);
  --accent-hover: var(--accent-dark-hover);
  --accent-secondary: var(--accent-secondary-dark);
  --border: var(--border-dark);
  --success: var(--success-dark);
  --error: var(--error-dark);
  --shadow: var(--shadow-dark);
  --shadow-hover: var(--shadow-hover-dark);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  overflow-x: clip;
  width: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
}

.fa {
  font-size: 20px;
}

.p-text {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  text-align: justify;
}