text: import React from "react"
  import styled from "styled-components"
  
  const Card = ({ title, text, img }) => (
    <CardBox>
      <img src={img} alt="" />
      <h3>{title}</h3>
      <p>{text}</p>
    </CardBox>
  )
  
  const CardBox = styled.div`
    width: 300px;
    height: 225px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    display: grid;
    grid-template-rows: 1fr 1fr;
    transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  
    &:hover {
      transform: scale(1.1, 1.1);
      box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  
      img {
        transform: translateY(-20px);
      }
    }
  
    img {
      position: absolute;
      top: 0;
      height: 110%;
      z-index: -1;
      transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    }
  
    h3 {
      color: #ffffff;
      font-size: 30px;
      margin: 20px 0 0 20px;
      width: 190px;
    }
  
    p {
      color: rgba(255, 255, 255, 0.8);
      text-transform: uppercase;
      font-weight: 600;
      font-size: 18px;
      align-self: end;
      margin: 0 0 20px 20px;
    }
  `
  
  export default Card
  