/* Font declarations */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;700;900&display=swap');
/* Or use the local font declarations mentioned above */

:root {
    --primary-color: #0069a7;
    --primary-light: #5f9fc9;
    --secondary-color: #2db35d;
    --secondary-light: #89d4a3;
    --dark-grey: #333333;
    --light-grey: #f5f5f5;
    --medium-grey: #e0e0e0;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    padding: 0;
    margin: 0;
}

.container {
    width: 21cm;
    margin: 0 auto;
    background: white;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

.header {
    background: var(--primary-color);
    color: white;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.header-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 8%),
        radial-gradient(circle at 80% 40%, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 6%),
        radial-gradient(circle at 10% 60%, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 5%),
        radial-gradient(circle at 60% 80%, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 7%);
    opacity: 0.8;
}

.no-gap {
    direction: rtl;
    unicode-bidi: embed;
}

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: rtl;
}

.header-title {
    flex: 3;
}

.header-title h1 {
    font-size: 2.5em;
    margin-bottom: 5px;
    font-weight: 900;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.header-title h2 {
    font-size: 1.6em;
    font-weight: 500;
    opacity: 0.9;
    color: white;
}

.header-logo {
    flex: 1;
    text-align: left;
}

.header-logo img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.intro-section {
    padding: 40px 30px;
    background: white;
    position: relative;
}

.section {
    padding: 40px 30px;
    position: relative;
}

.section-colored {
    background-color: var(--light-grey);
}

.section-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--secondary-color);
    display: inline-block;
}

.section-subtitle {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin: 25px 0 15px;
    display: flex;
    align-items: center;
}

.section-subtitle i {
    margin-left: 10px;
    font-size: 1.2em;
}

.team-box {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: var(--box-shadow);
}

.team-lead {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--medium-grey);
    padding-bottom: 20px;
}

.team-lead-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-left: 20px;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.team-lead-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%; /* اضافه کردن گردی برای تصویر */
}

.team-lead-info h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    margin: 15px 0;
}

.tech-item {
    background-color: var(--primary-light);
    color: white;
    padding: 5px 15px;
    margin: 5px;
    border-radius: 20px;
    font-size: 0.9em;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.service-card h3 i {
    margin-left: 10px;
    color: var(--secondary-color);
}

.feature-list {
    list-style-type: none;
    margin: 20px 0;
}

.feature-list li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 10px;
}

.feature-list li:before {
    content: "✓";
    color: var(--secondary-color);
    position: absolute;
    right: 0;
    font-weight: bold;
}

.tech-approach {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: var(--box-shadow);
}

.architecture {
    display: flex;
    margin: 20px 0;
}

.arch-column {
    flex: 1;
    padding: 0 15px;
}

.arch-title {
    font-size: 1.2em;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--secondary-light);
}

.arch-list {
    list-style-type: none;
}

.arch-list li {
    margin-bottom: 8px;
    padding: 8px 10px;
    background-color: var(--light-grey);
    border-radius: 5px;
}

.pricing-tables {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 30px 0;
}

.price-card {
    flex: 1;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    border: 1px solid var(--medium-grey);
}

.price-card:hover {
    transform: translateY(-10px);
}

.price-header {
    padding: 20px;
    text-align: center;
    color: white;
}

.price-plan-1 .price-header {
    background-color: var(--primary-light);
}

.price-plan-2 .price-header {
    background-color: var(--primary-color);
}

.price-plan-3 .price-header {
    background-color: var(--dark-grey);
}

.price-name {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.price-value {
    font-size: 2em;
    font-weight: bold;
}

.price-timeframe {
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: -5px;
}

.price-content {
    padding: 20px;
}

.price-features {
    list-style-type: none;
    margin-bottom: 25px;
}

.price-features li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 15px;
    position: relative;
}

.price-features li:before {
    content: "✓";
    color: var(--secondary-color);
    position: absolute;
    right: 0;
    font-weight: bold;
}

.price-limitations {
    list-style-type: none;
    margin: 15px 0;
    padding: 15px;
    background-color: var(--light-grey);
    border-radius: 5px;
}

.price-limitations li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 10px;
}

.price-limitations li:before {
    content: "❌";
    position: absolute;
    right: 0;
    color: #e63946;
}

.recommendation {
    padding: 20px;
    background-color: var(--light-grey);
    border-radius: 10px;
    margin: 20px 0;
    border-left: 5px solid var(--secondary-color);
}

.recommendation h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline {
    margin: 30px 0;
    position: relative;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    right: 20px;
    bottom: 0;
    width: 3px;
    background: var(--primary-light);
}

.timeline-item {
    position: relative;
    padding-right: 50px;
    margin-bottom: 30px;
}

.timeline-marker {
    position: absolute;
    top: 0;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 3px solid white;
}

.timeline-content {
    padding: 15px;
    background: white;
    border-radius: 5px;
    box-shadow: var(--box-shadow);
}

.timeline-title {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-info {
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 10px;
    margin-top: 5px;
    justify-content: space-around;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.contact-item i {
    margin-left: 10px;
    font-size: 1.5em;
}

.footer {
    background-color: var(--dark-grey);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
}

.highlight-box {
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    background-color: rgba(45, 179, 93, 0.1);
}

.icon-bullet-list {
    list-style-type: none;
    margin: 15px 0;
}

.icon-bullet-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.icon-bullet-list li i {
    color: var(--secondary-color);
    margin-left: 10px;
    min-width: 20px;
    text-align: center;
}

.number-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin-left: 10px;
    font-size: 0.8em;
}

.emoji-heading {
    display: flex;
    align-items: center;
}

.emoji-heading span {
    font-size: 1.5em;
    margin-left: 10px;
    display: inline-block;
}

.page-break-before {
    page-break-before: always;
}

@media print {
    body {
        background: white;
        margin: 0;
        padding: 0;
    }
    
    .container {
        width: 210mm; /* عرض A4 */
        min-height: 297mm; /* ارتفاع A4 */
        padding: 0;
        margin: 0 auto;
        box-shadow: none;
        box-sizing: border-box;
        page-break-after: always;
    }
    
    .page-break-before {
        page-break-before: always;
    }
    
    .header, .section, .section-colored, .intro-section {
        width: 100%;
        box-sizing: border-box;
    }
    
    @page {
        size: A4; /* تنظیم سایز صفحه به A4 */
        margin: 0; /* حذف حاشیه صفحه */
    }
}

@media screen {
    .container {
        width: 21cm;
        margin: 0 auto;
        background: white;
        box-shadow: var(--box-shadow);
        position: relative;
        overflow: hidden;
    }
}

/* انیمیشن‌ها */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate {
    animation: fade-in 0.6s ease-out forwards;
}