/*
=============== 
Fonts
===============
*/
@font-face {
    font-family: "vazir";
    src: url("../fonts/vazir/Vazir-Medium-FD-WOL.woff") format("woff2"),
        url("../fonts/vazir/Vazir-Medium-FD-WOL.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: "vazir", sans-serif;
    --transition: all 0.3s 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;
}

/*
=============== 
Global Styles
===============
*/

*,
::after,
::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: var(--ff-primary);
    background: var(--clr-white);
    color: var(--clr-grey-1);
    line-height: 1.5;
    font-size: 0.875rem;
}
ul {
    list-style-type: none;
}
a {
    text-decoration: none;
}

img {
    width: 100%;
    display: block;
}

h1,
h2,
h3,
h4 {
    line-height: 1.25;
    margin-bottom: 0.75rem;
    font-family: var(--ff-primary);
}
h1 {
    font-size: 3rem;
}
h2 {
    font-size: 2rem;
}
h3 {
    font-size: 1.25rem;
}
h4 {
    font-size: 0.875rem;
}
p {
    margin-bottom: 1.25rem;
    color: var(--clr-grey-2);
}
@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,
    h2,
    h3,
    h4 {
        line-height: 1;
    }
}
/*  global classes */

.btn {
    background: var(--clr-primary-2);
    color: var(--clr-white);
    padding: 0.375rem 0.75rem;
    display: inline-block;
    transition: var(--transition);
    font-size: 0.875rem;
    font-family: var(--ff-primary);
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border-radius: var(--radius);
}

.btn:hover {
    color: var(--clr-primary-1);
    background: var(--clr-primary-3);
}

.section {
    padding: 5rem 0;
}

.section-center {
    width: 90vw;
    margin: 0 auto;
    max-width: var(--max-width);
}
@media screen and (min-width: 992px) {
    .section-center {
        width: 95vw;
    }
}

.underline {
    width: 5rem;
    height: 0.25rem;
    background: var(--clr-primary-2);
    margin-bottom: 1.25rem;
    margin-left: auto;
    margin-right: auto;
}
.section-title
{
    text-align: center;
    margin-bottom: 4rem;
}
.bg-grey
{
    background: var(--clr-grey-3);
}
/*
=============== 
Navbar
===============
*/

.nav-links {
    display: none;
}

.nav {
    background: var(--clr-primary-5);
    height: 4.5rem;
    padding: 1rem;
    transition: var(--transition);
    z-index: 3;
}

.nav-center {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.nav-header {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
}

.nav-header h3 {
    font-size: 1.75rem;
}

.nav-btn {
    justify-self: end;
    background: transparent;
    border-color: transparent;
    color: var(--clr-primary-2);
    font-size: 2rem;
    cursor: pointer;
}

@media screen and (min-width: 768px) {
    .nav-btn {
        display: none;
    }

    .nav-links {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        -moz-column-gap: 2rem;
             column-gap: 2rem;
        justify-items: center;
        justify-self: center
        
    }

    .nav-links a {
        color: var(--clr-grey-1);
        transition: var(--transition);
    }

    .nav-links a:hover {
        color: var(--clr-primary-4);
    }

    .nav-center {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
    }
}

.navbar-fixed {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: var(--clr-white);
    box-shadow: var(--light-shadow);
}

/*
=============== 
Sidebar
===============
*/

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--clr-grey-3);
    z-index: 4;
    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;
}

.sidebar-links {
    text-align: center;
}

.sidebar-links a {
    font-size: 1.5rem;
    color: var(--clr-grey-2);
    display: inline-block;
    margin-bottom: 1.5rem;
}

.sidebar-links a:hover {
    color: var(--clr-primary-4);
}

.social-icons {
    display: grid;
    grid-template-columns: repeat(5, 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);
}

/*
=============== 
Hero
===============
*/
.hero {
    background: var(--clr-primary-5);
}

.hero .underline {
    margin-right: 0;
    margin-bottom: 1rem;
}

.hero-img {
    display: none;
}

.hero-center {
    min-height: calc(100vh - 4.5rem);
    display: grid;
    place-items: center;
}

.hero-info h4 {
    color: var(--clr-grey-2);
    margin-top: 2rem;
    line-height: 2rem;
}

.hero-btn {
    margin-top: 1.25rem;
}

.hero-icons {
    justify-items: start;
}

@media screen and (min-width: 992px) {
    .hero-img {
        display: block;
        position: relative;
    }

    .hero-center {
        grid-template-columns: 1fr 1fr;
    }

    .hero-photo {
        max-width: 25rem;
        max-height: 30rem;
        -o-object-fit: cover;
           object-fit: cover;
        border-radius: var(--radius);
        position: relative;
    }

    .hero-img::before,
    .about-img::before {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        border: 0.25rem solid var(--clr-primary-2);
        border-radius: var(--radius);
        top: 2rem;
        right: -2rem;
    }
}

/*
=============== 
About
===============
*/

.about-center {
    display: grid;
    gap: 3rem;
}

.about-photo {
    max-width: 25rem;
    max-height: 30rem;
    -o-object-fit: cover;
       object-fit: cover;
    border-radius: var(--radius);
    position: relative;
}

.about-img {
    justify-self: center;
}

.about-title {
    margin-bottom: 2rem;
}

.about-title .underline {
    margin-right: 0;
}

@media screen and (min-width: 992px) {
    .about-center {
        grid-template-columns: 1fr 1fr;
    }

    .about-img {
        position: relative;
    }

    .about-info {
        align-self: center;
    }
}
/*
=============== 
Services
===============
*/
.service
{

    background: var(--clr-white);
    padding: 3rem 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 2rem;
}
.service .underline
{
    width: 3rem;
    height: 0.12rem;
    transition: var(--transition);
}
.service p
{
    transition: var(--transition);
}
.service:hover
{
    background: var(--clr-primary-2);
    color: var(--clr-white);
}
.service:hover p
{
   color: var(--clr-white);
}
.service:hover .underline
{
    background: var(--clr-white);
}
@media screen and (min-width:676px){
    .services-center
    {
        display: grid;
        grid-template-columns: 1fr 1fr;
        -moz-column-gap: 2rem;
             column-gap: 2rem;
    }
    
}
@media screen and (min-width:992px){
    .services-center
    {
        
        grid-template-columns: 1fr 1fr 1fr;
        
        
    }
    
}
/*
=============== 
Products
===============
*/
.products-text
{
    width: 85vw; 
    max-width: 30rem; 
    margin: 0 auto; 
}
.product
{
    background: var(--clr-primary-2);
    position: relative;
    margin-bottom: 2rem;
   border-radius: var(--radius);

}
.product-info
{
    position: absolute;
    top: 50%;
    left: 50%;
    color: var(--clr-white);
    transform: translate(-50%,-50%);
    opacity: 0;
    transition: var(--transition);
}
.product-info h4
{
    text-align: center;
}
.product-info p
{
    color: var(--clr-white);

    
}
.product:hover .product-info
{
    opacity: 1;
}
.product-img
{
    transition: var(--transition);
    border-radius: var(--radius);
    height: 15rem;
    -o-object-fit:fill;
       object-fit:fill;
}
.product:hover .product-img
{
    opacity: 0.1;
}
.product::after
{
    content: "";
    top: 0;
    left:0;
    position: absolute;
    width: 100%;
    height: 100%;
    border: 0.25rem solid white;
    border-radius: var(--radius);
transition: var(--transition);
opacity: 0;
    
}
.product:hover::after
{
    transform: scale(0.8);
    opacity: 1;
}
@media screen and (min-width:667px) 
{
.products-center
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    -moz-column-gap:2rem;
         column-gap:2rem;
    
}   

}
@media screen and (min-width:992px) 
{
.products-center
{
    
    grid-template-columns: repeat(3,1fr);
    
    
}   

}
@media screen and (min-width:1170px) 
{
    .products-center
    {
        grid-template-rows: 400px 400px;
       
        gap: 3.5rem;
        grid-template-areas:
      "c c b" 
      "d a a"
      ;

    }
    .product-img
    {
        height: 100%;
     
    }
    .product
    {
        height: 100%;
    }
 .product-1
 {
  grid-area: a;
 }
 .product-2
 {
 grid-area: b;
 }
 .product-3
 {
   grid-area: c;
 }
 .product-4
 {
  grid-area: d;
 }
}

/*
=============== 
Navbar
===============
*/
.connect
{
    display: grid;
    place-items: center;
    padding: 10rem 0 5rem 0;
    margin: 5rem 0;
    position: relative;
    min-height: 40rem;
    clip-path: polygon(50% 0, 100% 10%, 100% 90%, 50% 100%, 0 90%, 0 10%);
    -webkit-clip-path:
     polygon(50% 0, 100% 10%, 100% 90%, 50% 100%, 0 90%, 0 10%);
}
.connect::after
{
    position: absolute;
    content: "";
    top:0;
    left: 0;
    height: 100%;
    width: 100%;
    background: var(--clr-white);
    opacity: 0.7;
    z-index: -1;
}
.video-container
{
    position: absolute;
    top: 0;
    left: 0;
    -o-object-fit: cover;
       object-fit: cover;
    width: 100%;
    height: 100%;
    z-index: -2;
}


.video-banner
{
    background: var(--clr-primary-5);
    text-align: center;
    padding: 3rem 5rem 12rem 5rem;
    line-height: 4rem;
    -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 75%, 75% 75%, 75% 100%, 50% 75%, 0% 75%);
            clip-path: polygon(0% 0%, 100% 0%, 100% 75%, 75% 75%, 75% 100%, 50% 75%, 0% 75%);
}
.video-text
{
max-width: 30rem;
}

/*
===============

simkart

===============
*/
.simkarts
{
    background: var(--clr-primary-4);
}
.simkarts h3
{
    margin: 1.5rem 0;
color: var(--clr-primary-1);
}
.power
{
    margin-bottom: 1.5rem;

}
.power p
{
    margin-bottom: 0.5rem 0;
    color: var(--clr-primary-1);
}
.power-container
{
    background: var(--clr-white);
    height: 1rem;
    width: 100%;
    border-radius: var(--radius);
    position: relative;
}
.power-value
{
    position: absolute;
    top: 0;
    left: 0;
    background: var(--clr-primary-2);
    height: 1rem;
    border-radius: var(--radius);
}
.value-85
{
    width:85% ;
}
.value-80
{
    width:80% ;
}
.value-72
{
    width:72% ;
}
.value-65
{
    width:65% ;
}
.value-70
{
    width:70% ;
}
.power-text
{
    position: absolute;
    top: -2rem;
    transform: translate(-50%);
}
.power-text-80
{
    left:80%
}
.power-text-85
{
    left:85%
}
.power-text-72
{
    left:72%
}
.power-text-65
{
    left:65%
}

.power-text-70
{
    left:70%
}
@media screen and (min-width:768px) {
    .simkarts-center
    {
        display: grid;
        grid-template-columns: 1fr 1fr;
       -moz-column-gap: 3rem;
            column-gap: 3rem;
    }
    
}
/*
===============

Timeline

===============
*/

.timeline-center
{
    width: 80vw;
    max-width: 40rem;
}
.timeline-item
{
    border-top: 2px dashed var(--clr-primary-2);
    padding: 4rem 2rem;
    margin: 0;
    position: relative;
}
.timeline-item p
{
    margin-bottom: 0;
}
.timeline-item:nth-child(odd)
{
    border-right:2px dashed var(--clr-primary-2);
    border-top-right-radius:2rem;
    border-bottom-right-radius:2rem;
     margin-left: 2rem;
     padding-left: 0;
 }
.timeline-item:nth-child(even)
{
    border-left:2px dashed var(--clr-primary-2);
    border-top-left-radius: 2rem;
    border-bottom-left-radius: 2rem;
    margin-right: 2rem;
    padding-right: 0;
}
.timeline-item:first-child
{
    border-top: none;
    border-top-right-radius: 0;
}
.timeline-item:last-child
{
    border-bottom-left-radius: 0;
}
.number
{
    background: var(--clr-primary-2);
    color: white;
    width: 2rem;
    height: 2rem;
    position: absolute;
    display: grid;
    place-content:center;
    border-radius: 50%;
    top:50%;
    transform: translate(-50%,-50%);
}

.timeline-item:nth-child(odd) .number
{
    right: 0;
    transform: translate(50%,-50%);
}
.timeline-item:nth-child(even) .number
{
    left: 0;

}
/*
===============

Blog

===============
*/

.blog {
    background: var(--clr-grey-3);
}

.card {
    height: 35rem;
    perspective: 1500px;
    position: relative;
}

.card-side {
    position: absolute;
    transition: all 1.5s linear;
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
}

.card-front {
    background: var(--clr-white);
}

.card-back {
    background: var(--clr-primary-5);
    transform: rotateY(180deg);
    display: grid;
    place-items: center;
}

.card:hover .card-front {
    transform: rotateY(-180deg);
  
}

.card:hover .card-back {
    transform: rotateY(0);
}

.card-front img {
    height: 13rem;
    -o-object-fit: cover;
       object-fit: cover;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}

.card-footer img {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
}

.card-info {
    padding: 1rem 1.5rem;
}

.card-footer {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
}

.card-footer p {
    margin-bottom: 0;
    justify-self: end;
    color: var(--clr-primary-2);
    font-size: 0.85rem;
}

.blog-center {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 3rem 1rem;
}
.card-info p
{
    max-width: 30rem;
    line-height: 2rem;
   margin-top: 2rem;
    margin-bottom: 2rem;
}
/*
===============

Footer

===============
*/
.footer
{
    background: #222;
    padding-bottom: 2rem;
    display: grid;
    place-items: center;
}
.footer .social-icons
{
margin-bottom: 2rem;

}
.footer .social-icon
{

    color: var(--clr-primary-2)


}
.footer .social-icon:hover
{
    color: var(--clr-primary-5);
}
.footer p
{
    font-size: 1.25rem;
}