  h1{
    font-size: 2.5rem;
    font-family: 'Montserrat';
    font-weight: normal;
    color: #444;
    text-align: center;
    margin: 2rem 0;
  }
  
  .wrapper{
    width: 90%;
    margin: 0 auto;
    max-width: 80rem;
  }
  
  .cols{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
  }
  
  .col{
    width: calc(25% - 2rem);
    margin: 1rem;
    cursor: pointer;
  }
  
  .container{
    -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
      -webkit-perspective: 1000px;
              perspective: 1000px;
  }
  .container .front {
    background-size: cover;        /* pura div ko cover kare */
    background-position: center;   /* image center me rahe */
    background-repeat: no-repeat;  /* repeat na ho */
    border-radius: 12px;           /* optional rounded corners */
    overflow: hidden;              /* extra image cut na ho */
  }
  
  
  .front,
  .back{
    background-size: contain; 
    background-size: cover;
    background-repeat: no-repeat; 
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.25);
    border-radius: 10px;
      background-position: center;
      -webkit-transition: -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
      transition: -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
      -o-transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
      transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
      transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1), -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
      -webkit-backface-visibility: hidden;
              backface-visibility: hidden;
      text-align: center;
      min-height: 280px;
      height: auto;
      border-radius: 10px;
      color: #72b7e8 ;
      font-size: 1.5rem;
  }
  
  .back{
    background: #770404;
    background: -webkit-linear-gradient(45deg,  #c4c4c4  0%,#081b29 100%);
    background: -o-linear-gradient(45deg,  #081b29  0%,#081b29 100%);
    background: linear-gradient(45deg,  #081b29  0%,#081b29 100%);
    font-weight: 200;
  }
  
  .front:after{
      position: absolute;
      top: 0;
      left: 0;
      z-index: 1;
      width: 100%;
      height: 100%;
      content: '';
      display: block;
      opacity: .6;
      background-color: #000;
      -webkit-backface-visibility: hidden;
              backface-visibility: hidden;
      border-radius: 10px;
  }
  .container:hover .front,
  .container:hover .back{
      -webkit-transition: -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
      transition: -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
      -o-transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
      transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
      transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1), -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
  }
  
  .back{
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
  }

  #back{
    background: radial-gradient(
      circle at 100%,
      #2edfd4,
      #5b3705 50%,
      #591717 75%,
      #c39874 75%
    );
    font-weight: 400;
    background-size: 200% auto;
    color: #000;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animatedTextGradient 1.5s linear infinite;
  }
  
  @keyframes animatedTextGradient {
    to {
      background-position: 200% center;
    }
  }
  

  /* Service animation  */
  .service {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.4rem;
    animation: warningColors 0.3s infinite;
  }
  
  @keyframes warningColors {
    0%   { color: #661818; }   
    25%  { color: #ff9900; }   /* orange */
    50%  { color: #ffff00; }   /* yellow */
    75%  { color: #00ff00; }   /* green */
    100% { color: #ff0000; }   /* back to red */
  }
  
  .ptag {
    font-size: 20px;
    line-height: 2.2; /* line ke beech thoda gap */
    color: #6ec1e4;
    text-align: center;
  
    background-image: linear-gradient(#6ec1e4 1px, transparent 1px);
    background-size: 100% 2.2em; /* line height jitna */
    background-repeat: repeat-y;
    background-position: bottom left;
    padding-bottom: 2px;
  }
  
  
  
  .ptag::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: #6ec1e4; /* underline ka color */
    transition: width 0.4s ease;
  }
  
  .hl {
    color: #0ef;                 /* highlight color */
    font-weight: 600;
  }
  
  .ptag{
    color: #a8d2e8;
    font-size: 15px;
    line-height: 2.2;
    text-align: center;
  
    /* copy-style underline on every line */
    background-image: linear-gradient(#6ec1e4 1px, transparent 1px);
    background-size: 100% 2.2em;
    background-repeat: repeat-y;
    background-position: bottom left;
    padding-bottom: 2px;
  }
  
  
  .inner{
      -webkit-transform: translateY(-50%) translateZ(60px) scale(0.94);
              transform: translateY(-50%) translateZ(60px) scale(0.94);
      top: 50%;
      position: absolute;
      left: 0;
      width: 100%;
      padding: 2rem;
      -webkit-box-sizing: border-box;
              box-sizing: border-box;
      outline: 1px solid transparent;
      -webkit-perspective: inherit;
              perspective: inherit;
      z-index: 2;
  }
  
  .container .back{
      -webkit-transform: rotateY(180deg);
              transform: rotateY(180deg);
      -webkit-transform-style: preserve-3d;
              transform-style: preserve-3d;
  }
  
  .container .front{
      -webkit-transform: rotateY(0deg);
              transform: rotateY(0deg);
      -webkit-transform-style: preserve-3d;
              transform-style: preserve-3d;
  }
  
  .container:hover .back{
    -webkit-transform: rotateY(0deg);
            transform: rotateY(0deg);
    -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
  }
  
  .container:hover .front{
    -webkit-transform: rotateY(-180deg);
            transform: rotateY(-180deg);
    -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
  }
  
  .front .inner p{
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
  }
  
  .front .inner p:after{
    content: '';
    width: 4rem;
    height: 2px;
    position: absolute;
    background: #C6D4DF;
    display: block;
    left: 0;
    right: 0;
    margin: 0 auto;
    bottom: -.75rem;
  }
  
  .front .inner span{
    color: rgba(255,255,255,0.7);
    font-family: 'Montserrat';
    font-weight: 300;
  }
  
  @media screen and (max-width: 64rem){
    .col{
      width: calc(33.333333% - 2rem);
    }
  }
  
  @media screen and (max-width: 48rem){
    .col{
      width: calc(50% - 2rem);
    }
  }
  
  @media screen and (max-width: 32rem){
    .col{
      width: 100%;
      margin: 0 0 2rem 0;
    }
  }