<div class="card">
    
    <div class="card-cover"></div>
    <div class="profile"></div>
   
    <p class="name">Haris imran</p>
    <a href="https://www.instagram.com/harisimran2019/" target="_blank"><h1 class="id-link">@harisimran2019</h1></a>
    <i class="location-icon fas fa-map-marker-alt"></i>
    <p class="country">Pakistan</p>
   
   <a href="#" target="_blank"><button class="portfolio">Portfolio</button></a>
   
   
   <div class="social-icons">
     
     <a href="#" target="_blank"><i class="facebook fab fa-facebook"></i></a>
     <a href="#" target="_blank"><i class="instagram fab fa-instagram"></i></a>
     <a href="#" target="_blank"><i class="patreon fab fa-patreon"></i></a>
     
   </div>
   
  </div>
  
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
     overflow: hidden;
     background: lightblue;
}

* {
   margin: 0;
   padding: 0;
}

*::selection {
       background: lightblue;
}

.card {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%,-50%);
      width: 350px;
      height: 350px;
      background: white;
      border-radius: 6px;
      box-shadow: 0 3px 4px rgba(0, 0, 0, 0.22),
                  0 3px 18px rgba(0, 0, 0, 0.25);
      overflow: hidden;
  transition: all 0.3s ease;
}

.card-cover {
             position: absolute;
             left: 50%;
             top: 15%;
             transform: translate(-50%,-50%);
             width: 101%;
             height: 60%;
            background-image: url(https://images.unsplash.com/photo-1600508772927-723e3ba305c5?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=750&q=80);
   background-size: 400px;
   background-position: center;
   background-repeat: no-repeat;
  transition: all 0.3s ease;
}

.profile {
         position: absolute;
         width: 80px;
         height: 80px;
         background-image: url(https://images.unsplash.com/photo-1607017137021-5dc7e8cd4317?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=375&q=80);
        background-size: 80px;
        background-repeat: no-repeat;
        background-position: center;
         border-radius: 13px;
         border: 3.5px solid white;
         left: 7%;
         top: 29%;
  transition: 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 3;

}

.name {
      position: absolute;
      top: 57%;
      left: 8%;
      font-size: 25px;
      font-family: 'Poppins', sans-serif;
      font-weight: 700;
}

.id-link {
          position: absolute;
          top: 67%;
          left: 7%;
          font-size: 15.5px;
          font-family: 'Poppins', sans-serif;
          font-weight: 400;
          color: #606060;
          
}

.id-link:hover {
               text-decoration: underline;
}

.card:hover {
            top: 48.5%;
   box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15),
               0 3px 30px rgba(0, 0, 0, 0.2);
}

.profile:hover {
                width: 101%;
                height: 101%;
                border: 0px;
                background-size: 360px;
                cursor: pointer;
                left: -0.5%;
                top: -0.5%;
              filter: brightness(1.2);
}

.location-icon {
             position: absolute;
             top: 78%; 
             left: 8%;
             font-size: 16px;
             color: #2C2C2C;
}

.country {
          position: absolute;
          top: 77%;
          left: 13%;
          font-size: 16px;
          font-family: 'Poppins', sans-serif;
          font-weight: 500;
          color: #414141;
}

.portfolio {
          font-family: 'Poppins', sans-serif;
          font-weight: 400;
          letter-spacing: 0.7px;
          font-size: 13px;
          position: absolute;
          top: 67%;
          left: 75%;
          transform: translate(-50%,-50%);
          width: 120px;
          height: 40px;
          border: 0px;
          border-radius: 20px;
          background: transparent;
          border: 1px solid black;
          box-shadow: 2px 4px;
          cursor: pointer;
          transition: all 0.3s ease;
}

.portfolio:active {
                  box-shadow: inset 0 0 5px rgba(0,0,0,0.8);
}

.social-icons {
             position: absolute;
             left: 50%;
             top: 93%;
             transform: translate(-50%,-50%);
             width: 50%;
             height: 50px;
             display: flex;
             align-items: center;
             justify-content: center;
             gap: 20px;
}

.facebook {
          font-size: 20px;
          color: #18abfd;
  transition: 0.3s ease;
}

.instagram {
            font-size: 20px;
            color: #FF4FF9;
  transition: 0.3s ease;
}

.patreon {
         font-size: 18px;
         color: #ff5c50;
   transition: 0.3s ease;
}

.facebook:hover {
                font-size: 30px;
}

.instagram:hover {
                font-size: 30px;
}

.patreon:hover {
                font-size: 30px;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://kit.fontawesome.com/54f4c0e316.js