* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, sans-serif;
    
}

::selection {
    background-color: #232ed1  ;
    color: white;
}
body {
    height: 200vh;
    font-size: clamp(1rem, 2vw, 1.1rem); /* اندازه فونت ریسپانسیو */
    line-height: 1.6;



}



@keyframes animate {
    0%{
        transform: translateY(0) rotate(50deg);
        opacity: 1;
        border-radius: 0;
    }



    
    40%{
        transform: translateY(-600px) rotate(150deg); /* حرکت سریع اول */
        opacity: 1;
        }
    




    100%{
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

.background {
    position: absolute; /* دیگر ثابت نیست */
    width: 100%;
    height: 100%; /* فقط داخل منطقه‌ای که قرار دارد */
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    background: #ffffff; /* پس‌زمینه سفید */
    overflow: hidden;
    z-index: -1; /* زیر محتوا داخل همان بخش */
background: linear-gradient(135deg, #ffffff 0%, #eef0ff 100%);

}

@media (max-width: 768px) {
    
.background {

    width: 100%;
    height: 1130px;

}
    }






.background li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
background: rgba(35, 46, 209, 0.25);

    animation: animate 25s linear infinite;
}

/* موقعیت‌ها و اندازه‌ها */
.background li:nth-child(0) { left: 83%; width: 141px; height: 141px; bottom: -141px; animation-delay: 1s; }
.background li:nth-child(1) { left: 16%; width: 277px; height: 277px; bottom: -277px; animation-delay: 2s; }
.background li:nth-child(2) { left: 70%; width: 116px; height: 116px; bottom: -116px; animation-delay: 5s; }
.background li:nth-child(3) { left: 50%; width: 158px; height: 158px; bottom: -158px; animation-delay: 13s; }
.background li:nth-child(4) { left: 14%; width: 126px; height: 126px; bottom: -126px; animation-delay: 17s; }
.background li:nth-child(5) { left: 21%; width: 220px; height: 220px; bottom: -220px; animation-delay: 4s; }
.background li:nth-child(6) { left: 34%; width: 165px; height: 165px; bottom: -165px; animation-delay: 1s; }
.background li:nth-child(7) { left: 51%; width: 117px; height: 117px; bottom: -117px; animation-delay: 10s; }
.background li:nth-child(8) { left: 42%; width: 146px; height: 146px; bottom: -146px; animation-delay: 1s; }
.background li:nth-child(9) { left: 85%; width: 156px; height: 156px; bottom: -156px; animation-delay: 24s; }
.background li:nth-child(10) { left: 77%; width: 195px; height: 195px; bottom: -195px; animation-delay: 36s; }
.background li:nth-child(11) { left: 35%; width: 283px; height: 283px; bottom: -283px; animation-delay: 47s; }
.background li:nth-child(12) { left: 29%; width: 204px; height: 204px; bottom: -204px; animation-delay: 54s; }
.background li:nth-child(13) { left: 47%; width: 123px; height: 123px; bottom: -123px; animation-delay: 65s; }
.background li:nth-child(14) { left: 1%; width: 246px; height: 246px; bottom: -246px; animation-delay: 3s; }
.background li:nth-child(15) { left: 40%; width: 210px; height: 210px; bottom: -210px; animation-delay: 65s; }
.background li:nth-child(16) { left: 82%; width: 288px; height: 288px; bottom: -288px; animation-delay: 33s; }
.background li:nth-child(17) { left: 30%; width: 190px; height: 190px; bottom: -190px; animation-delay: 48s; }
.background li:nth-child(18) { left: 6%; width: 287px; height: 287px; bottom: -287px; animation-delay: 63s; }
.background li:nth-child(19) {
    left: 12%;
    width: 180px;
    height: 180px;
    bottom: -180px;
    animation-delay: 20s;
}

.background li:nth-child(20) {
    left: 58%;
    width: 140px;
    height: 140px;
    bottom: -140px;
    animation-delay: 8s;
}

.background li:nth-child(21) {
    left: 73%;
    width: 260px;
    height: 260px;
    bottom: -260px;
    animation-delay: 16s;
}

.background li:nth-child(22) {
    left: 5%;
    width: 200px;
    height: 200px;
    bottom: -200px;
    animation-delay: 12s;
}

.background li:nth-child(23) {
    left: 27%;
    width: 150px;
    height: 150px;
    bottom: -150px;
    animation-delay: 25s;
}

.background li:nth-child(24) {
    left: 63%;
    width: 230px;
    height: 230px;
    bottom: -230px;
    animation-delay: 30s;
}

.background li:nth-child(25) {
    left: 9%;
    width: 175px;
    height: 175px;
    bottom: -175px;
    animation-delay: 18s;
}

.background li:nth-child(26) {
    left: 44%;
    width: 120px;
    height: 120px;
    bottom: -120px;
    animation-delay: 22s;
}

.background li:nth-child(27) {
    left: 68%;
    width: 210px;
    height: 210px;
    bottom: -210px;
    animation-delay: 27s;
}

.background li:nth-child(28) {
    left: 18%;
    width: 260px;
    height: 260px;
    bottom: -260px;
    animation-delay: 35s;
}

.background li:nth-child(29) {
    left: 39%;
    width: 135px;
    height: 135px;
    bottom: -135px;
    animation-delay: 40s;
}

.background li:nth-child(30) {
    left: 91%;
    width: 250px;
    height: 250px;
    bottom: -250px;
    animation-delay: 50s;
}





@media (max-width: 768px) {
    .background li {
        bottom: -1500px !important;
        transform: scale(0.7); /* کوچک‌تر */
    }
}





























/* ------------ هدر ------------ */
header {
    position: fixed;
    top: 10px;
    left: 10px;
    right: 10px;
    height: 75px;
    padding: 0 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);

}

/* لوگو */
.logo {
    height: clamp(40px, 5vw, 65px);
}

.hlogo {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
}

/* منو دسکتاپ */
nav ul {
    display: flex;
    list-style: none;
    gap: clamp(15px, 2vw, 25px);
    justify-content: center;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    font-size: clamp(16px, 1.2vw, 18px);
    font-weight: 600;
    padding: clamp(6px, 0.8vw, 8px) clamp(8px, 1vw, 12px);
    border-radius: 8px;
    display: inline-block;
     color: #232ed1 ;
         position: relative; /* بسیار مهم: موقعیت نسبی برای لینک */
}

#menuList li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;      /* شروع از راست */
    width: 0%;     
    height: 2px;
    background-color: #232ed1 ;
    transition: width 0.3s ease;
}

/* هاور: کشیده شدن به چپ */
#menuList li a:hover::after {
    width: 100%;   /* گسترش خط */
}

/* دکمه همبرگری */
.menu-btn {
    display: none;
    font-size: clamp(28px, 5vw, 34px);
    cursor: pointer;
    user-select: none;
}

/* ------------ موبایل ------------ */
@media(max-width: 830px) {
    header {
        justify-content: center;
    }

    .hlogo {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        background: rgba(255,255,255,0.55);
        backdrop-filter: blur(12px);
        padding-top: 100px;
        gap: 2rem;
        transition: 0.4s ease;
        pointer-events: none;
        align-items: center;
        justify-content: flex-start;
    }

    nav ul.active {
        right: 0;
        pointer-events: auto;
    }

    nav ul li a {
        font-size: clamp(18px, 4vw, 22px);
    }
}











/* ------------ بخش اصلی (.asli) ------------ */    
.asli {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 6vw, 80px);
    padding: 2% 3%;
    max-width: 1450px;
    margin: 70px auto 1 auto;
    flex-wrap: wrap;
    flex-direction: row-reverse; /* دسکتاپ: عکس راست، متن چپ */
}




.asli img {
    flex: 1 1 270px;
    max-width: clamp(245px, 32%, 355px);
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    margin-top: 4.2%;

}

.asli .text {
    flex: 2 1 400px;
    text-align: right;
    direction: rtl;
    margin-right: 60px;
    
}

.asli .text h1 {
    font-size: clamp(3.3rem, 3.6vw, 3.6rem);
    margin-bottom: 0.5rem;
}
.asli .text h1 span{
        color: #232ed1 ;
}

.asli .text .p1 {
    font-size: clamp(2,9rem, 3.8vw, 2.9rem);    
    line-height: 1.7;
}

/* موبایل */
@media (max-width: 768px) {
    .asli {
        flex-direction: column;
        gap: 0.1rem; /* کاهش فاصله */
        text-align: center;                 /* فاصله کمتر بین متن و تصویر */
    }


    .asli img {

            max-width: clamp(350px, 65%, 650px);
    width: 100%;
    height: auto;   



    }

    .asli .text {   
        order: -1;                   /* متن اول */
        text-align: center;
        direction: rtl  ;
                max-width: 80%;   /* متن کمتر از عرض صفحه */
        margin: 1 auto;   /* وسط‌چین شدن */
        height: auto;
        margin-right: 10px;
        margin-top: 90px;
        
    }

    .asli .text h1 {

        margin-bottom: 1rem;
                font-size: clamp(1.9rem, 5.3vw, 2.2rem);
    }

    .asli .text .p1 {
           font-size: clamp(1rem, 3vw, 1.1rem);
        line-height: 1.7;

    }



}



.button {
  cursor: pointer;
  display: inline-block;
  position: relative;
  padding: 10px 24px;
  font-size: 18px;
  color: #232ed1 ;
  border: 2px solid #2934c2 ;
  border-radius: 34px;
  background-color: transparent;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
  overflow: hidden;
  margin-top: 20px;
}

.button::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 50px;
  height: 50px;
  border-radius: inherit;
  scale: 0;
  z-index: -1;
  background-color: #232ed1;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.button:hover::before {
  scale: 3;
}

.button:hover {
  color: #ffffff;
  scale: 1.1;
  box-shadow: 0 0px 20px rgba(193, 163, 98,0.4);
}

.button:active {
  scale: 1;
}











/* بخش دوم از اینجا شروع میشه */




h2 {
margin-top: 50px;
font-size: 48px;
color: #232ed1;
text-align: center;
}


.container {
width: 90%;
max-width: 1100px;
margin: 60px auto;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 25px;
}


.box {
background: white;
padding: 30px 20px;
border-radius: 20px;
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
transition: transform .3s;
}


.box:hover {
transform: translateY(-5px);
}


.title {
font-size: 20px;
color: #232ed1;
margin-bottom: 10px;
font-weight: bold;
text-align: center;
}


.number {
font-size: 40px;
font-weight: bold;
color: #333;
text-align: center;
}







/* بخش خدمات */


.h2kh {
margin-top: 100px;
font-size: 48px;
color: #232ed1;
text-align: center;

}




.services {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 40px 10px;
}

/* ردیف‌ها */
.row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* باکس‌ها */
.service-item {
    background: #4a90e2;
    border-radius: 18px;
    transition: transform .25s ease, box-shadow .25s ease;
    opacity: 0;
    transform: translateY(20px);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px;
    text-align: center;
    color: #fff;
}

/* سایزهای متفاوت */
.div-one   { width: 350px; height: 350px; animation-delay: .1s; }
.div-two   { width: 310px; height: 350px; animation-delay: .2s; }
.div-three { width: 340px; height: 350px; animation-delay: .3s; }
.div-four  { width: 510px; height: 200px; animation-delay: .4s; }
.div-five  { width: 510px; height: 200px; animation-delay: .5s; }

/* محتوا */
.services {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 40px 10px;
}

/* ردیف‌ها */
.row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* باکس‌ها */
.service-item {
    background: #ffffff;                   /* بکگراند سفید */
    border-radius: 18px;
    padding: 25px;
    box-sizing: border-box;

    /* سایه ملایم */
    box-shadow: 0 5px 18px rgba(0,0,0,0.08);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    transition: transform .3s ease, box-shadow .3s ease;
    opacity: 0;
    transform: translateY(20px);
}

/* سایزهای متفاوت */
.div-one   { width: 350px; height: 350px; animation-delay: .1s; }
.div-two   { width: 310px; height: 350px; animation-delay: .2s; }
.div-three { width: 340px; height: 350px; animation-delay: .3s; }
.div-four  { width: 510px; height: 200px; animation-delay: .4s; }
.div-five  { width: 510px; height: 200px; animation-delay: .5s; }

/* آیکون */
.iconkh {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* تیتر */
.service-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

/* توضیح */
.desc {
    font-size: 16px;
    opacity: 0.85;
    color: #555;
}

/* Hover قوی‌تر */
.service-item:hover {
    transform: translateY(-10px) scale(1.07);
    box-shadow: 0 18px 35px rgba(0,0,0,0.18);
    cursor: pointer;
}

/* انیمیشن ورود */
.service-item.animate {
    animation: fadeIn .6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ریسپانسیو موبایل */
@media (max-width: 600px) {
    .row {
        flex-direction: column;
        align-items: center;
    }
    .service-item {
        width: 90% !important;
        height: auto !important;
    }
}

















/* صفحه شامل فرم + اسلایدر */
.layout {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 80px 140px;
}

@media(max-width: 900px) {
    .layout {
        flex-direction: column;
        align-items: center;
        padding: 30px;
        
    }
}


/* --- فرم --- */
    .comment-card {
        background: #fff;
        padding: 45px;
        border-radius: 22px;
        width: 550px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    
    }

    .comment-title {
        font-size: 26px;
        font-weight: bold;
        color: #232ed1;
        text-align: center;
        margin-bottom: 25px;
    }

    .comment-card input,
    .comment-card textarea {
        width: 100%;
        padding: 15px;
        border-radius: 14px;
        border: 1px solid #ccc;
        margin-bottom: 20px;
        transition: .3s;
        font-size: 16px;
    }

    .comment-card input:focus,
    .comment-card textarea:focus {
        border-color: #232ed1;
        box-shadow: 0 0 10px rgba(35,46,209,.3);
        outline: none;
    }

    .comment-submit {
        background: #232ed1;
        color: white;
        padding: 16px;
        width: 100%;
        border: none;
        border-radius: 14px;
        font-size: 18px;
        cursor: pointer;
        transition: 0.3s;
    }

    .comment-submit:hover {
        background: #1b26b3;
    }







/* --- اسلایدر نظرات --- */
.slider-box {
    width: 650px;
    margin-top: 150px;
    
}

@media(max-width: 900px) {

.slider-box {
    width: 400px;

}

    
}


.splide__slide {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
    padding: 22px;
    border: 1px solid #eee;
    text-align: right;
    direction: rtl;
}

.review-icon {
    font-size: 40px;
    color: #232ed1;
    text-align: center;
    margin-bottom: 15px;
}


.review-card {
  background: #fff;
  border-radius: 20px;
  padding: 35px 40px;
  direction: rtl;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  height: 120px;
}



.review-name {
    font-weight: 800;
    font-size: 22px;
    margin-bottom:6px;
    color: #232ed1;
}

.review-text {
    font-size: 15.5px;
    line-height: 1.8;
    color: #333;
}

.splide__arrow {
    display: none !important;
}

.review-top {
  display: flex;
  align-items: center;
  gap: 15px;
}






/* --- Toast حرفه‌ای --- */
.toast {
  position: fixed;
  top: 80px;           /* فاصله از بالای صفحه — می‌تونی تنظیم کنی */
  right: 40px;         /* کنار راست صفحه */
  left: auto;
  transform: none;     /* دیگر از translate مرکزی استفاده نمی‌کنیم */
  background: #fff;
  padding: 20px 28px;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.22);
  font-weight: 700;
  min-width: 320px;
  font-size: 18px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 2000;
  overflow: hidden;    /* خیلی مهم برای گرد شدن نوار */
  direction: rtl;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0); /* می‌توان انیمیشن ورود اضافه کرد */
}

.toast-progress {
  position: absolute;
  top: 0;
  right: 0;                 /* پایهٔ نوار از سمت راست است */
  left: 0;                  /* می‌گذاریم تا در overflow محصور بشود */
  height: 8px;
  background: linear-gradient(90deg, #232ed1, #6a7bff); /* گرادیانت دلخواه */
  transform-origin: right;  /* بسیار مهم: مبدا تبدیل از سمت راست */
  transform: scaleX(0);     /* حالت اولیه: 0% (نشان‌دهنده خالی) */
  border-radius: 18px 18px 0 0;
  transition: transform 3s linear;
}

.toast-progress.active {
    transform: scaleX(1);
}

.toast-content {
  padding: 6px 0;
}









/* سوالات متداول» */
  .faq-container {
    max-width: 700px;
    margin: auto;
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  }

  .faq-item {
    border-bottom: 1px solid #eee;
    padding: 18px 0;
    cursor: pointer;
  }
  .faq-item:last-child { border-bottom: none; }

  .faq-question {
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
    color: #232ed1;
  }

  .faq-question:hover { color: #1a23a5; }

  .faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    line-height: 1.8;
    transition: all 0.45s ease;
    padding-left: 5px;
  }

  .faq-item.active .faq-answer {
    max-height: 300px;
    opacity: 1;
  }

  .icon {
    width: 20px;
    height: 20px;
    transition: transform 0.35s ease;
    transform-origin: center;
  }

  .faq-item.active .icon {
    transform: rotate(180deg);}









    


    /* فوتر */



    footer.footer {
background: #ffffff;
border-radius: 16px 16px 0 0;
padding: 40px 20px;
border-top: 6px solid #232ed1;
max-width: 1500px;
margin: 40px auto 0 auto;
}


.footer-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 40px;
text-align: center; /* متن ها وسط چین */
}


h3.footer-title {
color: #232ed1;
margin-bottom: 20px;
font-size: 1.2rem;
}


.footer-links a.footer-link {
display: block;
margin-bottom: 10px;
text-decoration: none;
color: #333;
font-size: 0.95rem;
transition: all 0.3s ease;
padding: 3px 2px;
border-radius: 4px;
position: relative;
width: 70px;   
margin-right: 195px;
}


.footer-links a.footer-link:hover {
color: #232ed1;
transform: scale(1.03);
}


.footer-contact-item {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
margin-bottom: 10px;
font-size: 0.95rem;
color: #333;
}


.footer-contact-item img {
width: 22px;
height: 22px;
}


