/* تنظیم جهت و فونت کلی سایت */
body {
    direction: rtl;
    text-align: right;
    font-family: 'Vazirmatn', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

button {
    font-family: 'Vazirmatn', sans-serif;
}

button a {
    text-decoration: none;
    color: white;
}



.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 80px;

    background-color: #ffffff;
    font-family: Arial, sans-serif;
    font-family: 'Vazirmatn', sans-serif;

    position: fixed;
    top: 0;
    width: 90%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(32px);
    transition: 300ms all;


}

/* استایل هدر پس از اسکرول */
.header.scrolled {
    box-shadow: 0 0 0.4rem #3560abcd;
    background-color: rgba(255, 255, 255, 0.4);
    /* کمی شفافیت بیشتر برای مشخص شدن افکت */
}

.header-nav {
    display: flex;
    gap: 40px;
    /* افزایش فاصله بین لینک‌ها */
}

.header-nav a {
    text-decoration: none;
    color: black;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    /* برای انیمیشن زیر خط */
    transition: color 0.3s;
}

.header-nav :hover {
    color: rgba(0, 0, 0, 0.842);
}


/* انیمیشن مدرن برای لینک‌ها */
.header-nav a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -5px;
    /* فاصله از متن */
    width: 0;
    height: 2px;
    background-color: #007bff;
    transition: width 0.3s ease-out;
}

.header-nav a:hover::after {
    width: 100%;
    left: 0;
}

.header-cta {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.header-cta:hover {
    background-color: #0056b3;
}

/* جهت‌دهی هیرو سکشن بر اساس RTL */
.hero-section {
    display: flex;
    /* این خط را تغییر دهید */
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 80px 80px;
    background-color: #ffffff;
    margin-top: 2rem;
}

.hero-content {
    max-width: 50%;
    text-align: right;
    margin-right: 4rem;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 10px;
    color: #555;
}

.hero-title {
    font-size: 60px;
    line-height: 1.2;
    font-weight: bold;
    margin: 0;
    color: #1a1a1a;
}

.hero-description {
    font-size: 18px;
    margin-top: 20px;
    line-height: 1.5;
    color: #333;
}

.hero-cta-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 30px;
    transition: background-color 0.3s;
}

.hero-cta-button:hover {
    background-color: #0056b3;
}

.hero-image-container {
    width: 50%;
    margin-left: -2rem;
}

.hero-image {
    max-width: 100%;
    height: auto;
    display: block;
}


/* استایل بخش جدید */
.secondary-hero-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 80px 80px;
    background-color: #ffffff;
    /* پس‌زمینه سفید */
    color: #1a1a1a;
}

.secondary-hero-content {
    max-width: 70%;
    text-align: right;
    margin-left: 9rem;
}

.secondary-hero-image-container {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.secondary-hero-image {
    max-width: 100%;
    height: auto;
    transform: scaleX(-1);
}

.secondary-hero-title {
    font-size: 50px;
    line-height: 1.2;
    font-weight: bold;
    margin: 0;
    color: #1a1a1a;
}

.secondary-hero-description {
    font-size: 18px;
    margin-top: 20px;
    line-height: 1.5;
    color: #333;
}

.secondary-hero-cta-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 30px;
    transition: background-color 0.3s;
}

.secondary-hero-cta-button:hover {
    background-color: #0056b3;
}

/* استایل بخش جدید */
.tertiary-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 80px 80px;
    background-color: #ffffff;
    /* پس‌زمینه سفید */
    color: #1a1a1a;
}

.tertiary-content {
    width: 52%;
    text-align: right;
    margin-right: 2rem;
}

.tertiary-image-container {
    width: 48%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tertiary-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.tertiary-title {
    font-size: 65px;
    line-height: 1.2;
    font-weight: bold;
    margin: 0;
    color: #1a1a1a;
}

.tertiary-description {
    font-size: 20px;
    margin-top: 20px;
    line-height: 1.5;
    color: #333;
}

.tertiary-cta-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 30px;
    transition: background-color 0.3s;
}

.tertiary-cta-button:hover {
    background-color: #0056b3;
}

/* استایل بخش جدید */
.final-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 80px 80px;
    background-color: #F2F8FF;
    /* پس‌زمینه خاکستری روشن */
    color: #1a1a1a;
}

.final-image-container {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.final-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.final-content {
    width: 50%;
    text-align: right;
    padding-right: 10rem;
    /* فاصله از تصویر */
}

.final-title {
    font-size: 55px;
    line-height: 1.2;
    font-weight: bold;
    margin: 0;
    color: #1a1a1a;
}

.final-description {
    font-size: 18px;
    margin-top: 20px;
    line-height: 1.5;
    color: #333;
}

.final-logos-container {
    display: flex;
    justify-content: flex-end;
    /* برای RTL باید به سمت راست تراز شود */
    align-items: center;
    gap: 30px;
    margin-top: 60px;
    margin-left: 21rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;

}

.logo p {
    margin: 0;
    font-weight: 600;
    font-size: 14px;
    color: #007bff8b;
}


/* استایل بخش خدمات */
.services-section {
    padding: 80px 80px;
    background-color: #ffffff;
    text-align: center;
}

.services-header {
    margin-bottom: 50px;
}

.services-title {
    font-size: 45px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.services-subtitle {
    font-size: 18px;
    color: #555;
    margin: 0;
}

.services-cards-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.card {
    background-color: #F2F8FF;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    text-align: right;
    width: 33.33%;
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: #e0eaff;
    border-radius: 50%;
    margin-bottom: 20px;
    /* این کدها برای جایگزینی آیکون‌ها هستند */
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-icon img {
    width: 60px;
    height: 60px;
}

.card-title {
    font-size: 22px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.card-description {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}



/* استایل بخش فوتر */
.footer {
    background-color: #1a1a36;
    /* رنگ پس‌زمینه تیره */
    color: #f7f7f7;
    padding: 60px 80px;
    font-family: 'Vazirmatn', sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    text-align: right;
    direction: rtl;
    /* برای چیدمان راست به چپ */
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #f7f7f7;
}

.footer-copyright {
    font-size: 14px;
    color: #aaa;
    line-height: 1.5;
}

.footer-col h4 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
}

.footer-col a {
    text-decoration: none;
    color: #bbb;
    font-size: 16px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #007bff;
}


/* سفارشی‌سازی اسکرول‌بار برای مرورگرهای WebKit */

/* کل اسکرول‌بار */
::-webkit-scrollbar {
    width: 12px;
    /* عرض اسکرول‌بار */
    transition: 300ms all;
    border-radius: 0;
}

/* پس‌زمینه اسکرول‌بار (Track) */
::-webkit-scrollbar-track {
    background: #f1f1f1;
    /* رنگ پس‌زمینه */

}

/* قسمت متحرک اسکرول‌بار (Thumb) */
::-webkit-scrollbar-thumb {
    background: #007bff;
    /* رنگ نوار اسکرول */

}

/* تغییر رنگ Thumb هنگام هاور */
::-webkit-scrollbar-thumb:hover {
    background: #024a96da;
    /* رنگ تیره‌تر هنگام قرار گرفتن موس روی آن */
}

/* استایل‌های صفحه تماس با ما */
.contact-page-container {
    padding-top: 80px;
    padding-bottom: 50px;
    background-color: #f7f7f7;
    font-family: 'Vazirmatn', sans-serif;
    text-align: right;
    direction: rtl;
}

.contact-header {
    text-align: center;
    padding: 50px 0;
}

.contact-title {
    font-size: 45px;
    font-weight: bold;
    margin: 0;
}

.contact-subtitle {
    font-size: 18px;
    color: #555;
    margin-top: 10px;
}

.contact-info-section {
    display: flex;
    justify-content: center;
    padding: 0 80px;
    margin-bottom: 50px;
    margin-top: 10rem;
}

.contact-info {
    flex: 1;
    /* این بخش کل فضای موجود را اشغال می‌کند */
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.contact-info h3 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 16px;
    margin: 15px 0;
    line-height: 1.6;
}

.social-title {
    margin-top: 30px;
}

.social-links a {
    display: inline-block;
    margin-left: 15px;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

/* استایل‌های مربوط به فرم و .contact-form-container حذف شده‌اند. */

.map-container {
    padding: 0 80px;
    margin-top: 50px;
}

.map-container h3 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
}

/* ================================
  Mobile Navigation Panel (Floating Version)
  ================================ */

#mobile-nav {
    display: none;
    position: fixed;
    z-index: 1010;
    bottom: 25px;
    left: 0;
    right: 0;
    width: 92%;
    max-width: 380px;
    margin: 0 auto; /* وسط‌چین دقیق */
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(230, 230, 230, 0.7);
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    overflow-x: hidden;
}

#mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0 10px;
    display: flex;
    justify-content: space-around;
    flex-wrap: nowrap;
    overflow-x: hidden;
}

#mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 5px;
    text-decoration: none;
    color: #000;
    transition: color 0.3s ease;
    flex: 1;
    max-width: 70px;
    overflow: hidden;
}

#mobile-nav a span {
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

#mobile-nav a:hover,
#mobile-nav a.active {
    color: #007bff;
}

#mobile-nav a svg {
    width: 24px;
    height: 24px;
    margin-bottom: 3px;
}

@media (max-width: 768px) {
    .header {
        display: none;
    }

    #mobile-nav {
        display: block;
    }
}

@media (max-width: 768px) {


    .hero-section {
        flex-direction: column-reverse;
        /* این خط را تغییر دهید */
        align-items: center;
        padding: 50px 20px;
        text-align: center;
        margin-left: 4rem;
        margin-top: -2rem;
    }

    .hero-content {
        width: 100%;
        max-width: none;
        text-align: center;
    }

    .hero-image-container {
        width: 100%;
        margin-bottom: 3rem;
        text-align: center;
    }

    .hero-title {
        font-size: 45px;
        line-height: 1.1;
    }

    .hero-description {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    /* ... سایر کدهای رسپانسیو قبلی ... */

    .secondary-hero-section {
        flex-direction: column;
        /* تغییر جهت چیدمان به ستونی */
        text-align: center;
        padding: 50px 20px;

    }

    .secondary-hero-content {
        width: 100%;
        max-width: none;
        text-align: center;
        padding-right: 0;
        margin-right: 8.5rem;
    }

    .secondary-hero-title {
        font-size: 40px;
    }

    .secondary-hero-description {
        font-size: 16px;
    }

    .secondary-hero-image-container {
        width: 80%;
        margin-top: 30px;
        margin-bottom: 2rem;
        margin-right: 2rem;
    }

}

@media (max-width: 768px) {
    /* ... سایر کدهای رسپانسیو قبلی ... */

    .tertiary-section {
        flex-direction: column;
        /* تغییر جهت چیدمان به ستونی */
        text-align: center;
        padding: 50px 20px;
    }

    .tertiary-content {
        width: 100%;
        max-width: none;
        text-align: center;
        margin-left: 2.5rem;
        order: 2;
    }

    .tertiary-image-container {
        width: 100%;
        margin-top: 30px;
        order: 1;
        margin-bottom: 3rem;
    }

    .tertiary-title {
        font-size: 40px;
    }

    .tertiary-description {
        font-size: 16px;
    }
}


@media (max-width: 768px) {
    /* ... سایر کدهای رسپانسیو قبلی ... */

    .final-section {
        flex-direction: column; /* تغییر جهت چیدمان به ستونی */
        align-items: center;
        text-align: center;
        padding: 50px 20px;
    }

    .final-content {
        width: 100%;
        max-width: none;
        text-align: center;
        order: 2;
        padding-right: 0;
    }

    .final-image-container {
        width: 100%;
        order: 1;
        margin-left: 1rem;
        margin-bottom: 2rem;
    }

    .final-title {
        font-size: 40px;
    }

    .final-description {
        font-size: 16px;
    }

    .final-logos-container {
        justify-content: center;
        flex-wrap: nowrap;
        gap: 64px;
        width: 27rem;
    }
}

@media (max-width: 768px) {
    /* ... سایر کدهای رسپانسیو قبلی ... */

    .services-cards-container {
        flex-direction: column; /* تغییر جهت چیدمان به ستونی */
        gap: 20px;
        margin-left: 4rem;
    }

    .card {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .card-icon {
        margin-right: 6.2rem;
    }
}

@media (max-width: 768px) {
    /* ... سایر کدهای رسپانسیو قبلی ... */

    .footer-container {
        flex-direction: row;
        flex-wrap: wrap; /* این خط اضافه شده */
        justify-content: center;
        gap: 15px; /* کاهش فاصله بین آیتم‌ها */
    }

    .footer-col {
        align-items: center;
        width: 45%; /* تقسیم آیتم‌ها به دو ستون */
        text-align: center;
    }
    
    .footer-col h4,
    .footer-logo {
        font-size: 16px;
    }

    .footer-col a,
    .footer-copyright {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    /* ... سایر کدهای رسپانسیو قبلی ... */

    .contact-grid {
        flex-direction: column; /* تغییر چیدمان از ردیفی به ستونی */
        gap: 30px;
        padding: 0 20px;
    }

    .contact-info, .contact-form-container {
        width: 100%;
        max-width: none;
    }

    .map-container {
        padding: 0 20px;
    }

    .contact-title {
        font-size: 36px;
    }
}


#header-logo-gemini {
width: 54px;
height: 54px;
}

/* برای اینکه لوگو به صورت نرم محو شود */
.header-logo img {
    transition: opacity 0.3s ease;
}

/* این کلاس لوگو را پنهان می‌کند */
.header-logo img.hidden {
    opacity: 0;
    visibility: hidden;
}

.map-container iframe {
    /* انیمیشن نرم برای هاور */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    
    /* افکت‌های مدرن برای کادر نقشه */
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.map-container iframe:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .header {
        display: none;
    }

    #mobile-nav {
        display: block;
    }

    .hero-section,
    .secondary-hero-section,
    .tertiary-section,
    .final-section,
    .services-section,
    .contact-page-container,
    .contact-info-section,
    .map-container {
        padding: 20px 10px; /* پدینگ کمتر برای موبایل */
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        text-align: center; /* وسط‌چین متن برای موبایل */
        margin-bottom: 2rem;
        margin-left: 1rem;
    }


    .hero-content,
    .secondary-hero-content,
    .tertiary-content,
    .final-content,
    .contact-info {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .hero-image-container,
    .secondary-hero-image-container,
    .tertiary-image-container,
    .final-image-container {
        width: 100%;
        max-width: 100%;
        margin: 20px 0 0 0; /* فقط margin عمودی */
        margin-bottom: 2rem;
    }

    .hero-image,
    .secondary-hero-image,
    .tertiary-image,
    .final-image {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }


    .final-logos-container {
        margin: 20px 0 0 0;
        width: 100%;
        justify-content: center;
        gap: 46px; /* کاهش فاصله */
        flex-wrap: wrap; /* اگر لازم، به خط بعدی بره */
        margin-top: 2rem;
    }

    .services-cards-container {
        flex-direction: column;
        gap: 20px;
        margin: 0;
        width: 100%;
    }

    .card {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 20px;
    }

    .card-icon {
        margin: 0 auto 20px auto; /* وسط‌چین */
    }

 .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .footer-col {
        width: 100%;
        text-align: center;
    }

    .hero-image{
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
    .hero-section{
        margin-bottom: 5.4rem;
    }

    .tertiary-content{
        margin-top: 2rem;
        margin-bottom: 3rem;
    }

    .tertiary-image{
        margin-top: 3rem;
    }

    .final-logos-container{
        margin-bottom: 2rem;
    }

}



@media (max-width: 412px){
    .card {
        width: 91%;
        max-width: 91%;
        margin: 0;
        padding: 20px;
    }
}





a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ۲. تعریف استایل فوکوس سفارشی برای تمام لینک ها و دکمه ها */
a:focus, button:focus {
    /* حذف حلقه آبی پیش فرض */
    outline: none;

    /* اضافه کردن یک سایه زیبا و ملایم به عنوان جایگزین */
   
    
    /* اختیاری: هماهنگ کردن گوشه های سایه با عنصر */
    /* border-radius: 8px; */
}


/* 🎨 دکمه‌ها مدرن */
button,
.hero-cta-button,
.secondary-hero-cta-button,
.tertiary-cta-button,
.header-cta {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff !important;
  border: none;
  border-radius: 50px;
  padding: 14px 32px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  transition: 300ms all;
}

button:hover,
.hero-cta-button:hover,
.secondary-hero-cta-button:hover,
.tertiary-cta-button:hover,
.header-cta:hover {
  transform: translateY(-4px) scale(1.05);

  
  
}


/* متن‌های گرادینتی */
.gradient-text {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; /* برای مرورگرهای جدید */
  color: transparent;
}

.gradient-icon {
  width: 48px;
  height: 48px;

  /* رنگ گرادینت */
  background: linear-gradient(45deg, #ff7e5f, #feb47b);

  /* استفاده از SVG به عنوان mask */
  -webkit-mask: url(#) no-repeat center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: cover;
  mask: url(#) no-repeat center;
  mask-repeat: no-repeat;
  mask-size: cover;

  /* فقط برای نمایش پس‌زمینه گرادینت از mask */
  display: inline-block;
}
