body { display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; background-image: url('bg.gif'); /* Background image URL */ background-size: cover; font-family: 'Arial', sans-serif; color: #fff; /* White text color */ } .card { background-color: #1a1a1a; border-radius: 15px; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5); width: 320px; padding: 30px; text-align: center; transition: transform 0.4s, box-shadow 0.4s; overflow: hidden; position: relative; border: none; /* Removed border */ } .card:hover { transform: scale(1.05); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5); } .card img { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 20px; /* Center the image horizontally and provide bottom margin */ border: 3px solid transparent; /* Removed border color */ transition: transform 0.4s; } .card:hover img { transform: translateY(-20px); } .card h2, .card p, .card .contact-info a { transition: transform 0.4s, opacity 0.4s; } .card .contact-info { margin-top: 20px; display: flex; justify-content: space-around; flex-wrap: wrap; } .card .contact-info > div { display: flex; flex-direction: column; align-items: center; margin: 10px; flex-basis: calc(33.33% - 20px); /* Ensure consistent spacing */ } .card .contact-info a { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; background-size: contain; /* Ensure image fits within the button */ background-repeat: no-repeat; background-position: center center; /* Center the background image */ color: #fff; text-decoration: none; border-radius: 50%; box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.5), 0 6px 10px rgba(0, 0, 0, 0.5); transition: transform 0.3s; } .card .contact-info a:hover { transform: scale(1.1); } .card .contact-info i { color: #fff; font-size: 1.5rem; } .card .hello-text { font-size: 1.2rem; color: #fff; margin-top: 20px; }