/*=============================================
=            CSS Variables                    =
=============================================*/
:root {
  --color-background: #0d0d0d;
  --color-surface: #1a1a1a; /*روشن‌تر از پس‌زمینه برای ایجاد عمق در کارت‌ها و هدر */
  --color-text-primary: #f5f5f5;
  --color-text-secondary: #8a8a8a;
  --color-accent: #39ff14; /* برای دکمه‌ها، لینک‌ها و هایلایت‌ها*/
  --color-border: #2a2a2a;

  --font-family-persian: "Vazirmatn", sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  --font-weight-black: 800;

  --transition-fast: all 0.2s ease-in-out;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
/*=============================================
=            Custom Scrollbar Styling         =
=============================================*/

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--color-accent) var(--color-surface);
  scrollbar-width: auto;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--color-surface);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--color-accent);
  border-radius: 10px;
  border: 3px solid var(--color-surface);
}

::-webkit-scrollbar-thumb:hover {
  background-color: #39ff14;
  filter: brightness(1.2);
}

/* =============================================
=        Scroll Offset Correction           =
============================================== */

section[id] {
  scroll-margin-top: 20rem;
}

@media (max-width: 992px) {
  section[id] {
    scroll-margin-top: 8rem;
  }
}
/*=============================================
=            Reset & Base Styles              =
=============================================*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  font-family: var(--font-family-persian);
  color: var(--color-text-primary);
  background-color: var(--color-background);
  direction: rtl;
  line-height: 1.6;
  overflow-x: hidden;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 10px;
}
.container {
  width: 100%;
  max-width: 124rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/*=============================================
=            Buttons                          =
=============================================*/
.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 15rem;
  height: 3rem;
  text-align: center;
  padding: 0.85rem 2.25rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: var(--font-weight-bold);
  transition: all 0.3s ease;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  -webkit-border-radius: 0.5rem;
  -moz-border-radius: 0.5rem;
  -ms-border-radius: 0.5rem;
  -o-border-radius: 0.5rem;
  font-family: var(--font-family-persian);
}

.btn--primary {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 600;
  background-color: var(--color-accent);
  color: var(--color-background);
  box-shadow: 0 4px 20px rgba(57, 255, 20, 0.3);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(57, 255, 20, 0.4);
  filter: brightness(1.1);
}

.btn--secondary {
  z-index: 600;
  background-color: transparent;
  color: var(--color-text-secondary);
  border-color: var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background-color: rgba(57, 255, 20, 0.05);
}
/*  title (h2)    */
.section-title {
  margin: 5rem 0;
  padding-bottom: 2rem;
  color: var(--color-text-primary);
  text-align: center;
  font-size: 36px;
  font-weight: bold;
}
