/* Global scroll Behaviour */
html {
  scroll-behavior: smooth;
}
/* css variables  */
:root {
  --primaryCol: #cc0014;
  --mainWhite: #fff;
  --offWhite: #f7f7f7;
  --mainBlack: #222;
  --mainGrey: #ececec;
  --darkGrey: #d4c7c7;
  --mainSpacing: 0.25rem;
  --mainTransition: all 0.3s linear;
  --lightShadow: 2px 5px 3px 0 rgba(0, 0, 0, 0.25);
  --darkShadow: 4px 10px 6px 0 rgba(0, 0, 0, 0.5);
}
/* reset  */
*,
::before,
::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Lato', sans-serif;
  line-height: 1.4;
  font-size: 1rem;
  color: #000;
  background-color: var(--offWhite);
}
/* title  */
.title-wrapper {
  margin-bottom: 2rem;
  width: 100%;
  text-align: center;
  margin-top: 7rem;
  height: 2.6rem;
}
.logo {
  width: 15rem;
  height: 10rem;
  position: absolute;
  top: 0;
  left: 0;
}

.title {
  color: var(--mainWhite);
  text-transform: uppercase;
  margin: 0 auto;
  letter-spacing: 0.5rem;
  text-align: center;
  font-size: 2.6rem;
}
.subtitle {
  color: var(--primaryCol);
  margin-left: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  /* font-family: 'Russo One'; */
}

.section-center {
  width: 85vw;
  margin: 4rem auto 2rem auto;
  max-width: 1170px;
}

/* clearfix */
.clearfix::after,
.clearfix::before {
  content: '';
  clear: both;
  display: table;
}
/* ********services section ******** */
.services {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  min-height: 100vh;
  background: #232427;
}

.services-center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 40px 0;
}

.services-card {
  position: relative;
  min-width: 250px;
  height: 370px;
  box-shadow: inset 5px 5px 5px rgba(0, 0, 0, 0.2),
    inset -5px -5px 15px rgba(255, 255, 255, 0.1),
    5px 5px 15px rgba(0, 0, 0, 0.3), -5px -5px 15px rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  margin-bottom: 4rem;
  perspective: 300px;
  transform-style: preserve-3d;
}

.serv-container {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  background: #2a2b2f;
  border: 2px solid #1e1f23;
  border-radius: 15px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}
.services-box-front,
.services-box-back {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border-radius: 15px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  transition: 0.5s;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  cursor: pointer;
}

.services-box-back {
  background: #2a2b2f;
  transform: rotateY(180deg);
}

.serv-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
}

.services-card:hover .serv-container {
  animation: flip 1s ease-out 1;
  animation-fill-mode: forwards;
  box-shadow: 0 40px 70px rgba(0, 0, 0, 0.5);
  transform: rotateY(540deg);
  transition: transform 1s;
}

@keyframes flip {
  95% {
    transform: rotateY(180deg);
  }
  100% {
    transform: rotateY(180deg);
  }
}

.hover_btn:nth-child(1) a {
  background: #2196f3;
}
.hover_btn:nth-child(2) a {
  background: #e91e63;
}
.hover_btn:nth-child(3) a {
  background: #97dc47;
}
.hover_btn:nth-child(4) a {
  background: #47cbdc;
}

.card-content {
  padding: 20px;
  text-align: center;
}

.card-number {
  position: absolute;
  top: -10px;
  right: 30px;
  font-size: 8rem;
  color: rgba(255, 255, 255, 0.05);
}

.card-title {
  letter-spacing: 0;
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.5);
  z-index: 1;
  transition: 0.5s;
  margin-bottom: 0;
}

.card-text {
  color: lightseagreen;
  line-height: 2rem;
  font-size: 16px;
  font-weight: 600;
  z-index: 1;
  transition: 0.5s;
}

.card-btn,
.hover_btn {
  position: relative;
  display: inline-block;
  width: 10rem;
  padding: 8px 20px;
  background: #000;
  margin-top: 15px;
  border-radius: 20px;
  font-weight: 400;
  text-decoration: none;
  color: var(--mainWhite);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.services-card:nth-child(1) a {
  background: #2196f3;
}
.services-card:nth-child(2) a {
  background: #e91e63;
}
.services-card:nth-child(3) a {
  background: #97dc47;
}
.services-card:nth-child(4) a {
  background: #e2321b;
}

@media screen and (min-width: 759px) {
  .services-center {
    display: flex;
    /* after   */
    flex-wrap: wrap;
    justify-content: space-between;
  }
}
/* ********** end of services section *********** */
