/* General Styling */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;700&display=swap');

:root {
    --primary-color: #007bff;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --background-color: #ffffff;
    --container-width: 960px;
    --border-radius: 8px;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    direction: rtl;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--background-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: .5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-main {
    display: flex;
    align-items: center;
    gap: 50px;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 15px; /* کاهش فاصله بین دو دکمه */
}

.logo {
    display: flex;
    align-items: center;
}
.logo img {
    height: 45px;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 45px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* --- استایل‌های جدید برای دکمه‌ها --- */
.btn {
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}
/* ---------------------------------- */


/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: flex-start;
    padding-top: 100px;
    overflow: hidden;
    box-sizing: border-box;
}

.slideshow-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slideshow-background .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slideshow-background .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    justify-content: flex-start; 
}

.hero-text-box {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 30px 35px;
    border-radius: var(--border-radius);
    width: 480px;      
    min-height: 280px; 
    text-align: right;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    margin-right: -100px; 
    display: flex;     
    flex-direction: column;
    justify-content: center; 
}

.hero-text-block {
    display: none;
}

.hero-text-box h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
}

.hero-text-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-description {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 1rem;
    display: inline-block;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}


/* Features Section */
.features {
    padding: 70px 0;
    text-align: center;
}
.features h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.feature-item {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
}
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.feature-item h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
}

/* How It Works Section */
.how-it-works {
    padding: 70px 0;
    background-color: var(--secondary-color);
    text-align: center;
}
.how-it-works h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}
.step {
    padding: 20px;
}
.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}
.step h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* FAQ Section */
.faq {
    padding: 70px 0;
    text-align: center;
}
.faq h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
}
.faq-item {
    background: var(--secondary-color);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    text-align: right;
}
.faq-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}
.faq-item p {
    margin: 0;
    color: #555;
}

/* Download Section */
.download-section {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 80px 0;
}
.download-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}
.download-section .btn-lg {
    font-size: 1.2rem;
    padding: 15px 35px;
    background-color: white;
    color: var(--primary-color);
    font-weight: bold;
    margin-top: 25px;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.download-section .btn-lg:hover {
    background-color: #eef;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    text-align: center;
    padding: 25px 0;
    background-color: var(--secondary-color);
    color: #6c757d;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 900px) { 
    .nav-links, .nav-auth {
        display: none; 
    }
    
    .hero {
        align-items: center; 
        padding-top: 0;
    }
    .hero-container {
        justify-content: center;
    }
    .hero-text-box {
        max-width: 90%;
        min-height: 250px;
        margin-right: 0;
        text-align: center;
    }
    .hero-text-box h1 {
        font-size: 1.8rem;
    }
}