:root {
    --base-color: rgba(0, 0, 0, 0.888);
    --header-text-color: rgb(204, 204, 204);
    --header-hover-color: rgb(255, 255, 255);
    --menus-color: rgba(238, 238, 238, 0.736);
    --haeder-fontsize: 23px;
    --secends-text-color: rgb(149, 149, 149);
    --body-h2-text-size: 45px;
    --body-h3-text-size: 25px;
    --body-p-font-size: 20px;
}

* {
    padding: 0;
    margin: 0;
    
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}


.header {
    background-color: var(--base-color);
    height: 90px;
    width: 100%;
    position: fixed;
    z-index: 1000;


}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;

}

.leftnav {
    display: flex;
    align-items: center;
    width: 25%;
    height: 100%;
    color: var(--header-text-color);
    font-size: var(--haeder-fontsize);
    margin-left: 20px;

}

.rightnav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 50%;
    height: 100%;
    margin-right: 15px;


    ul:nth-of-type(1) {
        width: 100%;
        justify-content: space-around;
        display: flex;
    }

    a:nth-of-type(1) {
        color: var(--header-text-color);
        font-size: var(--haeder-fontsize);
        text-decoration: none;
    }
}

.rightnav a:hover {
    color: var(--header-hover-color);
}

ul {
    list-style: none;
}

/* 
.login{
    display: flex;
    width: 30px;
    color: var(--header-text-color);
    margin-left: 50px;
    img:nth-of-type(1){
        width: 30px;
        margin-right: 5px;

    }
} */

.search {
    background-color: var(--menus-color);
    display: flex;
    width: 20%;
    margin-right: 10%;
    border-radius: 9px;

    input:nth-of-type(1) {
        width: 90%;
        height: 38px;
        background-color: rgba(230, 0, 0, 0);
        border: 0px;

    }


    img:nth-of-type(1) {
        width: 20px;
        margin: 5px;
    }

}

.search input::placeholder {
    color: var(--header-text-color);
}



.hamburger {
    display: none;
    color: var(--menus-color);
    font-size: 60px;
    margin-right: 30px;
}

.mobile-menu {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    background: var(--base-color);
    overflow: hidden;
    max-height: 0;
    transition: 0.6s ease-in-out;
    z-index: 999;
}

/* آیتم‌های منو */


.mobile-menu li {
    border-bottom: 1px solid var(--menus-color);
}

.mobile-menu a {
    color: var(--header-text-color);
    font-size: var(--haeder-fontsize);
    text-decoration: none;
    display: block;
    padding: 15px;
    text-align: center;
}

/* کلاس باز شدن منو */
.mobile-menu.open {
    max-height: 800px;
    /* مقدار کافی برای نمایش آیتم‌ها */
}



        /*slider*/
.slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: slide 12s infinite;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide:nth-child(1) {
    animation-delay: 0s;
}

.slide:nth-child(2) {
    animation-delay: 4s;
}

.slide:nth-child(3) {
    animation-delay: 8s;
}

@keyframes slide {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    10% {
        transform: translateX(0);
        opacity: 1;
    }

    30% {
        transform: translateX(0);
        opacity: 1;
    }

    40% {
        transform: translateX(100%);
        opacity: 0;
    }

    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

.text-overlay {
    position: absolute;
    width: 300px;
    height: 200px;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    font-size: 2rem;
}


        /*analytics*/
.analytics {
    background-color: rgb(255, 255, 255);
    margin: 130px 110px;
}

.analitics-up {
    display: flex;
    justify-content: space-around;
    height: 30%;

    span:nth-of-type(1) {
        font-size: var(--body-h2-text-size);
        font-weight: 900;

    }

    span:nth-of-type(2) {
        font-size: var(--body-p-font-size);
        font-weight: 500;
        line-height: 30px;

    }


    span:nth-of-type(3) {
        font-size: var(--body-p-font-size);
        font-weight: 500;
        line-height: 30px;

    }

}


.analitics-up span {
    width: 350px;
}

.analytics-down {
    display: flex;
    justify-content: space-around;
    height: 22vh;
    margin-top: 50px;
}

.analytics-down-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--menus-color);
    width: 20vw;
    height: 22vh;
    border-radius: 5px;
    margin: 0px 12px;


    div:nth-child(1) {
        font-size: 60px;
        font-weight: 900;
    }

    div:nth-child(2) {
        font-size: var(--body-p-font-size);
        font-weight: 500;
        color: rgb(124, 124, 124);
    }
}


        /*our-services*/
.our-services{

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 110px;
    
}

.our-services-up{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    h2:nth-of-type(1){
        font-size: var(--body-h2-text-size);
    }

    p:nth-of-type(1){
        color: var(--secends-text-color);
        font-size: var(--body-p-font-size);
        margin-top: 10px;
        margin-bottom: 40px;
    }
}

.our-services-down{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;

    div:nth-child(1) { animation-delay: 0.2s; }
    div:nth-child(2) { animation-delay: 0.4s; }
    div:nth-child(3) { animation-delay: 0.6s; }
    div:nth-child(4) { animation-delay: 0.8s; }
    div:nth-child(5) { animation-delay: 1s; }
    div:nth-child(6) { animation-delay: 1.2s; }

}

.our-services-down-card{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 30px 5px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform-origin: center;
    

}

.our-services-down img{
    width: 90px;

}

.our-services-down h3{
    font-size: var(--body-h3-text-size);
    margin: 20px;
}

.our-services-down p{
    color: var(--secends-text-color);
    font-size: 18px;
    text-align: center;
    font-weight: 350;

}

.our-services-down a{
    font-size: 12px;
    font-weight: 600;
    margin-top: 20px;
    text-decoration: none;
    letter-spacing: 1px;
    color: #575757;
}


        /*black-section*/
.black-section {
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    height: 80vh;
    width: 100%;
  }
  
.image-container {
    position: relative;
    width: 300px;
    height: 400px;
    margin-right: 60px;

  }
  
.image-container img {
    position: absolute;
    width: 300px;
    height: auto;
    border-radius: 10px;
  }
  
.img-one {
    top: 0;
    left: 0;
    z-index: 1;
  }
  
.img-two {
    bottom: 0;
    right: 0;
    z-index: 2;
    transform: translate(30px, 30px);
  }
  
.text-container{
    margin-left: 80px;

  }


.text-container h2 {
    font-size: var(--body-h2-text-size);
    margin-bottom: 20px;
    max-width: 500px;
  }
  
.text-container p {
    color: #999;
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 450px;
    line-height: 25px;
  }
  
.text-container button {
    background-color: white;
    color: black;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
  }
  
.text-container button:hover {
    background-color: #999;
  }
  
        /* our-work */
  .Our-Works {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 120px 0px;
}

.Our-Works h2{
    font-size: var(--body-h2-text-size);
}

.Our-Works p{
    font-size: var(--body-p-font-size);
    color: var(--secends-text-color);
}

.filter-our-works {
    display: flex;
    justify-content: space-evenly;
    overflow: hidden;
    margin: 50px 0px;
    width: 100%;

}
.filter-our-works a {
    color: var(--secends-text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: all 0.3s ease;
}

.filter-our-works a:hover {
    color: #000;
}

.filter-our-works a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background-color: #000;
    transition: width 0.3s ease;
}

.filter-our-works a:hover::after {
    width: 100%;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
    margin: auto;
}

.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    display: block;
    margin: 10px;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); 
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.9s ease;
    color: white;
    text-align: center;
    box-sizing: border-box;
}

.overlay-content h3 {
    font-size: var(--body-h3-text-size);
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.overlay-content p {
    font-size: var(--body-p-font-size);
    color: var(--secends-text-color);
    transform: translateY(20px);
    transition: transform 0.3s ease 0.3s;
    opacity: 0.9;
}

.grid-item:hover .image-overlay {
    opacity: 1;
}

.grid-item:hover .overlay-content h3,
.grid-item:hover .overlay-content p {
    transform: translateY(0);
}

.grid-item img {
    width: 100%;
    display: block;
    transition: transform 0.9s ease;
}

.grid-item:hover img {
    transform: scale(1.1);
}



        /*footer*/
.footer {

    background-color: var(--base-color);
    color: #fff;
    font-size: 14px;
  }
  
  .footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0px 200px;
    margin-left: 30px;
  }
  
  .footer-section {
    flex: 1 1 250px;
  }
  
  .footer-section h4 {
    font-size: 16px;
    margin-bottom: 10px;
    margin-top: 20px;
    color: #fff;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
  }
  
  .footer-section ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-section ul li {
    margin-bottom: 8px;
  }
  
  .footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: 0.3s;
  }
  
  .footer-section ul li a:hover {
    color: #fff;
  }
  
  .footer-middle {
    text-align: center;
    margin-top: 40px;
  }
  
  .footer-middle p {
    margin: 5px 0;
  }
  
  .social-icons {
    margin-top: 15px;
  }
  
  .social-icons a {
    color: #ccc;
    margin: 0 8px;
    font-size: 18px;
    transition: 0.3s;
  }
  
  .social-icons a:hover {
    color: #fff;
  }
  
  .footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #9ca3af;
  }
  

  




@keyframes ani1 {

    /*از پایین به بالا می اید*/
    0% {
        transform: translateY(50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-up1 {
    animation: ani1 1s ease-out;

}

@keyframes ani2 {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }

    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

.animate-scalex {
    animation: ani2 1s forwards;
}

@keyframes ani3 {
    to {
      transform: scaleX(1);
      opacity: 1;
    }
}

.ani3{
    animation: ani3 1s forwards;
  
}

@keyframes ani4 {
    0% {
      opacity: 0;
      transform: translateY(30px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
.ani4 {
    animation: fadeInUp 1s ease forwards;
}



@media (max-width: 700px) {
    body {
        width: 100%;
        overflow-x: hidden;

    }
    .rightnav {
        display: none;
    }

    .hamburger {
        display:inline;

    }

    .search {
        display: none
    }

    .leftnav {
        width: 100%;
    }
    
    .slider-container {
        width: 100%;
        height: 60vh;


    }


    
    .analitics-up{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .analitics-up span {
        width: 300px;
        margin-top: 30PX;
    }
    .analytics-down{
        flex-direction: column;
        align-items: center;
        margin-top: 50px;
        height: 100%;
    }  
    .analytics-down-card{
        width: 80vw;
        height: 40vh;
        margin-bottom: 20px;
    }



    .our-services{

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 110px 0px;
        
    }
    .our-services-down{
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    
    }



    .black-section {
        flex-direction: column;
        height: 100%;
      }
    .image-container {
        width: 300px;
        height: 300px;
        margin-right: 60px;
    
      }
    .image-container img {
        width: 200px;
        border-radius: 10px;
      }
      .img-one {
        top: 0;
        left: 0;
        z-index: 1;
        transform: translate(-20px, 20px);

      }
      .text-container{
        margin-left: 0px;
      }    
    .text-container h2 {
        margin: 50px 20px 20px 20px;

      }
    .text-container p {

        margin: 0px 20px 30px 20px;

      } 
    .text-container button {

        margin: 0px 20px 30px 20px;

      }
    


      .filter-our-works a {

        font-size: 13px;
        font-weight: 400;
        
    }
    .grid-container {
        grid-template-columns: repeat(1, 1fr);
    }




}

@media (max-width: 1100px) {
    .search {
        display: none;
    }

    .rightnav {
        width: 65%;
        margin-right: 0;
    }

    .footer-section3{
        display: none;
    }

}