:root {
    --blue : rgb(43, 47, 131);
    --green : #1F562A;
    --dark-blue : rgba(34, 113, 94, 60%);
    --light-blue : rgba(83, 255, 161, 30%);
}

@font-face {
    font-family: 'BNazanin';
    src: url(../fonts/B\ Nazanin\ Bold_YasDL.com.ttf) format('ttf');
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2'),
        url('../fonts/Vazirmatn-Bold.ttf') format('ttf');
    font-weight: 800;
    font-display: swap;
}
  
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2'),
        url('../fonts/Vazirmatn-Regular.ttf') format('ttf');
    font-weight: 600;
    font-display: swap;
}

body{
    font-family: 'Vazirmatn' !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 !important;
    padding: 0 !important;
}

a {
    text-decoration: none;
    color: #ffffff;
}

a:hover{
    text-decoration: none;
    color: #ffffff ;
}

/* header */

.header-div {
    background-image: url(../img/service-bg.png);
    height: 540px;
    background-repeat: no-repeat;
    position: relative;
}

.header-div ul {
    padding: 10px 15px;
    height: 80px;
    background-color: rgb(34, 113, 94, 2%);
    box-shadow: 0 0px 20px rgba(34, 113, 94, 0.2);
}

.header-div li{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    margin: 0 13px;
}

.header-div li:hover{
    background-color: var(--blue);
    border-radius: 20px;
    transition: all 0.3s ease;;
}

.header-div li:hover a{
    color: white !important;
}

.menu-icon{
    width: 26px;
    height: 23px;
    margin-left: 15px;
    transition: all 0.3s ease;;
}

.header-div li:hover path{
    fill: white !important;
}

li a{
    font-size: 19px !important;
    font-weight: 800 !important;
}

.text-box {
    position: absolute;
    top: 35%;
    right: 20%;
    width: 550px;
}

.datara-img {
    width: 160px;
    height: 95px;
    left: 100px;
    top: 32px;
    position: absolute;
}

h1{
    font-weight: 800 !important;
    font-size: 30px !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    text-align: start;
}

.header-div p {
    font-weight: 600 !important;
    font-size: 15px !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

/*----- phone design -----*/

header {
    position: relative;
    overflow: hidden;
}

.phone img{
    width: 211px;
    height: 425px;
    z-index: 1;
    position: absolute;
    top: 25%;
    left: 20%;
}

/*----- Content production----- */

h2 {
    font-size: 27px !important;
    font-weight: 800 !important;
    color: var(--blue);
    text-align: center;
}

p{
    font-size: 16px !important;
    font-weight: 600 !important;
    color: black !important;
    text-align: center;
    line-height: 25px;
}

.buttons{
    font-size: 15px;
    font-weight: 800;
    background-color: var(--green);
    color: #ffffff !important;
    border-radius: 15px;
    transition: all 0.3s ease-out;
}

.buttons:hover {
    background-color: #22715fab;
    box-shadow: 6px 6px 20px rgba(34, 113, 94, 0.5);
    transform: scale(1.1, 1.1);
    color: #ffffff !important;
}
  
  /* ----------------services slider starts----------------- */
.members-slider-container {
    margin: 0 auto;
    padding: 0 20px 20px;
    direction: ltr !important;
    max-width: 1200px;
}

.swiper-slide{
    width: fit-content !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.members-slider {
    padding: 20px 0 50px;
    overflow: hidden;
}

.members-card {
    width: 350px;
    height: 450px ;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
    display: flex;
    flex-direction: column;
}

.members-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.members-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.members-card:hover .members-image {
    transform: scale(1.05);
}

/* Swiper nav buttons */
.swiper-button-next,
.swiper-button-prev {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1) !important;
    color: var(--blue) !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: linear-gradient(to right, var(--dark-blue), var(--light-blue)) !important;
    color: white !important;
    transform: scale(1.2);
}

/* Swiper Pagination */
.swiper-pagination-bullet {
    width: 13px !important;
    height: 13px !important;
    background:var(--blue) !important;
    opacity: 0.5;
    transition: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.swiper-pagination-bullet-active {
    background: linear-gradient(to right, var(--blue), var(--green)) !important;
    opacity: 1;
    transform: scale(1.2);
}

.section2 .swiper-button-next,
.section2 .swiper-button-prev {
    width: 40px !important;
    height: 40px !important;
    color: rgb(0, 0, 0);
    background: var(--glass-bg);
    border-radius: 50%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.section2 .swiper-button-next:after,
.section2 .swiper-button-prev:after {
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    color: var(--blue3);
}

  /* -----play buttons ----- */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    opacity: 1;
    transition: all 0.3s ease;
}

.video-playing .play-button {
    opacity: 0;
    pointer-events: none;
}

.swiper-slide-active .play-button {
    opacity: 1;
}

.play-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button::after {
    content: '';
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 5px;
}
.play-status {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-playing .play-status {
    opacity: 1;
}

.play-status::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4CAF50;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

@media (max-width: 480px) {
    .swiper {
        height: 300px;
    }
    
    .slide-content {
        padding: 15px;
    }
    
    .slide-content h3 {
        font-size: 1.4rem;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
    }
    
    .play-button::after {
        border-width: 10px 0 10px 20px;
    }

}
  
  /*  ------ slider Responsive ------------*/
  @media (max-width: 768px) {
  
  
    .swiper-button-next,
    .swiper-button-prev {
      width: 40px;
      height: 40px;
    }

    .members-slider-container {
        padding: 0 10px 20px;
    }
    
    .swiper-slide{
        width: fit-content !important;
        position: relative;

    }
    
    .members-slider {
        padding: 20px 0 100px;
    }
    
    .members-card {
        width: 250px;
        height: 350px ;
        
    }
    
      /* -----play buttons ----- */
    .play-button {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 50px;
        height: 50px;
    }
 
    .play-status {
        position: absolute;
        top: 20px;
        right: 20px;
        background: rgba(0, 0, 0, 0.7);
        color: #fff;
        padding: 8px 15px;
        border-radius: 20px;
        font-size: 14px;
        z-index: 10;
        display: flex;
        align-items: center;
        gap: 8px;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

  }


/* ------------instagram page ----------------- */


.instagram {
    position: relative;
    min-height: 700px;
    overflow: hidden;
}

.bg-color {
    background-image: url(../img/bg.png);
    margin: 0 auto;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.insta {
    display: flex;
    position: relative;
}

.right-insta img {
    width: 250px;
    height: 400px;
}

.left-box {
    position: relative;
}

.top-insta {
    position: absolute;
    top: -20%;
    left: 4%;
    width: 250px;
}

.bottom-insta {
    position: absolute;
    top: 52%;
    left: 4%;
    width: 250px;
}

/* -----------------computer part ------------- */

.computer img{
    width: 456px;
    height: 354px;
}

/* -----footer----- */

footer{
    background: linear-gradient(to right, var(--dark-blue), var(--light-blue)) ;
    padding: 30px 50px 10px;
    margin-top: 90px;
}

.footer-h{
    font-size: 14px;
    font-weight: 800;
    color: var(--blue);
}

.custom-border {
    position: relative;
    padding: 10px 0;
    margin: 10px 0;
}

.custom-border::after {
    content: "";
    position: absolute;
    bottom: 0;
    height: 2px;
    background-color: #FFFFFF;
    transition: all 0.3s ease;
}

.border-right::after {
    right: 0;
    width: 15%;
}

footer img{
    width: 115px;
    height: 67px;
}

footer svg{
    width: 20px;
    height: 20px;
}

footer path{
    fill: #ffffff;
}

.icons div {
    width: 45px;
    height: 45px;
    background-color: var(--green);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 15px;
}

.main-div{
    margin-right: 100px;
}

.main-div a{
    font-size: 12px;
    font-weight: 600;
    color: #000000;
    display: block;
    margin-top: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.main-div a:hover{
    font-size: 13px;
    color: var(--green);
    border-bottom: 1px solid var(--green);
    padding-bottom: 3px;
    margin: 0 1%; /* این مقدار طول border را کنترل می‌کند */
    display: inline-block;
}

.trust {
    margin-right: 100px;
    margin-left: 50px;
}

.trust img{
    width: 17px;
    height: 17px;
}

.trust span{
    font-size: 12px;
    font-weight: 600;
    color: #000000;
}

.trust div:nth-child(2), .trust div:nth-child(3), .trust div:nth-child(4){
    background: rgba(43, 47, 131, 0.25);
    border-radius: 20px;
    width: fit-content;
    padding: 2px 7px;
    margin-top: 15px;
}

.contact span{
    font-size: 13px;
    font-weight: 600;
    color: #000000;
    margin: 0 15px;
}

.contact-icons {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--blue);
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.contact-icons svg{
    width: 15px;
    height: 15px;
}

footer p{
    margin-top: 20px;
    font-size: 12px !important;
}

@media (max-width: 576px) {

    /* header */

    .header-div {
        background-image: url(../img/header-mobile.png);
        background-repeat: no-repeat;
        background-size: contain;
        height: 100%;
    }

   
}



@media (max-width: 768px) {
    .swiper {
        height: 400px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }

    /* ------ header ------ */

    .header-div {
        background-image: url(../img/phone-back.png);
        height: 700px;
        position: relative;
    }
    
    .text-box {
        position: absolute;
        top: 15%;
        right: 10%;
        width: 300px;
    }
    
    .datara-img {
        width: 90px;
        height: 60px;
        left: 30px;
        top: 17px;
        position: absolute;
    }
    
    h1{
        font-size: 17px !important;
        text-align: center;
    }
    
    .header-div p {
        font-size: 11px !important;
        text-align: center !important;
    }

    /*----- phone design -----*/

    .phone img{
        width: 211px;
        height: 425px;
        z-index: 1;
        position: absolute;
        top: 40%;
        left: 25%;
    }

    /*----- Content production----- */

    h2 {
        font-size: 16px !important;
    }

    p{
        font-size: 12px !important;
        line-height: 25px;
    }

    .buttons{
        font-size: 12px;
        padding: 8px 15px !important;
    }

    /* ------------instagram page ----------------- */

    .instagram {
        min-height: 700px;
    }

    .instagram h2, .instagram p {
        text-align: center !important;
    }

    .bg-color {
        background-image: url(../img/phone-back.png);
        height: 500px;
        background-size: cover;
    }

    .insta {
        display: flex;
        position:static;
        margin-top: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
    }


    .right-insta img {
        width: 250px;
        height: 400px;
        margin: 50px auto;
    }

    .left-box {
        position: static;
    }

    .top-insta , .bottom-insta {
        display: none;
    }

    .insta-text {
        padding: 0px 20px !important;
        display: flex;
        justify-content: center;
    }

    .insta-text .buttons{
        position: absolute;
        right: 25%;
    }

    /* -----------------computer part ------------- */

    .computer img{
        width: 300px;
        height: 200px;
    }

     /* -------- footer -------- */

     footer{
        padding: 30px 50px 10px;
    }

    footer img{
        width: 86px;
        height: 50px;
    }

    .footer-h{
        font-size: 13px !important;
    }

    .custom-border {
        position: relative;
        padding: 10px 0;
        margin: 10px 0;
    }

    .custom-border::after {
        width: 10px;
        bottom: 0;
        height: 2px;
        
    }

    .border-right::after {
        right: 0;
        width: 15%;
    }

    footer svg{
        width: 18px;
        height: 18px;
    }

    .icons div {
        width: 35px;
        height: 35px;
        margin: 0 15px;
    }

    .main-div{
        margin-right: 0;
        margin-left: auto;
        width: fit-content;
    }

    .main-div a{
        font-size: 11px;
        margin-top: 10px;
    }

    .main-div a:hover{
        font-size: 12px;
        padding-bottom: 3px;
        margin: 0 1%; /* این مقدار طول border را کنترل می‌کند */
    }

    .trust {
        margin: 20px auto 20px;
    }

    .trust img{
        width: 16px;
        height: 16px;
    }

    .trust span{
        font-size: 11px;
    }

    .trust div:nth-child(2), .trust div:nth-child(3), .trust div:nth-child(4){
        padding: 2px 7px;
        margin-top: 15px;
    }

    .contact span{
        font-size: 10px;
        margin: 0 13px;
    }

    .contact-icons {
        width: 27px;
        height: 27px;
    }

    .contact-icons svg{
        width: 13px;
        height: 13px;
    }

    footer p{
        margin-top: 25px;
        font-size: 10px !important;
    }
}



/* Additional responsive utilities */
@media (min-width: 768px) and (max-width: 991px) {

}

@media (min-width: 992px) and (max-width: 1199px) {
    .right-box {
        padding: 120px 60px 0 !important;
    }

    .left-box {
        margin: 100px 60px 0 0 !important;
    }
}



  /* --- Mobile redesigned navigation --- */
  @media (max-width: 991px) {
    .navbar { padding: 12px 8px; }

    /* make toggler visually stable */
    .navbar-toggler { 
        border: none; 
        z-index: 1200; 
        margin-left: auto;
        margin-right: 0;
    }
    .navbar-toggler img.navbar-toggler-icon { display: block; width: 34px; height: 34px; object-fit: contain; }

    /* mobile slide panel */
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: 0; /* RTL: menu slides in from right */
        left: auto;
        width: 82%;
        max-width: 360px;
        height: 100vh;
        background: rgba(255,255,255,0.98);
        z-index: 1150;
        padding: 110px 16px 30px;
        transform: translateX(105%); /* hidden by default */
        transition: transform 0.45s cubic-bezier(.2,.9,.2,1);
        overflow-y: auto; /* scroll inside panel only */
        -webkit-overflow-scrolling: touch;
        box-shadow: -6px 0 30px rgba(0,0,0,0.25);
    }

    /* when opened */
    .navbar-collapse.show { transform: translateX(0); }

    /* make sure background (body) doesn't scroll when menu open */
    body.menu-open { height: 100%; overflow: hidden; }

    /* menu items animation */
    .navbar-nav { width: 100%; }
    .navbar-nav .nav-item { margin-bottom: 12px; opacity: 0; transform: translateY(20px); transition: all 0.38s ease; }
    .navbar-collapse.show .nav-item { opacity: 1; transform: translateY(0); }

    /* list styles */
    .navbar-nav .btn { width: 100%; text-align: right; font-weight: 800; font-size: 16px; }

    /* dropdown menu (mobile) */
    .dropdown-menu { width: 95%; margin: 6px auto; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.12); }

    /* keep desktop layout unaffected */
    .header-div ul { box-shadow: none; }
}

/* desktop reset */
@media (min-width: 992px) {
    .navbar-collapse { position: static; transform: none !important; height: auto; padding: 0; background: none; box-shadow: none; }
    .navbar-nav .nav-item { opacity: 1; transform: none; }
}