@font-face {
    font-family: 'Peyda';
    src: url('../fonts/peyda/PEYDA-BLACK.TTF') format('truetype');
    font-weight: 900;
}

@font-face {
    font-family: 'Peyda';
    src: url('../fonts/peyda/PEYDA-EXTRABOLD.TTF') format('truetype');
    font-weight: 800;
}

@font-face {
    font-family: 'Peyda';
    src: url('../fonts/peyda/PEYDA-BOLD.TTF') format('truetype');
    font-weight: 700;
}

@font-face {
    font-family: 'Peyda';
    src: url('../fonts/peyda/PEYDA-SEMIBOLD.TTF') format('truetype');
    font-weight: 600;
}

@font-face {
    font-family: 'Peyda';
    src: url('../fonts/peyda/PEYDA-MEDIUM.TTF') format('truetype');
    font-weight: 500;
}

@font-face {
    font-family: 'Peyda';
    src: url('../fonts/peyda/PEYDA-REGULAR.TTF') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Peyda';
    src: url('../fonts/peyda/PEYDA-LIGHT.TTF') format('truetype');
    font-weight: 300;
}

@font-face {
    font-family: 'Peyda';
    src: url('../fonts/peyda/PEYDA-EXTRALIGHT.TTF') format('truetype');
    font-weight: 200;
}

@font-face {
    font-family: 'Peyda';
    src: url('../fonts/peyda/PEYDA-THIN.TTF') format('truetype');
    font-weight: 100;
}

/* common.css - استایل‌های مشترک برای تمام صفحات */

/* ============================
   VARIABLES & RESET
============================ */
:root {
    /* Color Palette */
    --primary: #E20A3E;
    --primary-dark: #B00630;
    --primary-light: #FF4D6D;
    --secondary: #2563EB;
    --accent: #059669;
    --warning: #F59E0B;

    /* Light Theme */
    --bg: #FFFFFF;
    --surface: #F8FAFC;
    --surface-2: #F1F5F9;
    --surface-elevated: rgba(255, 255, 255, 0.95);
    --border: #E2E8F0;
    --border-light: rgba(226, 232, 240, 0.5);
    --text: #0F172A;
    --text-muted: #64748B;
    --text-light: #94A3B8;

    /* Dark Theme */
    --bg-dark: #0A0A0A;
    --surface-dark: #111111;
    --surface-2-dark: #1A1A1A;
    --surface-elevated-dark: rgba(17, 17, 17, 0.95);
    --border-dark: #222222;
    --text-dark: #F8FAFC;
    --text-muted-dark: #A1A1AA;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-primary: 0 8px 32px rgba(226, 10, 62, 0.2);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 250ms ease;
    --transition-slow: 350ms ease;

    /* Container */
    --container-max: 1200px;
    --header-height: 5rem;
}

[data-theme="dark"] {
    --bg: var(--bg-dark);
    --surface: var(--surface-dark);
    --surface-2: var(--surface-2-dark);
    --surface-elevated: var(--surface-elevated-dark);
    --border: var(--border-dark);
    --border-light: rgba(34, 34, 34, 0.5);
    --text: var(--text-dark);
    --text-muted: var(--text-muted-dark);
    --text-light: #52525B;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.6);
    --shadow-primary: 0 8px 32px rgba(226, 10, 62, 0.3);
}

/* ============================
   RESET & BASE STYLES
============================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: Peyda;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition), color var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

/* ============================
   TYPOGRAPHY
============================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    line-height: 1.8;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================
   UTILITY CLASSES
============================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-3xl) 0;
}

.section-sm {
    padding: var(--space-2xl) 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================
   ANIMATIONS
============================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}

.animate-delay-5 {
    animation-delay: 0.5s;
}

/* ============================
   RESPONSIVE DESIGN - COMMON
============================ */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }

    .section {
        padding: var(--space-2xl) 0;
    }
}

@media (max-width: 480px) {
    :root {
        --space-lg: 1.5rem;
        --space-xl: 2rem;
        --space-2xl: 3rem;
        --space-3xl: 4rem;
    }
}