/* General Styles */
:root {
    --primary-color: #007bff; /* آبی */
    --secondary-color: #6c757d; /* خاکستری */
    --success-color: #28a745; /* سبز */
    --warning-color: #ffc107; /* زرد */
    --danger-color: #dc3545; /* قرمز */
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white: #ffffff;
    --black: #000000;
    --font-family: 'Tahoma', sans-serif; /* فونت فارسی */
    --header-height: 80px;
}

body {
    margin: 0;
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    direction: rtl; /* برای راست‌چین کردن محتوا */
    text-align: right; /* ترازبندی متن به راست */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: bold;
    margin-bottom: 15px;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.5em; }

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    color: #0056b3;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    margin-left: 10px; /* فاصله بین دکمه‌ها */
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #0056b3;
    color: var(--white);
    border-color: #0056b3;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1em;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    font-size: 2em;
    font-weight: bold;
    color: var(--primary-color);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 30px; /* فاصله بین آیتم‌های منو */
}

nav ul li a {
    font-weight: bold;
    font-size: 1.1em;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.auth-buttons {
    display: flex;
    align-items: center;
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: calc(100vh - var(--header-height)); /* ارتفاع صفحه نمایش */
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/background-pattern.png') repeat; /* یک تصویر الگوی ساده */
    opacity: 0.1;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    align-items: center;
}

.hero-actions .btn {
    margin-left: 15px;
}

.hero-image {
    flex: 1;
    text-align: center;
    z-index: 1;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Services Section */
.services {
    padding: 80px 0;
    text-align: center;
}

.services h2 {
    margin-bottom: 40px;
}

.service-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* چهار ستون */
    gap: 30px;
}

.service-item {
    background-color: var(--white);
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.service-item i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-item h3 {
    margin-bottom: 10px;
    font-size: 1.4em;
}

.service-item p {
    color: var(--secondary-color);
    font-size: 0.95em;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background-color: #e9ecef; /* رنگ پس‌زمینه کمی تیره‌تر */
    text-align: center;
}

.how-it-works h2 {
    margin-bottom: 50px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    z-index: 0;
}

.step {
    background-color: var(--white);
    padding: 30px 20px;
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

.step span {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 20px;
    border: 4px solid #e9ecef; /* برای جدا کردن از خط */
}

.step h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.step p {
    color: var(--secondary-color);
}

/* Call to Action (CTA) Section */
.cta {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.2em;
    margin-bottom: 30px;
}

.cta .btn-large {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.cta .btn-large:hover {
    background-color: var(--light-color);
    border-color: var(--light-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 0 30px;
    font-size: 0.9em;
}

footer .container {
    display: flex;
    flex-direction: column;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.4em;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-section i {
    margin-left: 10px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.social-icons a {
    color: var(--white);
    margin-left: 15px;
    font-size: 1.3em;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        min-height: auto;
        padding: 50px 0 80px;
    }
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-image img {
        width: 80%;
        margin: 0 auto;
    }
    .service-items, .steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap;
        justify-content: center;
        height: auto;
        padding: 15px 0;
    }
    .logo {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    nav ul li {
        margin: 10px 0;
    }
    .auth-buttons {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
    .hero-content h1 {
        font-size: 2.2em;
    }
    .hero-content p {
        font-size: 1.1em;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        margin: 10px 0;
        width: 80%;
    }
    .hero-image img {
        width: 100%;
    }
    .service-items, .steps {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
    }
    .social-icons {
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.7em; }
    h3 { font-size: 1.3em; }
    .btn-large {
        padding: 12px 24px;
        font-size: 1em;
    }
    .service-item, .step {
        padding: 20px 15px;
    }
    .service-item i, .step span {
        font-size: 2.5em;
    }
}
