@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

@font-face {
    font-family: 'vazir';
    src: url('../fonts/Vazir.eot');
    src: url('../fonts/Vazir.woff') format('woff'),
        url('../fonts/Vazir.ttf') format('truetype');
}
@font-face {
    font-family: 'yekan';
    src: url('../fonts/Yekan.eot');
    src: url('../fonts/Yekan.woff') format('woff'),
        url('../fonts/Yekan.ttf') format('truetype');
}

body {
    font-family: 'yekan';
    direction: rtl;
    text-align: right;
    background: #f8f8f8;
}

* {
    text-decoration: none !important;
    outline: none;
    list-style: none;
}

ul,
li,
p {
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
}

.btn-primary,
.bg-primary {
    background: #373555 !important;
}

.text-primary {
    color: #373555 !important;
}

.btn-dark,
.btn-primary {
    box-shadow: none !important;
    border-color: transparent !important;
}

.form-control:focus {
    box-shadow: none;
    border-color: #ffa62b;
}

.form-control {
    font-size: 13px;
}


/* top header */
.top-header {
    background: #373555;
    position: relative;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.top-header-content {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}


.top-header .email-address span {
    font-size: 16px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 2px;
    direction: ltr;
    text-align: left;
}



.top-header .call span {
    font-size: 16px;
    color: #fff;
    letter-spacing: 2px;
    direction: ltr;
    text-align: left;
    font-family: 'Vazir', sans-serif;
}

/* header */

header {
    background: #ffffff;
    width: 100%;
    overflow: hidden;
}

.navbar {
    padding: 0;
}

.navbar .nav-link {
    color: #606068;
    padding: 2rem 25px !important;
    font-size: 20px !important;
    position: relative;
    z-index: 1;
}

.navbar .nav-link.active {
    color: #000000;
}

.logo {
    max-width: 150px;
    margin: 10px 0;
}

.logo img {
    height: auto;
}


.navbar-nav .nav-item:not(:first-child) .nav-link {
    position: relative;
    padding-left: 15px;
}

.navbar-nav .nav-item:not(:first-child) .nav-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 40%;
    bottom: 40%;
    width: 3px;
    background-color: #ccc;
}

.navbar .nav-link {
    transition: color 0.3s ease;
}

.navbar .nav-link:hover {
    color: #000000 !important;
}


/* hero wrap */
.hero-wrap {
    height: 100vh;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
    
}

.hero-wrap .hero-wrap-content {
    z-index: 2;
}


.hero-wrap .hero-wrap-content .subheading {
    position: relative;
    width: 100px;
    display: block;
    margin: auto;
}



.hero-wrap .hero-wrap-content .subheading {
    position: relative;
    width: 100px;
    display: block;
    margin: auto;
}

.hero-wrap .hero-wrap-content a {
    position: relative;
    width: auto;
    padding: 0 14px;
    display: inline-block;
    border-radius: 10px;
    font-size: 2rem;
}

.highlight-text {
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, .2) 0%,
    rgba(0, 0, 0, .1) 10%,
    rgba(0, 0, 0, 0) 100%
  );
  display: inline-block;
  z-index: 2;
}

.hero-wrap::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.25);
  opacity:1;
  transition:opacity .4s ease;
  border-radius:inherit;
}




/* company */

    .company .icon-container {
      background: rgba(100, 100, 100, 0);
      align-items: center;
      justify-content: center;
      position: absolute;
      top: -15px;
      left: 50%;
      height: 80px;
      padding-left: 1rem;
      padding-right: 1rem;
      transform: translateX(-50%);
      border-radius: 20px;
      display: flex;
    }

    .company .custom-card {
      position: relative;
      padding-top: 60px;
      min-height: 220px;
       transition: all 0.4s ease;
      -webkit-transition: all 0.4s ease;
      -moz-transition: all 0.4s ease;
      -ms-transition: all 0.4s ease;
      -o-transition: all 0.4s ease;
}

    .company .custom-icon {
      width: 70px;
      height: 80px;
      position: relative;
    }

    .company .custom-title {
      position: relative;
      width: 200px;
      padding-top: 20px;
    }

    .company h5 {
      color: #373555;
    }

    .company .icon-container::before {
      content: "";
      position: absolute;
      bottom: 0;
      right: 0;
      width: 100%;
      height: 85%;
      background: rgba(100, 100, 100, 0.5);
      opacity: 1;
      border-radius: 20px;
    }

    .company .custom-text {
      text-align: justify;
      direction: rtl;
      line-height: 2;
      max-height: 200px;
      /*ارتفاعبستهاولیه*/overflow: hidden;
      position: relative;
      transition: max-height .5s ease-in-out;
      -webkit-transition: max-height .5s ease-in-out;
      -moz-transition: max-height .5s ease-in-out;
      -ms-transition: max-height .5s ease-in-out;
      -o-transition: max-height .5s ease-in-out;
}

    .company .custom-card:hover .custom-text {
      max-height: 1000px; /* باز شدن در هاور */
    }

    /* افکت محو شدن انتهای متن */
    .company .custom-text::after {
      content: "";
      position: absolute;
      bottom: 0;
      right: 0;
      left: 0;
      height: 40px;
      background: linear-gradient(to top, #fff, transparent);
      pointer-events: none;
      transition: opacity 0.5s ease;
    }

    .company .custom-card:hover .custom-text::after {
      opacity: 0;
    }

/*customer*/

/* موقعیت و چیدمان قبلی دست‌نخورده می‌ماند */
.customer .customer-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  position:relative;
  /* برای نرمی انیمیشن */
  transition:transform .4s ease;      /* کل آیتم کمی بالا می‌آید */
}

.customer .customer-icon{
  height:150px;
  width:auto;
  transition:transform .4s ease;      /* زوم تصویر */
}

.customer .customer-description{
  width:100%;
  text-align:center;
  transition:transform .4s ease;      /* زوم نوشته */
}

/* افکت‌ها هنگام هاور روی آیتم والد */
.customer .customer-item:hover{
  transform:translateY(-6px) scale(1.04);  /* یک‌دستی بالا و بزرگ شود */
}

.customer .customer-item:hover .customer-icon{
  transform:scale(1.12) rotate(-2deg);     /* تصویر کمی بزرگ و یک لرزش جزئی */
}

.customer .customer-item:hover .customer-description{
  transform:scale(1.06);                   /* نوشته هم کمی بزرگ‌تر شود */
}

/* about */

.about {
    padding: 100px 0;
    background: #f8f8f8;
    width: 100%;
}


.about .services:hover {
    background: #3d424a;
}

.about .services:hover .services-text h3,
.about .services:hover .services-text p {
    color: #fff !important;
}

.about .about-img {
    height: 100%;
    background-size: cover;
    background-position: center center;
    position: relative;
}

.about .about-img .counter-wrap {
    position: absolute;
    bottom: 98px;
    right: -97px;
    background: #3d424a;
    transform: rotate(-90deg);
    -webkit-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
    width: 300px;
}

.about .about-img .counter-wrap .icon img {
    width: 60px;
}


/* service */

.service {
    background: #f8f8f8;
}

.service .service-img {
    background-size: cover;
    background-position: center;
}

/* counter */

.counter-section {
    position: relative;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.counter-section .counter-text{
    color: #ffcd39;
}


/* team */
.team {
    background: #f8f8f8;
}

.team .team-item {
    transition: all .3s ease-in-out;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -ms-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    background: #fff;
    box-shadow: 0 0 10px rgba(156, 156, 156, 0.2);
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
}

.team .team-item .team-item-img {
    background-size: cover;
    background-position: center;
    height: 520px;
    width: 100%;
    position: relative;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
}



.team .team-item .team-description {
    position: absolute;
    bottom: 50px;
    width: 100%;
    /* اطمینان از اینکه عنصر کل عرض را اشغال کند */
    text-align: center;
    /* وسط‌چین کردن متن */

}


.team .team-item .team-item-media {
  position: relative;
  height: 520px;
  width: 100%;
  overflow: hidden;          /* اضافه: تا ویدیو از قاب بیرون نزند */
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(156,156,156,.2);
}

/* خود ویدیو کل فضا را پر کند مثل background‑image قبلی */
.team .team-item .team-item-media video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;         /* مثل background-size: cover */
}

/* توضیح روی ویدیو */
.team .team-item .team-description {
  position: absolute;
  bottom: 50px;
  left: 0;
  width: 100%;
  text-align: center;
  pointer-events: none; 
    z-index: 2;
}




/* گزینه‌ی دل‌خواه: روشن/تاریک شدن ویدئو موقع هاور */
.team .team-item-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.25);
  opacity:1;
  transition:opacity .4s ease;
  border-radius:inherit;
}



/* project */
    .project {
      background: #f8f8f8;
      padding: 3rem 0;
    }

    .project .project-item {
      position: relative;
      overflow: hidden;
      border-radius: 20px;
    }

    .project-video {
      width: 100%;
      height: 520px;
      object-fit: cover;      /* مثل background-size: cover */
      border-radius: inherit; /* گردی از والد می‌گیرد */
    }

    .project-description {
      position: absolute;
      bottom: 30px;
      width: 100%;
      text-align: center;
      z-index: 2;
      pointer-events: none;   
    }
    .project-title {
      position: absolute;
      bottom: 70px;
      width: 100%;
      text-align: center;
      z-index: 2;
      pointer-events: none;   
    }


.project-item .hover-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 520px;
  /*مثلویدیو*/object-fit: cover;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-in-out;
  z-index: 1;
  -webkit-transition: opacity 0.4s ease-in-out;
  -moz-transition: opacity 0.4s ease-in-out;
  -ms-transition: opacity 0.4s ease-in-out;
  -o-transition: opacity 0.4s ease-in-out;
}


.project-item:hover .hover-img {
  opacity: .5;
}


/* footer */

.footer {
    background: #2e2e2e;
}


.footer .footer-quick-link ul li a {
    padding: 0 0;
    display: block;
    color: #b8b8b8;
    font-size: 20px;
}

/* contact us */

.contact {
    position: relative;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.contact .contact-text{
    color: #ffcd39;
}
.contact .contact-social ul li a{
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255);
    margin-left: 5px;
    border-radius: 50%;
    color: #000000;
}


/*go to top*/
#goToButton {
    position: fixed;
    left: 30px;
    bottom: 30px;
    width: 30px;
    height: 30px;
    background-color: #ffcd39;
    color: white;
    border: none;
    padding-right: 4px;
    padding-left: 0px;
    padding-bottom: 4px;
    padding-top: 0px;
    cursor: pointer;
    align-items: center;
    transition: background-color 0.3s ease;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
}

#goToButton:hover {
    background-color: #2e2e2e;
}


/*===============================*/


.close-menu {
    padding: 20px 0;
    color: #ffffff;
    font-size: 22px;
    text-align: center;
    cursor: pointer;
    background: #373555;
    display: none;
}

/* ===============  blog ========== */

.detail-website .blog-item {
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    box-shadow: 0 0 10px rgba(117, 117, 177, .2);
}

.sidebar {
    box-shadow: 0 0 10px rgba(117, 117, 177, .2);
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

.sidebar-item-text img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.sidebar-item-title {
    border-bottom: 1px solid #ffa62b;
}

.sidebar-item-text a {
    transition: all .3s ease;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -ms-transition: all .3s ease;
    -o-transition: all .3s ease;
}

.sidebar-item-text a:hover {
    color: #ffa62b !important;
}

.comment-section p {
    font-size: 14px;
}

.comment input,
.comment textarea {
    font-size: 13px;
}

.comment textarea {
    height: 150px;
    resize: none;
}