/* ===== General ===== */

* {
  margin: 0rem;
  padding: 0rem;
  box-sizing: border-box;
}

@font-face {
  font-family: "vazir";
  src: url(./vazir/Vazir-FD-WOL.woff) format("woff"),
    url(./vazir/Vazir-FD-WOL.ttf) format("truetype");
}

@font-face {
  font-family: "Roboto";
  src: url(../css/Roboto/Roboto-Regular.ttf) format("truetype");
}

:root {
  --clr-primary: #e2711d;
  --clr-primary-light: #ffb627;
  --clr-grey-1: #102a42;
  --clr-grey-5: #617d98;
  --clr-grey-10: #f1f5f8;
  --clr-white: #fff;
  --ff-primary: "Roboto", "vazir", sans-serif;
  --transition: all 0.3s ease;
}

.clearfix::after,
.clearfix::before {
  content: "";
  clear: both;
  display: block;
}
/* ===== Body ===== */

body {
  font-family: var(--ff-primary);
  background: var(--clr-white);
  color: var(--clr-grey-1);
  font-size: 1rem;
}

/* ===== a ===== */

a {
  text-decoration: none;
}

/* ==== Btn ==== */

.btn {
  background: var(--clr-primary);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  color: var(--clr-white);
  transition: all 0.3s linear;
  margin: 1rem auto;
  display: none;
  width: fit-content;
  display: none;
}

.btn:hover {
  background: var(--clr-primary-light);
  color: var(--clr-primary);
}

.hide-btn {
  display: none;
}

@media screen and (min-width: 805px) {
  .btn {
    display: none;
  }
  .section-title {
    text-align: left;
    margin-top: -1rem;
    display: inline-block;
    margin-bottom: 0.5rem;
  }
}
/* ====h==== */

h1 {
  font-size: 1.75rem;
}
h2 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1rem;
}
@media screen and (min-width: 800px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h4 {
    font-size: 1.25rem;
  }
}

/* ==== img ==== */

img {
  display: block;
  width: 100%;
}

.section-center {
  padding: 0 5rem;
  margin: 0 auto;
  width: 90%;
}

.sectiont-title h3 {
  color: var(--clr-primary);
  margin-bottom: 0.5rem;
}

.sectiont-title {
  margin-bottom: 2rem;
  text-align: center;
}
/* ==== animation ==== */

@keyframes bounce {
  0% {
    transform: scale(0.75);
  }
  50% {
    transform: scale(1.25);
  }
  100% {
    transform: scale(0.75);
  }
}

@keyframes slide-top {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slide-bottom {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ==== nav-bar ==== */

.nav-bar-btn {
  color: var(--clr-primary);
  font-size: 1.5rem;
  position: fixed;
  top: 5%;
  left: 1.5%;
  z-index: 1;
  left: 1.5%;
  cursor: pointer;
  animation: bounce 2s ease infinite;
}

.nav-bar {
  position: fixed;
  top: 0;
  left: 0rem;
  background: var(--clr-grey-10);
  z-index: 2;
  height: 100%;
  width: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateX(-100%);
}

.show-nav {
  transform: translateX(0);
}

@media screen and (min-width: 768px) {
  .nav-bar {
    width: 30vw;
    max-width: 15rem;
  }
}

.nav-header {
  text-align: right;
}

.nav-close {
  font-size: 2rem;
  color: #f29c9c;
  cursor: pointer;
  transition: var(--transition);
}

.nav-close:hover {
  color: #bb2525;
}

.nav-items {
  list-style-type: none;
  margin: 1rem;
}

.nav-links {
  display: block;
  transition: var(--transition);
  padding: 1rem;
  color: var(--clr-grey-5);
}

.nav-links:hover {
  background: var(--clr-primary-light);
  border-left: 0.5rem solid var(--clr-primary);
  color: var(--clr-primary);
}
.nav-links i {
  font-size: 1.4rem;
  margin-right: 0.3rem;
}

/* ===== header ===== */

.header {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url(../Images/header\(4\).jpg) center/cover no-repeat fixed;
  position: relative;
}

.banner {
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.banner h1 {
  color: var(--clr-primary);
  margin-bottom: 2rem;
  animation: slide-top 2s ease-in-out 1;
}

.banner h2 {
  color: var(--clr-white);
  margin-bottom: 3rem;
  animation: slide-bottom 2s ease-in-out 1;
}

.btn-banner {
  font-size: 1.25rem;
  outline: 0.125rem solid var(--clr-primary);
  outline-offset: 0.25rem;
  animation: slide-bottom 2s linear 1;
}

.btn-banner:hover {
  outline-offset: 0rem;
}

.content-divider {
  height: 0.5rem;
  background: linear-gradient(
    to left,
    var(--clr-primary),
    var(--clr-primary-light),
    var(--clr-primary)
  );
}

/* ==== feature ==== */
.features-container {
  background: var(--clr-grey-10);
}

.feature {
  height: 200px;
  padding: 1.52rem 0;
  text-align: center;
  transition: var(--transition);
}

.feature:hover {
  background: var(--clr-white);
  box-shadow: 0 2px 0 var(--clr-primary);
}

.feature-icon {
  font-size: 2rem;
  color: var(--clr-primary);
  margin-bottom: 1.25rem;
  display: inline-block;
  transition: var(--transition);
}

.feature:hover .feature-icon {
  transform: translateY(-5px);
}
.feature-title {
  margin-bottom: 1rem;
}

.feature-text {
  color: var(--clr-grey-5);
  margin: 0 auto;
  max-width: 17rem;
}

@media screen and (min-width: 576px) {
  .feature {
    float: left;
    width: 50%;
  }
}
@media screen and (min-width: 1200px) {
  .feature {
    float: left;
    width: 25%;
  }
}

/* ====about    Our Team ==== */

.about {
  padding: 2rem;
  text-align: center;
}

.about-img-countainer {
  background: var(--clr-primary-light);
  max-width: 30rem;
  border: 0.3rem solid var(--clr-primary);
  border-radius: 0.5rem;
  overflow: hidden;
  float: right;
  margin-bottom: 1rem;
}

.about-img {
  transition: var(--transition);
}

.about-img-countainer:hover .about-img {
  transform: scale(1.2);
  opacity: 70%;
}

.about-text {
  color: var(--clr-grey-5);
  margin-bottom: 1rem;
  text-align: center;
}

.about-btn {
  margin: 1rem auto;
  display: none;
  width: fit-content;
}

@media screen and (min-width: 804px) {
  .about-btn {
    display: none;
  }

  .about-text {
    text-align: left;
  }
  .sectiont-title {
    text-align: left;
    margin-top: -1rem;
  }
  .about-img-countainer {
    float: right;
    width: 60%;
  }
  .about-info {
    float: left;
    width: 40%;
  }
}

@media screen and (max-width: 804px) {
  .Our-team-img {
    clear: both;
  }
}

/* ==== Why Choose Us? ==== */

.image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 1rem;
  margin-bottom: 0.5rem;
  height: 17rem;
  object-fit: cover;
}

.img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.img-1 {
  background-image: url(../Images/End-to-End\ Service2.jpg);

  -webkit-mask-image: linear-gradient(
    to top right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 100%
  );
  mask-image: linear-gradient(
    to top right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 100%
  );
}

.img-2 {
  background-image: url(../Images/End-to-End\ Service1.jpg);

  -webkit-mask-image: linear-gradient(
    to bottom left,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 100%
  );
  mask-image: linear-gradient(
    to bottom left,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 100%
  );
}

.products {
  background-color: var(--clr-grey-10);
}

.products article {
  padding: 2rem 0;
}

.product-text {
  color: var(--clr-grey-5);
}

.product {
  margin-bottom: 2rem;
}

.product-img {
  border-radius: 1rem;
  margin-bottom: 0.5rem;
  height: 17rem;
  object-fit: cover;
}

.product-title {
  margin: 0.5rem;
  color: var(--clr-primary);
}

.product-price {
  color: var(--clr-grey-5);
  margin-top: 0.1rem;
}

@media screen and (min-width: 768px) {
  .product {
    float: left;
    width: 50%;
    padding-right: 2rem;
  }
}

@media screen and (min-width: 992px) {
  .product {
    width: 33.3%;
  }
}

@media screen and (min-width: 1200px) {
  .product-cards {
    float: right;
    width: 70%;
  }

  .products-info {
    float: left;
    width: 30%;
  }

  .product {
    padding-left: 0.5rem;
  }
}

/* ==== Market Focus ==== */

.service-title {
  margin-top: 1.5rem;
}
.service-card {
  background: var(--clr-grey-10);
  margin: 1.5rem 0;
  border-radius: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}
.service-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transform: scale(1.02);
}

.service-img {
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  height: 17rem;
  object-fit: cover;
}

.service-info {
  text-align: center;
  padding: 2.5rem 1rem 2rem 1rem;
}

.service-info p {
  color: var(--clr-grey-5);
  max-width: 20rem;
  margin: 0.5rem auto;
}

@media screen and (min-width: 768px) {
  .service-card {
    float: right;
    width: 48%;
    margin-left: 2%;
  }
}

@media screen and (min-width: 992px) {
  .service-card {
    float: right;
    width: 30%;
    margin-left: 3.33%;
  }
}

.service-container {
  position: relative;
}
.service-icon {
  position: absolute;
  right: 50%;
  bottom: 0;
  color: var(--clr-primary);
  font-size: 1.75rem;
  transform: translate(50%, 50%);
  background: var(--clr-primary-light);
  padding: 0.5rem 0.7rem 0.1rem 0.7rem;
  border-radius: 50%;
  border: 0.4rem solid var(--clr-grey-10);
}

/* ==== Get in Touch ==== */

.contact {
  background: var(--clr-grey-10);
  padding: 0.5rem;
}
.contact-items {
  text-align: center;
}

.contact article {
  margin: 1rem 0;
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-title {
  color: var(--clr-primary);
  padding: 0.5rem 0;
}

.contact-text {
  color: var(--clr-grey-5);
}

@media screen and (min-width: 992px) {
  .contact-item {
    float: left;
    width: 50%;
    padding-top: 1rem;
  }
}

.contact-text a {
  color: var(--clr-grey-5);
}

/* ===== Footer ===== */

.site-footer {
  background: #111;
  padding: 2rem 1rem;
  color: #eaeaea;
  text-align: center;
  font-family: "roboto", sans-serif;
  margin-top: 3rem;
  direction: ltr;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-text {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 0.5rem;
  direction: ltr;
}

.footer-designer {
  font-size: 0.95rem;
  direction: ltr;
}

.footer-designer span {
  color: #00cfff;
  font-weight: 600;
}

/* Responsive */
@media screen and (max-width: 600px) {
  .footer-text,
  .footer-designer {
    font-size: 0.85rem;
  }
}

.footer-designer a {
  color: var(--clr-primary);
  font-size: 1.5rem;
}
