.title {
  font-family:'Cambria';
  font-size: 6vw;
  width:52%;
  color:white;
}

body {
  height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#2b2b2b;
}


.first {
animation: blink 2s linear 0.5s 1 normal forwards;
}
@keyframes blink {
   from {
      color:white;
   }

   to {
      color:#FF545E;
   }
 }
.second {
animation: blink2 2s linear 0.5s 1 normal forwards;
  animation-delay:2s;
}
@keyframes blink2 {
   from {
      color:white;
   }

   to {
      color:#43D3DC;
   }
 }



@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*:focus,
*:active {
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  display: grid;
  height: 100%;
  width: 100%;
  font-family: "Poppins", sans-serif;
  place-items: center;
}

.wrapper {
   display: flex;
   flex-wrap: wrap; /* Allows items to wrap on smaller screens */
   justify-content: center; /* Center items on smaller devices */
}

.wrapper .icon {
  position: relative;
  background: #E9E2D0;
  border-radius: 50%;
  padding: 15px;
  margin: 10px;
  width: 50px;
  height: 50px;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .tooltip {
   position: absolute;
   top: -40px; /* Adjust this value to move the tooltip above the icon */
   left: 50%; /* Start positioning from the center of the icon */
   transform: translateX(-50%); /* Shift the tooltip back by 50% of its width to center it */
   font-size: 14px;
   background: #333333; /* Set the tooltip background to contrast with white text */
   color: #ffffff;
   padding: 5px 8px;
   border-radius: 5px;
   box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
   opacity: 0;
   pointer-events: none;
   transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
   z-index: 1; /* Ensures tooltip is on top */
 }

.wrapper .tooltip::before {
  position: absolute;
  content: "";
  height: 8px;
  width: 8px;
  background: #ffffff;
  bottom: -3px;
  left: 50%;
  transform: translate(-50%) rotate(45deg);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .icon:hover .tooltip {
  top: -45px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wrapper .icon:hover span,
.wrapper .icon:hover .tooltip {
  text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);
}

.wrapper .twitter:hover,
.wrapper .twitter:hover .tooltip,
.wrapper .twitter:hover .tooltip::before {
  background: #1DA1F2;
  color: #ffffff;
}

.wrapper .instagram:hover,
.wrapper .instagram:hover .tooltip,
.wrapper .instagram:hover .tooltip::before {
  background: #E4405F;
  color: #ffffff;
}

.wrapper .github:hover,
.wrapper .github:hover .tooltip,
.wrapper .github:hover .tooltip::before {
  background: #333333;
  color: #ffffff;
}

.wrapper .youtube:hover,
.wrapper .youtube:hover .tooltip,
.wrapper .youtube:hover .tooltip::before {
  background: #CD201F;
  color: #ffffff;
}

.wrapper .email:hover,
.wrapper .email:hover .tooltip,
.wrapper .email:hover .tooltip::before {
  background: #d44638; /* Gmail-like red color */
  color: #ffffff;
}

@media (max-width: 768px) {
   .title {
     font-size: 11vw; /* Larger font size on smaller screens */
     width: 50%; /* Adjust width */
   }
   .wrapper .icon {
     width: 40px;
     height: 40px;
     font-size: 16px;
   }
   .footer-text {
     font-size: 14px;
   }
 }
