* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
}

.light-bg {
    background-color: #f8f9fa;
    /* Light background color */
    padding: 20px;
    /* Adjust padding as needed */
}

.dark-bg {
    background-color: #343a40;
    /* Dark background color */
    color: #ffffff;
    /* Text color for dark background */
    padding: 20px;
    /* Adjust padding as needed */
}

.contact-info {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    position: relative;
    flex: 1;
    max-width: 300px;
    height: 140px;
    background-color: #444;
    margin: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon {
    font-size: 32px;
    color: #ea8685;
    transition: .3s linear;
}

.card:hover .icon {
    transform: scale(4);
    opacity: 0;
}

.card-content h3,
.card-content span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    opacity: 0;
}

.card-content h3 {
    top: 20px;
    text-transform: uppercase;
    color: #ea8685;
}

.card-content span {
    bottom: 20px;
    color: #fff;
    font-weight: 500;
}

.card:hover h3 {
    opacity: 1;
    top: 46px;
    transition: .3s linear .3s;
}

.card:hover span {
    opacity: 1;
    bottom: 46px;
    transition: .3s linear .3s;
}


@media screen and (max-width:900px) {
    .card {
        flex: 100%;
        max-width: 500px;
    }
}
span {
    position: relative;
    display: inline-flex;
    width: 180px;
    height: 55px;
    margin: 0 15px;
    perspective: 1000px;
}

span a {
    font-size: 19px;
    letter-spacing: 1px;
    transform-style: preserve-3d;
    transform: translateZ(-25px);
    transition: transform .25s;
    font-family: 'Montserrat', sans-serif;

}

span a:before,
span a:after {
    position: absolute;
    content: "Contact Us";
    height: 55px;
    width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid black;
    box-sizing: border-box;
    border-radius: 5px;
}

span a:before {
    color: #fff;
    background: #000;
    transform: rotateY(0deg) translateZ(25px);
}

span a:after {
    color: #000;
    transform: rotateX(90deg) translateZ(25px);
}

span a:hover {
    transform: translateZ(-25px) rotateX(-90deg);
}
