/* به نام خداوند بخشنده مهربان */

/* =========== فونت‌های فارسی و گوگل ========= */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

/* فونت فارسی Vazirmatn */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn[wght].woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

/* =============================
   Reset و تنظیمات پایه
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    line-height: 1.15;
    /* اضافه کردن پیشوندهای CSS برای رفع خطاهای VS Code */
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Vazirmatn', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    background: #ffffff;
    font-size: 16px;
    font-weight: 400;
    /* اضافه کردن پیشوندهای فونت‌ها */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-smoothing: antialiased;
}

/* =============================
   متغیرهای CSS
================================ */
:root {
    /* رنگ‌های اصلی */
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --primary-light: #66b3ff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --white-color: #ffffff;
    
    /* رنگ‌های متن */
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --text-muted: #8e8e8e;
    
    /* سایه‌ها */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 15px 35px rgba(0,0,0,0.1);
    
    /* انیمیشن‌ها */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* فاصله‌ها */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 3rem;
    --space-xl: 6rem;
    
    /* بوردر */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-width: 1px;
    --border-color: #e9ecef;
}

/* =============================
   تایپوگرافی
================================ */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 var(--space-sm) 0;
    line-height: 1.2;
}

h1, .h1 { 
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

h2, .h2 { 
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    letter-spacing: -0.01em;
}

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

h4, .h4 { 
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h5, .h5 { 
    font-size: clamp(1.1rem, 2vw, 1.5rem);
}

h6, .h6 { 
    font-size: clamp(1rem, 1.5vw, 1.25rem);
}

p {
    margin: 0 0 var(--space-sm) 0;
    color: var(--text-light);
    line-height: 1.7;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-normal);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* =============================
   عناصر پایه
================================ */
ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: var(--transition-normal);
}

button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--space-xs) var(--space-sm);
    transition: var(--transition-normal);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* =============================
   دکمه‌ها
================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    white-space: nowrap;
    /* رفع مشکل user-select برای تمام مرورگرها */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn i {
    margin-left: 8px;
    font-size: 16px;
}

/* دکمه اصلی */
.btn-primary, .main-btn {
    background: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .main-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* دکمه خطی */
.btn-outline, .btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover, .btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* سایزهای دکمه */
.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

/* وضعیت‌های دکمه */
.btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-success {
    background: var(--success-color);
    border-color: var(--success-color);
    color: var(--white-color);
}

.btn-danger {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: var(--white-color);
}

/* =============================
   هدر و ناوبری
================================ */
.header-area {
    position: relative;
    z-index: 999;
}

.navbar {
    padding: 1rem 0;
    background: var(--white-color);
    transition: all var(--transition-normal);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* پشتیبانی backdrop-filter با prefix های مناسب */
@supports (backdrop-filter: blur(10px)) {
    .navbar.scrolled {
        backdrop-filter: blur(10px);
    }
}

@supports (-webkit-backdrop-filter: blur(10px)) {
    .navbar.scrolled {
        -webkit-backdrop-filter: blur(10px);
    }
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.navbar-brand:hover {
    color: var(--primary-dark);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border-radius: var(--border-radius);
    position: relative;
    transition: var(--transition-normal);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
    background: rgba(0, 123, 255, 0.1);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 50%;
    background: var(--primary-color);
    transition: var(--transition-normal);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
    right: 10%;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: var(--border-radius);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* =============================
   بخش Hero
================================ */
.hero-area {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

.hero-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 123, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 123, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    margin-bottom: var(--space-md);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.hero-buttons {
    margin-bottom: var(--space-lg);
}

.hero-buttons .btn {
    margin: 0.5rem 1rem 0.5rem 0;
}

.hero-stats {
    margin-top: var(--space-lg);
}

.stat-item {
    text-align: center;
    padding: var(--space-md);
    background: var(--white-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 123, 255, 0.2));
}

/* =============================
   بخش‌های اصلی
================================ */
.section-padding {
    padding: 120px 0;
}

.section-title {
    margin-bottom: 4rem;
    position: relative;
}

.section-title.text-center {
    text-align: center;
}

.section-title.text-start {
    text-align: start;
}

.section-title h2 {
    position: relative;
    display: inline-block;
}

.section-title.text-center h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.section-title.text-start h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
}

.section-title.text-center p {
    margin: var(--space-md) auto 0;
}

.section-title.text-start p {
    margin: var(--space-md) 0 0;
}

/* =============================
   درباره من - تصویر کوچک‌تر
================================ */
.about-area {
    position: relative;
    background: var(--white-color);
}

.about-img-wrapper {
    position: relative;
    max-width: 320px; /* کوچک‌تر از قبل */
    margin: 0 auto;
}

.about-main-img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.tech-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    max-width: 180px; /* محدود کردن عرض */
}

.tech-badge {
    background: var(--white-color);
    color: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--primary-color);
    white-space: nowrap;
}

.skills-area {
    margin-top: var(--space-lg);
}

.skill-item {
    margin-bottom: var(--space-md);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skill-header span:first-child {
    font-weight: 600;
    color: var(--text-dark);
}

.skill-header span:last-child {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

.skill-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 4px;
    width: 0;
    transition: width 2s ease-in-out;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-left: var(--space-sm);
}

.info-item h5 {
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.info-item p {
    margin: 0;
    color: var(--text-light);
}

/* =============================
   خدمات
================================ */
.services-area {
    background: var(--light-color);
}

.service-card {
    background: var(--white-color);
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    margin-bottom: var(--space-md);
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h4 {
    margin-bottom: var(--space-sm);
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.feature-badge {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* =============================
   نمونه‌کارها
================================ */
.portfolio-area {
    background: var(--white-color);
}

.featured-project {
    background: var(--white-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--space-xl);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
}

.featured-project:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 350px; /* ارتفاع ثابت برای تصاویر */
    object-fit: cover;
    transition: var(--transition-slow);
}

.featured-project:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: var(--space-lg);
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.project-category {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-year {
    color: var(--text-muted);
    font-weight: 600;
}

.project-content h3 {
    margin-bottom: var(--space-sm);
    color: var(--text-dark);
}

.project-content > p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.feature-list li i {
    color: var(--success-color);
    margin-left: 0.75rem;
    font-size: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: var(--space-md) 0;
}

.tech-tag {
    background: var(--light-color);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.tech-tag:hover {
    background: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.portfolio-item {
    background: var(--white-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 123, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-link {
    color: var(--white-color);
    font-size: 2rem;
    transition: var(--transition-normal);
}

.portfolio-link:hover {
    transform: scale(1.2);
    color: var(--white-color);
}

.portfolio-content {
    padding: var(--space-md);
}

.portfolio-content h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.portfolio-content p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
}

/* =============================
   قیمت‌گذاری - نرخ دلار کنار پلن‌ها
================================ */
.pricing-area {
    background: var(--light-color);
}

.pricing-card {
    background: var(--white-color);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-color);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--border-radius-lg);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: -1;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.pricing-card:hover::before {
    opacity: 1;
}

.pricing-card.featured {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.featured-badge {
    position: absolute;
    top: -1px;
    right: var(--space-md);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white-color);
    padding: 0.5rem 1rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-icon {
    margin-bottom: var(--space-md);
    opacity: 0.8;
    transition: var(--transition-normal);
}

.pricing-card:hover .pricing-icon {
    opacity: 1;
    transform: scale(1.1);
}

.pricing-card h3 {
    margin-bottom: var(--space-sm);
    color: var(--text-dark);
    font-size: 1.5rem;
}

.pricing-price {
    margin-bottom: var(--space-lg);
}

.currency {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    vertical-align: top;
}

.amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.toman-price {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.toman-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--success-color);
    display: block;
}

.toman-currency {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-right: 0.25rem;
}

/* نمایش نرخ دلار کنار هر پلن */
.rate-display {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 123, 255, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.rate-text {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    display: block;
}

/* انیمیشن برای به‌روزرسانی قیمت */
.toman-amount.updating {
    animation: priceUpdate 0.6s ease-in-out;
}

@keyframes priceUpdate {
    0%, 100% { 
        transform: scale(1); 
        color: var(--success-color);
    }
    50% { 
        transform: scale(1.1); 
        color: var(--primary-color);
        background: rgba(0, 123, 255, 0.1);
        border-radius: 4px;
        padding: 2px 4px;
    }
}

.rate-text.updating {
    animation: rateUpdate 0.8s ease-in-out;
}

@keyframes rateUpdate {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; transform: scale(1.05); }
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: var(--space-md) 0 var(--space-lg);
}

.pricing-features li {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f4;
    color: var(--text-light);
    font-size: 0.9rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    margin-left: 0.75rem;
    font-size: 1rem;
}

.pricing-features li i.lni-checkmark {
    color: var(--success-color);
}

.pricing-features li i.lni-close {
    color: var(--text-muted);
}

.pricing-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
}

.pricing-note {
    background: var(--white-color);
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.pricing-note i {
    color: var(--info-color);
    margin-left: 0.5rem;
}

/* =============================
   تماس
================================ */
.contact-area {
    background: var(--white-color);
}

.contact-info {
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border-left: 4px solid var(--primary-color);
    border: 1px solid var(--border-color);
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: var(--space-sm);
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.25rem;
}

.contact-content h5 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.contact-content p {
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-content a {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.contact-form {
    background: var(--white-color);
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: var(--space-md);
    position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition-normal);
    background: var(--white-color);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    z-index: 10;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group textarea + i {
    top: 1rem;
    transform: none;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: var(--space-md);
}

.form-check input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(1.2);
}

.form-check label {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
    cursor: pointer;
}

.form-check label a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* کلاس visually-hidden برای دسترسی‌پذیری */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* اعتبارسنجی فرم */
.is-invalid {
    border-color: var(--danger-color) !important;
}

.field-error {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

#form-messages {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    display: none;
}

#form-messages.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
    display: block;
}

#form-messages.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
    display: block;
}

/* =============================
   فوتر
================================ */
.footer-area {
    color: #ffffff;
}

.footer-logo svg {
    max-height: 40px;
}

.footer-content p {
    color: #bbb;
    line-height: 1.6;
}

.footer-links h5 {
    color: #ffffff;
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bbb;
    transition: var(--transition-normal);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.footer-social h5 {
    color: #ffffff;
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: var(--space-lg) 0;
}

.footer-bottom p {
    color: #bbb;
    margin: 0;
    font-size: 0.9rem;
}

/* =============================
   دکمه بازگشت به بالا
================================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 999;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.scroll-top.show {
    display: flex;
    animation: fadeInUp 0.5s ease;
}

/* =============================
   انیمیشن‌ها
================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* =============================
   تنظیمات ریسپانسیو
================================ */
@media (max-width: 1200px) {
    .section-padding {
        padding: 80px 0;
    }
}

@media (max-width: 991px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .hero-area {
        min-height: 80vh;
        text-align: center;
        padding: var(--space-xl) 0;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .pricing-card.featured {
        transform: none;
        margin-top: var(--space-md);
    }
    
    .navbar-collapse {
        background: var(--white-color);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-md);
    }
    
    .project-links {
        justify-content: center;
    }
    
    .tech-badges {
        position: static;
        justify-content: center;
        margin-top: var(--space-md);
        max-width: 100%;
    }
    
    .about-img-wrapper {
        margin-bottom: var(--space-lg);
        max-width: 280px; /* کوچک‌تر در موبایل */
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding: 50px 0;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .project-links .btn {
        flex: 1;
        text-align: center;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 0 var(--space-sm) 0;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .stat-item {
        margin-bottom: var(--space-md);
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.875rem 0.875rem 0.875rem 2.5rem;
    }
    
    .pricing-price .amount {
        font-size: 2.5rem;
    }
    
    .featured-project {
        margin-bottom: var(--space-lg);
    }
    
    .project-image img {
        height: 250px;
    }
    
    .about-img-wrapper {
        max-width: 250px; /* کوچک‌تر در موبایل کوچک */
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .service-card,
    .pricing-card {
        margin-bottom: var(--space-md);
    }
    
    .scroll-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
    
    .project-tech {
        justify-content: center;
    }
    
    .tech-badges {
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
    }
    
    .about-img-wrapper {
        max-width: 220px; /* کوچک‌ترین سایز */
    }
}

/* =============================
   کلاس‌های کمکی
================================ */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.text-start { text-align: start !important; }

.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-info { color: var(--info-color) !important; }
.text-dark { color: var(--text-dark) !important; }
.text-light { color: var(--text-light) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-white { color: var(--white-color) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-light { background-color: var(--light-color) !important; }
.bg-dark { background-color: var(--dark-color) !important; }
.bg-white { background-color: var(--white-color) !important; }

.pt-80 { padding-top: 80px !important; }
.pb-80 { padding-bottom: 80px !important; }
.pt-120 { padding-top: 120px !important; }
.pb-120 { padding-bottom: 120px !important; }

.mb-15 { margin-bottom: 15px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-30 { margin-bottom: 30px !important; }
.mt-5 { margin-top: 3rem !important; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

.min-vh-100 { min-height: 100vh !important; }

/* =============================
   بهینه‌سازی چاپ
================================ */
@media print {
    .scroll-top,
    .navbar,
    .footer-area,
    .contact-area {
        display: none !important;
    }
    
    * {
        box-shadow: none !important;
        text-shadow: none !important;
        background: transparent !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000 !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: #000 !important;
    }
    
    .hero-area,
    .about-area,
    .services-area,
    .portfolio-area {
        page-break-inside: avoid;
    }
}

/* ساخته شده توسط مهدی باغبانپور بروجنی */
