:root {
    --card-height: 300px;
    --card-width: calc(var(--card-height) / 1.5);
  }
  * {
    box-sizing: border-box;
  }
  body {
    width: 100vw;
    height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #191c29;
  }
  .card {
    width:200px;
    height:300px;
    border-radius:15px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 0 36px;
    perspective: 2500px;
    margin: 0 50px;

  }
  
  .cover-image {
    width: 100%;
    height: 100%;
    border-radius:15px;
    object-fit: cover;
  }

  .cover-image1 {
    width: 100%;
    height: 300;
    border-radius:15px;
    object-fit: cover;
    
  }

  
  .wrapper {
    transition: all 0.5s;
    position: absolute;
    width: 100%;
    z-index: -1;
    transition:0.7;
  }

  
  .card:hover .wrapper {
    transform: perspective(900px) translateY(-5%) rotateX(25deg) translateZ(0);
    box-shadow: 2px 35px 32px -8px rgba(0, 0, 0, 0.75);
    -webkit-box-shadow: 2px 35px 32px -8px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 2px 35px 32px -8px rgba(0, 0, 0, 0.75);
    opacity: 0.4;
  }




  
  
  .wrapper::before,
  .wrapper::after {
    content: "";
    opacity: 0;
    width: 100%;
    height: 80px;
    transition: all 0.5s;
    position: absolute;
    left:0;
  }
  .wrapper::before {
    top: 0;
    height: 100%;
    background-image: linear-gradient(
      to top,
      transparent 46%,
      rgba(12, 13, 19, 0.5) 68%,
      rgba(12, 13, 19) 97%
    );
  }
  .wrapper::after {
    bottom: 0;
    opacity:1;
    background-image: linear-gradient(
      to bottom,
      transparent 46%,
      rgba(12, 13, 19, 0.5) 68%,
      rgba(12, 13, 19) 97%
    );
  }
  
  .card:hover .wrapper::before,
  .wrapper::after {
    opacity: 1;
  }
  
  .card:hover .wrapper::after {
    height: 120px;
  }
  .title {
    width: 200px;
    transition: transform 0.5s;
  }
  .card:hover .title {
    transform: translate3d(0%, -50px, 100px);
    
  }
  
  .character {
    width: 130%;
    opacity: 0;
    transition: all 1s;
    position: absolute;
    top:40px;
    z-index: -1;
  }
  
  .card:hover .character {
    opacity: 1;
    transform: translate3d(0%, -30%, 100px);
  }

  a{

text-decoration: none;
color: white;
letter-spacing: 9;

  }
  h1 {
    font-size: 40px;
    margin-left: 8px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    opacity: 0;
    transform: translateY(10px);  /* Reduced the distance */
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  #hi{

    letter-spacing: 0px;
    font-size: 40;
    margin-left: 6px;

  }

  #hello{

top: 50px;
width: 290px;

  }
  
  .card:hover h1 {
    opacity: 1;
    transform: translateY(0);
    animation: slideIn 1s ease forwards;
    letter-spacing: 9px;  /* Add animation */
  }
  
  @keyframes slideIn {
    0% {
      opacity: 0;
      transform: translateY(10px);  /* Start a little bit closer to its position */
    }
    100% {
      opacity: 1;
      transform: translateY(0);  /* End at its natural position */
    }
  }