@font-face{
    font-family:"IranYekan";
    src: url("./fonts/iranyekan/Yekan.woff") format("woff"),
    /* url("./fonts/iranyekan/Yekan.woff") format("woff"), */
    /* url("./fonts/vazir/Vazir-Medium-FD-WOL.ttf") format("truetype"); */
}


:root {
    --clr-primary-1: #2f3e46;
    --clr-primary-2: #354f52;
    --clr-primary-3: #52796f;
    --clr-primary-4: #84a98c;
    --clr-primary-5: #cad2c5;
    --clr-grey-1: #102a42;
    --clr-grey-2: #617d98;
    --clr-grey-3: rgb(241, 245, 248);
    --clr-white: #fff;
    --ff-primary: "IranYekan", sans-serif;
    --transition: all 0.5s linear;
    --radius: 0.5rem;
    --light-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --dark-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    --max-width: 1170px;
    --red1:#FFCDD2;
    --red2:#EF5350;
    --red3:#E53935;
    --red4:#C62828;
    --red5:#B71C1C;
    --gray1:#fafafa;
    --gray2:#e7e7e7;
    --gray3:#9e9e9e;
    --gray4:#616161;
    --gray5:#252525;
    --khas1:#e63946;
    --khas2:#f1f1f1;
    --khas3:#2b2d42;
    --khas4:#1d3557;
}


*,
::after,
::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--ff-primary);
    background: var(--clr-white);
    color: var(--khas3);
    line-height: 1.8;
    font-size: 0.875rem;
    /* overflow:hidden; */
    padding-top: 3rem;
    overflow-x: hidden; /* جلوگیری از اسکرول افقی */

}

ul {
    list-style-type: none;
}
a {
    text-decoration: none;
}

img {
    width: 100%;
    display: block;
}

h1, h2, h3, h4 {
    line-height: 1.8;
    margin-bottom: 0.75rem;
    font-family: var(--ff-primary);
}

@media screen and (min-width: 800px) {
    h1 { font-size: 4rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 1.75rem; }
    h4 { font-size: 1rem; }
    body { font-size: 1rem; }
}

h1 {
    font-size: 3rem;
}
h2 {
    font-size: 2rem;
}
h3 {
    font-size: 1.25rem;
}
h4 {
    font-size: 0.875rem;
    text-align: justify;
}
p {
    margin-bottom: 1.25rem;
    color: var(--khas4);
    text-align: justify;
}




.btn{
    background-color: var(--red5);
    width:8.5rem;
    height:2.6rem;
    color: white;
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
    transition: var(--transition);
    font-size: clamp(0.9rem, 0.5vw + 0.8rem, 1rem);
    font-family: var(--ff-primary);
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    justify-content:center;
    align-items:center;
    margin-top:1.5rem;
    font-weight:600;
    text-align:center;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.2);
   


}
.btn:hover {
    color: var(--clr-white);
    background: var(--red3);
}

.section {
    padding: 3rem 0;
    min-height: calc(100vh - 3rem);
    overflow-x:hidden;

}

.section-center {
    width: 90vw;
    margin: 0 auto;
    max-width: var(--max-width);
}

@media screen and (min-width: 992px) {
    .section-center {
        width: 95vw;
    }
}
.section-title {
    margin-bottom: 4rem;
    text-align: center;
}

.underline {
    width: 5rem;
    height: 0.25rem;
    background: var(--gray5);
    margin-bottom: 1.25rem;
    margin-left: auto;
    margin-right: auto;
}

.bg-grey {
    background: var(--clr-grey-3);
}
/* ریسپانسیو حرفه‌ای موبایل */
@media screen and (max-width: 576px) {
    body {
        font-size: 0.9rem;
        line-height: 1.6;
        padding: 0 0.5rem;
        overflow-x:hidden;
    }

    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.1rem;
    }
    h4 {
        font-size: 0.9rem;
    }

    p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .section {
        padding: 2rem 0;
        min-height: auto; /* جلوگیری از اسکرول اضافی */
        overflow-x:hidden;
    }

    .section-center {
        width: 100%;
        padding: 0 1rem;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .underline {
        width: 3rem;
        height: 0.2rem;
        margin-bottom: 1rem;
    }

.btn {
    display: flex;
    justify-content: center;  /* متن وسط چین */
    align-items: center;      /* متن عمودی وسط */
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size:1.2rem;
    font-weight:500;
    margin-top:1.5rem;
}

    img {
        max-width: 100%;
        height: auto;
        border-radius: 0.5rem; /* برای زیبایی موبایل */
    }

    ul {
        padding-left: 0;
    }

    a {
        font-size: 0.9rem;
    }

    /* برای جلوگیری از شلوغی */
    .bg-grey {
        padding: 1.5rem 1rem;
        border-radius: 0.5rem;
    }
}

/* =====================    navbar   ============================ */

.nav {
  height: 3rem;
  padding: 1.2rem;
  z-index: 30;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: var(--clr-white);
  box-shadow: var(--dark-shadow);
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-center {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  direction: ltr;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  width: 35px;
  height: auto;
}

.logo h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #b60000; /* رنگ قرمز مثل عکس */
  margin-top: 16px;
}

.nav-links {
  display: none;
}

/* موبایل */
@media screen and (max-width: 768px) {
  .nav-head {
    display: flex;
    justify-content: space-between; /* فاصله بین دکمه و لوگو */
    width: 100%;
    direction: ltr; /* لوگو سمت راست */
  }

  .logo {
    order: 2; /* لوگو سمت راست */
  }

  .nav-btn {
    order: 1; /* دکمه سمت چپ */
    background:none;
    border-box:none;
    border:none;
  }

  .nav-links {
    display: none; /* لینک‌ها مخفی */
  }
}


@media screen and (min-width: 768px) {
  .nav-btn {
    display: none;
  }

  .nav-links {
    display: flex;
    gap: 1.5rem;
      direction:rtl;

  }

.nav-links li {
  position: relative;
  height: 3rem; /* به اندازه ارتفاع navbar */
  display: flex;
  align-items: center; /* متن وسط‌چین بشه */
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--clr-grey-1);
  transition: color 0.3s ease-in-out;
  padding: 0 0.5rem; /* فاصله افقی */
  height: 100%; /* لینک تمام ارتفاع li رو بگیره */
  display: flex;
  align-items: center;
}

  .nav-links a:hover {
    color: var(--red3);
  }

  .nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    bottom: 0;
    height: 3px;
    background-color: red;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }

  .nav-links a:hover::after,
  .nav-links a.active::after {
    opacity: 1;
  }
}







/* =====================    sidebar   ============================ */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--clr-grey-3);
    z-index: 40;
    display: grid;
    /* justify-content: center;
    align-items: center; */
    place-content: center;
    transform: translateX(100%);
    transition: var(--transition);
}

.show-sidebar {
    transform: translateX(0);
}

.close-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 3rem;
    background: transparent;
    border: transparent;
    color: #bb2525;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    color: #e66b6b;
}

.sid-link {
    text-align: center;
}

.sid-link a {
    font-size: 1.5rem;
    color: var(--clr-grey-2);
    display: inline-block;
    margin-bottom: 1.5rem;
}

.sid-link a:hover {
    color: var(--red3);
}

.social-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    -moz-column-gap: 2rem;
         column-gap: 2rem;
    margin-top: 3rem;
}

.social-icon {
    font-size: 1.5rem;
    color: var(--clr-grey-1);
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--clr-primary-4);
}

/* ========= ریسپانسیو موبایل =========== */
@media screen and (max-width: 767px) {
    .nav {
        height: 3.5rem;
        padding: 0.75rem 1rem;
    }

    .nav-head h3 {
        font-size: 1.25rem;
    }

    .nav-links {
        display: none; /* فقط از سایدبار استفاده می‌کنیم */
    }

    .nav-btn {
        display: block;
        font-size: 1.8rem;
    }

    /* سایدبار برای موبایل */
    .sidebar {
        width: 100%;
        padding: 2rem 1rem;
        text-align: center;
    }

    .sid-link a {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .social-icons {
        grid-template-columns: repeat(3, 40px);
        justify-content: center;
        margin-top: 2rem;
        gap: 1rem;
    }

    .social-icon {
        font-size: 1.25rem;
    }

    /* بستن سایدبار در موبایل */
    .close-btn {
        font-size: 2rem;
        top: 0.75rem;
        left: 0.75rem;
    }
}

/* ========= ریسپانسیو تبلت کوچک (بین 768 و 992) =========== */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .nav-center {
        grid-template-columns: auto 1fr;
    }

    .nav-links {
        grid-template-columns: repeat(4, auto);
        column-gap: 1rem;
    }

    .nav-head h3 {
        font-size: 1.5rem;
    }
}


/* ===================== hero ============================ */



.hero {
    background-color: var(--clr-primary-2);
    min-height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x:hidden;
}

/* لوگوها */
.logos1 {
    position: absolute;
    top: 33%;
    left: 50%;
    margin: 0 auto;
    pointer-events: none;
}

.logos1 img {
    font-size: 4em;
}

.part {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 250px;
    opacity: 0;
    transition: all 2s ease-in-out;
    transform-origin: center;
    transform: translate(-50%, -50%) translate(0, 0);
}

/* حالت اولیه: هر ضلع از مرکز فاصله دارد */
.part1 { transform: translate(-50%, -50%) translate(0, -130px) rotate(0deg); }
.part2 { transform: translate(-50%, -50%) translate(-110px, 70px) rotate(8deg); }
.part3 { transform: translate(-50%, -50%) translate(110px, 70px) rotate(12deg); }

/* حالت نهایی: همه به مرکز می‌چسبند */
.logos1.active .part {
    transform: translate(-50%, -50%) translate(0, 0) rotate(0);
    opacity: 1;
}

/* متن زیر لوگو */
.hero-text {
    opacity: 0;
    transform: translateY(50px);
    transition: all 2.2s ease-out;
}

.hero-text.active {
    opacity: 1;
    transform: translateY(0);
}

/* بنر */
.hero-banner {
    text-align: center;
    padding: 0 3rem;
}

.hero-banner p {
    max-width: 30rem;
    color: var(--clr-white);
    font-size: 1rem;
}

.hero-banner h3 {
    margin-top: 3.4rem;
    color: var(--clr-white);
}

/* دکمه بنر */
.btn-banner {
    background-color: var(--clr-white);
    color: var(--clr-primary-2);
    font-size: 1rem;
    margin-top: 1.5rem;
    padding: 0.5rem 1.2rem;
}

.btn-banner:hover {
    background: transparent;
    color: var(--clr-white);
    border-color: var(--clr-white);
    transform: scale(1.02);
}

/* ریسپانسیو تبلت و دسکتاپ */
@media screen and (min-width: 768px) {
    .hero {
        background: -webkit-linear-gradient(rgba(0,0,0,0.7)),
                    url(./image/heroimg1.jpg) center/cover no-repeat;
    }
    
    .hero-banner p {
        max-width: 45rem;
    }

    .hero-banner {
        padding: 0;
    }
}

/* جداکننده */
.separator {
    height: 0.5vh;
    background-color: var(--red5);
    width: 100vw;
}

/* ===================== موبایل ============================ */
@media screen and (max-width: 576px) {
    .hero {
        min-height:92vh;
        overflow-x: hidden;
        padding: 1.5rem 1rem;
        background: -webkit-linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                    url(./image/heroimg1.jpg) center/cover no-repeat;
    }

    /* لوگوها */
    .logos1 {
        transform: translateX(-50%);
        width: 90%;
        display: flex;
        justify-content: center;
        gap: 0.8rem;
    }

    .logos1 img {
        max-width: 180px;
        height: auto;
    }

    /* متن زیر لوگو */
    .hero-banner {
        padding: 0 1rem;
        margin-top: 4rem;
        text-align: center;
    }

    .hero-banner h3 {
    margin-top: 2rem;
   
    }

    .hero-banner p {
        font-size: 0.95rem;
        line-height: 1.8;
        max-width: 100%;
    }

    /* دکمه */
    .btn-banner {
        display: inline-block;
        width: 100%;
        font-size: 1rem;
        padding: 0.75rem;
        border-radius: 0.5rem;
        margin-top: 1rem;
    }

    .btn-banner:hover {
        transform: scale(1.01);
    }

    .separator {
        height: 0.3rem;
    }
}

/* ===================== تبلت ============================ */
@media screen and (min-width: 576px) and (max-width: 768px){
    .hero {
        background: -webkit-linear-gradient(rgba(0,0,0,0.7)),
                    url(./image/hero-img.jpg) center/cover no-repeat;
    }

    .logos1 {
        top: 30%;
        transform: translateX(-50%);
        gap: 1rem;
    }

    .logos1 img {
        max-width: 70px;
    }

    .hero-banner {
        margin-top: 14rem;
    }

    .hero-banner p {
        font-size: 1rem;
        max-width: 80%;
    }
}


.hero {
  --parallax-x: 0px;
  --parallax-y: 0px;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url(./image/heroimg1.jpg) center/cover no-repeat;
  background-position: calc(50% + var(--parallax-x)) calc(50% + var(--parallax-y));
  min-height: 100vh;
  width: 103vw;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: var(--clr-white);
  transition: background-position 0.05s ease-out;
}

/* لوگوها و متن مثل قبل */
.logos1 {
  position: absolute;
  top: 33%;
  left: 50%;
  margin: 0 auto;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.part {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 250px;
  opacity: 0;
  transition: all 2s ease-in-out;
  transform-origin: center;
}

.part1 { transform: translate(-50%, -50%) translate(0, -130px) rotate(0deg); }
.part2 { transform: translate(-50%, -50%) translate(-110px, 70px) rotate(8deg); }
.part3 { transform: translate(-50%, -50%) translate(110px, 70px) rotate(12deg); }

.logos1.active .part {
  transform: translate(-50%, -50%) translate(0, 0) rotate(0);
  opacity: 1;
}

.hero-text {
  opacity: 0;
  transform: translateY(50px);
  transition: all 2.2s ease-out;
}

.hero-text.active {
  opacity: 1;
  transform: translateY(0);
}

/* سایر استایل‌ها مثل قبل */
.separator {
  height: 0.5vh;
  background-color: var(--red5);
  width: 100vw;
}



/* =====================    about   ============================ */
/* =========================
   ABOUT – Responsive Pro (Mobile-first)
   ========================= */

/* متغیرهای کمکی (اختیاری) */
:root{
  --about-max-w: 1200px;
  --about-gap: clamp(1rem, 2.5vw, 3rem);
  --about-pad: clamp(1rem, 4vw, 3rem);
  --about-radius: var(--radius);
}

/* پایه (موبایل پیش‌فرض) */
.about-center {
  width: min(100%, var(--about-max-w));
  margin-inline: auto;
  display: grid;
  gap: var(--about-gap);
  align-items: center;
  padding: 0 var(--about-pad);
  font-size: 100%;
}

/* رَپِرهای تصویر */
.about-img,
.about-img11,
.about-img2 {
  position: relative;
  display: none;               /* موبایل: فقط .about-img11 نمایش داده می‌شود */
  justify-content: center;
  align-items: center;
}

/* تصویرها (یکسان‌سازی استایل) */
.ab-photo,
.ab-photo11 {
  width: 100%;
  max-width: 45em;             /* در دسکتاپ محدود می‌شود */
  aspect-ratio: 16 / 9;        /* نسبت ثابت و حرفه‌ای */
  -o-object-fit: cover;
  object-fit: cover;
  border-radius: var(--about-radius);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

/* محتوا */
.ab-info {
  max-width: clamp(36ch, 90vw, 65ch); /* خوانایی بهتر متن */
  margin-inline: auto;
}

.ab-info p{
  font-size: clamp(.95rem, .4vw + .9rem, 1.2rem);
  line-height: 1.8;
  text-align: justify;
  margin-block: 1.25rem 0;
}

/* تیتر و آندرلاین */
.ab-title { 
  margin: 0 0 1.25rem 0; 
  text-align: center;
}
.ab-title h2{
  font-size: clamp(1.5rem, 2.2vw + .8rem, 2.5rem);
  line-height: 1.8;
}
.ab-info .underline,
.underline{
  display: block;
  width: clamp(4rem, 12vw, 6rem);
  height: .25rem;
  background: currentColor;
  opacity: .2;
  border-radius: 999px;
  margin: .5rem auto 1rem auto; /* همیشه وسط */
}

/* ============ موبایل (<=576px) ============ */
@media (max-width: 576px){
  .about-center{
    grid-template-columns: 1fr; 
    text-align: center;
  }

  /* موبایل: نسخه موبایلی تصویر */
  .about-img11{ 
    display: flex; 
    width: 100%;
  }
  .about-img,
  .about-img2{ display: none; }

  .ab-photo11{
    max-width: 90%;
    height: auto;            /* اجازه بده نسبت تصویر با aspect-ratio کنترل بشه */
    aspect-ratio: 16/9;
    margin: 0 auto;
  }

  .hero {
    width:100vw;
  }

  .ab-photo{ display: none; }
}

/* ============ تبلت (577px–991px) ============ */
@media (min-width: 577px) and (max-width: 991px){
  .about-center{
    grid-template-columns: 1fr; /* یک ستون، اما عریض و مرتب */
    gap: clamp(1.25rem, 3vw, 2.5rem);
    text-align: center;         /* آندرلاین و عناوین وسط */
    padding-bottom: var(--about-pad);
  }

  /* تبلت: تصویر نمایش داده شود و وسط‌چین بماند */
  .about-img,
  .about-img2{ 
    display: flex; 
    width: 100%;
  }
  .about-img11{ display: none; }

  .ab-photo{
    max-width: min(80%, 40rem);
    height: auto;
    aspect-ratio: 16/9;
    margin: 0 auto;
  }

  .ab-photo11{ display: none; }

  .ab-info{
    max-width: clamp(44ch, 80vw, 70ch);
  }
}

/* ============ دسکتاپ (>=992px) ============ */
@media (min-width: 992px){
  .about-center{
    grid-template-columns: 1.05fr 1fr; /* تصویر کمی غالب‌تر از متن */
    gap: clamp(2rem, 3vw, 3rem);
    padding: 0 var(--about-pad);
    align-items: center;
  }

  /* دسکتاپ: نسخه دسکتاپی تصویر + قاب تزئینی */
  .about-img,
  .about-img2{ 
    display: flex; 
  }
  .about-img11, .ab-photo11{ display: none; }

  .ab-photo{
    max-width: 45em;
    max-height: 50em;
    min-height:26em;
    aspect-ratio: 16/9;
    margin: 0; /* اجازه بده در شبکه کنار متن بنشیند */
  }

  /* قاب تزئینی (اختیاری – اگر متغیر --red5 داری) */
  /* .about-img::before{
    content: "";
    position: absolute;
    inset: 0;
    border: .25rem solid var(--red5);
    border-radius: var(--about-radius);
    transform: translate(1rem, 1rem);
    z-index: -1;
  } */

  .ab-info{
    max-width: clamp(46ch, 50vw, 70ch);
    margin-inline: 0;
  }
}

/* دسترس‌پذیری: اگر کاربر کاهش انیمیشن خواست */
@media (prefers-reduced-motion: reduce){
  * { 
    transition: none !important;
    animation: none !important;
  }
}


/* 
.about-img {
  perspective: 1000px; 
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-img .ab-photo {
  transition: transform 0.2s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
  border-radius: var(--about-radius);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
} */




.ab-info p span {
  color: rgba(43, 45, 66, 0.2); /* شروع کمرنگ */
  transition: color 0.3s linear;
}
.ab-info p span.active {
  color: rgba(43, 45, 66, 1);
}





/* =========================
   PENTEST – Responsive Pro (Mobile-first)
   ========================= */

/* 🎨 متغیرهای کمکی */
:root{
  --pentest-max-w: 1200px;
  --pentest-gap: clamp(1rem, 2.5vw, 3rem);
  --pentest-pad: clamp(1rem, 4vw, 3rem);
  --pentest-radius: var(--radius);
}

/* پایه (موبایل پیش‌فرض) */
.pentest {
  background: var(--gray2);
  width: 100vw;
  min-height: 100vh;
  font-size: 100%;
  overflow-x:hidden;
}

.pentest-center {
  width: min(100%, var(--pentest-max-w));
  margin-inline: auto;
  display: grid;
  gap: var(--pentest-gap);
  align-items: center;
  padding: 0 var(--pentest-pad);
}

/* رپر تصاویر */
.pentest-img,
.pentest-img11 {
  position: relative;
  display: none; /* موبایل: فقط .pentest-img11 نمایش داده می‌شود */
  justify-content: center;
  align-items: center;
}

/* تصاویر */
.pentest-photo,
.pentest-photo11 {
  width: 100%;
  max-width: 45em;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--pentest-radius);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

/* محتوا */
.pentest-info {
  max-width: clamp(36ch, 90vw, 65ch);
  margin-inline: auto;
  
}



.pentest-info h2 {
  font-size: clamp(1.5rem, 2.2vw + .8rem, 2.5rem);
  line-height: 1.3;
}

.pentest-info p {
    direction:rtl;
  font-size: clamp(.95rem, .4vw + .9rem, 1.2rem);
  line-height: 1.8;
  text-align: justify;
  margin-block: 1.25rem 0;
}

.pentest-info h4 {
  color: var(--clr-grey-2);
  margin-top: 2rem;
  font-size: 1.1rem;
}

/* تیتر و آندرلاین */
.pentest-title {
  margin: 0 auto;
  text-align: center;
}

.pentest-title h2 {
  font-size: clamp(1.5rem, 2.2vw + .8rem, 2.5rem);
}

.pentest .underline {
  display: block;
  width: clamp(4rem, 12vw, 6rem);
  height: .25rem;
  background: currentColor;
  opacity: .2;
  border-radius: 999px;
  margin: .5rem auto 1rem auto;
}

/* ============ موبایل (<=576px) ============ */
@media (max-width: 576px){
  .pentest-center{
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pentest-img11{
    display: flex;
    width: 100%;
  }
  .pentest-img{ display: none; }

  .pentest-photo11{
    max-width: 90%;
    max-height:14rem ;
    min-height:10rem  ;
    aspect-ratio: 16/9;
    margin: 0 auto;
  }

  .pentest-photo{ display: none; }
}

/* ============ تبلت (577px–991px) ============ */
@media (min-width: 577px) and (max-width: 991px){
  .pentest-center{
    grid-template-columns: 1fr;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    text-align: center;
    padding-bottom: var(--pentest-pad);
  }

  .pentest-img{
    display: flex;
    width: 100%;
    justify-content: center;
    margin-bottom: 1.5rem; /* فاصله عکس از متن */
  }
  .pentest-img11{ display: none; }

  .pentest-photo{
    display: block;
    max-width: min(80%, 40rem);
    height: auto;
    aspect-ratio: 16/9;
    margin: 0 auto;
  }

  .pentest-photo11{ display: none; }

  .pentest-info{
    max-width: clamp(44ch, 80vw, 70ch);
    margin-inline: auto;
  }
}

/* ============ دسکتاپ (>=992px) ============ */
@media (min-width: 992px){
  .pentest-center{
    direction:ltr;
    grid-template-columns: 1.05fr 1fr; /* تصویر کمی غالب‌تر از متن */
    gap: clamp(2rem, 3vw, 3rem);
    padding: 0 var(--pentest-pad);
    align-items: center;
  }

  .pentest-img{
    display: flex;
    position: relative; /* ضروری برای قاب */
    z-index:3;
  }
  .pentest-img11{ display: none; }

  .pentest-photo{
    max-width: 45em;
    
    max-height: 45em;
    min-height:25em;
    height: auto;
    aspect-ratio: 16/9;
    margin: 0;
  }

  /* قاب تزئینی دسکتاپ */
  .pentest-img::before{
    content: "";
    position: absolute;
    inset: 0;
    border: .25rem solid var(--red5);
    border-radius: var(--pentest-radius);
    transform: translate(-1rem, 1rem);
    z-index:-1;
    
  }

  .pentest-info{
    max-width: clamp(46ch, 50vw, 70ch);
    margin-inline: 0;
    text-align: center;
  }
.pentest-info a {
       /* لازم برای margin-left:auto */
  margin-left: auto;           /* دکمه سمت راست متن می‌رود */
  margin-top: 1.5rem;          /* فاصله از متن */
  direction:rtl;
}


  .pentest-title{
    text-align: center;
  }

  .pentest .underline{
    margin: .5rem auto 1rem auto;
  }
}

/* ♿ دسترس‌پذیری */
@media (prefers-reduced-motion: reduce){
  *{
    transition: none !important;
    animation: none !important;
  }
}

.white{
    direction:rtl;
    text-align:right;
}


/* =====================    connect   ============================ */


.connect{
    margin-top: 1rem;
    width: 100vw;
    min-height: 42rem;
    display: grid;
    position: relative;
    padding: 10rem 0 5rem 0;
        /* margin:0rem 0; */
    clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%, 0 12%);
    place-items: center;
    overflow-x:hidden;
    /* place-content: center; */
}

.connect::after{
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--clr-white);
    position: absolute;
    opacity: 0.5;
    z-index: -1;
    
}

.vid-con{
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.banner{
    background: var(--gray2);
    clip-path: polygon(0% 0%, 100% 0%, 100% 75%, 75% 75%, 63% 75%, 50% 75%, 0% 75%);
    text-align: center;
    padding:  3rem 5rem 12rem 5rem;
    /* margin: 0 auto ; */



}

.video-text{
max-width: 30rem;
color: #102a42;
font-size: 1.2rem;
margin-top: -1rem;
}

@media screen and (max-width: 576px) {
    .connect {
        min-height: auto;
        padding: 4rem 1rem 3rem 1rem;
        clip-path: none; /* حذف برش‌های پیچیده برای نمایش درست در موبایل */
        text-align: center;
    }

    .vid-con {
        height: 100%;
        object-fit: cover;
        filter: brightness(70%); /* تاریک‌تر تا متن خوانا بمونه */
    }

    .banner {
        background: rgba(255, 255, 255, 0.85);
        clip-path: none; /* ساده‌سازی شکل پس‌زمینه */
        padding: 2rem 1rem;
        border-radius: 0.75rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }

    .banner .section-title h2 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .video-text {
        font-size: 0.95rem;
        line-height: 1.8;
        margin: 1rem 0;
        max-width: 100%;
        color: #102a42;
        text-align: justify;
    }

    .banner {
        display: inline-block;
        width: 100%;
        padding: 0.75rem;
        font-size: 1rem;
        border-radius: 0.5rem;
        margin-top: 1rem;
    }
}




.footer {
    width: 100vw;
    min-height: 60vh;
    background-color: var(--gray5);
    color: white;

    /* فلکس برای وسط‌چین کردن */
    display: flex;
    justify-content: center;  /* وسط افقی */
    align-items: center;      /* وسط عمودی */
    flex-direction: column;   /* بچه‌ها زیر هم باشن */
    gap: 3rem;                /* فاصله بین بخش‌ها */
    padding: 3rem 3rem  0 3rem;
    box-sizing: border-box;
}

.footer-center {
    width: 100%;
    display: flex;
    flex-direction: column;   /* بچه‌ها (detail و certificate) زیر هم */
    justify-content: center;
    align-items: center;
    gap: 3rem;                /* فاصله بین دو بخش اصلی */
}
.footer-contact{
    margin: 1rem;
}

.footer .footer-menu ul.menu li a {
    direction: ltr;
    color: white;
    /* background-color: white; */
}
.footer-menu{
    direction: ltr;
}

.underline-f{
    background-color:white;
    width: 5rem;
    height: 0.3rem;
    margin: 1.5rem 0rem 2rem 0rem;
}

.footer-detail {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;   /* در موبایل بیفته زیر هم */
    gap: 12rem;         /* فاصله بین آیتم‌ها */
    text-align: center; /* متن‌ها وسط */
}
.footer-detail ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-detail ul li a {
    color: white;
    text-decoration: none;   
}

.footer-detail ul li a:hover {
    color: var(--red2);          
}

.footer-certificate {
    color: #fff;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.certificate-cards-container {
    width: 100%;
    display: flex;
    justify-content: center; /* وسط چین افقی */
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem; /* فاصله بین کارت‌ها */
}

.certificate-card{
    flex-direction: column  ;
}

/* استایل عمومی برای همه‌ی کارت‌ها */
.certificate-card-image {
    width: 90px; 
    height: 80px;
    background-size: contain !important;
    background-repeat: no-repeat;
    background-position: center;
    filter: grayscale(100%) brightness(0.8);
     /* تبدیل به طوسی */
}

/* هر کارت تصویر مخصوص خودش رو می‌گیره */
.daneshbonyan .certificate-card-image {
    background-image: url("/image/d-bonyan1-g.png");
}

.enamad .certificate-card-image {
    background-image: url("/image/enamd-g.png");
}

.senfi .certificate-card-image {
    background-image: url("/image/nasr-g.png");
}

.afta .certificate-card-image {
    background-image: url("/image/afta-g.png");
}




/* تغییر رنگ تمام <p>های داخل بخش گواهینامه ها */
.footer-certificate p {
    color: #555555; /* رنگ دلخواه طوسی */
    font-size: 14px; /* اختیاری، اندازه متن */
    line-height: 1.4; /* فاصله بین خطوط */
    font-weight: 500; /* ضخامت دلخواه */
}

.aboutus {
    width: 45%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    margin-top: 2rem;
     white-space: nowrap;
}

.aboutus p {
    color: #aaa;
    font-size: 12px;
    margin: 0;
    overflow: hidden; 
    text-overflow: ellipsis; 

    }


.aboutus a {
    color: #bbb;
    font-size: 12px;
    font-weight: 700;

    display: flex;          /* آیکون و متن در یک خط */
    align-items: center;    /* عمودی وسط */
    gap: 4px;               /* فاصله بین متن و آیکون */
    direction: rtl;         /* متن "بیشتر" راست باشه، آیکون بعدش */
    text-decoration: none;  /* خط زیر متن حذف */
}

.copyR {
    width: 100vw;
    height: 5rem;
    /* border-top: 0.2rem solid var(--red2); */
    background-color: var(--gray5);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #fff;
    margin-top: -3rem;
}

.copyR-persian {
    color: var(--gray2);
    font-size: 12px;
    margin-bottom: 10px;
    margin-top: 20px;
}

.copyR-english {
    color: var(--gray3);
    font-size: 12px;
}

@media screen and (max-width: 576px) {
    .footer {
        padding: 2rem 1rem 1rem 1rem;
        gap: 2rem;
    }

    .footer-detail {
        flex-direction: column;   /* منوها زیر هم */
        gap: 2rem;
        align-items: center;
        text-align: center;
    }

    .footer-item h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .footer-detail ul li {
        margin: 0.3rem 0;
    }

    .footer-detail ul li a {
        font-size: 0.9rem;
    }

    .footer-certificate h3 {
        font-size: 1rem;
    }

    .certificate-cards-container {
        flex-direction: column; /* کارت‌ها زیر هم */
        gap: 1rem;
    }

    .certificate-card-image {
        width: 70px;
        height: 60px;
    }

    .certificate-card p {
        font-size: 0.8rem;
    }

    .aboutus {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .aboutus p, 
    .aboutus a {
        font-size: 0.8rem;
        white-space: normal;
    }

    .copyR {
        padding: 1rem 0.5rem;
        margin-top: 0;
        text-align: center;
    }

    .copyR-persian, 
    .copyR-english {
        font-size: 0.75rem;
        line-height: 1.4;
        text-align: center;
    }
}






.footer-contactus {
    text-align: center;      /* همه متن‌ها و محتوا وسط چین */
    
}

.footer-contactus h3 {
    margin-bottom: 1rem;
}

.footer-contactus ul {
    list-style: none;
    padding: 0;
    
}

.footer-contactus ul li {
    margin-bottom: 2rem;     /* فاصله بین خطوط */
    text-align:center;
        margin: 0 auto;

}
.social_wrapper{
    width:10rem;

    /* background-color:green; */
    text-align:center;
    
}
.social_wrapper p{

    text-align:center;
    
}


/* متن‌ها زیر هم */
.footer-contactus .social_wrapper p {
    margin: 0.25rem 0;
    justify:center;
    margin:0 auto;
}

/* آیکون‌ها کنار هم */
.footer-contactus .social_wrapper a {
    
    justify-content: center; /* وسط چین افقی */
    gap: 17rem;               /* فاصله بین آیکون‌ها */
    margin-top: 0.5rem;
}

.footer-contactus .social_wrapper .social-icons a {
    color: #333;
    font-size: 2rem;
    transition: color 0.3s;
}

.footer-contactus .social_wrapper .social-icons a:hover {
    color: #0077ff;
}

.btn-wrapper a{
    text-align:center;
}

.ttt{
    background-size:10rem 14rem;
    background-color:var(--gray5);
    max-width: 65%;
    max-height:14rem ;
    min-height:10rem  ;
    aspect-ratio: 16/9;
    margin: 0 auto;
  
}





/* دسکتاپ: اسنپ اسکرول */
/* @media (min-width: 768px) {
  .container {
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
  }
  .section11 {
    scroll-snap-align: start;
    height: 100vh; 
  }
} */

/* موبایل: اسکرول طبیعی */
@media (max-width: 767px) {
  html, body {
    height: auto;
    overflow-y: auto;
  }

  .container {
    height: auto;           /* ارتفاع طبیعی */
    overflow-y: auto;       /* اسکرول طبیعی */
    scroll-snap-type: none; /* غیر فعال کردن snap */
    overflow-x:hidden;
  } 
  .section11 {
    height: auto;           /* بخش‌ها ارتفاع طبیعی */
    scroll-snap-align: none;
    overflow-x:hidden;
  }
}



.banner12 {
  --banner-top: 50px;
}

.banner12 {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #2c2f40;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.banner12::before {
    content: attr(data-text);
    position: absolute;
    font-weight: 500;
    font-size: 5em;
    color: transparent;
    -webkit-text-stroke: 3px #fff;
    top: var(--banner-top);      /* فاصله از بالای سکشن */
    left: 50%;
    transform: translateX(-50%); /* متن دقیقاً وسط افقی قرار می‌گیره */
    pointer-events: none;
    line-height: 1;
    z-index: 1;
}

.banner12::after {
    content: attr(data-text);
    position: absolute;
    font-weight: 800;
    font-size: 5em;
    inset: 0;
    color: transparent;
    -webkit-text-stroke: 1px #fff;
    color: #fff;
    clip-path: circle(0px at var(--x) var(--y));
    background: url(./image/bg.webp) center/cover no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 25px;
    z-index: 2;
}

.banner12:hover::after {
    clip-path: circle(250px at var(--x) var(--y));
}

.banner12-title {
    position: relative;
    z-index: 3;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2rem;
    }

.banner12-desc {
    position: relative;
    z-index: 3;
    max-width: 800px;
    color: white;
    font-size: 1.2rem;
    line-height: 1.8;
    
}

.banner12-list {
    position: relative;
    z-index: 3;
    color: white;
    font-size: 1.2rem;
    line-height: 1.8;
    list-style-position: inside;
    margin-top: 1rem;
    text-align: right;
    max-width: 800px;
    /* padding-left: 0; */
}
.banner12-list li {
    margin-bottom: 0.5rem; /* فاصله بین آیتم‌ها */
}

.banner12-list li::before {
    content: '•';  /* نقطه */
    position: absolute;
    right: 0;       /* قرارگیری سمت راست */
    color: white; /* رنگ دلخواه نقطه */
    font-size: 1.2rem;
}


/* =====================    telecam    ========================= */

.telecam {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
  position: relative;
}

.card-wrap {
  display: flex;
  flex-direction: row; /* دسکتاپ پیشفرض */
  width: 100%;
  max-width: 1000px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  padding: 25px;
  min-height: 500px;
  margin: 0 auto;
  position: relative;
  overflow: visible;
}

/* محتوای کارت */
.card-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-content h2 {
  margin: 0 0 10px;
  font-size: 28px;
  color: #222;
}

.card-content p {
  font-size:1.01rem;
  line-height: 1.7;
  color: #444;
  max-width: 35em;
  padding: 15px 0;
}

.slider-title {
  text-align: center;
  /* margin-bottom: 20px; */
}

.slider-title h2 {
  font-size: 28px;
}



/* اسلایدر */
.slider-wrap {
  position: absolute;
  left: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 360px;
  height: 340px;
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  background: var(--gray1, #f7f7f7);

  display: flex;
  justify-content: center;
  align-items: center;
  transition: all .3s ease;
  z-index:12;
}

.slider-wrap img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  transition: opacity 1s ease-in-out;
}

.slider-wrap img.active {
  opacity: 1;
}


/* نقاط کنترل */
.controls {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
}

.dot {
  width: 12px;
  height: 12px;
  background: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: background 1s ease, transform 1s ease, opacity 0.4s ease;
}
.dot.active {
  background: var(--red4, #d33);
  transform: scale(1.2);
}


/* 📱 موبایل (تا 576px) */
@media (max-width: 576px) {
  .card-wrap {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 15px;
    min-height: auto;
    width: 100%;
    box-shadow: none; /* موبایل بهتره ساده‌تر باشه */
  }

  .card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
    gap: 18px; /* فاصله استاندارد بین آیتم‌ها */
  }

  /* ترتیب المان‌ها */
  .slider-title {
    order: 1;
  }

  .slider-title h2 {
    font-size: 22px;
  }


  .slider-wrap {
    flex-direction:column;
    order: 3;
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 320px;
    height: 200px;
    margin: 10px 0;
    gap:18px;
  }

  .slider-wrap img {
    width: 100%;
    height: 100%;
  }

  .controls {
    order: 4;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-item:center;
    top: auto;
    right: auto;
    left: auto;
    withe:100%;
    /* margin: 2em auto; */
    gap: 8px;
  }

  .card-content p {
    order: 5;
    font-size: 14px;
    line-height: 1.6;
    padding: 0 5px;
    max-width: 95%;
  }

  .btn {
    order: 6;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 6px;
  }
}

/* 📱📲 تبلت (577px تا 992px) */
@media (min-width: 577px) and (max-width: 992px) {
  .card-wrap {
    flex-direction: column;
    align-items: center;
    padding: 30px 25px;
    min-height: auto;
    width: 100%;
    max-width: 700px;
  }

  .card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px; /* فاصله شبیه موبایل */
  }

  .slider-title { order: 1; }
  .slider-title h2 { font-size: 22px; }

  .slider-wrap {
    order: 3;
    position: relative;
    width: 100%;
    left: 0;
    max-width: 320px; /* اندازه شبیه موبایل */
    height: 200px;
    margin: 10px auto;
    transform: none;
  }
  .slider-wrap img { width: 100%; height: 100%; }

  .controls {
    order: 4;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 8px;
    margin: 0;
    right:0;
  }

  .card-content p { order: 5; font-size: 14px; line-height: 1.6; padding: 0 5px; max-width: 95%; }
  .btn { order: 6; font-size: 14px; padding: 10px 18px; border-radius: 6px; }
}

/* =====================   part of software   ===================== */



/* تصویر و آیکون‌ها */
.interactive {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1/1;
  margin: 0 auto;
  overflow: hidden;
}

.main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 1rem;
}

/* آیکون‌ها */
.floating-icon {
  position: absolute;
  cursor: grab;
  user-select: none;
  transition: transform 0.2s ease;
}

.floating-icon:active {
  cursor: grabbing;
}

/* انیمیشن شناوری متفاوت */
.floating-icon:nth-child(2) {
  animation: float1 6s ease-in-out infinite;
}
.floating-icon:nth-child(3) {
  animation: float2 7s ease-in-out infinite;
}
.floating-icon:nth-child(4) {
  animation: float3 5s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes float2 {
  0%, 100% { transform: translateX(0px); }
  50% { transform: translateX(10px); }
}
@keyframes float3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-8px, 6px); }
}























.carousel-container {
  width: 100%;
  height: 100vh;
  perspective: 1800px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel {
  position: relative;
  width: 60px;
  height: 60px;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  transform-origin: center 80%;
  cursor: grab;
  touch-action: none; /* جلوگیری از اسکرول پیش‌فرض در موبایل */
}

.carousel:active {
  cursor: grabbing;
}

.slide {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 600px;
  height: 300px;
  padding: 0 40px;
  margin-left: -330px;
  border-radius: 16px;
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: justify;
  transform-origin: bottom center;
  transition: transform 0.4s ease, scale 0.4s ease, filter 0.4s ease;
  background: linear-gradient(135deg, #7a0a0a, #c49292);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  color: #e6e6e6;
  direction: rtl;
}

/* استایل مخصوص متن داخل اسلاید */
.slide p {
  line-height: 1.8;
  text-align: justify;
  text-justify: inter-word;
  direction: rtl;
  color: #e6e6e6;
  font-weight: 300;
  margin: 0;
  padding: 10px 0;
  overflow-wrap: break-word;
}

.slide.active {
  border: 2px solid rgba(160, 0, 0, 0.8);
  box-shadow: 0 25px 40px rgba(160,0,0,0.25);
  filter: brightness(1.5) drop-shadow(0 0 25px rgba(160,0,0,0.3));
}

/* ============================= */
/* 🔹 حالت تبلت (768px تا 1024px) */
/* ============================= */
@media (max-width: 1024px) {
  .carousel-container {
    perspective: 1400px;
  }

  .slide {
    width: 500px;
    height: 300px;
    margin-left: -250px;
    padding: 0 25px;
    font-size: 1.05rem;
  }

  .slide p {
    line-height: 1.7;
    padding: 8px 0;
  }
}

/* ============================= */
/* 🔹 موبایل افقی (600px تا 767px) */
/* ============================= */
@media (max-width: 767px) {
  .carousel-container {
    perspective: 1100px;
  }

  .slide {
    width: 400px;
    height: 250px;
    margin-left: -200px;
    padding: 0 20px;
    font-size: 0.95rem;
    border-radius: 12px;
  }

  .slide p {
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 6px 0;
  }
}

/* ============================= */
/* 🔹 موبایل عمودی (زیر 600px) */
/* ============================= */
@media (max-width: 600px) {
  body {
    overflow: hidden;
  }

  .carousel-container {
    perspective: 900px;
  }

  .carousel {
    width: 40px;
    height: 40px;
  }

  .slide {
    width: 300px;
    height: 200px;
    margin-left: -150px;
    padding: 0 15px;
    font-size: 0.85rem;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
  }

  .slide.active {
    filter: brightness(1.3) drop-shadow(0 0 15px rgba(255,255,255,0.2));
  }

  .slide p {
    font-size: 0.8rem;
    line-height: 1.5;
    padding: 5px 0;
  }
}

/* ============================= */
/* 🔹 موبایل‌های خیلی کوچک (زیر 380px) */
/* ============================= */
@media (max-width: 380px) {
  .slide {
    width: 260px;
    height: 180px;
    margin-left: -130px;
    font-size: 0.8rem;
    padding: 0 12px;
  }

  .slide p {
    font-size: 0.75rem;
    line-height: 1.4;
    padding: 4px 0;
  }
}



/* ==============   customer   ======================= */

.carousel-container {
    width: 90%;
    max-width: 800px;
    height: 300px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Track دیگر نیازی به transform 3D ندارد */
.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

/* استایل هر آیتم */
.carousel-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px H12px rgba(0, 0, 0, 0.1);
    /* کلید اصلی: حرکت نرم بین وضعیت‌ها */
    transition: transform 0.6s ease, opacity 0.6s ease, filter 0.6s ease;
    cursor: pointer;
}

.carousel-item img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    /* جلوگیری از کشیده شدن عکس توسط رویدادهای کلیک */
    pointer-events: none;
}

/* --- تعریف وضعیت‌های مختلف در CSS --- */

/* وضعیت آیتم فعال (مرکزی) */
.carousel-item[data-status="active"] {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
    filter: blur(0);
    z-index: 3; /* بالاتر از بقیه */
}

/* وضعیت آیتم قبلی (سمت چپ) */
.carousel-item[data-status="prev"] {
    transform: translate(-120%, -50%) scale(0.9);
    opacity: 0.7;
    filter: blur(1.5px);
    z-index: 2;
}

/* وضعیت آیتم بعدی (سمت راست) */
.carousel-item[data-status="next"] {
    transform: translate(20%, -50%) scale(0.9);
    opacity: 0.7;
    filter: blur(1.5px);
    z-index: 2;
}

/* وضعیت آیتم‌های مخفی (دورتر) */
.carousel-item[data-status="hidden-prev"] {
    transform: translate(-200%, -50%) scale(0.5);
    opacity: 0;
    filter: blur(3px);
    z-index: 1;
}

.carousel-item[data-status="hidden-next"] {
    transform: translate(100%, -50%) scale(0.5);
    opacity: 0;
    filter: blur(3px);
    z-index: 1;
}


/* دکمه‌های ناوبری */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 8px;
    font-size: 1.5em;
    transition: background-color 0.3s;
}

.prev-button { left: 0; }
.next-button { right: 0; }
.carousel-button:hover { background-color: rgba(0, 0, 0, 0.9); }